You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Make private applets hidden
This commit is contained in:
@@ -46,17 +46,16 @@ int app_process_main(int argc, char *argv[]) {
|
||||
fcntl(fds[1], F_SETFD, 0);
|
||||
snprintf(buf, sizeof(buf), "%d", fds[1]);
|
||||
#if defined(__LP64__)
|
||||
execlp("magisk", "zygisk", "passthrough", buf, "1", (char *) nullptr);
|
||||
execlp("magisk", "", "zygisk", "passthrough", buf, "1", (char *) nullptr);
|
||||
#else
|
||||
execlp("magisk", "zygisk", "passthrough", buf, "0", (char *) nullptr);
|
||||
execlp("magisk", "", "zygisk", "passthrough", buf, "0", (char *) nullptr);
|
||||
#endif
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
close(fds[1]);
|
||||
if (read_int(fds[0]) != 0) {
|
||||
fprintf(stderr, "Failed to connect magisk daemon, "
|
||||
"try umount %s or reboot.\n", argv[0]);
|
||||
fprintf(stderr, "Failed to connect magiskd, try umount %s or reboot.\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
int app_proc_fd = recv_fd(fds[0]);
|
||||
@@ -131,8 +130,8 @@ static void zygiskd(int socket) {
|
||||
struct stat s{};
|
||||
if (fstat(fd, &s) == 0 && S_ISREG(s.st_mode)) {
|
||||
android_dlextinfo info {
|
||||
.flags = ANDROID_DLEXT_USE_LIBRARY_FD,
|
||||
.library_fd = fd,
|
||||
.flags = ANDROID_DLEXT_USE_LIBRARY_FD,
|
||||
.library_fd = fd,
|
||||
};
|
||||
if (void *h = android_dlopen_ext("/jit-cache", RTLD_LAZY, &info)) {
|
||||
*(void **) &entry = dlsym(h, "zygisk_companion_entry");
|
||||
|
||||
Reference in New Issue
Block a user