Fix copySepolicyRules logic

This commit is contained in:
topjohnwu 2021-01-16 21:45:45 -08:00
parent 67e2a4720e
commit b5b62e03af

View File

@ -361,9 +361,10 @@ abstract class MagiskInstallImpl : KoinComponent {
}
private fun copySepolicyRules(): Boolean {
if (Info.remote.magisk.versionCode >= 21100) return true
// Copy existing rules for migration
"copy_sepolicy_rules".sh()
if (Info.remote.magisk.versionCode >= 21100) {
// Copy existing rules for migration
"copy_sepolicy_rules".sh()
}
return true
}