Support execute commands in magiskhide env

Credits to #1454
This commit is contained in:
topjohnwu
2019-06-04 22:27:19 -07:00
parent 9f8d4e1022
commit c1602d2554
3 changed files with 15 additions and 0 deletions

View File

@ -41,7 +41,10 @@ void hide_daemon(int pid) {
tgkill(pid, pid, SIGCONT);
_exit(0);
});
hide_unmount(pid);
}
void hide_unmount(int pid) {
if (switch_mnt_ns(pid))
return;