mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-12 22:32:10 +00:00
Rename sepolicy.rules -> rules
This commit is contained in:
@@ -43,10 +43,10 @@ data class LocalModule(
|
||||
set(enable) {
|
||||
if (enable) {
|
||||
disableFile.delete()
|
||||
Shell.cmd("copy_sepolicy_rules").submit()
|
||||
Shell.cmd("copy_rules").submit()
|
||||
} else {
|
||||
!disableFile.createNewFile()
|
||||
Shell.cmd("copy_sepolicy_rules").submit()
|
||||
Shell.cmd("copy_rules").submit()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,10 +56,10 @@ data class LocalModule(
|
||||
if (remove) {
|
||||
if (updateFile.exists()) return
|
||||
removeFile.createNewFile()
|
||||
Shell.cmd("copy_sepolicy_rules").submit()
|
||||
Shell.cmd("copy_rules").submit()
|
||||
} else {
|
||||
removeFile.delete()
|
||||
Shell.cmd("copy_sepolicy_rules").submit()
|
||||
Shell.cmd("copy_rules").submit()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ direct_install() {
|
||||
rm -f $1/new-boot.img
|
||||
fix_env $1
|
||||
run_migrations
|
||||
copy_sepolicy_rules
|
||||
copy_rules
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user