From 2d9550d5b96ff029061c100552ab28f0f9965890 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Fri, 20 Jan 2023 02:33:25 +0800 Subject: [PATCH] Modify remove fetch installed packages list log and only print for empty list in FrameworkHooker --- .../fankes/apperrorstracking/hook/entity/FrameworkHooker.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/fankes/apperrorstracking/hook/entity/FrameworkHooker.kt b/app/src/main/java/com/fankes/apperrorstracking/hook/entity/FrameworkHooker.kt index 6ee233a..073215f 100644 --- a/app/src/main/java/com/fankes/apperrorstracking/hook/entity/FrameworkHooker.kt +++ b/app/src/main/java/com/fankes/apperrorstracking/hook/entity/FrameworkHooker.kt @@ -53,7 +53,6 @@ import com.highcapable.yukihookapi.hook.entity.YukiBaseHooker import com.highcapable.yukihookapi.hook.factory.field import com.highcapable.yukihookapi.hook.factory.hasMethod import com.highcapable.yukihookapi.hook.factory.method -import com.highcapable.yukihookapi.hook.log.loggerD import com.highcapable.yukihookapi.hook.log.loggerE import com.highcapable.yukihookapi.hook.log.loggerI import com.highcapable.yukihookapi.hook.log.loggerW @@ -245,7 +244,7 @@ object FrameworkHooker : YukiBaseHooker() { else result }.sortedByDescending { it.lastUpdateTime } .forEach { add(AppInfoBean(name = context.appNameOf(it.packageName), packageName = it.packageName)) } - }.apply { loggerD(msg = "Fetched installed packages list, size $size") } + }.apply { if (size <= 0) loggerW(msg = "Fetched installed packages but got empty list") } } } ?: arrayListOf() }