making your phone auto on/off when power on/off - Android Auto General

i have huawei phone on marshmallow, lying around and intend to make is as permanent Android Auto HUD.
theres many command on the web but the problem is , it just for specific phone.
is there any apks that i flash?
this is just to save battery juice as charging on car when power on would take ages.
say if overnight power drop 10%, to charge up for a short drive ( 30 minutes?) would not able to push back to 10% up.

ahhl said:
i have huawei phone on marshmallow, lying around and intend to make is as permanent Android Auto HUD.
theres many command on the web but the problem is , it just for specific phone.
is there any apks that i flash?
this is just to save battery juice as charging on car when power on would take ages.
say if overnight power drop 10%, to charge up for a short drive ( 30 minutes?) would not able to push back to 10% up.
Click to expand...
Click to collapse
As far as I know Android 7 Nougat has this Scheduled Power ON/OFF feature ...

Tiemichael said:
As far as I know Android 7 Nougat has this Scheduled Power ON/OFF feature ...
Click to expand...
Click to collapse
ya. but i want to use on marshmallow.
i found an apk that turn off when power off. but so far can't find auto on apk

this what i tried to make it boot when connected to power but unsuccessfully
create file lpm inside /system/bin
inside the file insert this
#!/system/bin/sh
su
/system/bin/reboot
file to be given permission rws-r-x r-x
annd group as shell
any other name or method can suggest?
this is for huawei mate 7 running android Marshmallow
--------------------------------------------------------
anyone one knows why the file i created was erase after reboot???

Related

@@@ Help !!!! G1 Charging issue ..... @@@

dont know if you guys experienced this or not, it seems like i cant get my phone to be fully charged after the 1.5 firmware update, it takes like 10 hours to get it fully charged. So i thought it was my phone, but after i get the replacement from t-mobile, its the same thing, so i thought its the battery, but after i replaced the battery which i got from HTC, it turns out to be the same....what do u guys think what happening to my phone ?
for example, if i charge my phone for 2 or 3 hours, and it says its 60% charged...then i reboot my phone, the battery bar becomes full, and i check the battery info, its 100% or 99%.....so you guys think it's the software issue ? maybe my phone is already fullly charged, but it just cant recognize it ? but this cant happen to 2 different phones with different batteries right ?
This happens to my phone even i flash it to the cyan 4.0.4
CyanogenMod-4.0.4
HardSPL
2.22.19.261
Please Help !!!!
weird, have u tried to UN-root?
ya...tried...was back to normal once when it was at 1.0 firmware, but then after i root or updated to 1.5 firmware, it happens again...i dont even know why this is happening
Anything running in the background sucking up battery power? Bluetooth enabled? Music/Video player "stopped"?
There is a file you can delete to make the phone forget its battery charge settings and start over. I searched but with the old Cy threads gone I can't find it. Try searching the forum a few different ways. Maybe it is also in a different rom thread. If I come across the file name I will post it here.
if i delete the file, would it indicate how much battery is left ? or how much battery has been charged ?
i think the directions on what file that needs be deleted are in the experimental thread, i remember reading about it as well. basically, what you are doing is deleting the old battery readings and the files that tell the phone how much juice the battery has left, and when you reboot after deleting them, it causes the phone to create new ones.
http://forum.xda-developers.com/showpost.php?p=4602632&postcount=8268
Try deleting batterystats.bin in /data/system if you upgraded without flashing. This will recalibrate your battery...
Click to expand...
Click to collapse
@StanSimmons thank you for finding the post.
in the recovery console
Code:
mount data
rm /data/system/batterystats.bin
reboot
Good job finding that post. I wish they would open the thread back up just for the troubleshooting info it contained.
billquinn1 said:
Good job finding that post. I wish they would open the thread back up just for the troubleshooting info it contained.
Click to expand...
Click to collapse
they don't want it to turn into another "I hate google" thread. i am pretty much sure that is the reason they locked it.
so if i delete batterystats.bin , the battery indicator would back to normal ?not just going up by only 1% for every 10 minutes ?
americanxo said:
so if i delete batterystats.bin , the battery indicator would back to normal ?not just going up by only 1% for every 10 minutes ?
Click to expand...
Click to collapse
I don't know, try it and find out. The worst you will do is waste a few minutes entering in a command and rebooting
david1171 said:
I don't know, try it and find out. The worst you will do is waste a few minutes entering in a command and rebooting
Click to expand...
Click to collapse
what command ? im not a tech savvy guy...so i will make sure all things are ok before doing anything to the phone.
i put the command up in the first page of this hread ,and it was still there when i looked a minute ago.
so after i deleted the file, and i go to the recover console and type the commands and thats it right ?
i tried....didnt work....
i rebooted to recovery mode, then select console..input the commands....reboot the phone...problem still not solved....hmmm
If I remember correctly wasn't the procedure for resetting the battery to completely drain the battery till the phone shuts off on it's own, then charge the battery while the power is off till charging light turns green, then when you boot your phone use the terminal or adb to remove batterystats.bin
jackslim said:
If I remember correctly wasn't the procedure for resetting the battery to completely drain the battery till the phone shuts off on it's own, then charge the battery while the power is off till charging light turns green, then when you boot your phone use the terminal or adb to remove batterystats.bin
Click to expand...
Click to collapse
Yes those are the proper instructions. Don't do this very often though, its not good for Li-ion batteries
What an interesting problem. I have never run across this problem before.

Battery Calibration

Having seen so many posts on calibration of battery, i have decided to make this thread so to make it easier and useful for you guys. This thread can also be used to share your experiences with calibration and usage of milestone's battery.
Note: This is done using a the motorola milestone 1. So if you're using any other phone, pls ask abt them in this thread b4 you do anything!!!!
Intro:
The calibration of the battery is needed when you want to switch/install roms. This will make sure that the battery is really fully charged, thus preventing the battery life from dropping too drastically in a matter of hours.
I know there are some other methods to help calibrate your battery, but this is the only one I am sure of the steps. Please inform me of the other methods so to share with everybody.
Steps:
1. Before flashing a new rom, use root explorer (with read/write set) to delete the file "batterystats.bin" stored in /data/system/.
2. Charge your phone with it being turned off.
3. After it is fully charged(100%), take out its battery without plugging off the power supply.
4. Wait for a few moments, and a ? sign will appear.
5. Put your battery back in. You should see that the battery percentage increases quickly to 60%. If it increases to 100% with seconds, please skip to step 6.
6. If it stops increasing at 60%, let the phone continue to charge until 100%(takes quite a while)
7. Once it reaches 100%, let it charge for a further 15-20 minutes.
8. Once that's done, you can boot to OpenRecovery and flash your rom!!!
Alternative way of calibration(thanks a lot zeppelinrox!!!):
http://forum.xda-developers.com/showpost.php?p=11803458&postcount=10
This method allows you to calibrate the battery and use ur phone at the same time!!!
I hope this helps you people, because it really helped me!!!!
Note: i m not responsible for anything bad that happens to ur phone. Perform the calibration at ur own risk!!!(though it should be perfectly fine, unless u do something wrong or extra)
Btw, i am just writing things that i assume to be correct, so if anything needs to be edited/added, pls inform me through this thread or sending me a pm.
Credits to everyone (especially pcphobic for his post in http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740) who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
You should give credits to whom you copied this from.
oh yea i almost forgot.Thx fellow citizen!!!!
And it's good to remove/wipe the battery status data with the charger plug-in as the last step.
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
nickrule1896 said:
thx bnwg, but i don't get you. Mind if you make yourself clearer? Thx!!!!
Click to expand...
Click to collapse
He's referring to deleting the batterystats.bin file from the /data/system folder.
Yup, got it thx!!!!
mount -a
rm /data/system/batterystats.bin
For this set of instructions, can the console in the OR be used to perform it?
mods should make this thread a stickie.
Calibrating Without Downtime!
Edit: If this doesn't work on your device, try the Die-Hard Battery Calibrator Script to ensure a proper charge
This is proven to work with Motorola Milestone so I would imagine the Droid as well.
It works with the Milestone 2 but you may need to get the phone booted up manually (step 7) instead of the easy reboot in step 6.
If you have a different phone and this works, please let us know!
You probably won't believe that this will work but try it anyway.
The big benefit of doing it this way:
It's great if you don't plan on changing roms and just want to calibrate your battery without downtime so that you can just use your phone as you normally would.
Note: Be sure that the phone isn't running hot (feel the back)
1. While in Android, charge up to 100% and leave the phone plugged in.
2. Delete /data/system/batterystats.bin
3. Remove back cover
4. Press Power and choose to reboot normally.
5. When the screen goes black and the lights go out, pull out the battery before you get the M logo. It will probably still work after the M logo shows up but that's how I do it.
6. Surprise: The phone will boot up without the battery! - Mine does - every time
Note: Batterystats.bin is recreated when you see the M logo - even though the battery isn't in the phone.
Go to Step 8 if the phone booted up as described.
7. If it doesn't boot up and you see the battery with the ?
..........a) Put the battery back in (you will see 60%),
..........b) Power off the phone (press power until LED light goes out)
..........c) Power on the phone (press power until you see the M logo)
..........d) Remove battery... and watch bootanimation...
8. a) After the surprise of seeing the boot animation without a battery, you will then see the lock screen along with a "No SIM card error" and no signal.
...... Put the battery back in - the SIM card error will disappear, you will get a signal, it will show 60% full and the icon will show the battery charging.
...... Go to Step 9 if this works as planned. If it doesn't, reboot (again without the battery) and use step 8b instead of step 8a.
... b) Put the battery back in during the bootanimation, but after the haptic feedback/vibration (and the buttons along the bottom light up).
....... On a normal reboot, you can actually slide and unlock the phone when you get the vibration during the boot animation. You knew that, right?
9. Use your phone normally while you calibrate the battery
10. Let it fill it up to 100% + 15 minutes or so. When it is truly finished charging, the battery should be cool.
11. If the phone is running hot, weird things can happen. For example, you may get no signal when you put the battery back in or the battery doesn't begin charging (the status bar battery icon doesn't change). Just let the phone cool off and it should work next time.
100% full is approximately 4200mV
As you can see in the cap below, it's showing only 60% at 4241mV (This was after booting up without the battery and putting the battery in)
A few minutes later, still plugged in, it showed 100% at 4225mV and then it went up to 4230mV.
Finally, I then unplugged the phone and I got a reading of 4196mV
Notes:
Now, when I charge it up, it will go up to 4230mV everytime. I leave it plugged in an extra few minutes after that.
I highly recommend Battery Monitor Widget
Batterystats.bin gets recreated if you unplug your phone and plug it in again. So don't do that. Let it get recreated on the M logo (Step 6).
Thanks to pcphobic for a couple of important tips and to pcphobic and sileshn both for confirming that my phone isn't possessed!
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
nickrule1896 said:
Credits to everyone who have written all these in your posts that made it possible for me to gather and get all this info!!!!!!
Click to expand...
Click to collapse
It would have been nice if you mentioned my name or put a source link to my posting dated 24th February 2011 at
http://forum.xda-developers.com/showpost.php?p=11604143&postcount=740
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
etoy said:
Azhad (one of the two Androidiani OR developers) said another way to wipe battery
http://forum.xda-developers.com/showpost.php?p=11715432&postcount=967
now i don't know what's the right one? delete batterystats.bin or battd folder's contents? with full or empty battery?
Click to expand...
Click to collapse
Maybe that's the method for CM7? I don't know because I'm a die hard CM6er lol
He also mentions a file (/data/system/batterystats.bis) that I've never seen mentioned before.
bnwg said:
Recently I follow Azhad's way to wipe the battery.
When I delete the file (ie. cc_data) under that folder and go back in it, the file will be regenerated. And the batterystats.bin is updated according to the timestamp of the newly generated cc-data file. I don't know if this is the same as the step 6 from zeppelinrox's method.
Click to expand...
Click to collapse
I have that cc_data file too but it's blank when I open it with a text editor.
im just linking my post here: http://forum.xda-developers.com/showpost.php?p=11603675&postcount=736
the myth about the batterysoftware needs some real facts. payce from german forum did some measuring with real astonishing results.
I have seen that article before.. thanks to you of course
I'll quote the conclusion of the first post:
That is, the stone over-estimated the voltage at the battery is full by ~ 60 mV and underestimated the power of up to 100 mV with an empty battery. The intent is well-battery protection (which is good too). It is pretended that 3.0 and 4.2 volts to discharge until it is loaded. In reality, there are more 3.1 volts and 4.15 volts (which by the way of battery manufacturers also better unanimous opinion!).
Click to expand...
Click to collapse
So the reading I get via Battery Monitor Widget aren't that far off and perhaps exactly where they're supposed to be.
After fully charging (showing 4230mV while plugged in) and then uplugging the phone, it will ideally show between 4150mV and 4200mV vs the 4.15 volts (ie. 4150mV) quoted above.
My phone will power itself off between 3150mV and 3200mV vs the 3.1 volts (3100mV) quoted above. Actually, I just checked BMW's log and today it powered itself off at 3162mV after 19.5 hrs.
I found it interesting that you use less power while downloading overclocked versus downloading at stock speed lol.
ABC: Android Battery Calibration - Video Guide
youtube.com/watch?v=fwrZu0DKp2c[/url]
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
@pcphobic: sry cos it would be hard for me to go around checking who posted this kind of info before. well, since u said it, i will definitely do it
nickrule1896 said:
@zeppelinrox: wouldnt ur steps be the same as doing the calibration my way, just that instead of booting to OR for flashing new rom, we just reboot normally?
Click to expand...
Click to collapse
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
zeppelinrox said:
Of course it would calibrate either way.
The difference is that I found a way to do it more conveniently.
You can do it anytime, use your phone normally and actually monitor the voltage as well.
Sent from my Milestone using Tapatalk
Click to expand...
Click to collapse
I am using MS2 and there isn't an option of "reboot" when pressing the power button. Can this be done by using the "quick boot" app? thanks
https://market.android.com/details?id=com.siriusapplications.quickboot&feature=search_result

[Q] [i9000] Root my phone to calibrate battery ?

hello. i'm faced with a problem: i have my i9000 for about 1 year; never rooted it; only update my operating system 2 times via samsung kies when i got the message that a new firmware was available while connecting my phone to my pc (now i have PDA:JS4 / PHONE:JPY / CSC:JS1 (ORO)); and for some time now the phone discharges very fast; lasts about 8 hours; i use it at a medium pace: making phone calls, writing sms and replying on messenger if someone gives me an instant message and every now and then i listen to some music when i'm going somewhere, besides that i don't use it much; and i don't have programs running in the background except for the accounts sync system for yahoo mail, gmail and yahoo messenger. so i decided to recalibrate my battery to see if it lasts longer. i got android terminal emulator from the market but the problem is i don't have access to delete the batterystats.bin since the phone is not rooted. so here are a few questions:
1. should i root my phone just so i can delete this file ?
2. which of the 2 methods works best for battery recalibration ? the one where you charge your phone till 100% while it's on then switch off and charge some more ? or the one where you let the phone die and the charge completely while it's off ? (i ask this because browsing the forums i see everyone saying a different thing about this topic)
3. if i decide to root my phone to be able to delete the above mentioned file, should i install one of those user made operating systems (i think they are called ROMs) that has a lower battery consumption rate ? (i don't know how to do it but i think i can manage following the tutorials on this forums). i saw in a poll that darkys operating system has the lower battery consumption. is that correct ?
thanks for reading this long threat and taking your time to reply to it!
1.) I would do so. With root access you do much more cool things.
2.) In Darky's forum (darkyrom.com) you can find a good manual for calibrating.
3.) Custom-ROMs have some features stick-ROMs don't have. At the moment you have a branded phone (branded by Orange?). Some ROMs need quite less battery (Juwe's for example).
Sent from my GT-I9000 using XDA Premium App
andrei.locic said:
hello. i'm faced with a problem: i have my i9000 for about 1 year; never rooted it; only update my operating system 2 times via samsung kies when i got the message that a new firmware was available while connecting my phone to my pc (now i have PDA:JS4 / PHONE:JPY / CSC:JS1 (ORO)); and for some time now the phone discharges very fast; lasts about 8 hours; i use it at a medium pace: making phone calls, writing sms and replying on messenger if someone gives me an instant message and every now and then i listen to some music when i'm going somewhere, besides that i don't use it much; and i don't have programs running in the background except for the accounts sync system for yahoo mail, gmail and yahoo messenger. so i decided to recalibrate my battery to see if it lasts longer. i got android terminal emulator from the market but the problem is i don't have access to delete the batterystats.bin since the phone is not rooted. so here are a few questions:
1. should i root my phone just so i can delete this file ?
2. which of the 2 methods works best for battery recalibration ? the one where you charge your phone till 100% while it's on then switch off and charge some more ? or the one where you let the phone die and the charge completely while it's off ? (i ask this because browsing the forums i see everyone saying a different thing about this topic)
3. if i decide to root my phone to be able to delete the above mentioned file, should i install one of those user made operating systems (i think they are called ROMs) that has a lower battery consumption rate ? (i don't know how to do it but i think i can manage following the tutorials on this forums). i saw in a poll that darkys operating system has the lower battery consumption. is that correct ?
thanks for reading this long threat and taking your time to reply to it!
Click to expand...
Click to collapse
1.
Download Links
1. Ficeto_Deodexed_JVH_I9000_ODIN.zip
http://www.multiupload.com/RV3OOVHU79
2. Darkys_v10.1_Extreme_Edition.zip
http://www.multiupload.com/8OUDK2OC14
How to Install
Unzip Ficeto_Deodexed_JVH_I9000_ODIN.zip
- Open Odin
- For PIT select \Ficeto_Deodexed_JVH_I9000_ODIN\s1_odin_20100512.pit
- For PDA select \Ficeto_Deodexed_JVH_I9000_ODIN\Ficeto_Deodexed_JVH_I9000.tar
- Tick Re-partition
- Reboot the phone in Download mode (SW Off the phone and press VOLUME DOWN + HOME + POWER)
- Plug the phone to the PC
- Click on Start
- Wait until it boots by itself
- Unplug
Next step is to flash Darkys_v10.1_Extreme_Edition.zip
- Download & open the DarkyROM Configurator
- Select the recommended kernel (Darkcore 2.4)
- Copy Darkys_v10.1_Extreme_Edition.zip into phone memory
- Reboot in Recovery (Long press the power button you can see the option for recovery)
- Install zip from sdcard
- Choose zip from sdcard
- Select Darkys_v10.1_Extreme_Edition.zip
- Yes
Once it finish reboot the system...
2.
- Charge your battery full, bump charge to get the highest level possible ; note that it's not a big deal if it shows 97% when you unplug after bump-charging
- Drain your battery to 0% until it shuts down by itself (without plugging the charger or connecting the phone to a pc)
- Wait 2 minutes and reboot the phone to ensure the battery is completely flat (it might reboot fully, half way, not at all, don't worry) until it dies again
- Remove the battery and wait 2 minutes
- Replace the battery and plug the charger without switching the phone on until it shows 100%
- When phone shows 100%, boot in recovery (volume up + home + power) and go to > Advanced > Wipe Battery Stats > Confirm (move up/down using the volume keys)
- Reboot the phone and unplug the charger when the "battery full notification" comes (wait for the notification before you unplug the charger)
- Now use your phone until the battery is flat again and charge full (no need to have it turned off, unless you it to charge faster). Repeat 2 or 3 times and your battery will be calibrated
- Only wipe battery stats once, run a few cycles of full charge / discharge and after that just use your phone as normal (i.e. no need to deplete / charge fully anymore).

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?

Limit Battey Charge % Android 11

Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge.
Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
jljtgr said:
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
Click to expand...
Click to collapse
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
This the settings you have?
Path Data: /sys/class/power_supply/charger/charge_disable
Enable Value: 0
Disabled Value: 1
hawkswind1 said:
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
Click to expand...
Click to collapse
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
jljtgr said:
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
Click to expand...
Click to collapse
I think that's the custom setting probably restored from your Google backup. Same one I was using. I'm gonna try it again though, thanks
hawkswind1 said:
Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge. Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
Click to expand...
Click to collapse
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
v12xke said:
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
Click to expand...
Click to collapse
Accubattery is fine and all for reporting and giving an idea of where you want to stop charging... but it has no ability to limit charging. The only thing it can do is nag you to take the phone off the charger. This thread is about root applications actually blocking the phone from charging past a certain level without making the user do anything or even notifying the user about what's being done.
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
rcbjr2 said:
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
Click to expand...
Click to collapse
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
jljtgr said:
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
Click to expand...
Click to collapse
Thanks for the reply. The problem is that I use the notification to trigger Tasker profiles, so I was hoping to figure out a way to get it to stop flipping back and forth while also retaining the notification. I think it's just the standard control file since it's a OnePlus phone, but I'm not sure I can figure out otherwise. When I first start using BCL, I found the control file and was able to manipulate it with a SQL editor and Shell commands in Tasker, but I haven't poked around the OnePlus 8T that much yet.
Just as a PSA, I think Adaptive Charging from the January update can conflict with this. On days where I set a morning alarm, I found that my battery was more full than it should be. I suspect that Adaptive Charging does something that Battery Charge Limit cannot block. I won't know for a few days if turning this off in settings fixes things 100% or the January update just really screws with this.
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
Well, as a root method it does seem to work. Depending on your taste, it might be cleaner than an app toggling a different variable. Of course you need an app to set the file back to 100 when you want it. Some Tasker widgets work for my purposes... could probably make it a QuickSettings toggle in the shade, actually.
Bottom of that thread, I was wondering specifically if there might be way to force an unrooted device to think it met one of these conditions, so it only charges to 80%.
Specific post link:
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
i.e.
... your phone automatically limits charging to about 80% under certain conditions:
Continuous charging under high battery drain conditions, like game play.
Continuous charging for four days or more.
I've done very little research on this, but I expect the ways to fool the phone into thinking those things are happening is even more complicated than using that root file control. Meaning also requiring root but manipulating other control files.
I suppose you could have a case and a ribbon USBC connector that fools the charging logic into thinking it is constantly connected to a hardware charger even though it's still at a net negative power. After 4 days of having the case on, it might work. I don't know why anyone would have already built something like that, however.
I would root my phone but, as my daily driver, I need things like banking apps to work. They (at least some) detect rooted phones and refuse to load as a security measure (which is probably a good thing) :-(
Banking apps are usually just a frontend to their website used API. They have no problem with you using a browser on a rooted phone or Linux PC, etc. Any app that stores sensitive data on your phone and relies 100% on the filesystem being locked down was created wrong and lazily. The only thing about banking apps that might be legitimate is when things like unique CC info is stored for NFC and using a TPM can't be assured. Most banking apps, however, do not store anything sensitive on your phone aside from a login token which all websites also do. (it's called a cookie)
My personal preference is that no app is better for me than being able to root my phone. I don't play mobile games that want to keep you from cheating and I don't even care about Google Pay, which I'm not sure has legitimate need to block root either... they just do it to keep banks happy, which as I suggested, I think they're full of BS.
The only thing more BS than this no-root nonsense from app companies is when carriers do it by locking bootloaders. I try to re-use my phones for as long as possible and without the ability to limit battery charge, the batteries swell and die quickly, every time. It's good news that Google added code where phones plugged in constantly will limit charge automatically... but I doubt there is a way to trick it from the outside. (without root)
Hmmm. Maybe lazy programming, but I'm not ready to change my Bank so I can root my phone
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
jljtgr said:
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
Click to expand...
Click to collapse
I would like to definitely solve this problem I have been struggling with for years. What did you do, can you please help me? It seems extremely similar to what you wrote here.
I have been using battery charge limit on my Xiaomi Mi Mix (1st model) since android 7.1 (lineageos) (and I might have messed with a couple files, not sure, can't remember). When updating to android 9 (lineageos) couple years ago I started having the problem you described. Also I notice sometimes I plug the phone at safe levels such as 35% or 60% and it doesn't charge same thing. Also it only charges with certain chargers and not others.
Earlier today it was 11% battery, could not boot android, didn't charge. I got the idea for the first time to try booting in TWRP (on+volume up buttons) and it immediately started charging at full speed. So there's obviously nothing wrong in the hardware, it's software or just config.
I would like to definitely solve this problem, but I don't understand exactly what you did on your side to fix it. Please reply or message me if you have any suggestion Thank you!

Categories

Resources