-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The on and off values of the charging switch cannot contain spaces #23
Comments
A while ago, I came across ACC is undergoing major changes. As part of these, several config variables are now arrays (e.g., If you want to try experimental builds, message me on https://t.me/vr25xda (preferred), https://fb.me/vr25xda or https://m.me/vr25xda . Thanks! |
Yep, that's the switch (btw it's a Blackview 9600 Pro). |
I can't get enough of Mediatek's "nice" surprises. Holly nuts! Could you elaborate more on |
So |
Interesting and Intriguing! |
Wow that's so cool! Manufacturers sure know how to make things interesting 😂 |
Just to make things more fun I found out that if |
Terrible Design! Lets say the device is plugged in and charging. After charging is disabled (i.e., through toggling the 2 switches), is it enabled automatically on replug, without toggling the switches back? Were you able to find any file that reports the correct external power supply status (i.e., plugged/unplugged)? |
Sorry for the delay, I managed to get some time with the phone to run the tests. The results are braindead haha
|
Finally, at least one pleasant surprise... hopefully! 😁 If From
I just finished implementing and testing the "multiple switches toggling" feature. It's ready for third-party testing. I'm in touch with another MTK user - who will be testing the real deal. |
That's great! So to ensure that the braindead status "unplugged but charging" never happens I guess acc will have to toggle the switches when it detects an unplug haha |
Thou Shalt Go Mad. |
I implemented everything we discussed so far. https://www.dropbox.com/s/cdfok5fek2g5z5f/acc-202001180.zip?dl=0 Notes
|
Wow that's great! I can't wait to try it, as soon as I see my friend I'll try and report back |
So I finally got the chance to test (sorry for the delay!), but I'm running into a weird problem: I flashed the zip with magisk but apparently it gets installed into /sbin/.magisk/modules/acc/ but not into /sbin/.acc/, and this prevents it from starting... if i try manually I get like
I'm probably missing something obvious sorry |
@kbios, the repo is up-to-date. |
I have a device where the charging switch requires two numbers separated by a space. Acc doesn't currently support this because it uses awk '{print $whatever}' to extract the on/off values in various places, so quotes/escape sequences don't work. I managed to get it working by using read instead, like this:
This way I can escape the space in the config file (eg
chargingSwitch=/foo/bar 0\ 0 1\ 1
) and everything works.The text was updated successfully, but these errors were encountered: