adb授予安卓手机应用权限
参考连接: https://greenify.uservoice.com/knowledgebase/articles/749142-how-to-grant-permissions-required-by-some-features https://stackoverflow.com/questions/52079343/how-can-i-use-adb-to-grant-permission-without-root eg: 授予权限命令: adb -d shell pm grant package android.permission.CAMERA 移除权限命令: adb -d shell pm revoke package android.permission.CAMERA 有可能发生的问题: 无法获取权限,并报错:Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS. 问题原因: 有些具有侵略性的权限无法直接被申请,但是一般手机有个设置可以规避这个问题,以realMe为例 解决方法: realme:打开禁止权限监控 华为手机暂时未发现此项设置,但是可以直接使用