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

Patcher: fix detection whether ROM has native signature spoofing

This commit is contained in:
Christopher Roy Bratusek 2019-01-06 21:20:48 +01:00
parent 2163d0a462
commit 190c1bfb8c
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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