Author Topic: Nearly 70% battery drain overnight  (Read 23537 times)

0 Members and 1 Guest are viewing this topic.

dev344

  • Guest
Nearly 70% battery drain overnight
« 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

svehlak

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #1 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.

Offline tcntad

  • Avast Überevangelist
  • Full Member
  • *****
  • Posts: 124
Re: Nearly 70% battery drain overnight
« Reply #2 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.

dev344

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #3 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.

svehlak

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #4 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.

dev344

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #5 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.

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #6 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?
 

Uploaded with ImageShack.us

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #7 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

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #8 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?

reinhardholzner

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #9 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?

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #10 on: January 03, 2012, 03:25:51 PM »
Thanks for the reply, I'm using version 2.3.6

svehlak

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #11 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.

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #12 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?

svehlak

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #13 on: January 04, 2012, 11:05:13 AM »
It should use SMS for sending the location..

Alan99

  • Guest
Re: Nearly 70% battery drain overnight
« Reply #14 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?