1 需求


2 语法

AppOps service (appops) commands:helpPrint this help text.start [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> <OP> Starts a given operation for a particular application.stop [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> <OP> Stops a given operation for a particular application.set [--user <USER_ID>] <[--uid] PACKAGE | UID> <OP> <MODE>Set the mode for a particular application and operation.get [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> [<OP>]Return the mode for a particular application and optional operation.query-op [--user <USER_ID>] <OP> [<MODE>]Print all packages that currently have the given op in the given mode.reset [--user <USER_ID>] [<PACKAGE>]Reset the given application or all applications to default modes.write-settingsImmediately write pending changes to storage.read-settingsRead the last written settings, replacing current state in RAM.options:<PACKAGE> an Android package name or its UID if prefixed by --uid<OP>      an AppOps operation.<MODE>    one of allow, ignore, deny, or default<USER_ID> the user id under which the package is installed. If --user isnot specified, the current user is assumed.

3.1 示例

adb shell appops query-op COARSE_LOCATION allow


4 参考资料

adb shell appops(系统服务:appops)相关推荐

  1. adb shell dumpsys appops

    1 需求 获取 所有应用 所有敏感行为 调用log 获取 指定应用 所有敏感行为 调用log 获取 指定行为 所有应用 调用log 2 语法 AppOps service (appops) dump ...

  2. adb shell cmd appops

    1 需求 2 语法 AppOps service (appops) commands:helpPrint this help text.start [--user <USER_ID>] [ ...

  3. adb shell input(系统服务:input)

    adb shell input 模拟登陆,需要使用如下命令 备注:"开发者选项" - "指针位置"打开后,可以获取坐标值 用途一: adb shell inpu ...

  4. adb shell ime(系统服务:input_method)

    adb shell ime

  5. 【Android】adb命令和adb shell命令

    adb命令是adb这个程序自己的命令.adb shell是Android系统自带的命令,都保存在Android系统的/system/bin目录下,命令文件本质是shell脚本. ADB命令 adb d ...

  6. adb shell dumpsys 使用命令和来源

    一.概述 adb shell dumpsys 在Android开发中经常要用到,平时都是零碎的积累,用到什么的时候就 记录下来,最近看了一些资料,发现可以汇总所有的命令,当带某个参数的时候,就可以查看 ...

  7. Android adb shell后面可用的常用命令详细列举

    adb shell 后面可以跟的常见命令有如下: am app_process backup bootanimation coloradjust dpm idmap input media reque ...

  8. Android SDK: adb shell 命令的使用(am、pm、wm、screencap、monkey等)

    本文链接: https://blog.csdn.net/xietansheng/article/details/86675136 adb其他命令介绍详见上一篇: Android SDK: adb 常用 ...

  9. 安卓车机系统adb shell cmd 源码原理分析

    hi,粉丝朋友们大家好! 上一次视频分享了input专题课中input命令在android 12的更新,因为原来课程是基于android 10 (可以加我扣:2102309716 优惠购买) http ...

最新文章

  1. 数据库系统概念总结:第一章 引言
  2. CodeIgniter笔记4
  3. PHP中$_SERVER的详细参数
  4. jquery通过数值改变球大小
  5. python安装多少位_python安装流程
  6. 关于JavaScript系列的自学,该怎么学比较好?
  7. mysql 远程虚拟主机_navicat 远程连接虚拟机MYSQL数据库
  8. Integer与int的种种比较你知道多少?
  9. python处理地震sac数据_Fortran批量读取SAC地震数据文件,写SAC文件,并转换成SEGY...
  10. python中pass的使用_Python pass详细介绍及实例代码
  11. bt5重启网卡命令_BT5找不到无线网卡怎么处理
  12. 【VUE/H5】H5调起数字键盘的坑,及手写移动端键盘代码
  13. 辟谣!微信支付宝收款码将不能用于经营性收款?
  14. VS2015+MATLAB2016b混合编程
  15. canvas webGL SVG 比较
  16. fatal: Authentication failed
  17. android 仿钢笔代码,仿ps画布钢笔抠图工具代码
  18. 大数据风控怎么做?新网银行的做法是......
  19. 03【Web】基础-JavaScript
  20. YOLOv5的requirements.txt文件执行过程

热门文章

  1. 命令模式,升级版的灭霸响指
  2. matlab外推预测函数,时间序列模型 (五): 趋势外推预测方法
  3. windows故障转移群集 文件服务器,为服务器故障转移群集中的 IIS Windows FTP - Windows Server | Microsoft Docs...
  4. 看了阿里找数据分析师的新规则,真让人头皮发麻!
  5. u盘读不出来怎么修复?可以试试这个方法
  6. 美联航客机门被冻坏无法起飞 乘客困机上约16小时
  7. 小程序模板消息推送报错 “errcode“:40165,“errmsg“:“invalid weapp
  8. 【强化学习】分层强化学习
  9. 怎么打造属于自己的天猫精灵
  10. 【转】程序员面试揭秘之程序员靠什么途径去美国工作?