mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 17:07:47 +00:00
Add magisk binary mirror
This commit is contained in:
parent
2a7e2c70b5
commit
44adccc147
@ -396,14 +396,17 @@ static void mount_mirrors() {
|
||||
symlink(MIRRDIR "/system/vendor", MIRRDIR "/vendor");
|
||||
LOGI("link: %s -> %s\n", MIRRDIR "/system/vendor", MIRRDIR "/vendor");
|
||||
}
|
||||
mkdir_p(MIRRDIR "/bin", 0755);
|
||||
bind_mount(DATABIN, MIRRDIR "/bin");
|
||||
}
|
||||
|
||||
static void link_busybox() {
|
||||
mkdir_p(BBPATH, 0755);
|
||||
char *const command[] = { "busybox", "--install", "-s", BBPATH, NULL};
|
||||
int pid = run_command(0, NULL, NULL, BBBIN, command);
|
||||
int pid = run_command(0, NULL, NULL, MIRRDIR "/bin/busybox", command);
|
||||
if (pid != -1)
|
||||
waitpid(pid, NULL, 0);
|
||||
symlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
|
||||
}
|
||||
|
||||
/****************
|
||||
|
@ -35,7 +35,6 @@
|
||||
#define MAINIMG "/data/magisk.img"
|
||||
#define DATABIN "/data/magisk"
|
||||
#define MANAGERAPK DATABIN "/magisk.apk"
|
||||
#define BBBIN DATABIN "/busybox"
|
||||
#define MAGISKTMP "/dev/magisk"
|
||||
#define MIRRDIR MAGISKTMP "/mirror"
|
||||
#define DUMMDIR MAGISKTMP "/dummy"
|
||||
|
Loading…
x
Reference in New Issue
Block a user