refactor(app): 统一工具类并简化服务架构

- 移除 GuardService、StepService、ControlPanelService,替换为 SocketService
- 将 QR 码生成从 Utils 迁移到 BitmapUtils
- 将缓存目录选择逻辑统一到 FileUtils.getCacheFileDir
- 将 ServiceAliveUtils、NetStateUtils 合并到 SystemUtils
- 将 CacheUtils 同步清理替换为 ApkUtils.cleanApplicationUserDataAsync
- 用 EncryptUtils 替代自定义 MD5Util
- 重写 catchException 支持主线程兜底循环与子线程 Bugly 上报
- 移除 RunningAppManager 中未使用的 killBackgroundProcesses 方法
- 移除 ControlManager 中冗余的 hideSystemSettingAPP 调用
- MyGlideModule 重命名为 BaseGlideModule
This commit is contained in:
tongtong committed 2026-11-07 17:55:56 +08:00
1 parent df8a7bc153
commit a972ce7b89
46 files changed
+1583 -1812

No files matched your search

+7 -23
View File
@@ -119,9 +119,9 @@
</intent-filter>
</activity>
<!-- <activity-->
<!-- android:name=".activity.SplashActivity"-->
<!-- android:launchMode="singleTask" />-->
<!-- <activity-->
<!-- android:name=".activity.SplashActivity"-->
<!-- android:launchMode="singleTask" />-->
<activity
android:name=".activity.update.UpdateActivity"
android:launchMode="singleTask"
@@ -130,11 +130,6 @@
android:name=".activity.usage.UsageDetailActivity"
android:launchMode="singleTask" />
<service
android:name=".service.ControlPanelService"
android:enabled="true"
android:exported="true" />
<service
android:name=".service.RemoteService"
android:enabled="true"
@@ -149,23 +144,12 @@
android:enabled="true"
android:exported="true" />
<service android:name=".service.GuardService" />
<service android:name=".service.DownloadService" />
<service
android:name=".service.StepService"
android:exported="true">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.SCREEN_OFF" />
<action android:name="android.intent.action.SCREEN_ON" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
<action android:name="android.intent.action.FACTORY_RESET" />
<action android:name="android.intent.action.MASTER_CLEAR" />
<data android:scheme="package" />
</intent-filter>
</service>
<service
android:name=".service.SocketService"
android:exported="false" />
<service android:name=".service.ManagerService">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.USER_PRESENT" />