mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 22:07:38 +00:00
Support fixing Magisk environment
This commit is contained in:
parent
c0e2f44092
commit
c9ca42aaa9
2
app
2
app
@ -1 +1 @@
|
|||||||
Subproject commit 15ed3e52f2b096a5e86b4e245fc969c49f0446d1
|
Subproject commit 630f2b7d199808d54b57f22ae0d7794baed51590
|
@ -25,7 +25,7 @@ allprojects {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
compileSdkVersion = 27
|
compileSdkVersion = 27
|
||||||
buildToolsVersion = "28.0.0-rc1"
|
buildToolsVersion = "28.0.0-rc2"
|
||||||
supportLibVersion = "27.1.1"
|
supportLibVersion = "27.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,12 +629,15 @@ initialize:
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
xmkdirs(MIRRDIR "/bin", 0755);
|
xmkdirs(MIRRDIR "/bin", 0755);
|
||||||
|
xmkdirs(DATABIN, 0755);
|
||||||
bind_mount(DATABIN, MIRRDIR "/bin");
|
bind_mount(DATABIN, MIRRDIR "/bin");
|
||||||
|
|
||||||
LOGI("* Setting up internal busybox");
|
|
||||||
xmkdirs(BBPATH, 0755);
|
xmkdirs(BBPATH, 0755);
|
||||||
exec_command_sync(MIRRDIR "/bin/busybox", "--install", "-s", BBPATH, NULL);
|
if (access(MIRRDIR "/bin/busybox", X_OK) == 0) {
|
||||||
xsymlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
|
LOGI("* Setting up internal busybox");
|
||||||
|
exec_command_sync(MIRRDIR "/bin/busybox", "--install", "-s", BBPATH, NULL);
|
||||||
|
xsymlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
|
||||||
|
}
|
||||||
|
|
||||||
// uninstall
|
// uninstall
|
||||||
if (access(UNINSTALLER, F_OK) == 0) {
|
if (access(UNINSTALLER, F_OK) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user