mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-11 04:34:40 -08:00
Refactor sepolicy.rules resolve
We resolve available partitions for sepolicy.rules when patching boot and bind mount the partition by magiskinit. For older devices, the previous logic won't work because the part name is never readable. Co-authored-by: topjohnwu <topjohnwu@gmail.com>
This commit is contained in:
@@ -83,6 +83,9 @@ int main(int argc, char *argv[]) {
|
||||
if (name == "magisk"sv)
|
||||
return magisk_proxy_main(argc, argv);
|
||||
|
||||
if (name == "magiskinit"sv && argc == 2 && argv[1] == "--rules-device"sv)
|
||||
return rust::print_rules_device();
|
||||
|
||||
if (getpid() != 1)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user