diff --git a/build.gradle.kts b/build.gradle.kts index 35edf5d..90fe74f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -35,8 +35,8 @@ fun String.execute(currentWorkingDir: File = file("./")): String { val minSdkVer by extra(24) val targetSdkVer by extra(33) -val appVerName by extra("3.0.3-Beta") -val serviceVerCode by extra(85) +val appVerName by extra("3.0.4-Beta") +val serviceVerCode by extra(86) val minBackupVerCode by extra(65) val androidSourceCompatibility = JavaVersion.VERSION_11 diff --git a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/hook/ZygoteArgsHook.kt b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/hook/ZygoteArgsHook.kt index 9e08eec..3908321 100644 --- a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/hook/ZygoteArgsHook.kt +++ b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/hook/ZygoteArgsHook.kt @@ -5,6 +5,7 @@ import android.os.Build import com.github.kyuubiran.ezxhelper.utils.findMethod import com.github.kyuubiran.ezxhelper.utils.hookBefore import de.robv.android.xposed.XC_MethodHook +import icu.nullptr.hidemyapplist.common.Constants import icu.nullptr.hidemyapplist.xposed.HMAService import icu.nullptr.hidemyapplist.xposed.logE import icu.nullptr.hidemyapplist.xposed.logI @@ -26,6 +27,7 @@ class ZygoteArgsHook(private val service: HMAService) : IFrameworkHook { }.hookBefore { param -> runCatching { val uid = param.args[2] as Int + if (uid == Constants.UID_SYSTEM) return@hookBefore val apps = service.pms.getPackagesForUid(uid) ?: return@hookBefore for (app in apps) { if (service.isHookEnabled(app)) {