Disable native systemless hosts, add built-in systemless hosts module

This commit is contained in:
topjohnwu
2018-11-15 13:57:41 -05:00
parent 96b93bd876
commit ee4548230b
37 changed files with 145 additions and 148 deletions

View File

@ -752,12 +752,6 @@ void startup() {
}
static void core_only() {
// Systemless hosts
if (access(HOSTSFILE, F_OK) == 0) {
LOGI("* Enabling systemless hosts file support");
bind_mount(HOSTSFILE, "/system/etc/hosts");
}
auto_start_magiskhide();
unblock_boot_process();
}

View File

@ -18,7 +18,6 @@
#define BBPATH MAGISKTMP "/busybox"
#define MOUNTPOINT MAGISKTMP "/img"
#define COREDIR MOUNTPOINT "/.core"
#define HOSTSFILE COREDIR "/hosts"
#define SECURE_DIR "/data/adb"
#define MAINIMG SECURE_DIR "/magisk.img"
#define DATABIN SECURE_DIR "/magisk"