Commit b9a012c6 authored by topjohnwu's avatar topjohnwu

Fix execution in Magisk binary for uninstallation

parent 17684ed8
...@@ -492,8 +492,7 @@ void post_fs_data(int client) { ...@@ -492,8 +492,7 @@ void post_fs_data(int client) {
// uninstaller // uninstaller
if (access(UNINSTALLER, F_OK) == 0) { if (access(UNINSTALLER, F_OK) == 0) {
close(open(UNBLOCKFILE, O_RDONLY | O_CREAT)); close(open(UNBLOCKFILE, O_RDONLY | O_CREAT));
char *const command[] = { "sh", "-c", "BOOTMODE=true sh " UNBLOCKFILE, NULL }; system("(BOOTMODE=true sh " UNINSTALLER ") &");
run_command(NULL, "/system/bin/sh", command);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment