Skip to content

Commit

Permalink
Let core-only mode run hosts and magiskhide
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Jul 13, 2017
1 parent e33a5eb commit cf56d7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jni/daemon/bootstages.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void post_fs_data(int client) {

// Core only mode
if (access(DISABLEFILE, F_OK) == 0)
goto unblock;
goto core_only;

DIR *dir;
struct dirent *entry;
Expand Down Expand Up @@ -700,6 +700,7 @@ void post_fs_data(int client) {
LOGI("* Running module post-fs-data scripts\n");
exec_module_script("post-fs-data");

core_only:
// Systemless hosts
if (access(HOSTSFILE, F_OK) == 0) {
LOGI("* Enabling systemless hosts file support");
Expand Down

0 comments on commit cf56d7e

Please sign in to comment.