You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
randomize init control socket & add shortcut (/data/adb/modules/zygisksu/bin/zygisk-ctl)
This commit is contained in:
@@ -27,18 +27,21 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
} else if (argc >= 3 && argv[1] == "ctl"sv) {
|
||||
if (argv[2] == "start"sv) {
|
||||
send_control_command(START);
|
||||
} else if (argv[2] == "stop"sv) {
|
||||
send_control_command(STOP);
|
||||
} else if (argv[2] == "exit"sv) {
|
||||
send_control_command(EXIT);
|
||||
} else {
|
||||
printf("Usage: %s ctl start|stop|exit\n", argv[0]);
|
||||
return 1;
|
||||
} else if (argc >= 2 && argv[1] == "ctl"sv) {
|
||||
if (argc == 3) {
|
||||
if (argv[2] == "start"sv) {
|
||||
send_control_command(START);
|
||||
return 0;
|
||||
} else if (argv[2] == "stop"sv) {
|
||||
send_control_command(STOP);
|
||||
return 0;
|
||||
} else if (argv[2] == "exit"sv) {
|
||||
send_control_command(EXIT);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
printf("Usage: %s ctl start|stop|exit\n", argv[0]);
|
||||
return 1;
|
||||
} else {
|
||||
LOGE("usage: %s monitor | trace <pid> | ctl <command>", argv[0]);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user