mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 04:27:37 +00:00
Enable magiskhide by default
This commit is contained in:
parent
7cf4b819ae
commit
7b9be8369e
@ -702,16 +702,14 @@ void post_fs_data(int client) {
|
||||
bind_mount(HOSTSFILE, "/system/etc/hosts");
|
||||
}
|
||||
|
||||
// Start magiskhide if enabled
|
||||
// Enable magiskhide by default, only disable when set explicitly
|
||||
char *hide_prop = getprop(MAGISKHIDE_PROP);
|
||||
if (hide_prop) {
|
||||
if (strcmp(hide_prop, "1") == 0) {
|
||||
if (hide_prop == NULL || strcmp(hide_prop, "0") != 0) {
|
||||
pthread_t thread;
|
||||
xpthread_create(&thread, NULL, start_magisk_hide, NULL);
|
||||
pthread_detach(thread);
|
||||
}
|
||||
free(hide_prop);
|
||||
}
|
||||
|
||||
unblock:
|
||||
unblock_boot_process();
|
||||
|
Loading…
x
Reference in New Issue
Block a user