在 frameworks/base/data/etc/privapp-permissions-platform.xml中增加
应用中AndroidManifest.xml中配置的权限
<!-- 包名 -->
<privapp-permissions package="com.my.demo">
<permission name="android.permission.INTERNET" />
<permission name="android.permission.ACCESS_NETWORK_STATE" />
<permission name="android.permission.ACCESS_WIFI_STATE" />
<permission name="android.permission.READ_EXTERNAL_STORAGE" />
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission name="android.permission.READ_PHONE_STATE" />
<permission name="android.permission.WAKE_LOCK" />
<permission name="android.permission.RECEIVE_BOOT_COMPLETED" />
<permission name="android.permission.SYSTEM_ALERT_WINDOW" />
<permission name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<permission name="android.permission.MANAGE_MEDIA_PROJECTION" />
<permission name="android.permission.SHUTDOWN" />
<permission name="android.permission.REBOOT"/>
</privapp-permissions>
*注意格式和名称,否则为出现xml的解析错误