adb操作安卓系统权限

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


待补充。。。

相关推荐
BoomHe35 分钟前
Android LMK(Low Memory Killer)机制
android
时光呀时光慢慢走1 小时前
MAUI 开发安卓 MQTT 客户端:实现远程控制 (完整源码 + 避坑指南)
android·物联网·mqtt·c#
成都大菠萝2 小时前
2-2-44 快速掌握Kotlin-函数类型操作
android
有位神秘人2 小时前
Android中获取设备里面的音频文件
android
2501_915918413 小时前
使用 HBuilder 上架 iOS 应用时常见的问题与应对方式
android·ios·小程序·https·uni-app·iphone·webview
farewell-Calm3 小时前
01_Android快速入门
android
helloCat4 小时前
记录CI/CD自动化上传AppGallery遇到的坑
android·前端·api
WordPress学习笔记4 小时前
wordpress根据页面别名获取该页面的链接
android·wordpress
2501_916007474 小时前
iOS 崩溃日志的分析方法,将崩溃日志与运行过程结合分析
android·ios·小程序·https·uni-app·iphone·webview
浅箬5 小时前
Taro3的H5项目在Android、IOS 中因为兼容性问题导致的白屏问题
android·团队开发·taro