adb操作安卓系统权限

作者 : admin 本文共311个字,预计阅读时间需要1分钟 发布时间: 2024-06-7 共2人阅读

adb权限管理操作

  • adb 授予某个应用的权限某个权限
adb shell pm grant 应用包名  权限名
例如:授予demo应用写入日历的权限
adb shell pm grant com.test.demo android.permission.WRITE_CALENDAR
  • adb 撤销某个应用的权限某个权限
adb shell pm revoke 应用包名  权限名
adb shell pm revoke com.test.demo android.permission.WRITE_CALENDAR
  • dump appops
adb shell dumpsys appops
  • 授予所有运行时权限以进行测试
adb shell install -g PATH_TO_APK_FILE

待补充。。。

本站无任何商业行为
个人在线分享 » adb操作安卓系统权限
E-->