mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-19 20:18:29 +00:00
parent
93eb277a88
commit
605eae21bc
@ -362,7 +362,10 @@ static void get_process_info(int client, const sock_cred *cred) {
|
||||
send_fds(client, fds.data(), fds.size());
|
||||
}
|
||||
|
||||
// The following will only happen for system_server
|
||||
if (uid != 1000 || process != "system_server")
|
||||
return;
|
||||
|
||||
// Collect module status from system_server
|
||||
int slots = read_int(client);
|
||||
int id = 0;
|
||||
for (int i = 0; i < slots; ++i) {
|
||||
|
@ -456,7 +456,6 @@ void HookContext::nativeSpecializeAppProcess_pre() {
|
||||
} else if (fd >= 0) {
|
||||
run_modules_pre(module_fds);
|
||||
}
|
||||
write_int(fd, 0);
|
||||
close(fd);
|
||||
|
||||
close_fds();
|
||||
|
Loading…
x
Reference in New Issue
Block a user