mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-28 01:29:45 +00:00
Significantly better AVD support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user