refactor(utils): 清理未使用的工具类和方法

- 删除整个 AppsManagerUtils、AppUpdateInfo、ForegroundAppUtil 类
- 移除 ApkUtils 中未使用的方法,包括 getRootAhth、openApp、installApkInSilence、addShortcut、getTaskPackname、queryFilterAppInfo、getAppIcon 等
- 移除 CacheUtils 中未使用的 getApplicationCache 方法和 PackageStatsObserver 内部类
- 移除 CXAESUtil 中未使用的加解密及文件操作方法
- 将 StringUtils.join 替换为 String.join 以消除自定义依赖
- 清理各文件中未使用的 import 语句和冗余字段
This commit is contained in:
tongtong committed 2026-11-07 15:13:29 +08:00
1 parent cf1dfe64df
commit df8a7bc153
22 files changed
+6 -2803

No files matched your search

@@ -29,7 +29,6 @@ import com.fuying.sn.utils.ApkUtils;
import com.fuying.sn.utils.FileUtils;
import com.fuying.sn.utils.JgyUtils;
import com.fuying.sn.utils.SPUtils;
import com.fuying.sn.utils.StringUtils;
import com.fuying.sn.utils.Utils;
import com.google.gson.JsonObject;
import com.tencent.mmkv.MMKV;
@@ -580,7 +579,7 @@ public final class AppPolicySync {
List<AppAndWhiteBean> appAndWhiteList = baseResponse.data;
if (appAndWhiteList != null) {
List<String> pkgList = appAndWhiteList.stream().map(AppAndWhiteBean::getApp_package).collect(Collectors.toList());
String pkgString = StringUtils.join(",", pkgList);
String pkgString = String.join(",", pkgList);
mMMKV.encode(CommonConfig.BUILT_IN_APPS, pkgString);
Log.e("getAppAndWhite", "onNext: " + pkgString);
}