Granting BATTERY_STATS to more apps. - Android Apps and Games

Hi fellow geeks,
I've got some annoying problems with software. Can you guess which phone? Yup, it's a Samsung. The S7 to be exact.
Now I'm not going to get too much in depth with my battery problems because from what I've seen there's not much people can help me with, but here's a summary (I'm on Nougat btw) :
I get no more than 3 hours of SOT and 10 hours total with data, and it's been getting worse. When i go on to see which app uses more it's Android System, with usually around 800 MAh consumed. And keep in mind i use my phone extensively so it's not that high because i don't use it and it uses the battery while it's sleeping. Idling is actually pretty good. The problem is i can't track what exactly uses my battery. Is it Knox? Is it ANT or whatever? That's because if a package is included in Android System it's the same battery usage for all of them. If you go see how much did Knox use versus how much did the camera use it shows the same percentage. So to solve that I've tried GSAM, but it displays the same amount of information. An app that seeme like it could help is System Monitor or whatever it was called. The problem with that is it can't access all the info due to restrictions placed in Nougat. So now comes my main question. GSAM had the same problem but there was a workaround without root, which included an ADB command to grant access to BATTERY_STATS. Today i found out it works for Wakelock Detector too. So i was wondering, can i grant access to needed information to other apps like System Monitor on my own, or does this ADB workaround need to be added on the app by the dev. (I'm quite the noob when it comes to this stuff). As for my terrible battery life i know smth like a factory reset would do the job but i really can't do it right now because of reasons.
Thanks for reading this load of noob words

Related

New to Android- a few questions (Data Tethering and Battery)

Hi!
So I'm new to Android (not so much XDA...left WM after a few years).
I switched to Verizon from AT&T right before VZ dropped the unlimited data and secured a Droid Charge based off some of the rave reviews from Engadget among others.
I've installed Humble 1.4 and it seems to be working great (Thanks!). I have run into a couple questions that I was hoping to get some conclusive answers to.
With regards to Data Tethering I use tethering about once or twice a month and not for a lot of data so I feel less inclined to pay $30/mos for something I'll hardly use. However, for those occasional occasions I installed android-wifi-tether and it seems to work, but I saw a comment indicating that VZ could track the unauthorized usage through that app- how is that possible? What is the best tethering app I could/should be using? (I'm good with any connection, wifi/bluetooth/usb)
Now for my biggest point of pain- the battery- I've read through the various guides, and tried bump charging (extensively)- tried the simpler methods with wiping stats via CWM etc, and at most I seem to get about 10-12hrs of minimal usage...I haven't been able to tell conclusively are there truly 'defective' batteries, or just miscalibrated ones? I don't want to make a futile attempt at calibrating this if it'll never work right. Since I'm new to Android is there anything I could be missing in general that's being blatantly assumed in all the battery discussion threads? I've tried Juice Defender, but it's been spotty for me with re-enabling mobile data which is frustrating in its own right.
Finally- are there any 'must have' or cool apps out there? What are your favorites? Also- what would you recommend for the following areas: Speech-to-txt for text/e-mail etc; profile automation (e.g. when at gps location 'x' turn off mobile data, turn on wifi etc)
Thanks!
Edvard_Greig said:
With regards to Data Tethering I use tethering about once or twice a month and not for a lot of data so I feel less inclined to pay $30/mos for something I'll hardly use. However, for those occasional occasions I installed android-wifi-tether and it seems to work, but I saw a comment indicating that VZ could track the unauthorized usage through that app- how is that possible? What is the best tethering app I could/should be using? (I'm good with any connection, wifi/bluetooth/usb)
Click to expand...
Click to collapse
They can do it by analyzing the traffic going through their network. There are a variety of hints that the traffic is coming from a PC instead of phone, in addition to more obvious things like requests hitting Apple or Microsoft Update (our Android phones won't need to update iTunes or Windows 7 ).
Edvard_Greig said:
Now for my biggest point of pain- the battery- I've read through the various guides, and tried bump charging (extensively)- tried the simpler methods with wiping stats via CWM etc, and at most I seem to get about 10-12hrs of minimal usage...I haven't been able to tell conclusively are there truly 'defective' batteries, or just miscalibrated ones? I don't want to make a futile attempt at calibrating this if it'll never work right. Since I'm new to Android is there anything I could be missing in general that's being blatantly assumed in all the battery discussion threads? I've tried Juice Defender, but it's been spotty for me with re-enabling mobile data which is frustrating in its own right.
Click to expand...
Click to collapse
It's not totally hopeless, but ultimately if you have LTE on with this first generation of phones the battery life won't be the best. It has a tendency to wander on and off of it in my case (especially 3 bars and lower), there are two radios running drawing power and the re/connection process is the most power-hungry thing they can do. Disabling LTE with one of the apps or digging into wireless settings is the number one way to get more out of the battery.
Edvard_Greig said:
Finally- are there any 'must have' or cool apps out there? What are your favorites? Also- what would you recommend for the following areas: Speech-to-txt for text/e-mail etc; profile automation (e.g. when at gps location 'x' turn off mobile data, turn on wifi etc)
Thanks!
Click to expand...
Click to collapse
For speech I don't know of anything better than the Google service already there (maybe Vlingo?). I don't know if anything exists for that automation though, it'd be helpful for me too though - got a promotion and my new desk has horrible signal.
If you plan on getting into ROMs you can't go wrong with Titanium Backup, restoring apps quickly with data intact is absolutely wonderful as even if the ROM doesn't require they tend to always run fastest when data is wiped when you install. Alternative SMS apps and Launchers can add a lot to the experience (I like GO SMS and GO Launcher or LauncherPro).
Danrarbc said:
I don't know if anything exists for that automation though, it'd be helpful for me too though - got a promotion and my new desk has horrible signal.
Click to expand...
Click to collapse
Finally found the apps I was thinking of...take a look at the following (still haven't decided which I like best)
Locale
Tasker
Setting Profiles
Timeriffic
Smarter Profiles
Tasker appears to be one of the most powerful, but a bit complex to setup and use...it's basically guided scripting from what I can tell....Locale looks pretty simple to use, but can get pricey. Haven't played enough with the others.

[Q] Is my battery a dud

Hi everyone I'm new to the forums and smartphones. But I got a razr hd from fido a few months ago. I've never compared the battery life and could get 3 hours of screen time on one charge. At first I thought it was great but then I used my friends razr (non maxx like mine). But I could watch 3 hours of YouTube videos with max sound and only used 50% of the battery. I got the warranty from future shop that will replace my battery, but since the battery isn't removable they will replace it with another phone of the same retail value. I turned off all apps, apex launcher, and avg, and used only what he had, JuiceDefender Ultimate and SwiftKey. My battery was about the same.
I don't get even get three hours of screen out of mine with brightness at around 40% and I have the maxx. I game a lot on mine though and talk a lot on the phone. I think the battery figures were obliviously under the ideal circumstances, so in the real world that's pretty good what your getting.
Do a side by side with both devices and see what the difference is.
Sent from my DROID RAZR HD using xda app-developers app
Mines just a normal RAZR HD. I'm not in an LTE area like you so I stay on 3G and throttle up to H+ when its transferring data.
I don't game much; my heaviest game is Angry Birds Star Wars which I don't use much so usualy its just Words With Friends.
I don't use it often for phone calls but I do use it. I'm a guy so I'm not talking for hours and hours.
I always get a full day out of it, and by full day I mean 16 hours or therabouts, until I put it to recharge while I sleep.
I'm not using anything to save battery.
I run Apex Launcher opposed to stock.
I run Tasker and have it looking for cable plugged in, orientation, change in wifi connection (nothing major, just gets the SSID and MAC and stores them as variables), and have it looking for screen unlocked and Display off (for ADB toggle).
In the background I'm running NG call recorder, LMT, WhatsApp, Lookout, LocateMyDroid, Words With Friends, TEAM battery bar Pro, Go SMS
Pro, Calengoo, BetterBatteryStats, ModemFastdormancyMonitor, SmartCardService, Google Services, Google Play, and Notification Toggle.
I sync Gmail and Contacts.
I have frozen Acoustic Warning, Audio Effects, Calendar, Calendar Storage, Email, Facebook stays frozen but unfreezes and runs with GPS off when I run a script but I don't use it much and the same for Maps but GPS on obviously (Maps made a differance for me and needed to be refrozen on every boot as well as the ROM seems to unfreeze it at boot time), Google Caledar Sync, Google Play Books/Movies/Music, Google+, Homescreen (default launcer), Moto Chinese Input, Moto English... infact almost everything starting with "moto or Moto is frozen", Quickview, All of Smart Actions, Swype, and Telstra One (specific to my ROM). Of everything frozen, the only things that I think make a significant impact are the way I have Maps and Facebook handled, that they stay frozen and then are called by a script that unfreezes and runs them and refreezes them on exit.
The Motocare may make a differance however I think its something that's needed to see when you have updates.
This list is very specific to my ROM as I'm on Telstra Austrlia which is (so I've gathered) one of the most bloat free ROMs, and freezing is always going to be carrier specific from what I've read about the phone from other people's carriers.
In adition to the freezing, I've stopped heaps of stuff in Autostarts. I don't reccomend messing with this as its easy to get lost and forget your settings. There is no undo or restore to default, so if you get lost then you're only sure fire way is a factory reset. If you feel safe using it though, then its worth having a look through what's starting up (start with just the stuff after boot) and disabling things that aren't needed. There's heaps of apps that run that really don't need to; non system apps I mean. If you get comfortable with it then the next greatest place they like to start up is when new apps are installed or old ones updated but there needs to be some care taken here as some apps do need to know this while others are just spying and wasting resources while doing so. If in doubt, just don't mess with it at all as there's no "set back to default" option.
I don't use Juice Defender, that's something that stuck out at me, is that I don't know how its being used in one of the posts stated above, but in the case of my ROM, the power management seems to be as good as I'm going to get it on its own. Toggling wifi in particular is something that I tried out with Tasker and it was better to leave it alone. I did try an app... I can't find it now but apparently I didn't back it up before uninstall. Its the beta app made by the chip manufacturer that runs in our phones (or so I read anyway) and it spent time in the background collecting data then tried to optimise power management. I think it was okay but I didn't see anything significant. I was hoping it would end the wakelocks that turn the wifi on but it ended up just leaving my wifi on most of the time and then turning it off when I actually was at home, and I couldn't manually turn it on and get a connection. It may be quite helpful for others though... Its the same thing for Juice Defender; I reckon that the way I would use it would be less helpful because of the wifi handling. I've gathered that wifi doesn't so much turn off but just goes into a power friendly state, and that a full toggle on and off takes more power so I ended up leaving that alone entirely. For people with other power issues, for example I stated that I don't use LTE or 4g in my area, then perhaps it could be useful... I can't give advice on that.
...
...but to answer your question, that's how I use my phone and I get at least 6 hours screen time in a 16 hour day. In fact I always get that much (assuming its used that much) and usually more if I need it. I have battery left over but it does admitadly go down quickly after it reaches a point. I would be dissapointed if I got less. I came from the S2 with the Samsung extendable battery (just under %20 more juice than out of the box) and would get 4 or 5 hours on that before it was dead. I think that you have a genuine frustration on your hands, but that you should deal with it slowly and one step at a time, and that the first step is diagnosis and if it were me I would start by switching it to 3g/2g and seeing how that goes for a few days... let it settle in like that and see if it makes any differance after at least a few days later and a few charges of the battery.
By the way, Location services work fine with maps frozen. Another thing I neglected to mention is that I don't use Google Now. All of my apps that use fine or course location work fine (Google ones and third party) with Maps frozen.
Oh... One more edit; I also have DroidWall or some other equivalent firewall installed. I forget which one at the moment but if you use one, make sure it simply is a front end to iptables as there's almost zero resources used in this fashion. As I don't have 4G in my area, I don't know what is best suited for that. Mine is very simple and has a checkbox for wifi and for data, however it makes a lot of sense that a lot of these firewalls may not be updated to be detecting the interface that 4G is running on. This doesn't make a huge difference on my phone and I don't think I would notice any battery savings if I didn't have it but it may be of help if you were hell bent on using 4G, as its supposed to be power hungry, because you can prevent a lot of apps from making a connection to report the crap they discover (Contacts, numbers dialed, etc) and block ads in some games that don't otherwise need the internet to be played. At the same time, I'm honestly not sure if the results would be good or bad... for example if an app persistently tries to make a connection and isn't programmed to give up when the connection is timed out then that would be bad. I still thought I'd throw it in there. It would actually be one of the last additions I'd make to my phone after being finally satisfied with the power management. Its also something that you need to be aware of, for example if you can't play a game or use an app, it can cause you (me) to uninstall and reinstall only to find that I had firewalled it when it needed to have a connection. Some apps need to connect to check the validity of their licence as well and you just need to be aware and enable it when it shows up.

[Q] [APP] AutomateIt Data/WiFi usage

Hello everyone,
I own a Nexus 4 and I have just gave a try to AutomateIt (FREE) app and everything went ok. I like it, it's really powerful and easy to use. So I decided I need AND/OR logic to link multiple triggers, but that requires the full version (PRO) so I installed the full version. The main problem with it is while in background/foreground, it sucks the whole internet in less the few hours. I don't know what it downloads but the network usage is about 100MB in less than a day, no matter if it is in background or foreground.
Is there anyone who found a reason/solution for a similar issue?
I know, the solution would be to restrict background data. Still, on WiFi will drain my battery and network usage keeps high itself.
Thanks.
I have the exact same problem! For now I disabled background data. Before that it drained battery big time.
gregor000 said:
I have the exact same problem! For now I disabled background data. Before that it drained battery big time.
Click to expand...
Click to collapse
Hi,
Are you sur that's a legal pro version ?
Put a firewall and do not allow AutomateIt to access the internet. It does not need internet access to work, unless you really want to download any of the "ready" solutions. I use Android Firewall: https://play.google.com/store/apps/details?id=com.jtschohl.androidfirewall
Cheers!

CM11 M7 Wifi dead? here's a potential fix

OK, so I know M7 isn't the latest CM build, but it's the latest one without issues with GPS, so that's what I'm on since I use GPS a lot.
So last week I replaced my home router. This of course means reconfiguring all the wifi devices around the house, including my wifi thermostat. The unique thing about the thermostat is that to configure it, you connect a laptop/phone/tablet to the thermostat's ad-hoc wifi network, tell it which infrastructure ssid to connect to, verify a pin from the thermostat's screen (so nobody can hijack your t-stat from outside the house), and that's it.
thing is, when you use Cyanogenmod (at least on the relay) to connect to an adhoc network, it breaks wifi. what happens is you can't connect to any other wifi networks, and can't even scan to see available networks till you reboot. sometimes it doesn't work even after a reboot. strangely, the tethering/hotspot still works fine. you just can't connect the phone to a hotspot whether it's at home or work or anywhere.
i'd been having other issues and general slowness with the phone, so i decided to backup a few apps with TiBu and do a factory reset. that worked... till i tried connecting to the thermostat again, and it broke wifi completely this time.
solution? go to /data/misc/wifi/ and rename wpa_supplicant.conf to wpa_supplicant.conf.old (or whatever, as long as it's a different name) and reboot. the system will automatically create a new conf file. boom - wifi fixed.
obviously this requires root, but that's not an issue in CM. I doubt it matters, but i used ES file explorer since it's got a good root filesystem browser and mounting / or system as RW is a simple matter of a checkbox in the settings.
when i compared the newly created wpa_supplicant.conf with the one i'd renamed (.old) the only real difference i could see was the saved networks at the bottom. so you might be able to get away with simply deleting the offending network={ blah blah } section instead of completely renaming the conf file. the advantage here would be if you have a bunch of saved networks that you don't want to get rid of, it will keep those saved networks. the conf file is a plaintext file so it's easy enough to understand what you're looking at, and modify appropriately.
MODS: I apologize if this is in the wrong forum. I figured since it probably only applies to CM, I should post it in the dev forum rather than the general one. If it needs to be moved, I don't be offended.
Gibson99 said:
OK, so I know M7 isn't the latest CM build, but it's the latest one without issues with GPS, so that's what I'm on since I use GPS a lot.
So last week I replaced my home router. This of course means reconfiguring all the wifi devices around the house, including my wifi thermostat. The unique thing about the thermostat is that to configure it, you connect a laptop/phone/tablet to the thermostat's ad-hoc wifi network, tell it which infrastructure ssid to connect to, verify a pin from the thermostat's screen (so nobody can hijack your t-stat from outside the house), and that's it.
thing is, when you use Cyanogenmod (at least on the relay) to connect to an adhoc network, it breaks wifi. what happens is you can't connect to any other wifi networks, and can't even scan to see available networks till you reboot. sometimes it doesn't work even after a reboot. strangely, the tethering/hotspot still works fine. you just can't connect the phone to a hotspot whether it's at home or work or anywhere.
i'd been having other issues and general slowness with the phone, so i decided to backup a few apps with TiBu and do a factory reset. that worked... till i tried connecting to the thermostat again, and it broke wifi completely this time.
solution? go to /data/misc/wifi/ and rename wpa_supplicant.conf to wpa_supplicant.conf.old (or whatever, as long as it's a different name) and reboot. the system will automatically create a new conf file. boom - wifi fixed.
obviously this requires root, but that's not an issue in CM. I doubt it matters, but i used ES file explorer since it's got a good root filesystem browser and mounting / or system as RW is a simple matter of a checkbox in the settings.
when i compared the newly created wpa_supplicant.conf with the one i'd renamed (.old) the only real difference i could see was the saved networks at the bottom. so you might be able to get away with simply deleting the offending network={ blah blah } section instead of completely renaming the conf file. the advantage here would be if you have a bunch of saved networks that you don't want to get rid of, it will keep those saved networks. the conf file is a plaintext file so it's easy enough to understand what you're looking at, and modify appropriately.
MODS: I apologize if this is in the wrong forum. I figured since it probably only applies to CM, I should post it in the dev forum rather than the general one. If it needs to be moved, I don't be offended.
Click to expand...
Click to collapse
It does belong in q&a...but my lollipop validus has working gps
REV3NT3CH said:
It does belong in q&a...but my lollipop validus has working gps
Click to expand...
Click to collapse
As does FatToad. However, I do know that the privacy bit in the GPS can be flipped with the drivers we're using in FT. There's an old thread with a post from nard about how to fix that.
Magamo said:
As does FatToad. However, I do know that the privacy bit in the GPS can be flipped with the drivers we're using in FT. There's an old thread with a post from nard about how to fix that.
Click to expand...
Click to collapse
Do you understand more about this "privacy bit", what call in the API flips it, or can give me any other pointers about it? The poster previous to you indicates that GPS works with M7. I thought I had it working with M8, but can't really guarantee that, any more. The post from nard was quite an onerous process, including what looked like reflashing the baseband.
It seems to me that if we really understood this problem, the fix would be quite simple, and could be done by a root-access app. I've done more digging, and see that it seems to be common to many models of Samsung Galaxy phones, and some of the fixes involve doing potentially horrible things to the NVRAM. (like clearing it completely - what could possibly go wrong?)
It seems that the GPS is done in the baseband processor, along with the other radio stuff, but so far I haven't been able to find it. The transceiver chip is just a transceiver, no baseband processor. It looks like the baseband processor might be on the Snapdragon main processor chip, though they don't enumerate it well. In addition they mention a "gpsOne engine" without describing exactly what it is.
I'm still relatively ignorant about Android, a year after getting one. (not enough time) I'm better versed on hardware, but this problem seems to be in the cracks between.
Come to think of it, a simple question... Is there documentation on the communications between Android and the baseband processor?
Gibson99 said:
OK, so I know M7 isn't the latest CM build, but it's the latest one without issues with GPS, so that's what I'm on since I use GPS a lot.
Click to expand...
Click to collapse
I just took my wife's phone outside and tested it. GPS works on M8 from last summer, as does wifi. AFAIK the only thing that doesn't work on M8 is the video camera. (Stills on the camera work.)
This was an older phone than mine, purchased after mine. With mine I didn't need the radio or bootloader updates, my wife's did. I bought the phone for her, used it briefly with my PureTalkUSA SIM card to make sure it was really unlocked. Then I put CM11 on it.
phred14 said:
I just took my wife's phone outside and tested it. GPS works on M8 from last summer, as does wifi. AFAIK the only thing that doesn't work on M8 is the video camera. (Stills on the camera work.)
This was an older phone than mine, purchased after mine. With mine I didn't need the radio or bootloader updates, my wife's did. I bought the phone for her, used it briefly with my PureTalkUSA SIM card to make sure it was really unlocked. Then I put CM11 on it.
Click to expand...
Click to collapse
no idea how old mine actually is; i bought it "like new" from a tmobile reseller here in town and i actually use tmobile for service.
right now i'm on fattoad and once i stepped down my paranoia (i turned on privacy guard for everything including all system apps. hint: don't do that ) it seems good so far. nova launcher has an issue with flickering or disappearing icons, and everything is huge (i need to adjust the dpi) but so far no issues with gps or wifi (though i havent needed to connect to an adhoc network yet).
Do be careful with Privacy Guard. I didn't mention, but although Privacy Guard out of the box tends to make it so that most system apps are unable to be tuned, TeamApexQ likes the option of being able to tune everything in that regard, so we removed the safeguard. (For example, when PG was first ported to CM12, you could tune the settings of the 'Settings' app. Then at our next internal testing build, it was suddenly coming up empty, because CM made a change to exclude tuning for it. We restored full capability because we liked it. But that does mean you can more easily 'shoot yourself in the foot'.
Magamo said:
Do be careful with Privacy Guard. I didn't mention, but although Privacy Guard out of the box tends to make it so that most system apps are unable to be tuned, TeamApexQ likes the option of being able to tune everything in that regard, so we removed the safeguard. (For example, when PG was first ported to CM12, you could tune the settings of the 'Settings' app. Then at our next internal testing build, it was suddenly coming up empty, because CM made a change to exclude tuning for it. We restored full capability because we liked it. But that does mean you can more easily 'shoot yourself in the foot'.
Click to expand...
Click to collapse
I've recently begun to wonder if Privacy Guard might be partially responsible for reduced battery life. I'm under the impression that it lies to apps, providing false information when they have insufficient authority for the real information. Some of those permissions in Privacy Guard are to turn radios on and off. If an app thinks it's turned a radio on, and is trying to communicate based on faked (Really, it's going to look like a failure, at this point.) returns, it may spend more time continuing to try instead of just staying asleep. My battery life comes an goes, but I've noticed that on a "bad day" there are quite a few wakeups in the middle of nowhen, when the phone was sitting there in airplane mode with all radios off.
Of course I may be all wet on this - radio control may be one area where it can say, "You're in Airplane Mode, no program can turn the radio on."
good theory, and like you said, it depends on the app and how pg implements each block.
personally i'm having great battery life in L. i have a 5000mah battery, but usually by this point in the day i'm at about 60%. right now i'm still at 83%. i like how it projects your estimated remaining battery time. first time i looked at the battery chart, i lol'd - it was projecting 4.5 days before it died. i can probably get 2 no sweat even with regular usage, but i'd have to turn off sync and really cut back to make it 4 days.
I've had very good results with some simple rules with Privacy Guard. Generally the only thing I've turned off is the ability for Google Play Services and the Google App (Google Now) to wake up my device and to keep it awake. With those turned off, my battery life has gotten to be pretty damned nice... Though it makes Google Play Services FC once maybe every 24 hours. It restarts just fine, no harm no foul.
My battery life seems to be "bimodal". It either barely makes it 24 hours - basically needs recharging every night, or it lasts on the order of three or four days on a charge.
It seems to be somehow wifi-related, if I were guessing, and in an odd way. If wifi is largely off, but occasionally on, the battery life seems shorter. After wifi has been left off for "a while" (quantity not yet determined) it seems to go into long-battery-life mode. If I keep wifi largely on, and occasionally off (basically between known/trusted wifi places) the battery life comes out somewhere in between, consistent with wifi itself taking some power.
It's been really tough to detect any sort of pattern, but this is the best I've been able to come up with so far. I haven't done rigorous testing, or at least attempts at rigor so far have yielded inconsistent results. I've looked at what the Settings->Battery has available for power diagnostics, and one thing I noted was a lot of spurious wakeups when all radios were turned off. That's what led me to tentatively finger Privacy Guard.
I just saw the setting to show "built-in" apps on PG. I see two different entries for google.services and google.services.framework. The former has scads of wakeups - thanks for the tip. The latter has many, but a much smaller number. Did you block wakeups for both? I presume "built-in" are also "system" that others have said shouldn't be bulk-denied in PG. Are there guidelines anywhere about which are OK, which are useful, etc? (Like this case, and perhaps battery life.)
phred14 said:
My battery life seems to be "bimodal". It either barely makes it 24 hours - basically needs recharging every night, or it lasts on the order of three or four days on a charge.
It seems to be somehow wifi-related, if I were guessing, and in an odd way. If wifi is largely off, but occasionally on, the battery life seems shorter. After wifi has been left off for "a while" (quantity not yet determined) it seems to go into long-battery-life mode. If I keep wifi largely on, and occasionally off (basically between known/trusted wifi places) the battery life comes out somewhere in between, consistent with wifi itself taking some power.
It's been really tough to detect any sort of pattern, but this is the best I've been able to come up with so far. I haven't done rigorous testing, or at least attempts at rigor so far have yielded inconsistent results. I've looked at what the Settings->Battery has available for power diagnostics, and one thing I noted was a lot of spurious wakeups when all radios were turned off. That's what led me to tentatively finger Privacy Guard.
I just saw the setting to show "built-in" apps on PG. I see two different entries for google.services and google.services.framework. The former has scads of wakeups - thanks for the tip. The latter has many, but a much smaller number. Did you block wakeups for both? I presume "built-in" are also "system" that others have said shouldn't be bulk-denied in PG. Are there guidelines anywhere about which are OK, which are useful, etc? (Like this case, and perhaps battery life.)
Click to expand...
Click to collapse
It's difficult to give tips for this, because everyones' usage is different. Get 'WakeLock Detector' and keep an eye on that when your power drain seems more intense. Disable things that make sense to disable based on that.
I know this isn't really the topic, but just because you get a new router doesn't mean you have to reconfigure everything. Why couldn't you just configure the new router with the SSID and password from the old one?
slartibartfast42 said:
I know this isn't really the topic, but just because you get a new router doesn't mean you have to reconfigure everything. Why couldn't you just configure the new router with the SSID and password from the old one?
Click to expand...
Click to collapse
believe me, i tried that. it's stupidly tedious to enter a long keyphrase via the remote control on our tivos and only slightly less tedious on the roku (its remote is much more responsive). laptops and phones aren't as bad since they have keyboards. apparently the devices are smart enough to notice a different MAC behind the BSSID. which if you think about it, is actually a GOOD thing in terms of security, since it makes spoofing a little more difficult. granted, you'd also have to know the wpa key to successfully spoof, but it's a simple check to implement for security's sake, and i'm glad they did.
by the way, do you like fjords?
Magamo said:
It's difficult to give tips for this, because everyones' usage is different. Get 'WakeLock Detector' and keep an eye on that when your power drain seems more intense. Disable things that make sense to disable based on that.
Click to expand...
Click to collapse
"Wakelock Detector" has certainly been enlightening. "Google Fit", which makes sense, once you think about it. But the other aspect that was even more important, I just happened to see when one of the other forums popped up on some sort of search result or other.
You have to boot your Android device on battery. If the kernel starts up on charger, it never gets into the deepest power-saving states. When I first started using Wakelock Detector, my phone showed up as being awake something like 97% of the time. Google Fit was the biggest user, but not that big. After seeing that advice I've been careful to boot on battery, and now most of the time is spent asleep. Google Fit still uses wakes as much, but when it's not, the phone is really sleeping. My normal battery life has moved out to two or three days, sometimes into a fourth. As long as I consider Google Fit worth having around, this battery life is good enough for me - there is always a decent window to recharge.
phred14 said:
You have to boot your Android device on battery. If the kernel starts up on charger, it never gets into the deepest power-saving states.
Click to expand...
Click to collapse
So much for that theory. A day or two back, after good battery life since this post, I noticed it draining faster. Today I looked, and sure enough, it's not going into deep sleep. I tried rebooting with all four states of wifi and cell service, and nothing has gotten deep sleep back. I think I'm going to try charging tonight, booting while charging, then rebooting after disconnecting. It would be good to have an exact and repeatable set of circumstances that cause both good and bad battery life.

Faulty Battery or Software Issue?

Hi folks,
I scoured through all the battery related discussions and wasn't able to find an issue similar to mine, so I hope it's okay to post a new thread on this topic. I have an AT&T (Snapdragon) Galaxy S7 with stock software and about a month and a half ago I started experiencing horrible battery life. I have been desperately trying to figure out what the issue is. At first I thought it was AT&T WiFi calling because it was forcing my WiFi and data connections to toggle back and forth and disabling that did help. However my battery life was still poor and I could never get more than about 10.5 hours of moderate use (see pictures below). Also the phone gets hot randomly (Above 95 Fahrenheit) even when doing minor tasks like browsing through Chrome. Since then I have made the following changes with no noticeable improvement:
Disabled advanced LTE services
Disabled Always on Display
Disabled WiFi and Bluetooth location scanning
Disabled nearby device scanning
Wiped cache multiple times
Temporarily disabled Bluetooth and WiFi to monitor the difference
Used Greenify Aggressive Dose
Disabled all diagnostic reporting
Uninstalled Oculus when that battery issue came up
Side note: I disabled a bunch of bloatware right when I got the phone, not through Package Disabler but through the standard Android disable method
I kept digging and found that my phone doesn't enter dose unless I use Greenify, and even then I don't notice a difference. I then decided to do a hard reset but no luck. Afterwards I used Safe Mode to see if any 3rd party apps were misbehaving, but again the drain was consistent both while idle and while using the phone. Today I installed Wakelock Detector Lite and found that PowerManagerService is keeping my phone from dosing, but from what I've read online it seems that info doesn't really point to a specific app, and it's hard to identify unless I root the phone which I don't want to do.
I am going crazy trying to figure out if this is a software/settings issue or if I should just replace the phone through AT&T and risk getting a defective refurb. Any help would be much appreciated.
Battery stats:
View attachment 3901345
View attachment 3901344
Wakelock Stats (taken on a different day):
View attachment 3901349
Many people have similar problems. One reason was the buggy oculus app (you might wanna disable that when it came pre installed, depending on your CSC).
However the main reason behind the high "android-system" usage is still unclear. Some people experience it, some dont. Some people have better battery results with the firmware from March.
Personally, I believe that it is firmware related. I tried the N7 rom port and did not have a problem at all.
You might wanna wait for the October update that will hit soon and see if this fixes anything.
I notice you have 'media server' showing in your battery stats. My wife had that showing too and also had terrible battery life. Her fix was disabling the auto streaming in her Facebook app which plays videos while you scroll through posts. Now she has great battery life!
I have the Facebook app disabled on my phone altogether. I've also used safe mode where 3rd party apps are disabled but the battery still drains at around 5% an hour while idle.
WiFi calling was draining one members battery, disabled that and everything returned to normal
*Detection* said:
WiFi calling was draining one members battery, disabled that and everything returned to normal
Click to expand...
Click to collapse
How?
iamnotkurtcobain said:
How?
Click to expand...
Click to collapse
https://www.verizonwireless.com/support/knowledge-base-203686/
I had that issue too but have since disabled WiFi calling
most likely a software issue. my version is G930FXXU1APEQ and i'm been getting 11 hour on batty with around 6- 7 hour of screen on.
Try disabling Google backup. It's a huge battery drainer
Sent from my SM-G930FD using Taptalk
Try manually updating Google play services for the lastest ver sion.
Hi,
Have the same Problem with my Galaxy S7.....Last Week, become an Little Update */- 20,8 MB
Now I have strong Accu consumption. ( Sorry Speake German
Test with Galaxy Note Edge, and Galaxy S7 .....both Smartphones have an 3000 m/Ah Accu. On Galaxy Edge have 178 own apps installed,
The Galaxy S7 - 3 Times Reset with Wipe Factory Reset and Wipe Cache, and from the Phone Settings.
https://www.dropbox.com/s/d7pvlnccr6y5dgc/Screenshot_2016-10-06-10-48-32%20NOTE%20EDGE.png?dl=0
https://www.dropbox.com/s/lile2f0uuitr3ol/Screenshot_2016-10-06-11-16-44%20NOTE%20EDGE.png?dl=0
https://www.dropbox.com/s/175imcgv3n9bugi/Screenshot_20161006-094012%20GALAXY%20S7.png?dl=0
https://www.dropbox.com/s/5rvkgubj95orhrn/Screenshot_20161006-094037%20GALAXY%20S7.png?dl=0
Nothing has helped so far so I decided to uninstall my apps in batches until battery life improves. I'll then slowly reinstall them one by one until I find the culprit. I'll report back with my findings. Thanks for all the suggestions.

Categories

Resources