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

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent c14c818501
commit 3a539b2f23

@ -19,6 +19,7 @@
* tell DalvikVM to be more verbose
* remove ancient, unused files from 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
* ROMs with build-type userdebug are treated as Custom ROMs

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

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

Loading…
Cancel
Save