yashsingh1/xdaforums huggingface dataset:
[Magisk] networknoob:
How to revert back to default settings and disable advanced charging controller permanently? My phone is acting up and I suspect it's probably due to this module. I want to be in my default state as previous.

I did not change anything manually. What I did was installed it in magisk, enabled in magisk, installed ACC app in phone, restarted my phone, opened the ACC app in phone and saw the "red" daemon not running turned into "green" daemon running. That's all. I did not change anything manually or touched any setting in the ACC app.

Now I want to revert back to the previous settings and whatever settings got changed be revert back to original state - and at the end want to remove the module and acc app both from my phone. How to do that without breaking anything?

Phone booted and running successfully, however, battery is not getting charged and showing random number as how much charge left in status bar. Also some apps like facebook and messenger acting weird (app crashing, no notification etc)
[Magisk] lm089:
That's what I did, plus "PowerManagerService.Wakelock" which also turned up as #3. But doesn't seem to help, so those are probably not the right ones... will keep searching

---------- Post added at 18:09 ---------- Previous post was at 18:04 ----------

1. uninstall the app (ACCA) through android settings > apps > uninstall

2. uninstall the module (acc) through Magisk Manager, then reboot (to be sure)

3. look at /data/adb/modules: there shoud be no "acc/" subfolder. If it exists delete it

4. if you want to be 200% sure that everything's gone open a terminal and type "su -c acc". Should be prompted with something like "acc not found"
[Magisk] networknoob:
Thanks a lot. However, just uninstalling everything would work? What about the changes it made to the system file, wouldn't those need to be removed/edited manually to get the default original settings? Sorry for the noon question, I'm pretty new to all this magisk things. Pardon my lack of knowledge, but I really want to know.
[Magisk] lm089:
acc is maintaining itself, i.e. it keeps its own config file. Upon start the daemon looks for that config and makes its adjustments. AFAIK no system settings files are modified (the dev will correct me if this is nonsense... :p)

---------- Post added at 19:04 ---------- Previous post was at 18:56 ----------

Unfortunately the blacklist doesn't have any effect: no deep sleep at all over the past 4 hours with the charger plugged in. I might as well have to live with that, it's not *that* important anyway
[Magisk] VR25:
ACC doesn't touch the system partition, ever. It controls specific kernel parameters - and these are stored in RAM. Once stopped, disabled or uninstalled, all changes made by it are toast.

You may want to try enforcing a particular charging switch, then. Read https://github.com/VR-25/acc/blob/dev/README.md#charging-switch
[Magisk] VR25:
Here's another solid prerelease...

**2019.7.9-dev (201907090)**

- Additional charging switches and voltage control files

- Enhanced debugging features

- General fixes & optimizations

**2019.7.8-r1-dev (201907081)**

- accd: reverted `acpi -a` usage (unreliable) in `enable_charging()`

- Efficiency enhancement: `loopDelay=10,30` (plugged,unplugged)

- General optimizations

**2019.7.8-dev (201907080)**

- `acc -U|--uninstall`

- `acc -u|--upgrade [-c|--changelog|-f|--force|-n|--non-interactive] [reference]`: upgrade/downgrade

- Backlisted switch `/sys/power/pnpmgr/battery/charging_enabled 1 0`

- Enhanced efficiency and reliability

- Formalized exit codes

- Major optimizations

- Source tarball installer (can be bundled into apps, along with acc*gz)

- Updated documentation and "installers"

**2019.7.4-dev (201907040)**

- Exclude charging switches with unknown values

- Fixed `acc -s` and `acc -t --` issues
[Magisk] lm089:
interesting, so much to read in your README...

acc -t -- gives me something like

:/ # acc -t --
(i) [battery/input_suspend 0 1] works
- battIdleMode=false
(i) [battery/charging_enabled 1 0] works
- battIdleMode=false
(!) [dc/input_suspend 0 1] doesn't work

my acc config is set to prioritizeBattIdleMode;

So I would interpret the output as:

there are 3 switches, but only two are relevant

those 2 don't support BattIdleMode, though

I first try 'battery/input_suspend' and see how the phone behaves. If there's no change I try 'battery/charging_enabled'

correct?

On 2nd thought the above output most probably means that none of the available switches support BattIdleMode; so I might as well forget about it, right?

While we're at it: does it make a difference (in regards to this test or the 'acpi -a' one) whether the device is plugged to an AC charger or to some PC USB port?
[Magisk] dtrail1:
The latest version of the ACC App gives me always an error that it isn't able to parse or find the config file, although the file is in place and doesn't contain any errors. The app is given all required access rights and ACC is working fine, except I cannot configure it with the app. When I open the app it resets the settings to default, even though I've configured ACC via terminal before.

reinstallation with prior deleting data/cache, etc. doesn't help. Also removing and performing a clean installation of the entire module doesn't ehlp.

I will try the prior app version, but want you to know about that issue. Maybe it's something wrong on my side.. Hope someone can help.

Edit: It doesn't work, no matter what app I version I use.
[Magisk] Tohain:
Issue + recommendation

I have 2 issues with my phone and charging,

1. Slow charging - when the battery reaches 37° I get 700mah~ decreasing to 70mah at 40° after reading into it, it seems android pie does this to increase battery life...

-> I would love it if a command to spoof battery temperature could be added so I could quick charge even at high temperatures because sometimes I have to charge quickly and my phone might happen to be hot!

2. Screen turning on when charging - annoying because "cool down" will keep turning on the screen when phone not in use.. -> fixed with GravityBox just wanted to share.

Would love it if the first problem could be solved

Xiaomi Redmi note 7 pro miui 10.3.5
[Magisk] lybimuy:
Situation first.

Limits 70 and 80

After a reboot, the battery charge is 75%.

Charging starts regardless of the lower limit. If you remove from the charge and put it back - the charge continues.

Reaching the upper limit of charging (80%) is disabled.

Situation two.

If you remove the phone from charging and return it back (at a charge of 70-80%), then charging restarts cyclically (2-3 seconds)

I can not lay out the file. Sent log to private messages.
[Magisk] BostonDan:
One issue I noticed on the last build is there is no way to delete the profiles one creates. This becomes annoying as when I tell the battery to charge to 89% it only charges to 78% and so I set up a profile to charge to 82% so the phone charges to 80%.

Same comment as above, the phone does not stop charging if it is between the to thresholds. It keeps charging despite it not reaching the lower threshold. It just hits the max and trickle charges.

Edit: new version does allow me to delete or edit the profile. Ignore above.

Cheers,

B.D.
[Magisk] lm089:
Two observations:

1. with build 20190708 or 20190709 (not sure exactly),

acc -D (start|stop|restart)

results in some extra output:

1|pollux_windy:/ # acc -D start
(i) accd started
+ exit 0
+ e=0
+ echo
+ exit 0

I'm pretty sure we didn't have that before. Doesn't hurt, but maybe it's just some debugging leftovers.

The extra stuff is only showing up with the extra args, btw:

pollux_windy:/ # acc -D
(i) accd is running
pollux_windy:/ #

2. especially after issuing the start|stop|restart commands I can't any longer exit terminal emulator the normal way:

entering

# exit

only results in an empty new line. I have then to force kill the emulator. I'm using Terminal Emulator (jackpal.androidterm) on all my devices, and it happens on all of them
[Magisk] Mikes:
Is the S10+ (G975) bootloop a known issue?
[Magisk] guest4711:
No, and it should not be the culprit of ACC.
[Magisk] Mikes:
Well, it's bootlooping only when ACC is flashed. When I uninstall it using mm it's booting up normally. Let me know if you guys need some logs. I tried to flash it with only busybox installed so there was no additional interference from other mods.
[Magisk] Newcostumer:
Hello,

At first thank you very much for you work. Just one question, does it works on a old tablet Samsung Galaxy Note 8 with resurrection remix nougat and could you make a switch in your app to slow charging?

Because in the nougat rom is build fast charging and this tablet was with the stock ROM KitKat on slow charging. I figured out that was better for my battery power during the day I had around 6 hours with fast charging I only have 4 hours. Well I don't know if that is the reason but I had a other rom version before the update with normal charging and there was everything fine.

It would be cool if you could make a tweak to adjust the charging level or a switch. Currently it is on 1800 mA and this I think is a bit to much maybe it will be better from self with your little with your Module for Magisk, and I have another option in the Kernel Auditor app.

But a switch to change from 1800mA down to 600mA or some presets would be nice.

At last for sure if it all works for my device, I have it since 6 years and replaced the battery first time a few months ago. The funny thing was after I flashed a custom ROM the first time the battery power was after 4 hours between 8 and 6 hours a day with using all the time.

So that's enough at first?
[Magisk] BostonDan:
First off, Incredible work on acc. I love how everybody on xda helps out everybody else.

One issue I have had lately is that my battery percentage shown in the status bar is not the same as that shown in the acca app.

The acca app shows my battery as 84% charged while my status bar shows it as 70% charged. Not sure why this is but wanted to report it.

For the record, I am using a pixel 3xl on Pie.

Cheers,

B.D.
[Magisk] SystematiQ:
Same issue here. Note 9 on Oreo. Worked fine prior to last couple versions.

Edit: Applied newest alpha. Charges to correct percentage now.
[Magisk] auzty:
im using this module since my RN4 (the module named MCS), and i just set simple config (pause charging when 100, and resume when below 90)

, now im using PocoF1, install this module, i try `acc -d` but my charger still charging , and i try acc app, and seems didn't work.

Im Using LineageOS 16 latest build
[Magisk] aolex:
Hi,

first off, thanks for the app!.

I'm trying to set charge up to 91% and then to resume when it reaches 80%, resume again until 91% (in fact, the only thing I want is to charge it until 91% and keep it charged until I disconnect the charger)

for that I set:

acc -s capacity 5,60,80-91

but what it does is when reaches 91% it discharges and then it stays at 89% in charging state (charging icon) without actually charging...

What am I doing wrong?
[Magisk] gorilla p:
Recently, I have been having issues with the daemon not starting .

I noticed this morning my battery charging past 90% when it should be 85% maximum.

I removed the module, rebooted and reinstalled and I'm seeing the same issue.

Checked app and daemon is not running
[Magisk] Hallux_:
Having the same issues you describe, also with my OP5T.
[Magisk] BostonDan:
I just found this. Not sure I agree with the rationale but it's not my program. I just adjusted fire to account for the difference.

Issue posted here: https://github.com/MatteCarra/AccA/issues/9

Cheers,

B.D.
[Magisk] VR25:
Another prerelease: https://github.com/VR-25/acc/releases/tag/201907120

Notes

- Incompatible with AccA 1.0.11-

- Stable enough for daily use

- Those facing issues are encouraged to try this.
[Magisk] lm089:
Tried that on my OP6.

acc -t --

tells me there are 3 different switches available, two of them being marked as "works", but both also being marked as "BattIdleMode: false"

Nevertheless tried both switches but that didn't change anything.

As I wrote earlier, this is not an issue really.
[Magisk] RMarques:
[MENTION=5228676]VR25[/MENTION]

ACC stopped working altogether. It's charging as it would without the module.

Also, every time I try to access the "Profiles" tab, ACC crashes.

I already downloaded and installed the new version...same problem.

The weird part is that it was working as intended till yesterday and I haven't changed absolutely nothing on my cellphone.
[Magisk] ChingghisKhan:
Hi,

where can I find the ACCA App please?

Google can't find it :(

Thanks
[Magisk] zputnyq:
This is the link :)

https://github.com/MatteCarra/AccA/
[Magisk] ChingghisKhan:
Thanks for the fast reply.

Unfortunately, I don't know how to use the stuff on the GitHub link, I see a bunch of files but is there a way to actually doenload the .apk?
[Magisk] Camerado:
https://github.com/MatteCarra/AccA/releases/latest (always current link)
[Magisk] ChingghisKhan:
Thank you very much and I hit the button, too :)
[Magisk] zputnyq:
You're welcome, I really appreciate it.

For downloading, just need to tap view all xx releases then you will see all available released version, after it tap assets for the version you want then app- release.apk.

I give you that just in case you need other version too.
[Magisk] wilsonhlacerda:
I have just seen it is also available at IzzyOnDroid, thus also on F-Droid if you add its repository.
[Magisk] BostonDan:
This morning when I woke up, my status bar was showing 23% battery charge, but acc was showing 100%. It seems to go lower and lower as I use acc. This is on the latest beta release.

I love this program but wish it were more consistent.

Attached is a screenshot of ACCA app.

Cheers,

B.D.
[Magisk] maxkolonko123:
Hi guys

I'm new to this sort off app, I flashed latest version and didn't touch any settings, can someone tell me how I can change the limits for charging percentage? At the moment I'm at 6% and can't charge phone basically when I plug the charger it won't do anything, it's a lil bit annoying cos if I want to leave house or something I would want to be able to charge my before it will hit 1% or whatever is set on random settings.

Cheers for help
[Magisk] kdrkdr:
Latest version is incompatible with ACCA app. Mentioned in the thread
[Magisk] zgfg:
What kind of phone / firmware you have?!

Or maybe it requires a different charger (but even then, it's really wrong).

Even if battery is 99% full, when you connect to the charger, it must start charging

Can't be that battery must be completely drained, to be able to start charging

Btw, did charging work fine before you flashed the module?

Maybe your phone is not supported and it interprets wrong - or just disable this module...
[Magisk] maxkolonko123:
Hey

My phone is op6 t stock rom, and yeah without module charging works fine, so I thought this is something to do with settings in acc, like do not charge till battery reach certain lvl etc
[Magisk] lm089:
More info needed:

- which version of acc are you using?

- are you also using acca (ui app to acc)?

- is acc daemon currently running?

- if the daemon is running, have you tried stopping it?

- what are your current acc settings?
[Magisk] maxkolonko123:
- I'm using latest one 20190708

- Im not using acca

- Don't know what u mean by deamon but I disabled acc in magisk

- Whenever I disable acc in magisk and reboot phone charging works fine

- I just flashed acc zip file in magisk and didn't touch any settings, cause it says should work out of the box without fiddling with it, so just clean install and standard settings
[Magisk] lm089:
If you're not using acca you can control the various aspects through terminal commands. Have a look or two at the OP to learn about the available commands.

One important command is acc -s which prints the current settings. Esp. have a look at the capacity setting as it - among others - defines at which percentage charging stops or resumes
[Magisk] maxkolonko123:
I don't know how to use terminal commands on phone tbh...

I found file in acc folder named acc.conf see picture attached
[Magisk] DuskGolem:
[MENTION=5228676]VR25[/MENTION], hey brother, my device is Galaxy A8 sm-a530f on stock pie firmware rooted with magisk v19.3. This module has a rather erratic behavior on my device.

1) Upon installing, the installation log says that "acc daemon is already running ignore the restart button" but actually its not running.

2) Soon after installation without rebooting, my battery drains as fast as 2% per 45-60 seconds. Rebooting sometimes fixes this sometimes not (multiple reinstallations:silly:).

3) If the drastic battery drain stops, making the module to work is another pain. A simple command such as "acc -d" or "acc -d %" stops charging but only for a few seconds or a minute which does not follow the entered commands.:confused::confused:

I have attached the logs as per the "acc --log --export" command for your consideration.

I have been using your model from the start and love it. Keep up the good work:good::good:
[Magisk] DuskGolem:
Dude, there is an app for this module to provide a gui. Find the link in the github documentation link provided by the OP in the very first post. Or just click this
[Magisk] maxkolonko123:
Dude apparently the app is not compatabile with latest version though
[Magisk] DuskGolem:
It is compatible with the module.I have been testing this for the whole last week. The module itself doesn't work on my device but the app is definitely compatible with the module
[Magisk] Tsaviouranzo:
I have same issue on same device and Rom. :confused:
[Magisk] VR25:
[MENTION=2822264]nike8899[/MENTION], [MENTION=5785684]Tsaviouranzo[/MENTION], what about this one?

P.S., run "cs PAUSE% RESUME%" command to apply the new config.
[Magisk] Tsaviouranzo:
[MENTION=5228676]VR25[/MENTION] Tried though not working Sir.
[Magisk] Zobat:
Hi, where is the download?
[Magisk] dyingbread:
Download in magisk repo
[Magisk] phantom146:
[MENTION=5228676]VR25[/MENTION] I've heard somewhere here that this has the capability to reset battery stats once charging is done? Unfortunately it does not reset on my Nexus 6p. Also cant seem to figure out how to turn it off with the ctrl+c or volume down button.
[Magisk] CyberZeus1977:
[MENTION=5228676]VR25[/MENTION]

Hi bro,

the script as is doesn't work on Nexus 6P. I know that this device uses the standard file location for enable and disable charger and for battery percentage (I change by hand the enable charger file and it works).

You should exclude 'Nexus 6P' in the model Huawei condition and it should work.

Thanks

Inviato dal mio Nexus 6P utilizzando Tapatalk
[Magisk] VR25:
On Nougat, the old battery stats reset method doesn't work, and I'm not currently aware of any alternative.

CTRL+C is the standard Linux way of terminating a shell program. Since a phone doesn't usually have a dedicated CTRL key, you use "Vol. Down" to emulate it.

If it used one of the standards, it should've worked out of the box. Also, there's no need to add an exception, since the script uses fallback switches. Could you upload the cs_debug.zip? ;)
[Magisk] CyberZeus1977:
Let me explain better.

In your if statement you check if model name contains 'Huawei'. It is true for Nexus 6P so it sets the non standard locations. Am I right or did I misunderstand your code?

Thanks bro

Inviato dal mio Nexus 6P utilizzando Tapatalk
[Magisk] Ridsever:
"Broken pipe" again... here is the zip
[Magisk] phantom146:
Do you know the su fifo file code for magisk? It might help you with battery stat reset as it hss helped me on battery charge limit app before. I can try to find the battery reset code for my device by reverse engineering.
[Magisk] VR25:
No idea, but I'll take a look. Meanwhile, any updates from you will be great. -- Thanks

Yes, the script does check that. However, it never uses an incompatible switch. In other words, cs verifies whether the target file actually exists. If it doesn't, then the script goes for the standard control files -- that is, it checks whether one of these exist on the device. At the end, if no switch matches the search, then the "unsupported device" message is displayed.
[Magisk] kryptikal:
Hi [MENTION=5228676]VR25[/MENTION],

I have a Nexus 7 2013 with Lineage OS and upon running:

su

cs -i

It returned 'cs: Unsupported device' and generated a debugging .zip.

I'm attaching the .zip and looking forward to being able to use this awesome module in the future.

I'm happy to help if you need any other info/logs/testing... just let me know.
[Magisk] MrKaon:
Unsupported

Running it on Nvidia Shield Table K1

Unsupported

Thanks
[Magisk] ithehappy:
Quick dumb question, I just installed this module for very first time on my Mariln running stock 8.0, and I just want the phone to stop charging at say 90% level, that's all I need, so shall I just enter the command "cs 90" and that would be all?
[Magisk] guest4711:
Don't forget to use su before, eg.

su -c cs 90

or

su
cs 90
[Magisk] ithehappy:
Thanks mate. Already tested the cs -i command actually and it did show the battery info, after installing TE first command I entered was su actually :p

PS: Well I ran the "cs 90"command but phone's battery percentage wouldn't change even after I had the phone plugged in for 15 minutes, but after a reboot the change in percentage was reflected, so the phone was charging after all but it was not shown!

Wonder if this is a bug, or I did something wrong, uninstalled the module for time being.

Thanks in advance.
[Magisk] VR25:
# 2017.11.13-Beta (201711130)

- Additional devices support

- Automation without apps -- install, configure (cs % %) and forget (please, read/re-read README.md).

- cs default settings -- 90 10

- Fixed "broken pipe" errors.

- Overall optimizations

This is not available in the repo yet (needs more testing).

To everyone willing to try: I just want one thing from you -- useful feedback. -- Thanks ;)
[Magisk] t3chwizard:
[MENTION=5228676]VR25[/MENTION]

I absolutely love this module, but there is one thing.

For whatever reason, I was unable to get this to stick after rebooting on my nexus 6 running 7.1.2 so what I did was I placed a file or script (whatever you want to call it) I named "chargingswitchmagisk.sh" (file extension may not be necessary, but I always put them on my scripts for good measure since I work with Linux a lot) at the following path:

/magisk/.core/post-fs-data.d/

In this file I put "cs 85" as I usually like to charge to no more than 85% and drain no less than 35% (others can do whatever they please as long as it is a valid parameter that the cs function will accept, they just need to know that none of us will be responsible for anything that happens to their devices as a result of using this script as usual :D)

Maybe if possible, you could have the cs function create a file/script at the directory I noted above so that when users input commands so that it will stick after reboot. I would be glad to help as well. Thought I would share this in case it helps anyone else, keep up the good work!!!!
[Magisk] AlexBurnout77:
Please give me a prior version to 11.6.2017

Hi. It's quite a thing to live without your mod, and since the latest ver is not working for me, please provide me a prior version. Thanks.
[Magisk] maxkolonko123:
So shall I flash the module and then install app or just app by itself?
[Magisk] forjustin:
latest version works fine with acca on rn4 (mido) dotOS.

---------- Post added at 11:34 PM ---------- Previous post was at 11:29 PM ----------

It is possible that acc is incompatible with your device or/and your rom. I encountered the same problem on my rn2 (hermes). To charge your device again, disable or uninstall acc and reboot.
[Magisk] DuskGolem:
Yup, that's the way. First flash module, reboot, then install app.