add: APatch support (#4)

This commit adds support for APatch.
This commit is contained in:
Matt
2024-06-22 22:13:29 -04:00
committed by GitHub
parent 678d886343
commit 2047bdb1bf
17 changed files with 218 additions and 8 deletions

View File

@@ -145,6 +145,8 @@ DCL_HOOK_FUNC(int, unshare, int flags) {
if (g_ctx->flags[DO_REVERT_UNMOUNT]) {
if (g_ctx->info_flags & PROCESS_ROOT_IS_KSU) {
revert_unmount_ksu();
} else if (g_ctx->info_flags & PROCESS_ROOT_IS_APATCH){
revert_unmount_apatch();
} else if (g_ctx->info_flags & PROCESS_ROOT_IS_MAGISK) {
revert_unmount_magisk();
}