Skip to content

Commit

Permalink
chore: update target sdk to 35
Browse files Browse the repository at this point in the history
  • Loading branch information
fankes committed Nov 10, 2024
1 parent 32855f4 commit 0facd0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down

0 comments on commit 0facd0b

Please sign in to comment.