Commit ea55532e authored by topjohnwu's avatar topjohnwu

Copy busybox instead of bind mounting

parent 2a40cb60
...@@ -422,8 +422,7 @@ static bool magisk_env() { ...@@ -422,8 +422,7 @@ static bool magisk_env() {
if (access(DATABIN "/busybox", X_OK) == -1) if (access(DATABIN "/busybox", X_OK) == -1)
return false; return false;
LOGI("* Setting up internal busybox"); LOGI("* Setting up internal busybox");
close(xopen(BBPATH "/busybox", O_RDONLY | O_CREAT | O_CLOEXEC)); cp_afc(DATABIN "/busybox", BBPATH "/busybox");
bind_mount(DATABIN "/busybox", BBPATH "/busybox", false);
exec_command_sync(BBPATH "/busybox", "--install", "-s", BBPATH); exec_command_sync(BBPATH "/busybox", "--install", "-s", BBPATH);
// Disable/remove magiskhide, resetprop, and modules // Disable/remove magiskhide, resetprop, and modules
......
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