

[Module] Magic Charging Switch 2017.10.21
source link: https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Advanced Charging Controller (acc)
VR25
Senior Member
Find newer zips here.
Attachments
-
mcs-2018.10.11-beta.zip25.8 KB · Views: 2,733
-
mcs-2018.10.12-beta.zip25.8 KB · Views: 259
-
mcs-2018.10.12.1-beta.zip25.8 KB · Views: 600
-
mcs-2018.11.5-beta.zip27.5 KB · Views: 200
-
mcs-2018.11.7-beta.zip27.6 KB · Views: 129
-
mcs-2018.11.8-beta.zip27.6 KB · Views: 103
-
mcs-2018.11.8.1-beta.zip27.5 KB · Views: 141
-
mcs-2018.11.9-beta.zip28 KB · Views: 122
-
mcs-2018.11.10-beta.zip28.9 KB · Views: 140
-
mcs-2018.11.12-beta.zip28.9 KB · Views: 157
-
mcs-2018.11.13-beta.zip28.8 KB · Views: 156
-
mcs-2018.11.15-beta.zip29.1 KB · Views: 307
-
mcs-2018.11.22-beta.zip29.6 KB · Views: 165
-
mcs-2018.11.23-beta.zip30.8 KB · Views: 251
-
mcs-2018.11.24-beta.zip31.3 KB · Views: 2,880
-
acc-2019.1.24.zip32.8 KB · Views: 1,512
-
acc-201902270.zip57.9 KB · Views: 354
-
acc-201903031.zip58.8 KB · Views: 288
-
acc-201903070.zip59.7 KB · Views: 410
-
acc-201903071.zip59.7 KB · Views: 9,058
Ophidian_DarkCore
Senior Member
VR25
Senior Member
nice that someone else knows how li ion works for once too, the question is, does the board have this feature already baked in a little bit, is there any over provisioning of the battery?
Not sure what the exact number is. What I can say is some devices have it (mine does, obviously). You have to test and see whether the switch works on yours.
About over provisioning...
I believe indeed there is (at least in modern batteries); otherwise, these would last much less.
Reactions: cyanGalaxy, mamun.joy, duttyend and 4 others
Thx
Sent from my HTC U11 using Tapatalk
Reactions: Dotancoh and clx_
Not sure what the exact number is. What I can say is some devices have it (mine does, obviously). You have to test and see whether the switch works on yours.
About over provisioning...
I believe indeed there is (at least in modern batteries); otherwise, these would last much less.
Hello! With your module you can program the load at night, so that it will charge up to 50% and after 2 or 3 hours it will charge the other 50%?
Enviado desde mi MI 5s Plus mediante Tapatalk
Sent from my Nexus 6P using Tapatalk
VR25
Senior Member
Great module but i don't know how to install and change settings.
Thx
You use a terminal emulator for that. Instructions are on the README (from the OP or zip file). I always try to make everything as simple and user friendly as possible. Note that the terminal must be running (either in foreground or background) till the process is complete. I recommend Termux terminal emulator.
Hello! With your module you can program the load at night, so that it will charge up to 50% and after 2 or 3 hours it will charge the other 50%?
Enviado desde mi MI 5s Plus mediante Tapatalk
Interesting idea...
That's not currently one of the features, but I can implement it. Wait for the next version.
Thanks for this module. Will future update add the option to erase battery statistics?
Sure. I can add that too.
Reactions: duttyend, 5tormChild, thomasnsr and 3 others
If you reset it (so it charges again), the battery status is also updated.
Does this tool have the same behavior or are we able to stop charging while the battery status is still being updated?
phantom146
Senior Member
It seems that my terminal cant recognize the command cs or any other commands for this app. Succesfully flashed with no errors..
Also, I'm waiting for erase of battery statistics when charged to desired % atm keep doing a good job.. hope it functions on my magisk soon
EDIT: was able to make it function but I manually copied "cs" to /system/bin /xbin to make it work.
Sent from my Nexus 6P using Tapatalk
- cs -i --> Show battery info. Actually just echos "battery info"
Please provide more information about your phone (model, ROM). It works for me, but your phone may be incompatible with this app....
u0_a183@:/ $ su
root@:/ # cs -i
Battery Info
STATUS=Discharging
HEALTH=Good
TEMP=227
ONLINE=1
VOLTAGE=3961000
LEVEL=88%
TECHNOLOGY=Li-ion
root@:/ #
Oneplus 3t / NukleaRomPlease provide more information about your phone (model, ROM). It works for me, but your phone may be incompatible with this app....
I get this when I try some commands.
I run stock Oreo on nexus 6P,with magisk 14.
Sent from my Nexus 6P using Tapatalk
I get this when I try some commands.
I run stock Oreo on nexus 6P,with magisk 14.
You should su before, e.g.
u0_a183@:/ $ su
root@:/ # cs -i
Battery Info
STATUS=Discharging
HEALTH=Good
TEMP=227
ONLINE=1
VOLTAGE=3961000
LEVEL=88%
TECHNOLOGY=Li-ion
root@:/ #
or use su with the command, e.g.
su -c cs -i
Reactions: frdc0410
ghbuur
Senior Member
Sent from my Nexus 6P using Tapatalk
VR25
Senior Member
Please run the attached script as follows:
su
source /scrip/path/cs_debug.sh.txt
Attachments
-
cs_debug.sh.txt220 bytes · Views: 331
Top Liked Posts
-
**v2022.6.4 (202206040)**
- -n|--notif [[string] [user]]: post Android notification; may not work on all systems;
- -t|--test [p|parse]: parse potential charging switches from power supply log (as acc -p), test them all, and add the working ones to the list of known switches; implies -x;
- acc -p: exclude all known switches and additional troublesome ctrl files;
- acc -s: Enforce valid pause_capacity and resume_capacity difference;
- acc -t: show more useful information; source read-ch-curr-ctrl-files-p2.sh;
- accd: if possible, avoid idle mode when capacity > pause_capacity;
- Additional charging switches;
- Blacklisted usb/vbus_disable;
- Fixed accd /path/to/config --init;
- Fixed runCmdOnPause and loopCmd parsing issues;
- Fixed: "after a reboot, accd doesn't control charging, until the keyguard is unlocked";
- General refactor;
- Hard reset wipes config and control file blacklists (acc -sr a or acc --set --reset a);
- Improved advanced battery status detection;
- Misc fixes & optimizations;
- New config variables: batt_status_override=Idle|Discharging|'custom', batt_status_workaround=true, reboot_resume=false, reset_batt_stats_on_plug=false, schedule='HHMM command...' (refer to the config or readme files for details);
- One-line scripts;
- Parse config ampFactor from batt-interface.sh as well;
- Post exit code notification if accd stops due to an error;
- Removed obsolete source code files;
- Run dexopt-job only once per boot session (if battery is charging, and system has been up for at least 15 minutes);
- Save acc -t output to /sdcard/Download/acc-t_output.txt;
- Tuning variables for not_charging() timeout (seqCount) and voltage-based idle mode (voltOff);
- Updated documentation;
- Updates can be downloaded with busybox's wget as well (may not work on all systems). Try upgrading with acc -u.I have the last version and my phone always stops charging at 71%. I have the same config I had on the previous version:
I'm using the OP7 Pro OxygenOS 11.0.7 and the kirisuma kernel.
Can someone help?
Thanks!try the latest snapshot
if the issue persists, as soon as charging stops at 71%, run acc --log --export, and share the generated log archivei've noticed something even though the charging stops correctly.
after the charging stops, but while it's still plugged in with the screen off - the battery drains faster than it usually would when it's unplugged from power with the screen off.
is this just a rookie mistake on my part i assume? a setting or two i need to adjust?This happens because the phone won't enter deep sleep while charging.
AFAIK there is no way to fix that.1A?? Hell, where's the fun in that?
...heh, says the guy who never leaves AccA. Speaking of...is there any chance you'll tinker/tweak AccA too? ...for us casual users ofc. can't find many Pixel 4a folks to copy cat....js
1A is just a good starting point. One can go higher, while paying attention to the temperature.
I'm not the developer of AccA. What I can do is add an acc setting to easily override temperature thresholds.No idea what exactly changed, but with the new ACC build now my cooldown charging cycle works completely as expected. Thank you!
Recommend
-
17
Your Magic Keyboard Could Be Charging Your iPad Pro More Slowly (Here’s Why) By Jesse Hollington...
-
6
nubia Red Magic 7 gets 3C certified with a whopping 165W charging support ZTE's nubia announced the
-
8
Honor Magic 4 Pro announced with 100W wireless charging Charging to 50 percent in 15 minutes, wirelessly By...
-
6
What you need to knowThe new Honor Magic 4 Pro was previously launched at MWC 2022.Honor is finally launching the phone in global markets, starting with the UK.The phone features a 50MP...
-
12
Red Magic 8 Pro gets certified with 165W wired charging support The nubia Red Magic 8 Pro is coming in the next few weeks (or months, tops...
-
4
Nubia does not want to give any rest to its Red Magic series. The
-
16
New nubia Red Magic 8 Pro rumors again suggest 165W fast charging The gaming brand nubia, partially owned by ZTE, is working on its next f...
-
6
Red Magic 8 Pro confirmed to have 6,000 mAh battery and 165W charging
-
8
Honor Magic 5 Pro, Magic 5 Ultimate will have 66W charging Honor will launch the Magic 5 series at the end of the month, and we expect fou...
-
9
nubia Red Magic 8S Pro's battery size and charging speed officially confirmed The
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK