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

CommonInstaller: error-out when nanodroid_forcesystem is true, but we flash from Magisk Manager

This commit is contained in:
Christopher Roy Bratusek 2020-10-17 21:34:27 +02:00
parent 343d2bddc4
commit 262e03fdae

View File

@ -740,6 +740,10 @@ detect_arch () {
detect_mode () {
case "${nanodroid_forcesystem}" in
1 )
if ${BOOTMODE}; then
print_info "nanodroid_forcesystem set to true"
error "can't install to /system from Magisk Manager"
fi
MODE_DETECT=forced
MODE=SYSTEM
;;