Don't hide app with uid < 10000
This commit is contained in:
parent
de4e26b488
commit
fd552e68a9
@ -57,7 +57,7 @@ class HideViewModel : BaseViewModel(), Queryable {
|
|||||||
val hides = Shell.su("magiskhide --ls").exec().out.map { HideTarget(it) }
|
val hides = Shell.su("magiskhide --ls").exec().out.map { HideTarget(it) }
|
||||||
val apps = pm.getInstalledApplications(0)
|
val apps = pm.getInstalledApplications(0)
|
||||||
.asSequence()
|
.asSequence()
|
||||||
.filter { it.enabled && !blacklist.contains(it.packageName) }
|
.filter { it.enabled && it.uid >= 10000 && !blacklist.contains(it.packageName) }
|
||||||
.map { HideAppInfo(it, pm) }
|
.map { HideAppInfo(it, pm) }
|
||||||
.map { createTarget(it, hides) }
|
.map { createTarget(it, hides) }
|
||||||
.filter { it.processes.isNotEmpty() }
|
.filter { it.processes.isNotEmpty() }
|
||||||
@ -112,7 +112,6 @@ class HideViewModel : BaseViewModel(), Queryable {
|
|||||||
companion object {
|
companion object {
|
||||||
private val blacklist by lazy { listOf(
|
private val blacklist by lazy { listOf(
|
||||||
packageName,
|
packageName,
|
||||||
"android",
|
|
||||||
"com.android.chrome",
|
"com.android.chrome",
|
||||||
"com.chrome.beta",
|
"com.chrome.beta",
|
||||||
"com.chrome.dev",
|
"com.chrome.dev",
|
||||||
|
Loading…
Reference in New Issue
Block a user