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

PatcherAddon: clean-up addon.d environment every time addon.d is fired up

This commit is contained in:
Christopher Roy Bratusek 2018-09-08 20:20:07 +02:00
parent c14c818501
commit 3a539b2f23
3 changed files with 4 additions and 5 deletions

View File

@ -19,6 +19,7 @@
* tell DalvikVM to be more verbose * tell DalvikVM to be more verbose
* remove ancient, unused files from addon.d * remove ancient, unused files from addon.d
* for binary files only install the current-arch ones into addon.d * for binary files only install the current-arch ones into addon.d
* clean-up addon.d environment every time addon.d is fired up
* CommonInstaller, CommonPatcher * CommonInstaller, CommonPatcher
* ROMs with build-type userdebug are treated as Custom ROMs * ROMs with build-type userdebug are treated as Custom ROMs

View File

@ -492,6 +492,7 @@ install_addond () {
ui_print " " ui_print " "
ui_print " Installing addon.d restoration setup" ui_print " Installing addon.d restoration setup"
rm -rf ${PATCHER_ADDOND_DATA}
mkdir -p ${PATCHER_ADDOND_DATA} mkdir -p ${PATCHER_ADDOND_DATA}
[ -d /data/nanomod.patcher ] && rm -rf /data/nanomod.patcher [ -d /data/nanomod.patcher ] && rm -rf /data/nanomod.patcher

View File

@ -60,11 +60,8 @@ NanoDroidPatcher () {
[ -f /data/adb/NanoDroid_Patched ] && \ [ -f /data/adb/NanoDroid_Patched ] && \
rm -f /data/adb/NanoDroid_Patched rm -f /data/adb/NanoDroid_Patched
for bin in zip.arm zip.x86 file.arm file.x86 \ for artifact in busybox classes.dex oat services.jar services.jar-mod;
vdexExtractor.arm vdexExtractor.arm64 \ rm -rf ${BASEDIR}/${artifact}
vdexExtractor.x86 vdexExtractor.x86_64; do
chmod 0755 "${BASEDIR}/${bin}" || \
error "failed to prepare environment"
done done
detect_sdk detect_sdk