Avast WEBforum

Consumer Products => Avast Mobile Apps => Avast Anti-Theft for Android => Topic started by: dev344 on December 27, 2011, 03:06:58 PM

Title: Nearly 70% battery drain overnight
Post by: dev344 on December 27, 2011, 03:06:58 PM
I am facing huge battery drain an my lg optimus one(P500) with a custom rom. I had really good battery life before I installed avast mobile Security app which, while installing, prompted me to install anti-theft too with root permissions. Looking at the battery stats, I see that my phone stays awake all the time even when I am not using the phone( especially during the night, I have seen more than 70% drain).

Please help me.

Thanks.
Devesh
Title: Re: Nearly 70% battery drain overnight
Post by: svehlak on December 27, 2011, 06:59:56 PM
There is no settings of battery or power management inside Avast and whole app incl. antitheft does not touch these; what do you mean awake? The screen is always on? Could you please take a look inside scanner log? Thank you.
Title: Re: Nearly 70% battery drain overnight
Post by: tcntad on December 27, 2011, 10:16:32 PM
It could be your custom rom thats making it.
Could also be your battery or phone.

I havent noticed any higher batterydrain on my phone.
Title: Re: Nearly 70% battery drain overnight
Post by: dev344 on December 28, 2011, 01:54:39 PM
The log looks clean. It just says it took some 25 seconds to scan.
By awake I mean that it looks like your app is holding a wakelock or something like that which is causing it to not go to sleep. I found out that it is being awake by checking the battery stats and it showed unusual awake time in the graph.

I disabled anti-theft option but still there was battery drain. Then I removed it as device administrator and switched my phone off and switched it on again. And then killed both the apps on start. Now my phone again has just about 2% drain overnight.
Title: Re: Nearly 70% battery drain overnight
Post by: svehlak on December 31, 2011, 06:25:01 PM
Well I tested your case at many scenarios and avast is no way touching the battery; antitheft could drain it only in case, if the device is marked as lost and some commands for call forwarding or location sending is used; but you did not mention such a thing. So please could you be so kind and tell me which ROM it is (version, localization, build)? Thank you in advance.
Title: Re: Nearly 70% battery drain overnight
Post by: dev344 on January 01, 2012, 04:29:55 AM
Thanks Jan.
I am using mik_os's custom rom for lg optimus which is just cyanogenmod 7.1 ported for my phone. I have now tested my phone by just keeping the anti-theft app running while closing the anti-virus scanner. This seems to have solved the problem with only a slight increase in battery usage than normal.
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 02, 2012, 01:34:36 PM
Same issue here, avast has held a wakelock for almost 10 since installed and taken most of my battery life.
Samsung galaxy s2, running checkrom v4, darkknight kernel.
Is there an easy fix for this or do you need logs?
 (http://img217.imageshack.us/img217/2521/sc20120102122840.png) (http://imageshack.us/photo/my-images/217/sc20120102122840.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 02, 2012, 03:38:07 PM
To confirm, leaving avast mobile security installed, but disabling anti theft and the issue has gone.
Once fully charged I will reenable to verify the issue can be recreated
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 03, 2012, 10:01:11 AM
So, disable antitheft, reboot, reenable, reboot
no more wakelock.
Leave for a few hours and no problem.

Send another test "locate" and problem recurs.

So, what is happening after a locate is sent? Is this normal behaviour etc?
Title: Re: Nearly 70% battery drain overnight
Post by: reinhardholzner on January 03, 2012, 02:51:30 PM
created a bug report on this - i'll check ASAP.
Can you please tell me which Android version you use?
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 03, 2012, 03:25:51 PM
Thanks for the reply, I'm using version 2.3.6
Title: Re: Nearly 70% battery drain overnight
Post by: svehlak on January 03, 2012, 10:00:40 PM
So, disable antitheft, reboot, reenable, reboot
no more wakelock.
Leave for a few hours and no problem.

Send another test "locate" and problem recurs.

So, what is happening after a locate is sent? Is this normal behaviour etc?


After locate command the device will start to caching the location and sending it to mentioned or set number. GPS and SMS service could drain battery. I will consult it with developers, thank you for your feedback.
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 04, 2012, 12:57:42 AM
Thanks, for reference its not sending any location data to me.
Is it sending it somewhere retrievable?
Title: Re: Nearly 70% battery drain overnight
Post by: svehlak on January 04, 2012, 11:05:13 AM
It should use SMS for sending the location..
Title: Re: Nearly 70% battery drain overnight
Post by: Alan99 on January 04, 2012, 04:31:31 PM
Not very helpful, or are you not understanding the issue?

The command gets one location response via sms, then the app holds a wakelock until reboot.
It doesn't send any further location info unless requested.
You said it starts caching location data, where does it cache it to as it's not sending sms data.
If it's caching to a server how is the data accessed, if its caching locally then it's not much use is it?
Either way, how do I stop the wakelock without a reboot?
Title: Re: Nearly 70% battery drain overnight
Post by: reinhardholzner on January 04, 2012, 06:27:57 PM
hi i have implemented a fix for this issue which will be released in the next official update.
Title: Re: Nearly 70% battery drain overnight
Post by: luly on February 17, 2012, 05:45:48 AM
I'm bumping this to see if it will be fixed soon.

I just got a new Galaxy Nexus about a week ago and installed the app with anti-theft immediately. Since then, I've had MASSIVE battery drain for days at about 20% per hour.
Then I saw the thread and disabled anti-theft yesterday. The battery life jumped immediately to only 10% drain on moderate use.

The anti-theft function keeps Galaxy Nexus awake all the time. Please fix it ASAP.
Title: Re: Nearly 70% battery drain overnight
Post by: reinhardholzner on February 17, 2012, 03:59:55 PM
should be fixed in the newest release!
Title: Re: Nearly 70% battery drain overnight
Post by: reinhardholzner on February 17, 2012, 04:00:16 PM
PS: its Anti-Theft 1.0.1971 :-)
Title: Re: Nearly 70% battery drain overnight
Post by: luly on February 23, 2012, 12:53:21 AM
should be fixed in the newest release!

Just want to let you know that's it's definitely been fixed and the app it's really good on the battery now.  :)

Thank you!
Title: Re: Nearly 70% battery drain overnight
Post by: reinhardholzner on March 01, 2012, 07:32:17 PM
LIKE :-)