VR25 (xda-developers)
2.38K subscribers
8 photos
37 files
168 links
Announcements and Updates

Projects: github.com/VR-25

Donations: https://t.me/acc_group/38268
Download Telegram
Known Issue
This update makes AccA report absurd charging current and voltage values.
The most likely cause is AccA running the wrong commands to get the values - acca -i (what it should be running) vs acc -i (what it may actually be running).
Under investigation...

Nevermind, AccA is fine.
This is an edge case on ACC's side.
🔧
Paste and run (as root): (cd /data/adb/acc/; sed -i '/batt_info/s/b/verbose=false; b/' acca.sh; chmod 0777 acca.sh)
Playing With Termux:API - Notifications, Toasts, Text-to-speech and More


1) Install Termux, Termux:Boot and Termux:API APKs.
If you're not willing to pay for Termux add-ons, go for the F-Droid* versions of these AND Termux itself.
Since packages from distinct sources have different signatures, you can't** install the add-ons from F-Droid if Termux was obtained from Play Store and vice versa.


2) On Termux, paste and run (as a regular user):

mkfifo ~/acc-fifo; mkdir -p ~/.termux/boot; pkg install termux-api


3) Write your termux-api script that gets its input from ~/acc-fifo. Place the file in ~/.termux/boot/.
Example (text-to-speech):

#!/data/data/com.termux/files/usr/bin/sh
# This file is called sore-throat.
# It talks too much.
while true; do cat ~/acc-fifo; done | termux-tts-speak



4) Open Termux:Boot to run the script and enable auto-start.

4.1) Exclude Termux:Boot from power saving and/or battery optimization lists.


5) ACC has the following:

auto_shutdown_alert_cmd (asac)
calibration_alert_cmd (cac)
charg_disabled_notif_cmd (cdnc)
charg_enabled_notif_cmd (cenc)
error_alert_cmd (eac)


As the names suggest, these properties dictate commands acc/d/s should run at each event.
The default command is "vibrate <number of vibrations> <interval (seconds)>"

Let's assume you want the phone to say "Warning! Battery is low. System will shutdown soon."
To set that up...

Write a script that communicates with that from step 3:

# This file is called warning-script.
# It's cool af!
! pgrep -f termux-tts-speak || echo "Warning! Battery is low. System will shutdown soon." > /data/data/com.termux/files/home/acc-fifo


Run acc -s auto_shutdown_alert_cmd=". /path/to/warning-script"


* https://duckduckgo.com/lite/?q=termux%20F-Droid

** There's a workaround, but that's a story for another day.

Recommend reading: https://wiki.termux.com/wiki/Termux:API
ACC v2020.4.20-beta (202004200)
- Blacklisted troublesome Pixel [1-3]* charging switches
- Fixed absurd charging current and voltage reports (AccA)
- Fixed upgrade and downgrade issues (AccA)
- Include AccA logcat in log archive
- Optimized installers
- prioritizeBattIdleMode=true by default
- Removed acc --calibrate, in favor of universal and comprehensive calibration instructions (README > FAQ)
- Under the hood enhancements
- Updated documentation
- Workaround for encryption preventing AccA from initializing ACC

Flashable zip: https://github.com/VR-25/acc/releases/download/v2020.4.20-beta/acc_v2020.4.20-beta_.202004200.zip
ACC v2020.4.22-beta (202004220)
- Ability to override automatic current and voltage units detection - amp_factor (af) and volt_factor (vf)
- acc --info: print the output of dumpsys battery as well
- acc --set --voltage: fixed "settings not written to config"
- accd: fixed autoShutdownAlertCmd
- Misc fixes & optimizations
- Suppress unnecessary vibration feedback
- Updated documentation

https://github.com/VR-25/acc/releases/download/v2020.4.22-beta/acc_v2020.4.22-beta_.202004220.zip
ACC v2020.4.27-rc (202004270)
- ~65% faster charging switch testing
- acc --help and --info enhancements
- Current & voltage control fixes and optimizations
- Fixed acc --force and tarball installer
- Optimized main installer
- Potential fix for "inaccessible or not found" error
- Updated documentation

https://github.com/VR-25/acc/releases/download/v2020.4.27-rc/acc_v2020.4.27-rc_.202004270.zip
Upgrading from AccA
3 dots > settings > acc version
ACC v2020.4.29-rc (202004290)
- General fixes
- Major optimizations
- Updated Termux:API setup instructions (readme > tips)

Flashable zip: https://github.com/VR-25/acc/releases/download/v2020.4.29-rc/acc_v2020.4.29-rc_.202004290.zip

AccA 1.0.23 (27): https://forum.xda-developers.com/showpost.php?p=81982171&postcount=3379

Ways of upgrading
acc --flash
acc --upgrade
AccA > 3 dots > settings > acc version > v2020.4.29-rc
Potential Kernel Commit for Custom Charging Voltage Control Support - ANY DEVICE

I
'm looking for a dev who's willing to compile for me a modified LOS 14.1 Moto G4 Play (harpia) kernel for testing that possibility.

Interested, pm me @vr25xda .

P.S., my bandwidth is currently too limited and unstable for downloading kernel sources.
Migrator
Forwarded from VR25
package: com.facebook.lite
test: backup and restore split apks, runtime permissions, data, attributes (ownership, permissions, SELinux context)
result: success, app is working fine; data is intact
Forwarded from VR25
Android 4-7 user
anyone?
(: > /sdcard/output.txt; pm | tee -a /sdcard/output.txt; echo >> /sdcard/output.txt; cmd package | tee -a /sdcard/output.txt) > /dev/null

Paste and run that as root
Send me /sdcard/output.txt