2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

Uninstaller: fixup GApps restore mechanism

This commit is contained in:
Christopher Roy Bratusek 2018-09-01 16:02:49 +02:00
parent b9054f4c5b
commit c989a529b2

View File

@ -206,18 +206,18 @@ restore_gapps () {
elif [ -d /sdcard/nanodroid_backups/app/${app} ]; then
appdir=app
else
break
continue
fi
if [ -d /system/${appdir}/${app} ]; then
ui_print " << removing backup: ${appdir} / ${app}"
rm -rf /sdcard/nanodroid_backups/${appdir}/${app}
else
ui_print " << restoring: ${appdir} / ${app}"
mv /sdcard/nanodroid_backups/${appdir}/${app} \
/system/${appdir}/ || error " !! failed to restore ${app}"
fi
done
if [ -d /system/${appdir}/${app} ]; then
ui_print " << removing backup: ${appdir} / ${app}"
rm -rf /sdcard/nanodroid_backups/${appdir}/${app}
else
ui_print " << restoring: ${appdir} / ${app}"
mv /sdcard/nanodroid_backups/${appdir}/${app} \
/system/${appdir}/ || error " !! failed to restore ${app}"
fi
}
system_mode_uninstall () {