From e1490797217f72c3fae813237afca3c418614591 Mon Sep 17 00:00:00 2001 From: VR-25 Date: Sun, 12 May 2019 03:38:35 +0100 Subject: [PATCH] **2019.5.12-r1 (201905121)** - Installer optimizations - Updated documentation --- README.md | 37 ++++++++++++++++++++++++++++--------- install.sh | 7 +------ module.prop | 4 ++-- 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ca661bb..9d81e67 100644 --- a/README.md +++ b/README.md @@ -277,26 +277,44 @@ Run acc --readme to see the full documentation. --- ## TROUBLESHOOTING -- Charging switch -By default, ACC cycles through all available charging control files until it finds one that works. However, things don't always go well. + +++Charging switch++ + +By default, ACC cycles through all available charging control files until it finds one that works. + +However, things don't always go well. Some switches may be unreliable under certain conditions (e.g., screen off). Others may hold a wakelock - causing faster battery drain - while in plugged in, not charging state. + Run `acc --set chargingSwitch` to enforce a particular switch. + Test default/set switch(es) with `acc --test`. + Evaluate custom switches with `acc --test `. -- Charging voltage limit + +++Charging voltage limit++ + Unfortunately, not all devices/kernels support custom charging voltage limit. + Since I don't own every device under the sun, I cannot tell whether yours does. + Use `acc --voltage :millivolts` (e.g., acc -v :4050) for evaluating charging voltage control files. -- Restore default config + +++Restore default config++ + `acc --set reset` -- Slow charging + +++Slow charging++ + Nullify coolDownRatio (`acc --set coolDownRatio`) or change its value. By default, coolDownRatio is null. -- Logs are stored at `/sbin/_acc/`. You can export all to `/sdcard/acc-logs-$device.tar.bz2` with `acc --log --export`. + +++Logs++ + +Logs are stored at `/sbin/_acc/`. You can export all to `/sdcard/acc-logs-$device.tar.bz2` with `acc --log --export`. @@ -342,6 +360,10 @@ See current submissions [here](https://www.dropbox.com/sh/rolzxvqxtdkfvfa/AABceZ --- ## LATEST CHANGES +**2019.5.12-r1 (201905121)** +- Installer optimizations +- Updated documentation + **2019.5.12 (201905120)** - Autofix Termux SU PATH - Do not use Magic Mount; link everything to /sbin @@ -374,6 +396,3 @@ See current submissions [here](https://www.dropbox.com/sh/rolzxvqxtdkfvfa/AABceZ - Temperature values are expressed in actual Celsius degrees - Updated charging switches database - Updated documentation - -**2019.3.7-r1 (201903071)** -- Hotfix: new users can't install. diff --git a/install.sh b/install.sh index 3f15e8d..324b230 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -########################################################################################## +######################################################################################################## # # Magisk Module Installer Script # @@ -206,11 +206,6 @@ set_permissions() { cp -a $MODPATH /sbin/_acc/acc ln -fs /sbin/_acc/acc/acc /sbin/acc ln -fs /sbin/_acc/acc/accd-init /sbin/accd - ### - [ -h /dev/acc/modPath ] && rm /dev/acc/modPath \ - || rm -rf /dev/acc/modPath 2>/dev/null - cp -a $MODPATH /dev/acc/modPath - ### wait /sbin/accd fi diff --git a/module.prop b/module.prop index 5bcb1fd..db832a7 100644 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=acc name=Advanced Charging Controller (acc) -version=2019.5.12 -versionCode=201905120 +version=2019.5.12-r1 +versionCode=201905121 author=VR25 @ xda-developers description=This is primarily intended for extending battery service life. On the flip side, the name says it all. It supports Magisk 17-19. minMagisk=17000