refactor(logging): 统一日志输出规范,移除冗余异常打印

- 将所有 e.printStackTrace() 替换为 Log.e(TAG, ...) 带异常堆栈
- 统一日志 TAG 常量定义,消除硬编码字符串标签
- GsonUtils 新增安全 JSON 解析工具方法(optJsonObject/optInt/optString 等)
- CacheEntry 引入单调时钟判断过期,修复系统时间篡改导致缓存 TTL 失真
- KVStore 将 catch Throwable 收窄为 catch Exception
- 移除 BaseApplication 中 RunningAppManager 旧版本兼容逻辑
- ApkUtils 使用 GsonUtils.optString 安全读取 MD5 字段
This commit is contained in:
tongtong committed 2026-11-21 09:42:06 +08:00
1 parent d643f7980e
commit 5f8d192b4e
51 files changed
+1021 -929

No files matched your search

+2 -2
View File
@@ -125,11 +125,11 @@
<service
android:name=".runtime.service.main.MainService"
android:enabled="true"
android:exported="true" />
android:exported="false" />
<service
android:name=".runtime.service.LogcatService"
android:enabled="true"
android:exported="true" />
android:exported="false" />
<service android:name=".runtime.service.DownloadService" />