2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: no longer preserve services.jar when upgrading NanoDroid/NanoDroid_microG Magisk Modules

This commit is contained in:
Christopher Roy Bratusek 2020-08-24 19:24:37 +02:00
parent 15d2bdcc0d
commit 96cbbf8f02
2 changed files with 3 additions and 22 deletions

View File

@ -22,6 +22,9 @@
* improved APEX compatibility
* improved Android 10 compatibility
* Installer, Patcher, SysTest
* also detect whether ROM has `FAKE_PACKAGE_SIGNATURE` permisson on self-patched ROMs
* Google Package
* fix GoogleCalendarSync on SDK 21 - 29 @Spongebob
* fix installing swipe libraries in cases where `LatinIME` does not have it's libs linked to `/system`

View File

@ -783,16 +783,6 @@ magisk_install_preinst () {
cp ${MODPATH}/system.prop ${TMPDIR}/system.prop
fi
if [ -f ${MODPATH}/system/framework/services.jar ]; then
print_info " << backing up patched services.jar"
cp ${MODPATH}/system/framework/services.jar ${TMPDIR}/services.jar
fi
if [ -f ${MODPATH}/system/framework/org.spoofing.apk ]; then
print_info " << backing up org.spoofing.apk"
cp ${MODPATH}/system/framework/org.spoofing.apk ${TMPDIR}/org.spoofing.apk
fi
if [ -d ${MODPATH}/logs ]; then
print_info " << backing up init.d script logs"
cp -r ${MODPATH}/logs ${TMPDIR}/logs
@ -825,18 +815,6 @@ magisk_install_postinst () {
print_info " << restoring logcats"
cp -r ${TMPDIR}/logcats ${MODPATH}/logcats
fi
if [ -f ${TMPDIR}/services.jar ]; then
print_info " << restoring patched services.jar"
mkdir -p ${MODPATH}/system/framework
cp ${TMPDIR}/services.jar ${MODPATH}/system/framework/services.jar
fi
if [ -f ${TMPDIR}/org.spoofing.apk ]; then
print_info " << restoring org.spoofing.apk"
mkdir -p ${MODPATH}/system/framework
cp ${TMPDIR}/org.spoofing.apk ${MODPATH}/system/framework/org.spoofing.apk
fi
}
magisk_install_finish () {