manager: fix SuperUser list key conflicts

This commit is contained in:
tiann
2022-12-11 00:08:35 +08:00
parent 39188606dc
commit 86b384eefc

View File

@@ -102,7 +102,7 @@ private fun getAppList(context: Context): List<SuperUserData> {
val defaultDenyList = denyList.toMutableList()
val shellUid = if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) android.os.Process.SHELL_UID else 2000;
if (!allowList.contains(shellUid)) {
if (!allowList.contains(shellUid) && !denyList.contains(shellUid)) {
// shell uid is not in allow list, add it to default deny list
defaultDenyList.add(shellUid)
}