Proper FBE support

This commit is contained in:
topjohnwu
2017-09-15 18:05:42 +08:00
parent b805b96e16
commit 9a0b26e0b0
4 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,6 @@ LOCAL_SRC_FILES := \
su/su.c \
su/activity.c \
su/db.c \
su/misc.c \
su/pts.c \
su/su_daemon.c \
su/su_socket.c

View File

@@ -581,6 +581,8 @@ void post_fs_data(int client) {
bin_path = "/cache/data_bin";
else if (access("/data/data/com.topjohnwu.magisk/install", F_OK) == 0)
bin_path = "/data/data/com.topjohnwu.magisk/install";
else if (access("/data/user_de/0/com.topjohnwu.magisk/install", F_OK) == 0)
bin_path = "/data/user_de/0/com.topjohnwu.magisk/install";
if (bin_path) {
exec_command_sync("rm", "-rf", DATABIN, NULL);
exec_command_sync("cp", "-r", bin_path, DATABIN, NULL);

2
jni/su

Submodule jni/su updated: c66632227b...c912c192e0