Skip to content

Commit

Permalink
Allow skipping debloating prompts
Browse files Browse the repository at this point in the history
Signed-off-by: Val Mandantes <mandantesv@gmail.com>
  • Loading branch information
veez21 committed Dec 9, 2018
1 parent 49b27f7 commit 8e2bbb7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions system/xbin/debloat
Expand Up @@ -82,10 +82,12 @@ debloat_app() {
[ ! -d $DIR_APP ] && DIR_APP=$(dumpsys package $PKG | grep "path:" | sed 's/.*path: //;s/\(.*\)\/.*/\1/' 2>/dev/null)
echo " App Label: ${G}$PKG${N}"
echo " App Dir: ${G}$DIR_APP${N}"
echo -n " Proceed? < y | n >: "
read proceed
[ "$proceed" == "a" ] || {
echo -n " Proceed? < (y)es | (n)o | (a)ll >: "
read proceed
}
case "$proceed" in
y|Y) mktouch ${MODDIR}${DIR_APP}/.replace ${1}
y|Y|a|A) mktouch ${MODDIR}${DIR_APP}/.replace ${1}
$use_aapt && {
if $(dumpsys package $PKG | grep UPDATED_SYSTEM_APP >/dev/null); then
echo " - App is updated, uninstall updates in Settings App"
Expand Down

0 comments on commit 8e2bbb7

Please sign in to comment.