** Xposed framework / rooted Sony Xperia XZ/XC phones is required **
BatteryCare+ is a complimentary app for Sony Xperia XZ/XC devices to make its BatteryCare app more effective and useful. Your phone needs to be either rooted and/or with Xposed framework installed for BatteryCare+ to work.
Features:
1. Use system alarm clock to predict unplug time for ultimate accuracy (Xposed is required)
2. Display last 5 charging history (Root is required)
3. Display detailed charging timeline for last charging instance (Root is required)
4. Display BatteryCare internally calculated Score and Less Than 1 Week values for troubleshooting (Xposed is required)
5. Display and reset Blocked Time (Root and Xposed are required)
6. Reactivate plug in dialog box (Xposed is required)
Requirements
1. Sony Xperia XZ/XC phone (and)
2. Rooted (or)
3. Xposed framework installed
Latest Xperia phones come with a new app BatteryCare which is supposed to prolong battery life by reducing the time of overcharging. It tries to learn your charging pattern and predicts the time when you normally unplug the phone. Once learning period is finished, the next time you charge your phone, BatteryCare kicks in. Charging will pause once battery is 90% full and resume automatically some time before the predicted plug time to finish the last 10%.
The problem is that the prediction is not always accurate using Qnovo algorithm. BatteryCare+ improves the prediction by using your alarm clock instead. So basically no prediction is needed anymore and it's much more accurate if you're using your phone also as an alarm clock. This part requires Xposed framework to work.
BatteryCare+ is not replacing BatteryCare. It just improves its prediction accuracy. BatteryCare still needs about 1 week of learning data and with more than 70% accuracy score in order to kick in when it predicts the charging time is at least 4 hours.
If your phone is also rooted, BatteryCare+ can also display your charging history as well as a detailed charging timeline so you can understand the learning progress better.
This app/module is tested only on my Xperia XC phone but is supposed to also work on XZ or any other Xperia phone with BatteryCare.
Download
Xposed Module Repository
Change history
Code:
1.31
- Add support for Oreo
1.30
- Accuracy table is now scrollable and shows 10 records
- Improved UI description when Score or Less Than 1 Week conditions are not met
- New Bypass USB Charging menu action so USB charging will not activate Smart Charging
1.20
- Add new menu action to reactivate dialog box that shows up when you plug in the phone if it was previously disabled
1.10
- Display Blocked Time in BatteryCare and add an action menu to reset it
(During Blocked Time period, smart charging will not be activated even if all conditions are met. Originally, user must wait until this period is passed. Now you can reset this value so smart charging can be activated again next time when the phone is plugged in. Unfortunately, the exact conditions to trigger Blocked Time is still unknown.)
1.0.2
- Score value is now correctly displayed
- Fixed a bug in original BatteryCare app that learned data will be distorted after a system reboot
Yeaah that's what I was waiting for
here's a question though
can I set what time I want to unplug the phone?!
because I charge my phone on different timings so battery care never understands my routine, I need a work around to manually set the time Im gonna unplug the phone so it would go for 100% on that time.
Kianush said:
Yeaah that's what I was waiting for
here's a question though
can I set what time I want to unplug the phone?!
because I charge my phone on different timings so battery care never understands my routine, I need a work around to manually set the time Im gonna unplug the phone so it would go for 100% on that time.
Click to expand...
Click to collapse
You can set the unplug time manually. This module always use the next alarm clock time.
Nice! great idea. Hoping for an update that will drop the need for xposed so it'll actually upgrade battercare on nougat!
maybe this might help: https://developer.android.com/reference/android/app/AlarmManager.html?hl=ru#getNextAlarmClock()
Ikzy said:
Nice! great idea. Hoping for an update that will drop the need for xposed so it'll actually upgrade battercare on nougat!
maybe this might help: https://developer.android.com/reference/android/app/AlarmManager.html?hl=ru#getNextAlarmClock()
Click to expand...
Click to collapse
Xposed framework is unavoidable for BatteryCare+. As for Nougat, I believe Xposed will come. Actually rovo89 updated us on the progress few days back.
https://www.xda-developers.com/rovo89-updates-on-the-situation-regarding-xposed-for-nougat/
Hi, just tested it on the fragment rom (which is stock) for z3, it's not working :$ no data showed... I hope you could expand the feature because it's a great mod
It seems that it's not detecting Sleep As Android Alarm, is it normal ? Maybe
Gazatus said:
Hi, just tested it on the fragment rom (which is stock) for z3, it's not working :$ no data showed... I hope you could expand the feature because it's a great mod
It seems that it's not detecting Sleep As Android Alarm, is it normal ? Maybe
Click to expand...
Click to collapse
BatteryCare+ requires Sony BatteryCare app which is AFAIK only available in latest XZ and XC models.
itandy said:
Xposed framework is unavoidable for BatteryCare+. As for Nougat, I believe Xposed will come. Actually rovo89 updated us on the progress few days back.
https://www.xda-developers.com/rovo89-updates-on-the-situation-regarding-xposed-for-nougat/
Click to expand...
Click to collapse
thanks for the update, I figure the problem is not getting the alarmclock, but the change in batterycare services to follow it. Makes sense
While it might take a few months to arrive, I'll wait patiently. This module and Amplify are must haves!
Yesterday in the evening battery care worked again for the first time since a few weeks..
Here is my experience so far with BatteryCare:
1 week after a complete factory reset it would kick in. At the beginning, the estimated disconnection time from the charger was way off, i would plug it in at around midnight and BatteryCare would say that the phone will be fully charge around 16:40 in the afternoon. So i unplugged the phone at 7:30 and still left BatteryCare on. The next night it said again that the phone will be fully charged around 16:31. I still unplugged it as usual in the morning. The third time BatteryCare was correct with the fully charged time estimated at around 7:30. The first 2 days I started the day with a 90% charged battery, but it was still ok.
So my conclusion is, if BatteryCare is way off in its calculations at the beginning, just don't care about it and after 2-3 days it will be accurate.
itandy said:
BatteryCare+ requires Sony BatteryCare app which is AFAIK only available in latest XZ and XC models.
Click to expand...
Click to collapse
Not correct. Battery care+ is also implemented in some z3 Roms like Existenz Rom. I'm using this ROM and the module is working fine.
RoXxToR said:
Not correct. Battery care+ is also implemented in some z3 Roms like Existenz Rom. I'm using this ROM and the module is working fine.
Click to expand...
Click to collapse
Oh, I dunno that. So it's been ported successfully to Existenz ROM already? How does this module work in it?
@itandy: in the below forum post i have disabled some apps, which other people recommended. Suddenly the battery care feature doesn't work anymore. Since you have been doing a lot of work regarding battery care+, i would like to ask if you know which apps the stock batterycare feature depend on, so i can reenable them.
https://forum.xda-developers.com/x-compact/help/apps-safe-to-remove-root-t3549871
tempurastyle said:
@itandy: in the below forum post i have disabled some apps, which other people recommended. Suddenly the battery care feature doesn't work anymore. Since you have been doing a lot of work regarding battery care+, i would like to ask if you know which apps the stock batterycare feature depend on, so i can reenable them.
https://forum.xda-developers.com/x-compact/help/apps-safe-to-remove-root-t3549871
Click to expand...
Click to collapse
AFAIK, it involves only one APK. If you have Xposed installed, then you may use BatteryCare+ for troubleshooting.
Thank you, may i ask which apk name it is?
tempurastyle said:
Thank you, may i ask which apk name it is?
Click to expand...
Click to collapse
Com.sonymobile.smartcharger
installed batterycare+, works flawlessly, thanks for your work!
itandy said:
BatteryCare+ requires Sony BatteryCare app which is AFAIK only available in latest XZ and XC models.
Click to expand...
Click to collapse
Will it work if batterycare app has been ported to other xperia's? Existenz rom for the Z2 and Z3 has the app installed.
Related
I have an international S3 LTE i9305 (unrooted) and took the OTE update to 4.3 a few weeks ago, after much deliberation about whether to risk it. In the end it was more finger trouble than decision, I hit the wrong button when I meant to postpone it again!
It hasn't been too bad since the update but there are a few issues. I have googled it of course but much of the information relates to the i9300 not the i9305, and to the earlier versions of the update. I only got the notification of an update in Jan 2014 so I guess its a later build and maybe some of the original bugs have been fixed (or replaced with different bugs!).
Issues I have noticed:
Audio playback skips quite frequently regardless of which player I use or whether the file in on the internal or external SD card
Battery consumption is worse. After a day of light usgage I could previosuly still have 50-60% battery, now its regularly down to 30% or less.
Wireless charging behaviour is odd. If the phone is still powered on its works as normal (phone displays wireless charging message, screen goes off and charging light is on). If the phone is off it used to display a wireless symbol something like a battery with circles around it, then the battery with the remaining charge level in green, then the screen goes off and the red charging light comes on until its charged then the light goes green. Since the update it doesn't display the wireless symbol any more, it just displays the battery symbol but its all grey like its at 0%. Eventually the screen dims then turns off but the charging light doesn't come on. It does seem to charge normally like it did before though.
I am using an HTC USB power supply with the wireless charger. When I used the Samsung one sometimes it appeared to be charging but after being left overnight the battery level had barely increased. It sometimes does the same thing with the Samsung charger plugged in ie not wireless.
I have 3 (dumb) questions. I apologise for my lack of knowledge!
Is a factory reset likely to fix any of these, or alternatively make anyting worse?!
I have the options checked to backup settings to google and automatically restore. If I do a factory reset, what happens? I think I did it once and it downloaded all my apps from the Play store automatically but how much of the settings will be restored? I also have MyBackup Pro which should be able to restore a lot of stuff but not the app settings. I have a lot of stuff installed so I don't want to go through the pain of setting it all up again if its not going to fix the problems anyway.
I have included all the versions numbers below from my system info, can anyone tell me what they mean?
On the plus side, since the update my phone remembers Swype it the default keyboard and I don't have to select it every time I turn the phone on.
Small update - I enabled the CPU usage overlay in Developer Options this morning to see if it would tell me anything, then disabled it again because I couldn't even read it. Since then the audio playback seems to have been OK, but its only been a couple of hours.
Android 4.3
Baseband I9305ZHUCMK1
Kernel 3.0.31-2377771
Build JSS15J.I9305ZHUCNA1
OTA update problems yes backup data and factory reset .
Thanks.
Are any of the app settings backed up to my google account? If not is there any way to back them up so I don't have to configure everything again, without being rooted?
spencetj said:
Thanks.
Are any of the app settings backed up to my google account? If not is there any way to back them up so I don't have to configure everything again, without being rooted?
Click to expand...
Click to collapse
Your Google account does not back up a lot of things - settings for downloaded apps and among other things SMS texts. I use the free app Mobile Backup & Restore from Trend Micro.
fred_up said:
Your Google account does not back up a lot of things - settings for downloaded apps and among other things SMS texts. I use the free app Mobile Backup & Restore from Trend Micro.
Click to expand...
Click to collapse
Contacts is backed up to. Its an important part. As long as you created them for the google account.
Sent from my GT-I9305 using XDA Premium 4 mobile app
I opened a similar topic few weeks ago, did a full reset, mainly for problems regarding the battery, haven't noticed significant changes, my only solution was changing the battery with the original extended, 3000 mah, now I can reach evening without problems... But with the regular 2100 with heavy use I wasn't anymore able to get past 6 pm.
jakmes said:
I opened a similar topic few weeks ago, did a full reset, mainly for problems regarding the battery, haven't noticed significant changes, my only solution was changing the battery with the original extended, 3000 mah, now I can reach evening without problems... But with the regular 2100 with heavy use I wasn't anymore able to get past 6 pm.
Click to expand...
Click to collapse
Well. That depends on individual usage. It could be helpful to know screen on time, network connection, used apps/sync.
Always after update it's suggested to perform factory reset. About backup... Well. Tons of apps work better after clean install on newer version of OS. Ofc I'm not taking about small updated related to bug fixes/optimalisation but upgrading from 4.1 to 4.3 for example. It cost less effort than searching which app cause the problem and usability of Rom in our android devices.
Wysłane z mojego GT-I9305 za pomocą Tapatalk 2
How often do you restart your phone in order to "re-freshen" it?
Only when it will update itself or restart because of a bug in the OS. Other than this, why should I restart my phone?
I don't. No issue whatsoever
I don't restart it on a regular basis but I would guess about once every week or two.
I restart it every time i recharge it just before i unplug the charger
i do this to reset the up time meter and know how much time does every charge last
meaning every two days or so
Gravitybox
Xposed
I don't have a schedule either, but I guess maybe every other week or once a month, for whatever reason, like swaping the sim or because my Internet connection is bad and I want to make sure it's not the phone
Sent from my D5803 using XDA Free mobile app
Most of the times after I depleted the batter to near 0% and then charged it again to 100%
And after I've used Runtastic, for some reason even after being forced closed, it still uses resources.
masafed said:
I restart it every time i recharge it just before i unplug the charger
i do this to reset the up time meter and know how much time does every charge last
meaning every two days or so
Click to expand...
Click to collapse
OMG .. what method. I think you a(and your phone) will both have a better life if you will install Battery Monitor Widget Pro on your phone. It will give you statistics and information from the past, with graphics and other cool stuff. No root required.
ro_explorer said:
OMG .. what method. I think you a(and your phone) will both have a better life if you will install Battery Monitor Widget Pro on your phone. It will give you statistics and information from the past, with graphics and other cool stuff. No root required.
Click to expand...
Click to collapse
so you don't think you should ever restart your phone
that's where we're completely opposite
I think my phone is my main connection to the outside world. I'm keeping it uncluttered with apps and always ON, never off, never off-line and I'm not restarting it because "it just works". Why should I restart a phone that is supposed to be rock stable?
Anyone using battery monitoring apps like BBS or GSam, can you share some of your stats here? I'm trying to figure out whether the seemingly massive amount of wakelocks I'm having is normal or not. The biggest problems seem to be coming from the kernel itself. BBS shows a lot of kernel wakelock time, and GSam consistently lists the kernel as the highest drain in its app sucker screen. Also, the Phone app seems to be waking the device a lot since upgrading to .5.51, which wasn't a problem on .3.374.
I've attached some screenshots that illustrate the problem. I'm already using ForceDoze and Greenify, which have been enabled via ADB, and I've restricted background activity and data for the vast majority of my apps. I'm really hoping there's something I can do about this given that it's impossible to use another kernel (LB and none available for this phone anyway). I've software repaired/clean flashed 3 times.
My battery drain is actually not bad at under 4%/hr (combined screen on/off) and about 1%/hour with the screen off overnight. Today I've logged over 4.5 hours SOT in a period of 17 hours and am sitting pretty at 36%. That's better than any phone I've ever used. But I worry that all the wakelocks are using my phone's CPU, raising its temperature, and might contribute to faster battery degradation.
Also, this is with bluetooth off and my Pebble not paired, but battery drain becomes substantially worse with that setup. My idle drain triples with my Pebble connected. I'm trying to troubleshoot one issue at a time and want to nail these wakelocks before moving onto the bluetooth issues.
If your battery stats looked like mine and especially if you figured out how to fix it, please share!
Given that Sony ended .5.51 deployment prematurely and is currently rolling out .8.49, I think you should update to .8.49 (or wait until your region gets the update if you don't have it yet) then recheck if your problem still persists.
Pouring time and resources into a version that Sony is no longer pushing isn't that great of an investment, especially since it's possible that it was fixed in .8.49.
mhaha said:
Given that Sony ended .5.51 deployment prematurely and is currently rolling out .8.49, I think you should update to .8.49 (or wait until your region gets the update if you don't have it yet) then recheck if your problem still persists.
Pouring time and resources into a version that Sony is no longer pushing isn't that great of an investment, especially since it's possible that it was fixed in .8.49.
Click to expand...
Click to collapse
Everything except the phone app using more battery was the same on .374. And I fixed that after force stopping the phone app and rebooting. I've been trying to troubleshoot this for weeks but just upgraded to .5.51 a couple of days ago. I will flash it when it comes out for Customized UK, but I don't think .5.51 is the root of the problem.
(Oh cool, Xperifirm actually shows .8.49 available for Customized UK now. Time for some flashing!)
Edit: I'm seeing the same degree of wakelocks so far on .8.49.
Update: The battery drain from "phone" is actually Android System. There's a bug in Oreo where sometimes Android System is showing as Phone/RCS in the battery stats. Doesn't explain why Android System is using so much battery though.
https://www.reddit.com/r/GooglePixel/comments/7f7jk2/pixel_2_rcs_battery_drain_is_there_any_way_to/
https://www.reddit.com/r/GooglePixel/comments/7edcav/rcsservice_draining_battery/
https://forums.oneplus.net/threads/rcs-draining-battery.657535/
https://forums.oneplus.net/threads/rcs-service.666045/
https://forums.oneplus.net/threads/found-way-to-end-rcs-sucking-battery-after-oreo.659711/
So I managed to get a lot of my battery drain figured out, but a few things are still bothering me.
1) Google Play Services and Android System and/or Phone (see my last post) are using the Significant Motion Sensor to wake my device constantly.
2) Sony's smart charger (com.sonymobile.smartcharger) is waking my device. I'm assuming this has something to do with Battery Care, which I find to be a useful feature. But why does it need to continue sending alarms to wake up our phones when not plugged in?
I've attached 2 screenshots from Better Battery Stats showing the first issue (Sensors/Play Services and Phone) and 1 showing the second (Alarms/Smart Charger). Note the "wakeup=true" and long times recorded for Significant Motion. This held true when I had my phone sitting face-down on a table for 6+ hours to do battery testing earlier.
Anyone else who uses battery monitoring apps: have you noticed any similar issues?
jrbmed08 said:
So I managed to get a lot of my battery drain figured out, but a few things are still bothering me.
1) Google Play Services and Android System and/or Phone (see my last post) are using the Significant Motion Sensor to wake my device constantly.
2) Sony's smart charger (com.sonymobile.smartcharger) is waking my device. I'm assuming this has something to do with Battery Care, which I find to be a useful feature. But why does it need to continue sending alarms to wake up our phones when not plugged in?
I've attached 2 screenshots from Better Battery Stats showing the first issue (Sensors/Play Services and Phone) and 1 showing the second (Alarms/Smart Charger). Note the "wakeup=true" and long times recorded for Significant Motion. This held true when I had my phone sitting face-down on a table for 6+ hours to do battery testing earlier.
Anyone else who uses battery monitoring apps: have you noticed any similar issues?
Click to expand...
Click to collapse
I'm with you on RCSService being main culpirt for me. No I don't think it's a bug, it actually does use lots of battery. I listen to 3+ hours of bluetooth music a day and when I saw that RCSService was using more power than my bluetooth, then I thought it was time to experiment. So I uninstalled Carrier Service and RCSService and suddenly my battery life jumped by 20%. There was something in the November update to these services that made them go nuts. Several people have noticed a jump in battery usage, but most people, myself included, thought it was down to the new firmware. Uninstalling these 'features' has made no difference to SMS for me, other than I don't get a read confirmation.
I don't know about smart charger, sorry.
Pretty sure the proximity sensor is always on and that must use some power, but I don't know what that would be called in BBS.
Didgesteve said:
I'm with you on RCSService being main culpirt for me. No I don't think it's a bug, it actually does use lots of battery. I listen to 3+ hours of bluetooth music a day and when I saw that RCSService was using more power than my bluetooth, then I thought it was time to experiment. So I uninstalled Carrier Service and RCSService and suddenly my battery life jumped by 20%. There was something in the November update to these services that made them go nuts. Several people have noticed a jump in battery usage, but most people, myself included, thought it was down to the new firmware. Uninstalling these 'features' has made no difference to SMS for me, other than I don't get a read confirmation.
I don't know about smart charger, sorry.
Pretty sure the proximity sensor is always on and that must use some power, but I don't know what that would be called in BBS.
Click to expand...
Click to collapse
Thanks! I should clarify that when I say it's a bug, I believe something is using a lot of battery, but I don't know that it's necessarily Phone/RCS, because it shows up randomly as either that or just Android System. I think it might be something within Android System but being labeled as Phone or RCS. (Edit: Or the other way around; it could be 100% RCS and sometimes shows up as Android System because the phone is part of that umbrella.) I could be wrong but based my judgment on the links I posted above.
That being said, I disabled Carrier Services on your recommendation in the other thread because my carrier doesn't support VoLTE, VoWiFi, or RCS, I've never seen a "delivered" message, and I don't even use the Google Messages app anyway (I use Texra for SMS and keep Messages disabled). So like you, I don't need these services. And I do think there's been an improvement. Might be time to go through the rest of what you recommended via ADB. The only thing that concerns me about doing that is that I'll have to factory reset if I ever switch carriers and want those services, but I guess that's a small price to pay and an unlikely scenario anyway.
The smart charger thing is just weird. It shouldn't need to constantly check whether I'm charging since it kicks in when you plug in. Yesterday I disabled battery care during the day and re-enabled it at night to charge, and I had the best battery life since I've owned the phone: 4.5 hours of SOT over 18 hours off the charger with 30% remaining. I may have to look at idle drain with battery care disabled. I like the idea of battery care, but if it's draining my battery then it just defeats the purpose.
Regarding sensors, BBS has its own category for proximity sensor; this is a separate sensor for significant motion. Somehow Google Play Services and either Phone/RCS or Android System are using that particular sensor all the time. And not just listening to it, but causing lots of wakeups and doing so while the device is sitting on a table all night. I can only deduce that it's somehow seeing motion when there isn't any.
jrbmed08 said:
Regarding sensors, BBS has its own category for proximity sensor; this is a separate sensor for significant motion. Somehow Google Play Services and either Phone/RCS or Android System are using that particular sensor all the time. And not just listening to it, but causing lots of wakeups and doing so while the device is sitting on a table all night. I can only deduce that it's somehow seeing motion when there isn't any.
Click to expand...
Click to collapse
Do you have 'On Body Detection' enabled in smart lock? That would force the phone to affirm if it's moving/stationary regularly and quite often.
Didgesteve said:
Do you have 'On Body Detection' enabled in smart lock? That would force the phone to affirm if it's moving/stationary regularly and quite often.
Click to expand...
Click to collapse
I never enabled that from the start, but just checked in case Google did something, and it's still off.
I also checked my app permissions, and the only ones with access to body sensors are Google Play Services and Tasker. None of my active Tasker profiles require the significant motion sensor. One of them does use the orientation sensor to turn the speakerphone on when it's face-up during a call, but I tried disabling that profile and the stats didn't change.
Maybe I have a messed-up accelerometer...do you know of a way to test that? (Edit: Found it in the Support app - my accelerometer, gyroscope, and proximity sensor are fine)
I think I might head to the Sony Mobile forums with the smart charger issue for that matter. It may be a bug that affects all phones with Qnovo features, or maybe they could at least give me an explanation.
jrbmed08 said:
Might be time to go through the rest of what you recommended via ADB. The only thing that concerns me about doing that is that I'll have to factory reset if I ever switch carriers and want those services, but I guess that's a small price to pay and an unlikely scenario anyway.
Click to expand...
Click to collapse
Correct me if I'm wrong, but couldn't you just "reinstall" those services via the same adb commands? Where you typed uninstall, just replace with install?
Maybe, but I don't know where I would be installing them from...? Since I don't have a backup of the package. I uninstalled a bunch of stuff via adb before and it didn't return with a dirty reflash. I had to flash userdata. So that's all I'm going by.
I'm not sure of the actual technical mechanics, but I believe uninstalling system apps doesn't actually remove the package from the system image, so you can reinstall them at any time.
I think it's like taking down a sign on a store, the actual store is still there, just all references to it are no longer there, so to the OS it's not listed - "uninstalled".
Hello - was there any solution found for this issue?
jrbmed08 said:
Anyone else who uses battery monitoring apps: have you noticed any similar issues?
Click to expand...
Click to collapse
Hi there, what was the final solution to your issue?
Dean F said:
Hi there, what was the final solution to your issue?
Click to expand...
Click to collapse
I gave up. I still have a ton of wakelocks. GSAM shows a bunch of them even when my phone is supposedly dozing. My battery life is OK, not nearly as great as I hoped I'd have with this phone, but it gets me through the day so I've just been living with it. I have noticed better battery on the latest firmware (July patch) than June. I also got rid of the RCS stuff, which helped a bit. And finally I traced a lot of my drain to an app I was using called "hide running in background notification" which the last few firmwares can do natively.
(Edit: Sorry for missing your previous post!)
Edit: I was sadly mistaken about better battery on the July patch. The battery is only better if I'm not on wifi. I posted in the wifi drain thread about it just now.
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!
Hello
Yesterday i had the phone around 65% at 01h00, in the next morning (around 7h20) i wake up to find the phone at 1%, no wifi/4G/bluetooth/GPS...etc was active, even the battery saver was ON. As you can see in the screenshots, android system drain battery around 400% !!! what's up with this behavior ? happened the 1st time last week (49% drained in 8 hours) the problem seems gone after i fully charge and than reboot, but still today happened.
The phone is almost 1 month old.
The 1st few days, i disconnected the phone from charging at 100% and went to sleep, after 6 hours battery is drained by 6% without doing nothing. is this normal ??? screenshot
ROM : crDroid 8, latest magisk installed+microg+magiskhide props config and fdroid/aurora modules installed.
Thanks
which rom are u using now? stock or custom?
sheikfahad said:
which rom are u using now? stock or custom?
Click to expand...
Click to collapse
Read the post. They are using crdroid8
Arealhooman said:
Read the post. They are using crdroid8ok
Click to expand...
Click to collapse
Arealhooman said:
Read the post. They are using crdroid8
Click to expand...
Click to collapse
ok... is there any heating issues?
Oi69qEZ said:
Hello
Yesterday i had the phone around 65% at 01h00, in the next morning (around 7h20) i wake up to find the phone at 1%, no wifi/4G/bluetooth/GPS...etc was active, even the battery saver was ON. As you can see in the screenshots, android system drain battery around 400% !!! what's up with this behavior ? happened the 1st time last week (49% drained in 8 hours) the problem seems gone after i fully charge and than reboot, but still today happened.
The phone is almost 1 month old.
The 1st few days, i disconnected the phone from charging at 100% and went to sleep, after 6 hours battery is drained by 6% without doing nothing. is this normal ??? screenshot
ROM : crDroid 8, latest magisk installed+microg+magiskhide props config and fdroid/aurora modules installed.
Thanks
Click to expand...
Click to collapse
clearly something is going wrong, I would suggest factory resetting, and optionally reinstalling your custom rom.
Oi69qEZ said:
Hello
Yesterday i had the phone around 65% at 01h00, in the next morning (around 7h20) i wake up to find the phone at 1%, no wifi/4G/bluetooth/GPS...etc was active, even the battery saver was ON. As you can see in the screenshots, android system drain battery around 400% !!! what's up with this behavior ? happened the 1st time last week (49% drained in 8 hours) the problem seems gone after i fully charge and than reboot, but still today happened.
The phone is almost 1 month old.
The 1st few days, i disconnected the phone from charging at 100% and went to sleep, after 6 hours battery is drained by 6% without doing nothing. is this normal ??? screenshot
ROM : crDroid 8, latest magisk installed+microg+magiskhide props config and fdroid/aurora modules installed.
Thanks
Click to expand...
Click to collapse
well, that must a bug related to optimiztion of the rom, report it to the rom mantainer
Exactly what happened to me same ROM same phone but I didn't root it. it drained from 54% to 6% during the night, next day I switched the ambient display off and the battery became better but so far I am also looking for solutions to make it similar to miui
I feel the battery is draining so much fast when I start using the apps unlike miui but the room is also great and fast , with my light use it gave me 1 day of use and remaining of 10% with 120 fps (3.3%/hr screen on and 0.6%/h screen off )
today I will test it with 60fps
sheikfahad said:
ok... is there any heating issues?
Click to expand...
Click to collapse
No, only when charging of course (around 40°)
Arealhooman said:
clearly something is going wrong, I would suggest factory resetting, and optionally reinstalling your custom rom.
Click to expand...
Click to collapse
I'll wait and see if this bug happens again as right now i need the phone for the rest of the week, if happens again i might switch rom altogether on the weekend.
tutibreaker said:
well, that must a bug related to optimiztion of the rom, report it to the rom mantainer
Click to expand...
Click to collapse
yeah i'll do that. ty
Johnton said:
Exactly what happened to me same ROM same phone but I didn't root it. it drained from 54% to 6% during the night, next day I switched the ambient display off and the battery became better but so far I am also looking for solutions to make it similar to miui
I feel the battery is draining so much fast when I start using the apps unlike miui but the room is also great and fast , with my light use it gave me 1 day of use and remaining of 10% with 120 fps (3.3%/hr screen on and 0.6%/h screen off )
today I will test it with 60fps
Click to expand...
Click to collapse
Wow, 3.3%/hr is seriously impressive for active drain, especially for 120hz. Can I ask you if you did anything special / your exact setup? I installed Ricedroid 8.0 + Sleepy kernel and applied the GMS Doze module + Naptime (as suggested by a kind poster on here), and this allowed my idle drain to go down to 0.2%/hr, but my active drain is still struggling a bit.
Linkoh said:
Wow, 3.3%/hr is seriously impressive for active drain, especially for 120hz. Can I ask you if you did anything special / your exact setup? I installed Ricedroid 8.0 + Sleepy kernel and applied the GMS Doze module + Naptime (as suggested by a kind poster on here), and this allowed my idle drain to go down to 0.2%/hr, but my active drain is still struggling a bit.
Click to expand...
Click to collapse
to be honest I am not sure if I report it correctly I have used accubattry app but I will post few screenshots from the app and you can see , I didn't do anything except disable the ambient display maybe my usage is light in default I don't know I also formatted the phone like 20 times during my testing for different ROMs. I found Cr-droid to be the best so far or miui
Johnton said:
to be honest I am not sure if I report it correctly I have used accubattry app but I will post few screenshots from the app and you can see , I didn't do anything except disable the ambient display maybe my usage is light in default I don't know I also formatted the phone like 20 times during my testing for different ROMs. I found Cr-droid to be the best so far or miui
Click to expand...
Click to collapse
Ohh the 3.3%/hr is combined use, which takes account of both active drain and idle drain (through what I guess is some weighted average). But honestly, 6.7%/hr (or even 7.8%/hr tbh) is still pretty damn impressive, so I'll thank you for letting me know! Now I wanna flash crDroid haha.
Linkoh said:
Ohh the 3.3%/hr is combined use, which takes account of both active drain and idle drain (through what I guess is some weighted average). But honestly, 6.7%/hr (or even 7.8%/hr tbh) is still pretty damn impressive, so I'll thank you for letting me know! Now I wanna flash crDroid haha.
Click to expand...
Click to collapse
I spent 1 day and half trying all custom roms in this forum because for long time I was on miui and didn't know how custom ROMs are now , after trying I found that all custom ROMs either are pixel flavored or very basic without any customization and I settled with Cr-droid because it offers best of both worlds less google and good customization options.
now regarding the battery after few days of using on 60 fps I have combined use 2.4%/hr and 0.8% screen off but I still feel that it drains fast during my usage compared to Miui , I have only used naptime for optimization do you advise me to add anything else for non-rooted device ?
Johnton said:
I spent 1 day and half trying all custom roms in this forum because for long time I was on miui and didn't know how custom ROMs are now , after trying I found that all custom ROMs either are pixel flavored or very basic without any customization and I settled with Cr-droid because it offers best of both worlds less google and good customization options.
now regarding the battery after few days of using on 60 fps I have combined use 2.4%/hr and 0.8% screen off but I still feel that it drains fast during my usage compared to Miui , I have only used naptime for optimization do you advise me to add anything else for non-rooted device ?
Click to expand...
Click to collapse
MIUI very often switches off alarm (not clock alarm) and wakeups -- it's known for long. Your notifications often comes late when using MIUI. In real life situation, however you might never notice it, but it's there. It also sets higher priorities to known messaging, social media apps to receive notification/action faster than any apps that are outside "the list".
It's a good trade off for battery life compares to stock AOSP or lineage which put every apps on generic list of "optimized battery" based on your pattern. It will took a long before the pattern is useable.
Johnton said:
I spent 1 day and half trying all custom roms in this forum because for long time I was on miui and didn't know how custom ROMs are now , after trying I found that all custom ROMs either are pixel flavored or very basic without any customization and I settled with Cr-droid because it offers best of both worlds less google and good customization options.
now regarding the battery after few days of using on 60 fps I have combined use 2.4%/hr and 0.8% screen off but I still feel that it drains fast during my usage compared to Miui , I have only used naptime for optimization do you advise me to add anything else for non-rooted device ?
Click to expand...
Click to collapse
I'm not sure about your possibilities on a non-rooted device honestly. I think Naptime can work on a non-rooted device, if you grant a few permissions through ADB first (if I remember correctly, the app itself will guide you through the process). Be mindful of which apps you're restricting though, as Naptime will likely cause delays in the arrival of notifications. You can whitelist apps through Android's battery restriction screen.
Linkoh said:
I'm not sure about your possibilities on a non-rooted device honestly. I think Naptime can work on a non-rooted device, if you grant a few permissions through ADB first (if I remember correctly, the app itself will guide you through the process). Be mindful of which apps you're restricting though, as Naptime will likely cause delays in the arrival of notifications. You can whitelist apps through Android's battery restriction screen.
Click to expand...
Click to collapse
yes I am it currently after activation via ADB it made some improvement I felt , so far the highest consuming system apps are : Android OS [19%] screen [9%] and System UI [6%] can I do something about them ?
Johnton said:
yes I am it currently after activation via ADB it made some improvement I felt , so far the highest consuming system apps are : Android OS [19%] screen [9%] and System UI [6%] can I do something about them ?
Click to expand...
Click to collapse
Hmm I don't have any further tips honestly, not about these specific things. In my case, using Naptime already improves battery life by a ton over the course of a day (not wasting entire %s in hours of idle time is already huge).
Try and see if greenify or its replacements helps.