mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 23:33:37 +00:00
Fix isolated process comparisons
This commit is contained in:
parent
94cc64c51b
commit
b76a3614da
@ -85,7 +85,7 @@ class AppProcessInfo(
|
|||||||
pm.getPackageArchiveInfo(info.sourceDir, flag) ?: return emptyList()
|
pm.getPackageArchiveInfo(info.sourceDir, flag) ?: return emptyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
val processSet = TreeSet<ProcessInfo>(compareBy{ it.name })
|
val processSet = TreeSet<ProcessInfo>(compareBy({ it.name }, { it.isIsolated }))
|
||||||
processSet += packageInfo.activities.toProcessList()
|
processSet += packageInfo.activities.toProcessList()
|
||||||
processSet += packageInfo.services.toProcessList()
|
processSet += packageInfo.services.toProcessList()
|
||||||
processSet += packageInfo.receivers.toProcessList()
|
processSet += packageInfo.receivers.toProcessList()
|
||||||
@ -106,6 +106,6 @@ data class ProcessInfo(
|
|||||||
val packageName: String,
|
val packageName: String,
|
||||||
var isEnabled: Boolean
|
var isEnabled: Boolean
|
||||||
) {
|
) {
|
||||||
val isIsolated get() = packageName == ISOLATED_MAGIC
|
val isIsolated = packageName == ISOLATED_MAGIC
|
||||||
val isAppZygote get() = name.endsWith("_zygote")
|
val isAppZygote = name.endsWith("_zygote")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user