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) {
// uninstaller
if (access(UNINSTALLER, F_OK) == 0) {
close(open(UNBLOCKFILE, O_RDONLY | O_CREAT));
char *const command[] = { "sh", "-c", "BOOTMODE=true sh " UNBLOCKFILE, NULL };
run_command(NULL, "/system/bin/sh", command);
system("(BOOTMODE=true sh " UNINSTALLER ") &");
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