Browse Source

fix(ble_service): 为满足google playstore等安卓应用分发平台的审核要求,移除系统启动权限及相关接收器

不再需要系统启动时自动运行的功能,因此移除相关权限和接收器配置
newdev_shunjiawei
lxm 9 months ago
parent
commit
a9cca069a0
  1. 6
      local_plugins/ble_service/android/src/main/AndroidManifest.xml

6
local_plugins/ble_service/android/src/main/AndroidManifest.xml

@ -13,7 +13,7 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<!-- 系统启动权限 --> <!-- 系统启动权限 -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <!-- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> -->
<!-- Companion 特权:后台运行 & 启动前台服务 --> <!-- Companion 特权:后台运行 & 启动前台服务 -->
<uses-permission android:name="android.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND"/> <uses-permission android:name="android.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND"/>
@ -52,7 +52,7 @@
</receiver> </receiver>
<!-- 系统启动接收器 --> <!-- 系统启动接收器 -->
<receiver <!-- <receiver
android:name=".BootReceiver" android:name=".BootReceiver"
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="true">
@ -61,7 +61,7 @@
<action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>
</receiver> </receiver> -->
</application> </application>
</manifest> </manifest>
Loading…
Cancel
Save