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

@ -1 +1 @@
Subproject commit b362c0ef3880a0044978de9a5207b4a50f7efc30
Subproject commit b4ecd93f1c55eef81b8973c3470af42992833019

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

@ -1 +1 @@
Subproject commit c66632227b69ed4ded45518852474592a4b3bca8
Subproject commit c912c192e0d03119a14d7b772caa5d77bc4b7999