Mount sepolicy.rules for migration

This commit is contained in:
LoveSy
2023-03-12 03:44:59 +08:00
committed by John Wu
parent 84e1bd7bc3
commit 1c2fcd14b5
4 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ int magisk_main(int argc, char *argv[]) {
} else if (argc >= 3 && argv[1] == "--install-module"sv) {
install_module(argv[2]);
} else if (argv[1] == "--rules-device"sv) {
auto dev = find_rules_device(parse_mount_info("self"));
auto dev = find_rules_device();
if (dev) printf("%u:%u\n", major(dev), minor(dev));
return dev ? 0 : 1;
}