添加示例服务类注册

This commit is contained in:
2026-05-07 14:41:12 +08:00
parent 42d135068c
commit e147d46921

View File

@@ -3,9 +3,16 @@
xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.winboll.studio.gpsrelaysentinel">
<!-- 只能在前台获取精确的位置信息 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- 只有在前台运行时才能获取大致位置信息 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!-- 在后台使用位置信息 -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<!-- 运行前台服务 -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<application
@@ -37,10 +44,17 @@
<activity android:name=".GlobalApplication$CrashActivity"/>
<service android:name=".MainService"
<service
android:name=".MainService"
android:enabled="true"
android:exported="false"/>
<service android:name=".GpsReceiverChildService1"/>
<service android:name=".GpsReceiverChildService2"/>
<service android:name=".GpsReceiverChildService3"/>
</application>
</manifest>