refactor(service): 将广播接收从静态注册改为动态注册

- 移除 AndroidManifest 中 ManagerService 的静态 intent-filter 声明
- 将 SCREEN_ON、SCREEN_OFF、USER_PRESENT 等广播改为代码中动态注册
- 在 onStartCommand 中添加 action 日志便于调试
- 启用 Gradle 并行同步以提升构建性能
This commit is contained in:
tongtong committed 2026-11-21 19:11:51 +08:00
1 parent 513447ec7a
commit d1fa9a8a08
3 files changed
+9 -13

No files matched your search

+3 -11
View File
@@ -135,17 +135,9 @@
android:name=".runtime.service.SocketService"
android:exported="false" />
<service android:name=".runtime.service.ManagerService">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.intent.action.SCREEN_ON" />
<action android:name="android.intent.action.SCREEN_OFF" />
<action android:name="android.intent.action.DATE_CHANGED" />
<action android:name="android.intent.action.TIME_SET" />
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
<action android:name="android.intent.action.TIME_TICK" />
</intent-filter>
</service>
<service
android:name=".runtime.service.ManagerService"
android:exported="false" />
<receiver
android:name=".runtime.receiver.BootReceiver"