Question Charge Separation - Samsung Galaxy S21 Ultra

Hi, for those who doesn't know what's charge separation, it's a feature that directly pulls the charging power to the screen, limiting the heat on your battery and it will prolonged the battery life.
So I'm just wondering is there any app out there can achieve this "charge separation" for s21 ultra? Can it be done by software or it is something only can be done on hardware?

That is not what charge separation means. It was misused as a marketing term by the RedMagic 6 phone. i think what you're talking about is called bypass charging. AFAIK, it's a feature which has to be built into the phone by the manufacturer. Usually seen in gaming phones where phone is used heavily while plugged in, like the Redmagic, ROG phone, etc. The S21U does not have bypass charging enabled on stock firmware.
Have read some reports online that it can be enabled on some devices with special factory cables or modified kernels, but haven't heard of it being done successfully on a Samsung. Need some developers to comment on this. Maybe @dr.ketan can shed some light.
Found this link claiming a workaround for bypass charging on an unsupported device : https://android.stackexchange.com/q...tery-but-use-connected-power-to-run-the-phone
EDIT: new info updated

It is also called battery idle charging. But it has to be built into the kernel.
Advanced Charging Controller can help you activate it (if the kernel supports it) or give you a functionality that is similar (by heavily limiting the charging current), but you need a rooted phone and a 3rd party kernel that supports it.

Thanks for the info. I think this is a great feature that every smartphone should have implement it.

Related

Any interest in kernel patches to speed up USB charging?

Dear all,
As I'm still collecting more posts to reach this silly 10-posts-until-you-can-write-in-the-development-boards-limit I thought about providing useful information
So as I always wanted it I implemented a patched intel_mdf_battery that supports forcing charger currents higher than the environment suggests.
Facts:
When you connect any "real" or "smart" device to a regular USB port, it can only draw 100 mA or up to 500 mA if the host allows. This limits charging speed to about 350 mA at our Razr I (because you have to substract some amount for running the smartphone, in addition there is a ~350 mA cap in the charging chip).
Mostly all current USB ports are able to deliver much more power. In addition, sometimes you want to use a wall charger that does not correctly express its capability to deliver more than 500 mA (by shorting D+/D-).
There comes this handy patch:
By writing to an existing sysfs node for charger control (previously that featured only _limiting_ the total input current to 500 mA), you can now override the input current limit a) to 950 mA b) to 1500 mA (limit given by Razr I hardware).
How to:
Patch your custom compiled kernel with attached patch and install it
write 5 (950 mA) or 6 (no limit) to
/sys/devices/ipc/msic_battery/charge_enable
Charging current will be updated on next status update, usually every 30 seconds. Watch that update in dmesg or just see the actual charging current in
/sys/devices/pci0000:00/0000:00:00.4/i2c-1/1-0036/power_supply/max170xx_battery/current_now (or current_avg for a few seconds average)
In addition I am looking forward to implementing a charge threshold as the battery identifies itself as a 4,35V model. Being charged to 4,35 volts for prolonged time periods has a drastic negative effect on battery life! I wanna have an override because mostly I charge the device every day. Would be a lot better to use the battery from 85 to 35 percent (so max. 4,1V or so) than from 100 to 50 percent.
Is there any interest in those patches published, made nice (maybe a gui control program) or integrated in existing custom mods?
WARNING: I TAKE NO RESPONSIBILITY FOR ANY HARM DONE TO YOUR DEVICES BY USING THIS CHARGE CURRENT OVERRIDE.
YOU REALLY CAN FRY YOUR USB PORT!
(but it is very unlikely. Know about those handy charge-only usb cables that charge at up to 1A? I use them on different kinds of devices all the time and never hat any problem)
Oh, btw, attached patch also patches an ARRAY OUT OF BOUNDS write in original code! I did not look into details but i think that it did not have any effect because there are very unimportand arrays declared directly after the affected one.
thats amazing, great job.
edit: chances fo seeing this on the stock kernel without unlocked bl?
YaPeL said:
thats amazing, great job.
edit: chances fo seeing this on the stock kernel without unlocked bl?
Click to expand...
Click to collapse
Well, the changed are not that hard and so far only implemented as a proof of concept...
Using with stock kernel not possible as that original driver is compiled into the kernel, so overriding it by module loading is not possible.
Awesome!
Have you considered submitting it as a patch to Omar's kernel? github 'link': github.com/oxavelar/XT890-Kernel-Gamma
I always been interested in this kind of stuff. If you didn't read this article yet you'll find some useful information about Lithium batteries :
batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
Setting the limit up to 4200mV instead of 4350mV would approximately reduce by 10% the autonomy and double the longevity. Motorola, as many others, seem to favour autonomy You'll do a great work if you succeed in finding how to do that !
How about USB 3 ? Is the limit still 350mA ? But for USB2 I think there is no point in increasing the limit. They're talking about it here but it lacks of technical details :
batteryuniversity.com/learn/article/charging_from_a_usb_port
Maybe you'll increasing the current up to 450mA, which would be nice actually.
USB 3 should handle 900mA while transferring data. It's close to the official charger (850mA at 5,1V). Could someone tell what current usb3 deliver on RAZR i ?
I'll try to find a way to implementing your patch because i've no idea Good work !
Sorry for my English
a-m13 said:
Setting the limit up to 4200mV instead of 4350mV would approximately reduce by 10% the autonomy and double the longevity. Motorola, as many others, seem to favour autonomy You'll do a great work if you succeed in finding how to do that !
Click to expand...
Click to collapse
Yeah, I know quite good about batteries, thanks Implementing that change is very straightforward and easy, but we will need a nice app to control the settings at runtime.
a-m13 said:
How about USB 3 ? Is the limit still 350mA ? But for USB2 I think there is no point in increasing the limit. [...]
Maybe you'll increasing the current up to 450mA, which would be nice actually.
USB 3 should handle 900mA while transferring data. It's close to the official charger (850mA at 5,1V). Could someone tell what current usb3 deliver on RAZR i ?
Click to expand...
Click to collapse
As the device is USB2, the host port would fall back to USB2 also and announce 500mA capability. All Limits we talk about are total input currents. Powermanagement ICs these days are specially made for requirements with limited input current (no one is really interested in the charge current, limit is nearly always the supply as in laptops or USB devices).
Please reread my first post. We are IGNORING the USB spec and just draw more power here. That is totally fine (although not recommended and in no way guaranteed by me) for most standard usb host ports.
a-m13 said:
I'll try to find a way to implementing your patch because i've no idea Good work !
Click to expand...
Click to collapse
Well, maybe you should not You need a complete build environment for that, should take you a few days if you have never done such things. Just wait for some binary releases.
Interesting idea
Hey all!
I checked my /sys/devices/ipc/msic_battery/charge_enable and it's value is 4.
Well, can I change it manually to 5 or 6? Or it will mess with the phone?
Thanks in advance
AthlonLozano said:
Hey all!
I checked my /sys/devices/ipc/msic_battery/charge_enable and it's value is 4.
Well, can I change it manually to 5 or 6? Or it will mess with the phone?
Click to expand...
Click to collapse
It's supposed to be 4 at default.
Writing 5 or 6 without my patch will not work (will return Value Error). With a patched kernel it will do exactly what stated above, so yes, it will mess with the phone to disable USB charging limit
Please, as always, read before doing anything...
PosixCompatible said:
It's supposed to be 4 at default.
Writing 5 or 6 without my patch will not work (will return Value Error). With a patched kernel it will do exactly what stated above, so yes, it will mess with the phone to disable USB charging limit
Please, as always, read before doing anything...
Click to expand...
Click to collapse
How and where to install this patch?

Advice for dedicated AA phone

Hi there,
since I don't want to root my main phone (don't want to hassle around with some apps that try to block on rooted phones, and also don't want to enable that stupid google voice assistant to use google maps and so on) I want to buy a phone just for Android Auto. This phone will be rooted and stay in the car all time, it could also get a custom ROM. Since I don't have any experience with AA mirror yet and also not that much experience with rooting, it would be great if you have some suggestions what I could get for this use case.
From what I found here so far, the requirements seem to be:
- easy to root
- possible to install custom roms
- will have the display turned on (for AA mirror) for several hours whenever traveling a longer distance
-- maybe heat could be an issue?
- should not have the cheapest battery since it will be charged for long times when traveling as well as not charged at all for several days
-- unfortunately, there doesn't seem to be smartphones anymore that can be used with batteries pulled out
-- is there anything to be considered because of the always-usb-connected use case
- preferably a cheap model from a premium manufacturer
Any suggestion for my decicion or experience with a dedicated phone would be helpful.
Have you considered a raspberry pi?
There are plug n play rom do get that up and running as a AA display
Sent from my SM-N960F using Tapatalk
can you please hep me with the raspberry pi to make aa diplay for my skoda bolero mib 2.0 android auto?
Every phone should work.
It's only important that you use an app like Automate to put the phone into airplane mode whenever the cable is disconnected (=car head unit shut off). This requires root.
I personally use an old Galaxy S4 with ridicously bad battery health and it stays on for around 2 days without driving. It charges while you're driving, of course.
No issues with heat. I keep it in the burning hot glovebox.
I am doing this for a year now. I use an old nexus 5x.
Until now i had a original based custom rom, but just ysterday i wanted to refresh some things so i installed slim rom. (It is very light and dont have play services. I then installed pico gapps. It is the lighter you can flash so that android auto to work).
I use 7.1.2 custom rom because i think is better for android auto.
Anyway what i have:
-I used a switch (on/of), soldered in a cable so tha start / stop android auto just by turning on/off the switch.
- I disabled completely lockscreen. Set brightness to min and disable auto brightness.
- Use titanium to freeze whatever i don't need. Many things including phone app, etc)
- I used tasker. 2 conditions:
When phone doesn't charge set battery save mode.
When car mode is enabled (which means android auto is running) enable wifi on, location on etc. When car mode of disable all, also kill 20 apps (so that no app stay in background so no battery consumption when android auto goes off).
(some use only charging condition but my setup is more complicated so this works fantastic.)
With this, i practically can use android auto without ever battery discharge. When phone doesn't change and android auto doesn't run, battery consumption is very very low. It can Last more than 20 days and battery is very old.
I actually have some more complicated setup. When switch is off i change from another usb of the car (not the one i use for android auto). I have in this usb a changer with more amper to charge faster when i don't use android auto..
I don't propose it as this is much difficult for the average person. Just write it as an idea if car doesn't change fast (this happens in my car).
I posted my use / ideas. Some may be useful to some, some other not.
I may post a video here displaying it some time when i found time and tasker setup if anyone need it as many wants this. I have read alot to do this in varius sites.
I'll post it here also:
I made a 4 minutes video displaying android auto mirroring in my car, with some apps and a dedicated phone with a switch for this. It may give some ideas:
sosimple said:
I'll post it here also:
I made a 4 minutes video displaying android auto mirroring in my car, with some apps and a dedicated phone with a switch for this. It may give some ideas:
Click to expand...
Click to collapse
Hi .
What rom do you recommend for S5?
juanmontequinto said:
Hi .
What rom do you recommend for S5?
Click to expand...
Click to collapse
You mean galaxy s5?, I don't have s5. I had it in past. I would install something similar to the rom i installed to nexus 5x i have.
The lighter nougat rom with pico gapps.
If it goes ok with battery consumpsion an especially standby time you keep it. If not try another one.
sosimple said:
You mean galaxy s5?, I don't have s5. I had it in past. I would install something similar to the rom i installed to nexus 5x i have.
The lighter nougat rom with pico gapps.
If it goes ok with battery consumpsion an especially standby time you keep it. If not try another one.
Click to expand...
Click to collapse
Thanks for the advice :bueno:
i did it using mi 6a. it auto boot and auto off upon detection upon power on
search on xda on how to auto power on device. many device can do this
Sent from my vivo 1723 using Tapatalk
cboghiu said:
can you please hep me with the raspberry pi to make aa diplay for my skoda bolero mib 2.0 android auto?
Click to expand...
Click to collapse
Take a look at this guys solution.
https://youtu.be/Puk_pzMGd7c
Sent from my SM-N960F using Tapatalk
Thank you for all the suggestions so far.
sosimple said:
I am doing this for a year now. I use an old nexus 5x.
I actually have some more complicated setup. When switch is off i change from another usb of the car (not the one i use for android auto). I have in this usb a changer with more amper to charge faster when i don't use android auto..
I don't propose it as this is much difficult for the average person. Just write it as an idea if car doesn't change fast (this happens in my car).
Click to expand...
Click to collapse
I remember that I read somewhere that Android Auto only needs the data wires from the USB cable so it would be possible to connect only the two data wires to the cars USB port and the other two wires to a fast charger, I think there even are prebuild Y-like cables that do exactly this.
But I'm not sure if this still works as expected since nowadays we have USB-C connectors and a lot of different fast charging standards. Some require the data cables to be short cutted (so you cannot use data at the same time) while others send different voltage impulses as handshakes to determine the charger type.
But maybe it is worth looking into this topic for you (and maybe for me aswell if I will encounter the same issue).
Doesn't look like this would be working, found a thread here about it: https://forum.xda-developers.com/an.../usb-y-cable-to-quick-charge-android-t3448805
WieselDroid said:
Thank you for all the suggestions so far.
I remember that I read somewhere that Android Auto only needs the data wires from the USB cable so it would be possible to connect only the two data wires to the cars USB port and the other two wires to a fast charger, I think there even are prebuild Y-like cables that do exactly this.
But I'm not sure if this still works as expected since nowadays we have USB-C connectors and a lot of different fast charging standards. Some require the data cables to be short cutted (so you cannot use data at the same time) while others send different voltage impulses as handshakes to determine the charger type.
But maybe it is worth looking into this topic for you (and maybe for me aswell if I will encounter the same issue).
Doesn't look like this would be working, found a thread here about it: https://forum.xda-developers.com/an.../usb-y-cable-to-quick-charge-android-t3448805
Click to expand...
Click to collapse
You read my mind..
That i was thinking to do in future. I just dont change anything yet as everything working perfect.
But i think more would become simplier if i connect only the 2 data cables in car usb of android auto (or the 3rd cable , earth, also), and charging from the other usb with the fast charger.
As i remember it was working when i experimended.
Hello. I have a problem. I have an S7, Oneplus 3t with carteam enabled (the car is skoda Octavia 3 with bolero mib 2). The problem is that the image on youtube is lagging and on storage all that are over 360p are lagging. What I am doing wrong? Please help me
Hi guys, Is possible connect 2 phones to car?
I explain my case, I have a Sync3 (Ford), with 2 USB, my plan is use an old Xperia ARC to install AA mirror, and use my first phone for use with android auto..
Is possible this?
Xperia is easy rooteable, my first phone is a Huawei P20 Pro without root.
Thanks in advance!!!!
pajarito3003 said:
Hi guys, Is possible connect 2 phones to car?
I explain my case, I have a Sync3 (Ford), with 2 USB, my plan is use an old Xperia ARC to install AA mirror, and use my first phone for use with android auto..
Is possible this?
Xperia is easy rooteable, my first phone is a Huawei P20 Pro without root.
Thanks in advance!!!!
Click to expand...
Click to collapse
Sorry, haven't seen this post. I think it is not possible with both USBs but you can put one phone to the usb and use it as a forwarder for the other phone.
https://www.xda-developers.com/wireless-android-auto-head-unit-hack/
WieselDroid said:
Hi there,
since I don't want to root my main phone (don't want to hassle around with some apps that try to block on rooted phones, and also don't want to enable that stupid google voice assistant to use google maps and so on) I want to buy a phone just for Android Auto. This phone will be rooted and stay in the car all time, it could also get a custom ROM. Since I don't have any experience with AA mirror yet and also not that much experience with rooting, it would be great if you have some suggestions what I could get for this use case.
From what I found here so far, the requirements seem to be:
- easy to root
- possible to install custom roms
- will have the display turned on (for AA mirror) for several hours whenever traveling a longer distance
-- maybe heat could be an issue?
- should not have the cheapest battery since it will be charged for long times when traveling as well as not charged at all for several days
-- unfortunately, there doesn't seem to be smartphones anymore that can be used with batteries pulled out
-- is there anything to be considered because of the always-usb-connected use case
- preferably a cheap model from a premium manufacturer
Any suggestion for my decicion or experience with a dedicated phone would be helpful.
Click to expand...
Click to collapse
I'm confused. Why does a phone using android auto have to be rooted?
well,
i been doing for the past 4 years already. you can use non root device but you miss out on video play on the car screen.
i am using redmi 4x and redmi 3, both because the availability of custom rom. but i didn use custom rom because it seems the custom roam break data and sms.
not all old phone can be use because on certain devices, android auto takes ages to connect to satellite. for example i hav tried S4, huawei mate 7, Vivo V9, all these device have problem with gps connection, sometimes didn't connect to satellite at all. it seems the low end android device release before 2016 have this issues. i think it also because of my geographic location whic require a-gps, glonass and bds, the only it work.
heating issues, yes, it exist but i use kernal app to limit the max core speed. that it works.
the other reason i chose redmi because the ability to modify the init.rc file to make the device to auto boot when i start the car.
and to turn off the device automatically when you exit the car, i use microdroid and power unplug. apk, which only available on aptoid.
i also create a macro, to send my car location to me incase of theft.[emoji1696]
Sent from my Redmi Note 7 using Tapatalk
I'm looking into doing this. I have an old Sony Z5 Compact but if I recall, it was too slow for AA. Therefore, I'd appreciate any recommendations for a cheap used phone I could buy.
I'm thinking it has to have:
1. Good GPS
2. Ability to Charge faster than it can drain
3. nanoSIM
4. Ability to root for things like init.rc for autoboot.
5. Fast boot time would be nice but perhaps I can use tasker/automate to have it goto deep sleep when its not charging
Ideally, a cheap used unlocked phone I can buy on ebay. Just searching specs, I'm thinking perhaps a Moto G Stylus, Xiomi Poco M3. I also have an old Pixel XL but I'm saving that for unlimited google photos
Before my car had android auto, I used an old tablet. It worked OK but the biggest issue was that it could not charge faster than it would drain. The battery would eventually wear down. Also, after a while, AA would just crash. Ofcourse, here, I'm just mirroring so it is a little different.
eng3 said:
I'm looking into doing this. I have an old Sony Z5 Compact but if I recall, it was too slow for AA. Therefore, I'd appreciate any recommendations for a cheap used phone I could buy.
I'm thinking it has to have:
1. Good GPS
2. Ability to Charge faster than it can drain
3. nanoSIM
4. Ability to root for things like init.rc for autoboot.
5. Fast boot time would be nice but perhaps I can use tasker/automate to have it goto deep sleep when its not charging
Ideally, a cheap used unlocked phone I can buy on ebay. Just searching specs, I'm thinking perhaps a Moto G Stylus, Xiomi Poco M3. I also have an old Pixel XL but I'm saving that for unlimited google photos
Before my car had android auto, I used an old tablet. It worked OK but the biggest issue was that it could not charge faster than it would drain. The battery would eventually wear down. Also, after a while, AA would just crash. Ofcourse, here, I'm just mirroring so it is a little different.
Click to expand...
Click to collapse
I wrote above as "sosimple" but it now shows me "deleted member" due to a problem in xda forum through its moving period, that accidentally deleted my account.
Anyways, as i wrote i have an old nexus 5x. Its not the best for the work, but it does it.
If i was going to get one phone for this now, i would search something better. Probably is a good solution to buy a used phone with broken (but working) screen to get it very cheap.
4-5. I think is difficult to find one who does this. I couldn't do it in Nexus 5x (although i read it can be done) so i used a different approach :
2 Tasker scripts to watch if car mode is enabled or not.
-When android auto running, car mode is enabled automatically, tasker script1 run so do what you need then eg turn on Bluetooth, gps, normal battery mode etc..
-When android auto is off, car mode disabled automatically tasker script2 run so disable Bluetooth, GPS, enable battery light consumption mode, flight mode, etc.
This way nexus 5x (and probably most phones) loose 1-2% battery in standby mode per day, so you don't actually needs to power off phone, and it boots to android auto much faster (5 seconds in Nexus). Especially if you debloat phone. I have deleted (or freeze with titanium) most of android. Keep only what needed for android auto and mirroring to work. I did this not only for battery but also for speed.
2. As i wrote before, i have created a cable with a switch:
-when turn on switch phone connect to car usb for android auto, so android auto runs.
But i do have the problem of phone drain faster than charging. It depends of the car. If the usb for android auto charges slow, you can't do anything for this. I didn't have much problem because the battery still last for 6 hours continually.
-When turn off the switch, disconnect phone from car usb for android auto (so android auto stops in phone and in car), and connecting the phone to a 2nd usb of the car where i have a fast usb charger.
This way battery is always charged.
I use it more than 2 years this way, everything works fine.
But there is probably a better solution that i may try in future.
For understanding what i will write (i have created the cable 2 years ago so i dont remember exactly how), I'll post some info, and Google it for more:
A usb cable have 5 wires inside. 2 are for data, 2 for power +-, and 1 for grounding.
So you can create a cable which the 2 cables for +- will go to a fast usb charger. This way phone will always charge fast (faster than it drain) when car in on.
The other 2 wires and ground will go to the car usb for android auto.
You will have a Y cable with 3 usb: the 1st goes to phone, the 2nd go to the (fast) charger, the 3rd go to car usb for android auto.
I have try this and worked. You don't have to charge phone from the same usb which use android auto.
English is not my native language, i hope everyone who reads to understand what i write.
If i do this method I'll post the wiring.
This is my old video, i have change many things from then, I'll post another one some time.

Limit Battey Charge % Android 11

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

General [MAGISK] Advanced Charging Controller (Kernels that implement Battery Idle Mode Support)

This thread is to track which kernels (On Stock ROM or AOSP based) support Advanced Charge Controller the best and ones that prolong battery health by implementing Battery-idle Mode.​
GitHub - VR-25/acc: Advanced Charging Controller
Advanced Charging Controller. Contribute to VR-25/acc development by creating an account on GitHub.
github.com
Please post your experience in prolonging the battery health and longevity of the internal stock 5020 mAh battery by:​
Reducing battery wear and tear (due to fast-charging or charging to a full 100% every single time) by limiting charging to 60% or 80%​
Depleting the limited 500 battery charge cycles on stock battery slower with Idle-mode​
I have used without any problems ACC with the stock MIUI Rom, AOSPExtended and the last 10 days with the latest Lineage OS.
Very happy with the battery life In latest Lineage OS!
I'm using the ACC as a Magisk module and I commanding it via shell commands. Using it with 80 / 70 setup: setup charging at 80% start again at 70 and also I have setup the 50 / 5 cooldown option, for reducing battery temperature during a charge: the charge stops for 5 seconds after each 50 seconds fast / slow charge.
on eu rom and crdroid i can't use acc, always discharging every 5 second.
I'm using acc on acca app, when it doesn't work i tried using it as magisk modules, but still doesn't do the job.
shehaan27 said:
on eu rom and crdroid i can't use acc, always discharging every 5 second.
I'm using acc on acca app, when it doesn't work i tried using it as magisk modules, but still doesn't do the job.
Click to expand...
Click to collapse
I'm using acc in crdroid and it's working perfect.
But you have to take newest 2022 version and flash separately zip and app
thanks for info, i will try it
Hello,
I have Samsung Galaxy S10 (EU version) so with Exynos...
Is it possible to configure module (i.e. in AccA app) so that it really charges in "fast mode"?
I see that 15W (in fact 12-14W) is achievable only with original Samsung charger.
While using any other charger I mean 20W to 35W - max charging current is not more than 1,3 - 1,4A...
As far as I know there are Magisk modules that work, but with Qualcomm processor...
Is it possible to configure module so that on Exynos fast charging was really working?
In the picture there is configuration I made in the app but with no effect...
I configured using tips from ACC help.
Another question is Wireless charging. When I use 15W charger (I know real efficiency is 60-70%) but on average it charges 5-6W, whereas on the screen it shows "fast wireless charging" - is there another separate configuration of ACC for wireless mode?
Please advise, thanks!
tomiasx22 said:
Hello,
I have Samsung Galaxy S10 (EU version) so with Exynos...
Is it possible to configure module (i.e. in AccA app) so that it really charges in "fast mode"?
I see that 15W (in fact 12-14W) is achievable only with original Samsung charger.
While using any other charger I mean 20W to 35W - max charging current is not more than 1,3 - 1,4A...
As far as I know there are Magisk modules that work, but with Qualcomm processor...
Is it possible to configure module so that on Exynos fast charging was really working?
In the picture there is configuration I made in the app but with no effect...
I configured using tips from ACC help.
Another question is Wireless charging. When I use 15W charger (I know real efficiency is 60-70%) but on average it charges 5-6W, whereas on the screen it shows "fast wireless charging" - is there another separate configuration of ACC for wireless mode?
Please advise, thanks!
Click to expand...
Click to collapse
Maybe eqynox phones use a diffrente BMS chip. Probably is better to ask in the acc thread
Is there any kernel for RN10 PRO that supports battery idle mode?
Any chance this will work with s23u? Its really needed and very handy.
Donnerbesen said:
Any chance this will work with s23u? Its really needed and very handy.
Click to expand...
Click to collapse
There were reports that Samsung had implemented bypass charging natively in the S23 series...
amn1987 said:
There were reports that Samsung had implemented bypass charging natively in the S23 series...
Click to expand...
Click to collapse
Yes i know thanks. Im having it activated but it only work for games.
What i ment is to make it work with everything else too. Being able to run a phone over PD and bypass charging.. for example in a car all day or travelling by train.
Donnerbesen said:
Yes i know thanks. Im having it activated but it only work for games.
What i ment is to make it work with everything else too. Being able to run a phone over PD and bypass charging.. for example in a car all day or travelling by train.
Click to expand...
Click to collapse
No idea. Maybe someone would come up with a mod in the future. My devices even from years ago were never advertised to support bypass charging but with root it was possible to enable it in all of them. In some all it took was to limit the maximum battery charge level while in others limiting the maximum battery charging voltage was necessary.

ACCA Wireless Charing for Pixel 5 Running Proton AOSP

Hi All,
I'm not sure if this is the right thread to ask about this, but here goes.
I LOVE the Pixel 5. The form factor to me just can't be beat, and I'm not eager for the day I'll have to swap to the 6, 7, or whatever comes next. That day recently came a bit closer than I would have liked.
My beloved pixel 5 finally got hit by the dreaded battery bloat. A local repair guy was able to save me, this time around, but it was a bit close for comfort.
It seems clear to me the battery issue was due to the fact I am home a lot more these days, and I leave my Pixel on the wireless charging stand all the time. It appears a safe way to minimize problems would be to turn on Adaptive Charging. However, proving nothing is ever easy or straightforward, that's not an option for me. I'm running kdrag0n's Proton AOSP rom, and as happy as I am with it, it doesn't currently support adaptive charging. Thankfully, I've rooted the device, and see Advanced Charging Controller is an option. The easiest way to use it seemed to be to install ACCA.
As best I can tell, it does work...but only with wired charging. From what I'm reading, there are settings I can change to, for example, limit charging wirelessly to only 80% maximum. Going into forums though, it appears the settings are device-specific. Since most Pixel 5 users are running the stock Android from Google, they don't need ACCA (Adaptive charging is already there), so I've painted myself into a niche here.
Certainly I'm not the only Pixel 5 user, wanting to limit WIRELESS charging, via a root solution because I'm running a modded OS that doesn't include it?
Can anyone advise, short of having to flash stock firmware back on the phone?

Categories

Resources