[app][battery charge limit] - Xiaomi Redmi Note 5 / 5 Plus Themes, Apps, and Mod

Stop charging at desired level to preserve battery health for most devices!
(Working on Vince>>Personally Tested)
Usage instructions and app details:
*Enable limit in the app
*Change the limit up to which it should charge (default: 80)
*The app only gets kicked in while you connect a charger (or USB), and automatically closes shortly after unplugging charger (or USB) i.e it only runs in the background as long as it is plugged in, and won't affect your battery life.
*If your device is not charging even after disabling the limit (which shouldn't happen, just in case), uninstall the app and reboot the device (The changes made by the app don't survive a reboot). Your device should charge normally then.
Official Thread>> https://forum.xda-developers.com/android/apps-games/root-battery-charge-limit-t3557002
App Link>>
Play Store https://play.google.com/store/apps/details?id=com.slash.batterychargelimit&hl=en
Its Not my app. Sharing it because found it useful on vince
All Credit goes to the dev @sriharshaarangi

Related

Life of a Battery

Hello guys, I am experiencing some troubles with the battery of my beloved Desire. I am using Oxygen 2.3.2 right now. The problem: every time the battery reaches 20% of charge the phone dies. But when I plug it and it start charging it says it's at like 2-3%. Now, one of my friend suggested that since the battery is quite old (I charged it every day since april 2010), it can have problems when it reaches low voltages, so I should change it. Do you have the same opinion or you think it's just a calibration problem?
Calibrate. If there is no change, replace the battery. Isn't that simple enough?
via xda app
Install spare parts . Go to Battery information . Check Battery health . If it doesn't say "Good" then you need to replace the battery .
Also try a calibrate as stankyou suggested .
I'm having the same issue. Tried calibration a few times and my battery health says good. Glad that my new ROM is better on battery so I don't get down there as often, but it is still annoying.
Hello,i had the same problem with my desire's battery,it went down at 20%.
what i did was to follow an tutorial from Oxygen rom forum,an user called paschadee posted this:
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, installed (check kernels section)
• 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.
Click to expand...
Click to collapse
I did everything said there and now my battery dies at exactly 1%.
It also appears to last much longer than it used to.
All credits for what i qouted goes to paschadee
Good Luck!
I just tested it and my learn flag turn of after a couple minute? does it mean that it's not working? Also, in "message" it's telling me " -to re-calibrate your battery..."
Thank for answer.

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?

[APP][XPOSED/ROOT]BatteryCare+

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

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.

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