mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-02 03:40:13 +00:00
improve Uninstaller
This commit is contained in:
parent
7c62c354f8
commit
13e16068d3
@ -187,6 +187,7 @@ restore_apps () {
|
|||||||
else
|
else
|
||||||
ui_print " << restoring: app:${app}"
|
ui_print " << restoring: app:${app}"
|
||||||
mv /sdcard/nanodroid_backups/app/${app} /system/app/
|
mv /sdcard/nanodroid_backups/app/${app} /system/app/
|
||||||
|
chown -R root:root /system/app/${app}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -201,6 +202,7 @@ restore_apps () {
|
|||||||
else
|
else
|
||||||
ui_print " << restoring: priv-app:${app}"
|
ui_print " << restoring: priv-app:${app}"
|
||||||
mv /sdcard/nanodroid_backups/priv-app/${app} /system/priv-app/
|
mv /sdcard/nanodroid_backups/priv-app/${app} /system/priv-app/
|
||||||
|
chown -R root:root /system/priv-app/${app}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -241,9 +243,11 @@ patcher_uninstall () {
|
|||||||
if [ -f /sdcard/nanodroid_backups/${services_name} ]; then
|
if [ -f /sdcard/nanodroid_backups/${services_name} ]; then
|
||||||
ui_print " << restoring: unpatched services.jar"
|
ui_print " << restoring: unpatched services.jar"
|
||||||
mv "/sdcard/nanodroid_backups/${services_name}" /system/framework/services.jar
|
mv "/sdcard/nanodroid_backups/${services_name}" /system/framework/services.jar
|
||||||
|
chown root:root /system/framework/services.jar
|
||||||
elif [ -f /sdcard/nanodroid_backups/services.jar ]; then
|
elif [ -f /sdcard/nanodroid_backups/services.jar ]; then
|
||||||
ui_print " << restoring: unpatched services.jar"
|
ui_print " << restoring: unpatched services.jar"
|
||||||
mv /sdcard/nanodroid_backups/services.jar /system/framework/services.jar
|
mv /sdcard/nanodroid_backups/services.jar /system/framework/services.jar
|
||||||
|
chown root:root /system/framework/services.jar
|
||||||
else ui_print " << can't restore unpatched services.jar"
|
else ui_print " << can't restore unpatched services.jar"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user