From fbe5674388b4e7de80206cd015e1fe2be5361872 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 12 Apr 2019 19:39:06 +0200 Subject: [PATCH] add org.spoofing --- ChangeLog.md | 2 ++ patcher/CommonPatcher | 34 +++++++++++----------- patcher/dexpatcher/70-nanodroidpatcher.sh | 1 - patcher/dexpatcher/org.spoofing.apk | Bin 0 -> 8159 bytes 4 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 patcher/dexpatcher/org.spoofing.apk diff --git a/ChangeLog.md b/ChangeLog.md index 31dc065..6404acb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -20,6 +20,8 @@ * Patcher * support installing patched services.jar into Magisk 19.0+ modules + * install org.spoofing system pseudo-app after patching @Vavun + * this is adds ROM wide *cosmetic* information about Signature Spoofing (so it shows up in the App Permissions) * Uninstaller * support uninstalling Magisk 19.0+ modules diff --git a/patcher/CommonPatcher b/patcher/CommonPatcher index 30c4b62..098aefd 100644 --- a/patcher/CommonPatcher +++ b/patcher/CommonPatcher @@ -250,8 +250,6 @@ detect_arch () { detect_sdk () { SDK_VERSION=$(grep_prop ro.build.version.sdk) - - [ "${SDK_VERSION}" -gt 28 ] && \ error "Android versions beyond Pie are not yet supported" @@ -408,20 +406,20 @@ call_dalvikvm () { deodex_vdex () { ui_print " >> deodexing services.jar [VDEX]" - cp /system/framework/oat/${ARCH}/services.vdex \ - ${BASEDIR}/services.vdex || \ - error "failed to copy services.vdex" - - ${V_EX} -i ${BASEDIR}/services.vdex \ - --ignore-crc-error --debug=4 || \ - error "failed to deodex services.vdex" - - mv ${BASEDIR}/services.apk_classes.dex ${BASEDIR}/classes.dex || \ - error "failed to deodex services.vdex" + cp /system/framework/oat/${ARCH}/services.vdex \ + ${BASEDIR}/services.vdex || \ + error "failed to copy services.vdex" - ${ZIPB} -j "${BASEDIR}/services.jar" \ - "${BASEDIR}/classes.dex" || \ - error "zip failed" + ${V_EX} -i ${BASEDIR}/services.vdex \ + --ignore-crc-error --debug=4 || \ + error "failed to deodex services.vdex" + + mv ${BASEDIR}/services.apk_classes.dex ${BASEDIR}/classes.dex || \ + error "failed to deodex services.vdex" + + ${ZIPB} -j "${BASEDIR}/services.jar" \ + "${BASEDIR}/classes.dex" || \ + error "zip failed" } deodex_odex () { @@ -540,9 +538,11 @@ install_services () { ui_print " << installing patched files to: ${install_path}" mkdir -p "${install_path}/system/framework" - cp ${BASEDIR}/services.jar "${install_path}/system/framework" \ + cp ${BASEDIR}/services.jar "${install_path}/system/framework/" \ || error "failed to install services.jar" + cp "${BASEDIR}/org.spoofing.apk" "${install_path}/system/framework/" + touch /data/adb/NanoDroid_Patched } @@ -567,7 +567,7 @@ install_addond () { hook_4.1-6.0_services.jar.dex hook_7.0-9.0_services.jar.dex \ baksmali_23.dex baksmali_25.dex baksmali_26.dex \ smali_23.dex smali_25.dex smali_26.dex \ - magic.mgc; do + magic.mgc org.spoofing.apk; do cp "${BASEDIR}/${file}" ${PATCHER_ADDOND_DATA}/ done diff --git a/patcher/dexpatcher/70-nanodroidpatcher.sh b/patcher/dexpatcher/70-nanodroidpatcher.sh index be4c301..660c6ae 100644 --- a/patcher/dexpatcher/70-nanodroidpatcher.sh +++ b/patcher/dexpatcher/70-nanodroidpatcher.sh @@ -118,4 +118,3 @@ case "${1}" in NanoDroidPatcher ;; esac - diff --git a/patcher/dexpatcher/org.spoofing.apk b/patcher/dexpatcher/org.spoofing.apk new file mode 100644 index 0000000000000000000000000000000000000000..7a62eac1dd475d20f2aa9428a1d2c0ab72fb1fde GIT binary patch literal 8159 zcmeHMc|6t6*Z;WI$gU{cP4?v?vS-Os*}2MIU0getd#zEnY}t}jBwI=-`~549W!U<%$fI`&zU(hb4?8>spuhy4uYO%CK@m9 z(wntlfFPKdAPB-^2{?beBbI=|;0cZhXd}6W0<=&-Jdh7H1Z@Ikasrh;Yh{p20IaWR``~cSZr(0Pw7-uJ4)2E) zHO6@3bnrMgCn-~mpQ9@lF9vaP5@0c;56000M3U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