Patcher: fix detection whether ROM has native signature spoofing

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent 2163d0a462
commit 190c1bfb8c

@ -12,6 +12,9 @@
* don't try to start `permissions` init script, removed since ages
* applies to: Full package
* Patcher
* fix detection whether ROM has native signature spoofing
### General Changes
* Installer

@ -39,14 +39,17 @@ elif [ -f /data/adb/NanoDroid_Patched ]; then
ui_print " !! /data/adb/NanoDroid_Patched exists"
ui_print " !! if you want to force patching, then"
error " remove this file and try again"
elif search_fake_package_signature; then
error " ROM has native signature spoofing already!"
fi
setup_patcher
detect_sdk
detect_arch
if search_fake_package_signature; then
error " ROM has native signature spoofing already!"
fi
detect_odex
[ -f ${MAGISK_IMG} ] && magisk_setup

Loading…
Cancel
Save