mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
chore: update target sdk to 35
This commit is contained in:
@@ -8,7 +8,7 @@ kotlin.incremental.useClasspathSnapshot=true
|
|||||||
project.name=AppErrorsTracking
|
project.name=AppErrorsTracking
|
||||||
project.android.compileSdk=35
|
project.android.compileSdk=35
|
||||||
project.android.minSdk=24
|
project.android.minSdk=24
|
||||||
project.android.targetSdk=34
|
project.android.targetSdk=35
|
||||||
project.android.ndk.version="24.0.8215888"
|
project.android.ndk.version="24.0.8215888"
|
||||||
project.android.cmake.version="3.22.1"
|
project.android.cmake.version="3.22.1"
|
||||||
project.module-app.packageName=com.fankes.apperrorstracking
|
project.module-app.packageName=com.fankes.apperrorstracking
|
||||||
|
@@ -263,7 +263,9 @@ object FrameworkHooker : YukiBaseHooker() {
|
|||||||
* 是否为系统应用
|
* 是否为系统应用
|
||||||
* @return [Boolean]
|
* @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) {
|
when (filters.type) {
|
||||||
AppFiltersType.USER -> result.filter { it.isSystemApp().not() }
|
AppFiltersType.USER -> result.filter { it.isSystemApp().not() }
|
||||||
AppFiltersType.SYSTEM -> result.filter { it.isSystemApp() }
|
AppFiltersType.SYSTEM -> result.filter { it.isSystemApp() }
|
||||||
|
Reference in New Issue
Block a user