Properly detect SysUI

This commit is contained in:
topjohnwu
2022-10-10 21:28:13 -07:00
parent 978216eade
commit c3b4678f6e
5 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ DCL_HOOK_FUNC(int, unshare, int flags) {
// For some unknown reason, unmounting app_process in SysUI can break.
// This is reproducible on the official AVD running API 26 and 27.
// Simply avoid doing any unmounts for SysUI to avoid potential issues.
g_ctx->process && g_ctx->process != "com.android.systemui"sv) {
(g_ctx->info_flags & PROCESS_IS_SYS_UI)) {
if (g_ctx->flags[DO_REVERT_UNMOUNT]) {
revert_unmount();
} else {