mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 14:58:29 +00:00
Handle /cache/su.img
This commit is contained in:
parent
b4cfe6e9c0
commit
1f84626278
@ -397,7 +397,11 @@ if ($SUPERSU); then
|
|||||||
ui_print "- SuperSU patched boot detected!"
|
ui_print "- SuperSU patched boot detected!"
|
||||||
ui_print "- Adding auto patch script for SuperSU"
|
ui_print "- Adding auto patch script for SuperSU"
|
||||||
cp -af $INSTALLER/common/custom_ramdisk_patch.sh /data/custom_ramdisk_patch.sh
|
cp -af $INSTALLER/common/custom_ramdisk_patch.sh /data/custom_ramdisk_patch.sh
|
||||||
SUIMG=/data/su.img
|
if (is_mounted /data); then
|
||||||
|
SUIMG=/data/su.img
|
||||||
|
else
|
||||||
|
SUIMG=/cache/su.img
|
||||||
|
fi
|
||||||
mount_image $SUIMG /su
|
mount_image $SUIMG /su
|
||||||
if (! is_mounted /su); then
|
if (! is_mounted /su); then
|
||||||
ui_print "! SU image mount failed..."
|
ui_print "! SU image mount failed..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user