Only Unplugged choice - BetterBatteryStats

I can only view stats since unplugged. The option of charged etc. isn't available in the drop down menu. I'm on the latest version and all adb permissions are granted so I can't work out what's wrong.

Related

Adb shell pm Unhide not working

I haven't used my Amazon Fire Tablet for a long time. Recently, I took it out and charged it. The battery life after full charge was downright awful. It went down to almost half (50%) overnight without use and wifi off. Clicking on Battery in Setting doesn't provide detailed info on Fire OS. So, I installed better battery stats and it appears that the tablet is not entering deep sleep mode. The tablet is on 5.1.1 build LMY470. It was rooted with 1-click root utility (I don't recall right now which one it was) from the forum. I wanted to update the device firmware. I used "adb shell pm hide" to disable bloatware including automatic updates. When I tried "adb shell pm unhide" it doesn't change the status to "false". It shows new hidden status "true" despite "unhide" command. I suspect the rooting tool may have override some setting that is not allowing me to change the status. Has anybody experienced this issue? How can I solve this problem? How can I improved battery life on stock? How can I force the device to deep sleep or find out what is preventing it from entering deep sleep?
toplist said:
I haven't used my Amazon Fire Tablet for a long time. Recently, I took it out and charged it. The battery life after full charge was downright awful. It went down to almost half (50%) overnight without use and wifi off. Clicking on Battery in Setting doesn't provide detailed info on Fire OS. So, I installed better battery stats and it appears that the tablet is not entering deep sleep mode. The tablet is on 5.1.1 build LMY470. It was rooted with 1-click root utility (I don't recall right now which one it was) from the forum. I wanted to update the device firmware. I used "adb shell pm hide" to disable bloatware including automatic updates. When I tried "adb shell pm unhide" it doesn't change the status to "false". It shows new hidden status "true" despite "unhide" command. I suspect the rooting tool may have override some setting that is not allowing me to change the status. Has anybody experienced this issue? How can I solve this problem? How can I improved battery life on stock? How can I force the device to deep sleep or find out what is preventing it from entering deep sleep?
Click to expand...
Click to collapse
Suggest reloading FireOS 5.1.2 via stock recovery menu. This will offer a fresh start rather than trying to undo ill-advised tweaks made to your current install. 5.1.2 doesn't natively improve battery life but isn't abusive either. Device will sleep if conditions are right. Further reductions will require rooting and freezing (disabling) some of Amazon's more aggressive properties or going the custom rom route where you have complete control.

Analyzing the Standby drain from Android OS

Let me keep this short and to the point. As numerous other users, I am also extremely bothered by the huge Android OS drain while on standby. On average, standby drain is 3% - 4% per hour,which is unacceptable. Let me describe my condition and my findings.
My setup
Stock OpenBeta 10 - 12, stock kernel, with Magisk and greenify. Dual sim (Airtel + Jio). 4G mobile data always active on Jio. Drain remains same if I disable both/ one of the sims, turn off data, or switch to flight mode.
What I tried
Used this command from a PC to check if any rogue app is using too much CPU. It once showed me Google drive was constantly using 6% CPU, but it was an one time bug, rebooting fixed it and never showed up again. Clearly, active usage was not problem, only the standby.
Code:
adb shell top -m 20 -s cpu
Then I checked BetterBatteryStats and I always see such alarming "Wake (Screen Off)" times. As you can see in screenshot in attachment. It is almost 50% of total standby. It might seem if the wakelocks are due to Google Play Services or GoogleQuickSearchBox, but no! Google's app take wakelock only if the phone is already awake, the primary reason of waking up has to be checked by this tool called Battery Historian by Google
To use it,
Download the repository as Zip file from https://github.com/google/battery-historian
Install python 2.7 and add python to your path.
Unzip Battery Historian after downloading as ZIP and go to scripts folder.
Run these two commands in cmd with phone connected in USB Debugging mode
Code:
adb shell dumpsys batterystats > batterystats.txt
python historian.py batterystats.txt > batterystats.html
If you cant get python running, skip the second command and upload the txt file here.
Now you will have a HTML file, possibly around 4-5MB. Opening it takes a bit of time to fully load in browser, like 1-2mins. Be patient.
In this graph, compare your screen, wake_lock* and wake_reason rows. In my case, the wake reason is almost always QCOM SMD-MODEM or QCOM SMD-MPM. And loads of wakelock from RILJ_ACK. Both of these point to possible screw ups from OnePlus at proper optimization of the radio interface.
I am not exactly sure what this means as I don't have much expertise on the kernel level, instead I am an app developer. I highly suspect it is a bug at the firmware/radio level.
I urge everyone to post their own findings and also help in fixing the problem with proper explanation if anyone possesses the kernel level expertise. I have also included my own battery stats in the attachments, if anyone is interested in further investigation
RESERVED

Poor Battery Life - HELP!

So, over the last week, I have noticed such poor battery life. My battery is not performing as it once did.
I recently downloaded Power Shade, so I decided to disable it (not uninstall it). It's not listed in the Play Store at this time.
I have noticed that Android System uses a lot of my battery, while my battery life drops like a rock while I have my screen on. I never have my screen brightness passed 25% (and it is usually less).
Please take a look at these screenshots. What is going wrong?
Dankees said:
So, over the last week, I have noticed such poor battery life. My battery is not performing as it once did.
I recently downloaded Power Shade, so I decided to disable it (not uninstall it). It's not listed in the Play Store at this time.
I have noticed that Android System uses a lot of my battery, while my battery life drops like a rock while I have my screen on. I never have my screen brightness passed 25% (and it is usually less).
Please take a look at these screenshots. What is going wrong?
Click to expand...
Click to collapse
It says your phone has been on the battery for over 15 hours.. I don't see how that's considered bad? That's pretty much what I get.
Install BBS, grant permissions and check what is messing your battery. That is awful SOT
vojopd said:
Install BBS, grant permissions and check what is messing your battery. That is awful SOT
Click to expand...
Click to collapse
Would AccuBattery tell me?
Dankees said:
Would AccuBattery tell me?
Click to expand...
Click to collapse
Run it and find out
sefrcoko said:
Run it and find out
Click to expand...
Click to collapse
How are the two apps different?
sefrcoko said:
Run it and find out
Click to expand...
Click to collapse
Well, I turned on Power Shade and left my phone untouched for one hour. My battery dropped 5%.
Then, I turned it off and left my phone alone for another hour and it went down only 2%.
So, that's the culprit?
I'm not sure if your battery drain is regarding normal usage or standby time.
If it's a standby drain, I would suggest installing Naptime app from the playstore. Grant the permissions via ADB, your standby battery life would be great.
I've experienced a really good battery mileage after installing the app.
Make sure you enable to aggressive doze option and keep the app out of power save or the sleeping apps option.
Also, try turning off Location and see if Android System percentage goes down.
Unix_Dominator said:
I'm not sure if your battery drain is regarding normal usage or standby time.
If it's a standby drain, I would suggest installing Naptime app from the playstore. Grant the permissions via ADB, your standby battery life would be great.
I've experienced a really good battery mileage after installing the app.
Make sure you enable to aggressive doze option and keep the app out of power save or the sleeping apps option.
Also, try turning off Location and see if Android System percentage goes down.
Click to expand...
Click to collapse
Is this tough to do?
I had Location set to "High Accuracy" - I have now changed that to "Battery Saving."
Better?
Dankees said:
Is this tough to do?
I had Location set to "High Accuracy" - I have now changed that to "Battery Saving."
Better?
Click to expand...
Click to collapse
The naptime app is a piece of cake if you have root access, if your phone is not rooted, the app will suggest some steps you can follow to allow it function properly. For the non-root method, you will require a computer and ADB (Android Debug Bridge) to be installed in the computer.
If you kept location service to battery saving then maybe it might help save battery juice.
Unix_Dominator said:
The naptime app is a piece of cake if you have root access, if your phone is not rooted, the app will suggest some steps you can follow to allow it function properly. For the non-root method, you will require a computer and ADB (Android Debug Bridge) to be installed in the computer.
If you kept location service to battery saving then maybe it might help save battery juice.
Click to expand...
Click to collapse
I think I will stick with the Location setting change.
I'm also finding TuneUp Master Pro to be helping.
What do you think of BetterBatteryStats?
Later today, I can post screenshots.
Right now, I am at 63% battery left with 2 hours of screen time. (Note, much of this has been with super low battery brightness.)
Unix_Dominator said:
The naptime app is a piece of cake if you have root access, if your phone is not rooted, the app will suggest some steps you can follow to allow it function properly. For the non-root method, you will require a computer and ADB (Android Debug Bridge) to be installed in the computer.
If you kept location service to battery saving then maybe it might help save battery juice.
Click to expand...
Click to collapse
Do you have certain settings that you think I should really have (without any repercussions) that you could screenshot me?
What do you think of these settings?
About 7 hours were not on Wi-Fi...
Dankees said:
I think I will stick with the Location setting change.
I'm also finding TuneUp Master Pro to be helping.
What do you think of BetterBatteryStats?
Later today, I can post screenshots.
Right now, I am at 63% battery left with 2 hours of screen time. (Note, much of this has been with super low battery brightness.)
Click to expand...
Click to collapse
Hey,
I think TuneUp Master Pro might help you, I haven't actually used BetterBatteryStats.
But I saw your screenshot, one thing I noticed is that you keep bluetooth switched on (Android Wear)?, If so then I think maybe that is your issue (I'm saying this cause I have a Gear 2 connected to my Note8, when the device is connected it takes some amount of battery). Try to use your device without bluetooth for maybe 1 day and see if there is any improvement in Battery Life and Screen On Time.
I would suggest other basic options like:
1. Turning off Location when you don't need it
2. Turning off Bluetooth
3. Turning off Mobile Data (or keeping the network mode to 3G/2G)
4. Delete useless apps, if you have apps like BetterBatterStats, I think they can monitor app data and battery usage.
5. Goto Settings>Device Maintenance>Battery, scroll down till the end and select "always sleeping apps", select apps that you want only to wake up when you open the apps. Go back and remove useless or unwanted apps under the unmonitored apps section (This option is right before the always sleeping apps one).
Also try doing a cache clear from Android Recovery (Be Careful when selecting the options):
1. Turn off your phone
2. Hold the Volume Up, Bixby and Power Button simultaneously until you see the boot screen, as soon as you see that screen release your fingers from the buttons
3. Once the recovery options come, use your volume buttons to move up and down, and the power button to select an option.
4. press volume down and select the clear cache option, press the power button, use the volume down button again to select "Yes" and press the power button.
5. It will clear Cache
6. Restart your, its the first option in the menu.
This might helps the phone clear cache files and maybe fix your battery issue.
It would also be good if you install this app, after installing goto the "Personal" tab and check if your battery health is good, mine is 91%. You should also be in that range or maybe 80%. If the percentage is bad then maybe I think you would require a battery replacement. Correct me if I am wrong guys, but just a suggestion.
One more thing, is your phone rooted or having a custom rom?, if yes I suggest to try Naptime and other rooted battery saving apps like Greenify.
If not then I think you and me will have to hope that Android 9.0 Pie would have some improvement, sadly I have been a Samsung user for 4 to 5 years, this isn't usually the case with Samsung OS updates .
Based on this, I don't think I have anything rogue going on, do you?
(Notice that I didn't use my phone at all during this time, nor did I leave home.)
OK, I have attached stats for my phone from today.
Please take a look.
When not using my phone, my battery only dropped about 2% per hour, which is great. But when my screen was on, I seemed to have lost a lot of power. I can't even get 4 hours of screen on time.
What would cause tis to happen? I barely have my screen brightness at 20%.
Does this tell you more? It shows battery usage with cell phone signal.
(I was off Wi-Fi for about the last 6 hours of the day.)
Does this show a slower battery drop with a better signal?
Dankees said:
OK, I have attached stats for my phone from today.
Please take a look.
When not using my phone, my battery only dropped about 2% per hour, which is great. But when my screen was on, I seemed to have lost a lot of power. I can't even get 4 hours of screen on time.
What would cause tis to happen? I barely have my screen brightness at 20%.
Click to expand...
Click to collapse
Chrome and facebook drain lot compared to others. Are you putting them (and others) to sleep using device management? Also, 2.7% drain per hour isn't fantastic. You can drop that to approx 1% if you tame enough things on your phone.
Dankees said:
OK, I have attached stats for my phone from today.
Please take a look.
When not using my phone, my battery only dropped about 2% per hour, which is great. But when my screen was on, I seemed to have lost a lot of power. I can't even get 4 hours of screen on time.
What would cause tis to happen? I barely have my screen brightness at 20%.
Click to expand...
Click to collapse
2% per hour for rooted phone is very bad. In 10 hours you loose 20% battery, looks very bad too. If you open the 4g you loose 40%. I loose 2% every 10 hours and i have 95% kernel deep sleep. Your System have big drain in first picture. Debloat your rom and fix your bad wakelocks with amplify and with appops. Possible change your rom and your kernel if you are not rooted. If you are not rooted god bless you, or read the xda threads to learnd about the phones. All your apps have very bad wakeup issues. This apps run all the time and dont leave the phone to sleep. You use malware bytes into android.... the linux is not windows 10. You dont need this crap apps.
sefrcoko said:
Chrome and facebook drain lot compared to others. Are you putting them (and others) to sleep using device management? Also, 2.7% drain per hour isn't fantastic. You can drop that to approx 1% if you take enough things on your phone.
Click to expand...
Click to collapse
Should they always be sleeping?

WakeLock problem

For the past week I have been having battery issues normally i can go 2 days before im down to 10% but now i have to charge it every night.
I installed Gsam found out my phone is staying awake by something in Android system
So i installed BBS the only thing i see is IMSSERVICE under partial wake locks
and its only using 5% but it racks up the counts if i turn my screen off for 7 min and check again it has 400+ counts.
Another thing i noticed is when i went to reboot into recovery to clear cache i noticed it said something about not being able to find AT&T csc
I have a Sprint 950u and i have VoLTE disabled but wifi calling enabled
Ive tried disabling wake lock for IMS via ADB but it still does the same thing.
Non rooted BTW
anyhelp is appreciated
UPDATE
ignored all packages that had IMS in it.
It still showing up but its now where as many times i went 10 min and only had 31 counts.
Then SprintHub showed that it was holding it awake i ended up disabling the package using
Code:
pm disable-user
Fully charged and let phone sit for 30 min it only dropped 1% so i think im in the clear now

Statistics from full load or since it was unplugged, dissappear.

Hello,
since a time ago that I use XDA BBS battery app to monitor battery consumption. I've been using gsam battery recently because it gives me some statistics since the last time the phone was full charged or since it was unplugged that BBS does not give, if the phone restarts. When the phone restarts, those statistics / options disappear.
I bought the application from play store to see if it has added it but seeing that it seems the same, I returned it. That option Is it hidden and can be activated?, or is it not an option will be added?
I know what if the phone does not restart, if there are the options to measure from the full load or since it was unplugged, but when i restart the mobile, these options with their statistics disappear ...
Can it be avoided?
Thanks for help, regards.
(I used it in a rooted OP 7 Pro)

Categories

Resources