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

@@ -8,7 +8,7 @@ kotlin.incremental.useClasspathSnapshot=true
project.name=AppErrorsTracking
project.android.compileSdk=35
project.android.minSdk=24
project.android.targetSdk=34
project.android.targetSdk=35
project.android.ndk.version="24.0.8215888"
project.android.cmake.version="3.22.1"
project.module-app.packageName=com.fankes.apperrorstracking

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() }