Make zygiskd ABI aware

This commit is contained in:
topjohnwu
2021-10-23 14:38:30 -07:00
parent 4194ac894c
commit 7496d51580
9 changed files with 61 additions and 26 deletions

View File

@@ -39,6 +39,7 @@ Advanced Options (Internal APIs):
--sqlite SQL exec SQL commands to Magisk database
--path print Magisk tmpfs mount path
--denylist ARGS denylist config CLI
--companion FD start zygisk root companion
Available applets:
)EOF");
@@ -127,6 +128,8 @@ int magisk_main(int argc, char *argv[]) {
return 0;
} else if (argc >= 3 && argv[1] == "--install-module"sv) {
install_module(argv[2]);
} else if (argc >= 3 && argv[1] == "--companion"sv) {
zygiskd(parse_int(argv[2]));
}
#if 0
/* Entry point for testing stuffs */