Skip to content

Commit

Permalink
Copy busybox instead of bind mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Mar 22, 2019
1 parent 2a40cb6 commit ea55532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native/jni/core/bootstages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ static bool magisk_env() {
if (access(DATABIN "/busybox", X_OK) == -1)
return false;
LOGI("* Setting up internal busybox");
close(xopen(BBPATH "/busybox", O_RDONLY | O_CREAT | O_CLOEXEC));
bind_mount(DATABIN "/busybox", BBPATH "/busybox", false);
cp_afc(DATABIN "/busybox", BBPATH "/busybox");
exec_command_sync(BBPATH "/busybox", "--install", "-s", BBPATH);

// Disable/remove magiskhide, resetprop, and modules
Expand Down

0 comments on commit ea55532

Please sign in to comment.