打包时如果需要删除某个三方库中注册的权限,可以在项目中的AndroidManifest.xml文件里给该权限加上标示符,示例如下:
比如需要删除掉三方库中的蓝牙权限:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.permission.units">
<uses-permission android:name="android.permission.BLUETOOTH" tools:node="remove"/>
...
</manifest>
注:需要移除掉哪些权限,参考上面示例即可