Sample Header Ad - 728x90

Addon.d bash script for removing apks after nightly reflash on Android 5.1 CM12.1 not working

0 votes
1 answer
2175 views
I'm trying to have a bash script in /system/addon.d/ that removes unwanted apks from a nightly Android 5.1 (CM12.1) install for my Galaxy Nexus phone. Each new nightly reflash will reinstall some system apps so that is why I want a script to reverse this action so I do not have to do it manually. There are some backup scripts that run fine (SU, GApps) but my own script does not work. It can be found below. I placed the script in /system/addon.d/ with permissions -rwxr-xr-x (same permissions set as other scripts in addon.d). When flashing I do not see the echo and the apps are not removed. I have tried google and researched other scripts but I cannot figure out what I am doing wrong here. Help is appreciated! #!/sbin/sh # # /system/addon.d/80-autoclean.sh # . /tmp/backuptool.functions list_files() { cat <
Asked by YouKnowNothingJohn (1 rep)
Apr 3, 2016, 10:34 AM
Last activity: Feb 21, 2022, 01:06 PM