Add CLI to detect MagiskHide status

This commit is contained in:
topjohnwu
2018-11-16 00:37:41 -05:00
parent 572e078d87
commit 3aad9d8166
5 changed files with 58 additions and 44 deletions

View File

@@ -29,7 +29,7 @@ extern char *system_block, *vendor_block, *magiskloop;
static void term_thread(int) {
LOGD("proc_monitor: running cleanup\n");
hide_list.clear(true);
hide_enabled = 0;
hide_enabled = false;
close(sockfd);
sockfd = -1;
pthread_mutex_destroy(&list_lock);