mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 08:17:40 +00:00
core: remove remaining legacy workarounds/leftovers
This commit is contained in:
parent
0b41cd8564
commit
615ad0cc5a
@ -341,13 +341,10 @@ static bool magisk_env() {
|
||||
|
||||
// Remove stuffs
|
||||
rm_rf("/cache/data_adb");
|
||||
rm_rf("/data/adb/modules/.core");
|
||||
unlink("/data/magisk.img");
|
||||
unlink("/data/magisk_debug.log");
|
||||
|
||||
// Backwards compatibility
|
||||
symlink("./.magisk", "/sbin/.core");
|
||||
symlink("./modules", MAGISKTMP "/img");
|
||||
|
||||
// Directories in tmpfs overlay
|
||||
xmkdir(MIRRDIR, 0);
|
||||
xmkdir(BLOCKDIR, 0);
|
||||
@ -431,10 +428,6 @@ static void prepare_modules() {
|
||||
rm_rf(MODULEUPGRADE);
|
||||
}
|
||||
bind_mount(MIRRDIR MODULEROOT, MODULEMNT, false);
|
||||
// Legacy support
|
||||
xmkdir(LEGACYCORE, 0755);
|
||||
symlink(SECURE_DIR "/post-fs-data.d", LEGACYCORE "/post-fs-data.d");
|
||||
symlink(SECURE_DIR "/service.d", LEGACYCORE "/service.d");
|
||||
|
||||
restorecon();
|
||||
chmod(SECURE_DIR, 0700);
|
||||
|
@ -19,12 +19,8 @@
|
||||
#define MODULEUPGRADE SECURE_DIR "/modules_update"
|
||||
#define DATABIN SECURE_DIR "/magisk"
|
||||
#define MAGISKDB SECURE_DIR "/magisk.db"
|
||||
#define BOOTCOUNT SECURE_DIR "/.boot_count"
|
||||
#define MANAGERAPK DATABIN "/magisk.apk"
|
||||
|
||||
// Legacy crap
|
||||
#define LEGACYCORE MODULEROOT "/.core"
|
||||
|
||||
constexpr const char *applet_names[] = { "su", "resetprop", "magiskhide", nullptr };
|
||||
|
||||
// Multi-call entrypoints
|
||||
|
Loading…
x
Reference in New Issue
Block a user