[APP][XPOSED/ROOT]BatteryCare+ - Sony Xperia XZ Themes, Apps, and Mods

** 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.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

Wondering!
If you can stop charging at 90% for sometime, then why not completely stop charging after 100% ?
And if someone wants to charge again then he can disconnect and reconnect to charge.
For that I use power bank to charge my phone over night, as my P.Bank automatically shuts down when less current is passing(meaning 100% charged). And I have completely removed Battery Care app from system to stop overhead of tracking my charging cycle.
Would be better if you implement this in your plus version.

Govienda said:
Wondering!
If you can stop charging at 90% for sometime, then why not completely stop charging after 100% ?
And if someone wants to charge again then he can disconnect and reconnect to charge.
For that I use power bank to charge my phone over night, as my P.Bank automatically shuts down when less current is passing(meaning 100% charged). And I have completely removed Battery Care app from system to stop overhead of tracking my charging cycle.
Would be better if you implement this in your plus version.
Click to expand...
Click to collapse
I guess the original idea of Sony is to make sure the battery is 100% when the phone is unplugged. For your suggestion, the battery will gradually drop over time. But I actually found that our battery can keep 90% during smart charge period for several hours without problem.
Anyway, sorry that your suggestion is too much for this Xposed module.

Wait a min when you say root and/or xposed? Can we get xposed with rooting and unlocking the bootloader?

Zewarxx said:
Wait a min when you say root and/or xposed? Can we get xposed with rooting and unlocking the bootloader?
Click to expand...
Click to collapse
So far unlocking BL is a must to install Xposed or root. But you can choose not to root your phone even if you have Xposed installed. Similarly, you can have your phone rooted without Xposed installed. Of course, you can have both.

Is there already XPOSED for the Sony XZ.Welche version I have to insterlieren ... and where I can download it

There is no Xposed for Nougat, so this is kinda useless
Verstuurd vanaf mijn F8331 met Tapatalk

Related

Long charging, short battery life

Hello.
I have bought a used desire a couple of months ago, and one thing has been really bothering me.
I need to charge the device for like 12 hours via AC, to get it to 100% (yes, I have tried several chargers), and after that, the battery life is like ~12 hours if I use it only a little. I have also bought a spare HTC genuine battery, nothing changed. The warranty is not valid in my country, so that's not an option. Anyone have any suggestions?
I also have ordered a battery charger from ebay (that would charge a battery without the phone), I'll post when I receive it.
How long does it take the charger to get to 90%
Sent from my Desire using XDA App
It's about 10%/hour, and there is no difference what the percentage is.
Check battery health:
Type *#*'4636#*#* in dialer, > Battery information.
A full charge here takes ~ 3 hours. Till 90% nearly 2 hours, the rest 10% "need" the last hour.
Are you using a custom rom as some of these may drain battery FAST!
I'd check the running apps
reset phone to factory
if you are using clockworkmod recovery, then try clearing battery stats
---------- Post added at 01:09 PM ---------- Previous post was at 01:01 PM ----------
oh, also try getting one of those $15 brand new batteries from eBay.
I got one, and it's been working like a charm for 3 months now
charges in less than 2.5 hours, and lasts for 1.5 days (average calls, SMS, music player...)
stormleader said:
then try clearing battery stats
Click to expand...
Click to collapse
Some enlightenment for you.
What settings do you have for data connection? Wifi, sync etc
These can effect not only battery life but charge time also..
I use a custom ROM with juice defender ultimate..knocks the data off when the screen is off,, but with a sync'd check every 30 mins
Sent from my HTC Desire using XDA
erklat said:
Some enlightenment for you.
Click to expand...
Click to collapse
lol thanks
You should do this procedure every time you replace the battery (tested working on HTC Desire GSM):
Advanced Battery Calibration (tested and verified on Oxygen + bravoGSM)
Intro:
This will actually calibrate your battery, unlike other methods out there. After calibration, empty will be at 0% not some arbitrary value like 18%. For added comfort, you can perform steps 1-5 until you are comfortable with the routine; on the first run stop at step 5, don’t plug in and watch where your battery dies to give you an idea of the time window available – then on the next run you will know when to plug in. This ensures a smooth and error-free routine. You don’t actually need to do this since the app will tell you when to plug in. Once you’ve done a dry run, plug in, charge for a few minutes until the phone doesn’t shut off when you disconnect the charger, and repeat the process.
Caveats:
When entering the values for the battery registers, pay particular attention that the entered values are the correct ones which are shown below. Failure to enter these values correctly could result in your battery being permanently bricked. You have been warned!
Pre-requisites:
• _thalamus kernel >= 2.6.35.14_r2 RC1 or CyanogenMod kernel.
• A functioning brain (ask your parents about this)
• Patience
• Jon Richards’ “Nexus One Battery Calibrator” application a.k.a. NOBCAP (available on android market), installed
• An almost dead battery (that is mis-reporting its capacity) with what you think is about ~2% remaining – i.e. if your battery dies at 18%, get ready at about 20%
• AC battery charger at the ready
Process:
1. Set your screen time-out to 10 minutes.
2. Run NOBCAP
a. If General tab displays fields but no values, kernel is wrong, see pre-requisites
b. If General tab displays fields filled with values, kernel is right, enable airplane mode on the phone
3. In NOBCAP, menu --> settings -->
a. Check: GPS polling, ACR adjustment, advanced options
b. UNcheck: Airplane and Wake lock. Go back.
4. Go to LearnPrep tab
a. Set age: 100% --> save
b. For
i. OEM batteries ; Set mAh: 1452 --> save
ii. Aftermarket batteries ; Set mAh: 1650 --> save
c. Register: 0x66
Value: a4 --> save
d. Register: 0x65
Value: 06 --> save
e. Register: 0x10
Value: 04 --> save
5. Go to LearnMode tab
6. Scroll down and Set Detect Learn Mode to ON.
7. When Real-Time Voltage (µV) <= 3201000, i.e. when the battery is “empty”, the app will prompt you to quickly plug in your charger.
8. If you were successful here, the learn-flag LEARNF will now be lit and your battery charging.
9. LYPTFA - Leave your phone the .... alone.
10. When charging completes, the CHGTF flag will be lit, Battery Status Register 0x81 displayed, your battery calibrated.
11. Unplug. Reboot.
Supplementary:
The application monitors the battery chip registers. As charging nears completion the pulse current (mA) sent to the battery gradually diminishes in amplitude. This will tail off at about -20mA which the battery interprets as “charging complete” and the battery registers are stamped with its newly determined capacity values. Activating the screen, or any function which subsequently draws current pulls the charge current above -20mA and which the battery detects as charge complete – this is why you should LYPTFA. It’s okay to set an extended screen-timeout and occasionally touch the screen to reset the screen-off timer (i.e. keep the screen on) to keep an eye on charging without affecting charge current.
As an additional experiment, install JuicePlotter, run it once, and enable graphing. This will also monitor dis/charge cycles and give you an idea of the memory effect that the battery suffers from.
I'm trying the guide above me, thanks.
In the Nexus One Battery Calibrator app you can see charging current in miliamps, could you please tell me what is the value for you guys while charging?

Things I did to improve battery

Disclaimer: Although there is very minimal risk but I am not responsible for anything happening to your device, do it at your own responsibility.
Sorry for my bad English.
Hi guys! I am using this device since a week but its battery life was pathetic even on stock rom and Engineer Version. I decided to switch to cm as it has the best battery life for all devices and I flashed OptiBean RC2 by mac20dnangel and found out the same pathetic battery life. I mostly use 2G and wifi, a few calls and texts and battery was going flat after 5-6 hrs. I checked in Settings>Battery and found out that the most battery eater was Android OS which was about 70%. So, I searched the forums and found many helpful threads (thanks to all those devs) and did following things. Now, my phone's battery can last a whole day easily and Android OS under settings>battery has come down to 7%.
First of all I turned off Location Services as the GPS service was involved in a CPU WakeLock even GPS was turned off in Settings>Location Access.
Also, the following system apps were real battery hog. So I turned them off. For doing this, go to settings>apps and click ALL tab. Tap on the app and tap disable. I disabled following apps:
1. Android Keyboard (if you use some other keyboard. i am using smart keyboard pro)
2. Apolo or Music app (if you don't use it as i am using jet audio plus)
3. DSP Manager (which was always running in the background and was a major battery hog. Many people like it but we have to live without it)
4. CM Updater
5. Exchange Services (if you don't use them)
6. Face Unlock (if you don't use your face to unlock screen)
7. Google Search (i don't use it)
8. Google Text to Speech Engine (also was a major battery hog)
9. Pico TTS (same as above)
10. Messaging (i use go sms)
11. Picasa Uploader (if u don't use it)
12. Search Applications Provider
13. Google Talk (i don't use it. don't disable if you use it)
14. Talk Back ( was a major battery hog)
15. Voice Dialer (if you don't use)
Also, always turn off wifi, bluetooth, gps, autosync, 3G/4G, auto rotate when not in use. Live wallpapers are also major battery eaters.
After that I installed Auto Killer Memory Optimizer which is free on Play Store. Open this app and tap on the wrench icon present in upper right corner. Tap advance system tweaks.Check Apply on boot and 2 min delay before applying. Check Memory Management, Battery, Sleeper, UI and Network. Now go back and check Apply Settings on Boot, Enable Advance Mode, Enable Kill on Click. Now hit back key to return to app's main screen. Tap on change and select strict or aggressive as you like. Close app and reboot.
After that I calibrated my battery. To calibrate, charge your phone to 100%. When battery indicator reached 100%, unplug and plug again after 10 sec to be sure that its 100%. Now pull and re-insert battery. Then connect your charger to be sure that it is 100% charged. Now unplug and reboot to recovery. In advance select wipe battery stats. Then reboot device. Now you can use your device but don't plug the charger or data cable and let the battery die as you normally use the device. When battery reaches 0% and device turns itself off, power on again to make sure that battery is actually dead. Now, plug in your charger and charge the battery to 100% in one shot. Once more, let it die by itself without charging the device. After battery is fully dead charge it again to 100% in one shot. After these steps battery should be calibrated perfectly.
One more thing, go to settings>developer option, uncheck Force GPU Rendering and check Kill app back button. Now you'll able to kill any application in the foreground by long pressing back softkey. Use this to kill games and other battery hogging apps when you want them to exit.
I hope after doing all these steps you'll find an improvement in battery and I believe these tips can be used in any ROM and any device.
Edit: Don't hope for battery lasting to 2 or 3 days as the massive screen used by this device consumes a lot of battery and 1830 mAh battery is just not enough for this device. Try to buy an extended battery if you want more juice.
umm, disabling auto-run on boot with something like Gemini App Manager and lowering voltages with something like SetCPU or NS Tuner probably can help too.

Limit battery charging (root is required)

Since Lenovo P2 has an incredible battery life you rarely have to make full charges. I've been searching a long time for a method to set a charging limit, for instance at 80%, to preserve the battery health. It is possible to use the BCL app, Tasker as well as the Magisk Charging Switch module.
The path of the battery files responsible for the charging is /sys/class/power_supply/battery where you'll find two interesting files, battery_charging_enabled and charging_enabled.
There's only one problem; as soon as the screen turns off any limit set by you will be ignored. Now, there has to be a way to force the charging to stop while the phone is in idle state. Any ideas? I've already tried the obvious solution to whitelist BCL, Tasker respectively Magisk in the battery optimization settings, but it didn't work.
RR-O-v6.2.1-20190130-kuntao-Unofficial + battery charge limiter
RR-O-v6.2.1-20190130-kuntao-Unofficial + magisk + Battery Charge Limit works for me
I guess your limiters go to sleep when the screen goes off. Try to force that the screen stays on. Try to exclude them in the battery saving options. If you try the app Battery Charge Limit than it is working for me with a normal charger but not while chargeing through a PC.

Question Automatic shutdown according to battery percentage app or Magisk module.

As the title says, is there any app or Magisk module that can automatically shutdown your device according to battery percentage?
ahhh we have almost the same issue but my issue is whenever my battery percentage reach 20% wifi get disconnected i need to to setting and wifi and click scan again for it to get reconnected i think it is some sort of battery saver
i hate it whenever i'm playing it disconnect me
Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.
Nemix77 said:
Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.
Click to expand...
Click to collapse
Macrodroid can (with root). It's like a simpler tasker app. I'll pm you my telegram link, i can send you a quick video if you like...?
Nemix77 said:
Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.
Click to expand...
Click to collapse
ohh you don't have my issue?
reg66 said:
Macrodroid can (with root). It's like a simpler tasker app. I'll pm you my telegram link, i can send you a quick video if you like...?
Click to expand...
Click to collapse
I do at 20% although 30% or higher be better.
After 20% there's a lot less usable power available and charging from that low is more stressful on a Li especially if fast charging.
I'll do 20% shutdown and 90% battery charging stop.
That's 70% usable power, I can't do anything better than that.
Nemix77 said:
I'll do 20% shutdown and 90% battery charging stop.
That's 70% usable power, I can't do anything better than that.
Click to expand...
Click to collapse
I generally do 40 - 70% or so. On my device it's 3 hrs on SOT and take 15 minutes to fast charge.
Li's like frequent midrange power cycling; use it if it fits your needs.
Nemix77 said:
As the title says, is there any app or Magisk module that can automatically shutdown your device according to battery percentage?
Click to expand...
Click to collapse
Magisk module : Advanced Charging Controller (acc)
https://forum.xda-developers.com/t/advanced-charging-controller-acc.3668427/
It has features as:
Shutdown at set percentage, eg. 20%
Stop charging when reach a percentage, eg. 75%
Cool down charging, so the device and battery won't be very hot using temperature detect on battery.
Charging voltage/current limitation.
Charge cool down as set, eg. 50 seconds charge and 10 seconds cool down without charging, then repeat.
Read the README in github.
ACC app has some issues. Module is working better and updated.
The module will need you to manually edit the settings profile, and you need to use command line.
If you just want to stop charging at certain percentage, Battery Charge Limit is enough.
On F-droid
https://f-droid.org/en/packages/com.slash.batterychargelimit/
Play store
https://play.google.com/store/apps/details?id=com.slash.batterychargelimit&hl=en&gl=US
Both need root.
I use Battery Charge Limit already on my Mi Pad 4.
Advanced Charging Controller seems to have a lot more features.
I haven't been able to get ACC with ACCA (GUI) or Battery Charge Limit to work on the Poco F3 with Xiaomi.EU rom and root.
None of the control files work on both apps.
AccA is faulty.
Use the Magisk module.
You might want to ask cutsom ROM developers because they had managed to get smart charge working, so there's definitely control file that works.
I got Acc with AccA working!
I was testing the charging switches without plugging in the charger, my bads...
Some how Battery Charge Limit does not work, it's a simpler app and I used it with my Mi Pad 4 so I thought it would just work with the Poco F3.
Nemix77 said:
I got Acc with AccA working!
I was testing the charging switches without plugging in the charger, my bads...
Some how Battery Charge Limit does not work, it's a simpler app and I used it with my Mi Pad 4 so I thought it would just work with the Poco F3.
Click to expand...
Click to collapse
Check ACC control config what control file your phone uses, then see in Battery Charge Limit if you can select that control file manually.
I think it can also manually write the control file, but not quite sure.
pl1992aw said:
Check ACC control config what control file your phone uses, then see in Battery Charge Limit if you can select that control file manually.
I think it can also manually write the control file, but not quite sure.
Click to expand...
Click to collapse
Yeah I figured that, but since I have Acc with AccA working there's really no need to go back to Battery Charge Limit.
Nemix77 said:
Yeah I figured that, but since I have Acc with AccA working there's realy not need to go back to Battery Charge Limit.
Click to expand...
Click to collapse
Just to clear the things that you've already said
You mean ACC with AccA is working properly? If not, is there any problems with using ACC with AccA app?
I used ACC with AccA app before on my raphael times with EvoX Custom ROM, works well and haven't encountered any problems with using with ACC via AccA App

Themes / Apps / Mods (APP)(11, 12, AOSP, MIUI) NIGHT CHARGING FEATURE FOR ALIOTH

Warning :-
I AM NOT RESPONSIBLE FOR ANY DAMAGE WHATSOEVER YOU MAY CAUSE TO YOUR DEVICE WHILE USING OR RANDOMLY EXPERIMENTING WITH THIS FIX, DONT TINKER WITH DEVICE IF U DONT KNOW WHAT U R DOING.
Q. WHAT THUS APP IS FOR ?
A. This app provides overnight charging feature for f3 on any rom be it aosp or miui.
Q.How to restore normal charging?
A. The app takes care of that ......if still any prob install "enable normal charge" app from link below n jus click it.
REQUIREMENT
1. ROOT;
PROCEDURE TO INSTALL
Follow this :-
Install the app and deny all permission to apps they jus require root.
Then jus click the app n u r good to go no anymore worries
Q. HOW THE APP WORKS?
A. IT WORKS BY CHARGING YOUR PHONE SLOWLY (6HRS) , AND IF ANY PHONE CHARGES FULL THEN THE APP HAS overcharge protection™ by which it shuts down the charging of phone(YES, BATTERY CHARGING IS ACTUALLY DISABLED) AND AS SOON AS PHONE DRAINS TO 99% IT. APP WILL AGAIN ALLOW CHARGE TILL 100% N THEN AGAIN SHUTDOWN CHARGING.
Q. HOW overcharge protection™ DIFFERENT FROM PHONE BEING CHARGED AFTER CHARGE IS COMPLETED?
A. IF YOUR PHONE IS CHARGED TO 100% THEN ALSO IT TAKES SMALL AMOUNT OF CURRENT TGIS CAUSES OVERCHARGE PROBLEM, WHERE AS BY overcharge protection ™ power is completely disconnected from battery resulting in no overcharge.
Q. MY PHONE IS 80% CHARGED AT NIGHT SO IF I PUT IT FOR CHARGING WILL IT OVERCHARGE?
A. NO, DONT WORRY MY Charge Algorithm ™
Along with Overcharge Protection™ Decides the charge current to be supplied so that phone doesnot overcharge, don't worry your phone will be cool and calm with this app, but I won't recommend you to charge phone oveeniggt if it is above 90%.
Resources
1. Download
VarXnightchrg.3.apk
Google Drive: Sign-in
Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).
drive.google.com
Troubleshooting
1. App not getting lauched at boot by macro
Solution :- manually click app on every boot
Or I can provide solution by Tasker but then ppl don't like tasker

Categories

Resources