Skip to content

Commit

Permalink
**2019.5.14 (201905140)**
Browse files Browse the repository at this point in the history
- Overwrite existing config if its format is newer than current config's
> Note: compatible with ACCApp 1.0.6
  • Loading branch information
VR-25 committed May 14, 2019
1 parent dbdbaf9 commit 5e005ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ See current submissions [here](https://www.dropbox.com/sh/rolzxvqxtdkfvfa/AABceZ
---
## LATEST CHANGES

**2019.5.14 (201905140)**
- Overwrite existing config if its format is newer than current config's
> Note: compatible with ACCApp 1.0.6
**2019.5.13 (201905130)**
- capacitySync disabled by default - some systems don't like the "dumpsys" command
- Fixed installer bugs
Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ on_install() {
trap 'exxit $?' EXIT

config=/data/media/0/$MODID/config.txt
configVer=$(sed -n 's|^versionCode=||p' $config 2>/dev/null || :)
local configVer=$(sed -n 's|^versionCode=||p' $config 2>/dev/null || :)
termuxSu=/data/data/com.termux/files/usr/bin/su

# extract module files
Expand All @@ -163,8 +163,9 @@ on_install() {
unzip -o "$ZIPFILE" License.md README.md -d ${config%/*}/info/ >&2

# upgrade config
local newConfigVer=$(sed -n 's|^versionCode=||p' $MODPATH/config.txt)
if [ -f $config ]; then
if [ ${configVer:-0} -lt 201905110 ]; then
if [ ${configVer:-0} -lt 201905110 ] || [ ${configVer:-0} -gt $newConfigVer ]; then
rm -rf $config ${config%/*}/logs 2>/dev/null || :
else
[ $configVer -lt 201905111 ] \
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=acc
name=Advanced Charging Controller (acc)
version=2019.5.13
versionCode=201905130
version=2019.5.14
versionCode=201905140
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

0 comments on commit 5e005ea

Please sign in to comment.