授予应用某权限(如 android.permission.CAMERA)
adb shell pm grant <pkg> <perm> 是「应用管理」分类下的常用命令,作用是:授予应用某权限(如 android.permission.CAMERA)。
典型用法如下:adb shell pm grant com.example.demo android.permission.CAMERA。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
adb shell pm grant com.example.demo android.permission.CAMERA 即可,具体参数请按实际环境调整。