Fix SYSTEM_ROOT not passed to boot patch

This commit is contained in:
LoveSy 2023-03-03 15:29:59 +08:00 committed by John Wu
parent c279e08c88
commit b6ea5b8984
2 changed files with 2 additions and 1 deletions

View File

@ -366,6 +366,7 @@ abstract class MagiskInstallImpl protected constructor(
"KEEPVERITY=${Config.keepVerity} " +
"PATCHVBMETAFLAG=${Config.patchVbmeta} " +
"RECOVERYMODE=${Config.recovery} " +
"SYSTEM_ROOT=${Info.isSAR} " +
"sh boot_patch.sh $srcBoot")
if (!cmds.sh().isSuccess)

View File

@ -22,7 +22,7 @@ android {
ndkBuild {
// Pass arguments to ndk-build.
arguments(
"B_MAGISK=1", "B_INIT=1", "B_BOOT=1", "B_TEST=1", "B_POLICY=1", "B_PRELOAD=1"
"B_MAGISK=1", "B_INIT=1", "B_BOOT=1", "B_TEST=1", "B_POLICY=1", "B_PRELOAD=1", "B_PROP=1"
)
}
}