refactor(core): 重构核心模块初始化与异步调度机制

- 初始化注册表增加延迟兜底任务与失败模块跳过机制
- 优化注册表锁粒度,执行阶段不再持锁避免阻塞
- 增加各初始化器分段耗时日志便于定位启动瓶颈
- 推送模块用 RxJava SerialDisposable 替代 Handler 重试调度
- 用 PublishSubject 防抖替代 Handler postDelayed 防抖
- 修复 CrashGuard 默认处理器未退出进程导致假活问题
- 清理广播接收器静态 Context 引用及冗余逻辑
- 移除 AndroidManifest 中不必要的权限声明
- 统一日志级别与 TAG 命名规范
- style(sync): 整理 AppPolicySync 的 import 语句顺序,移除未使用 import、按包名分组、移除多余空行
This commit is contained in:
tongtong committed 2026-11-18 17:26:47 +08:00
1 parent f53ce61752
commit 613aa18a0f
12 files changed
+233 -166

No files matched your search

+1 -2
View File
@@ -171,8 +171,7 @@
<receiver
android:name=".runtime.receiver.ApkInstallReceiver"
android:enabled="true"
android:exported="true"
android:permission="com.example.broadcast.permission">
android:exported="true">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />