chore: update target sdk to 35

This commit is contained in:
2024-11-10 21:42:06 +08:00
parent 32855f4b61
commit 0facd0bcbf
2 changed files with 4 additions and 2 deletions

View File

@@ -263,7 +263,9 @@ object FrameworkHooker : YukiBaseHooker() {
* 是否为系统应用
* @return [Boolean]
*/
fun PackageInfo.isSystemApp() = (applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM) != 0
fun PackageInfo.isSystemApp() = applicationInfo?.let {
(it.flags and ApplicationInfo.FLAG_SYSTEM) != 0
} ?: false
when (filters.type) {
AppFiltersType.USER -> result.filter { it.isSystemApp().not() }
AppFiltersType.SYSTEM -> result.filter { it.isSystemApp() }