Significantly better AVD support

This commit is contained in:
topjohnwu
2021-08-26 03:09:56 -07:00
parent 0cd99712fa
commit 4771c2810b
8 changed files with 103 additions and 55 deletions

View File

@@ -91,6 +91,11 @@ static void handle_request_sync(int client, int code) {
case START_DAEMON:
setup_logfile(true);
break;
case STOP_DAEMON:
magiskhide_handler(-1, nullptr);
write_int(client, 0);
// Terminate the daemon!
exit(0);
}
}
@@ -120,6 +125,7 @@ static void handle_request(int client) {
case SQLITE_CMD:
case GET_PATH:
case MAGISKHIDE:
case STOP_DAEMON:
if (!is_root) {
write_int(client, ROOT_REQUIRED);
goto done;