Fix uninstaller and build with 'all'

This commit is contained in:
topjohnwu
2017-06-04 00:03:36 +08:00
parent 1b6b3b2cd5
commit 17684ed8a8
5 changed files with 196 additions and 34 deletions

View File

@@ -492,7 +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", UNBLOCKFILE, NULL };
char *const command[] = { "sh", "-c", "BOOTMODE=true sh " UNBLOCKFILE, NULL };
run_command(NULL, "/system/bin/sh", command);
return;
}