1, 概述
AppOps全称是 Application Operations,类似平时常说的应用程序的操作(权限)管理。AppOps是Google原生Android包含的功能,但是Google在每次版本更新时都会隐藏掉AppOps的入口。
2, AppOps命令
命令格式:
Appops <command>
命令列表:
命令 |
功能 |
实现方法 |
set allow |
允许 权限 |
appOpsService.setMode |
set deny |
拒绝 |
appOpsService.setMode |
set ignore |
忽略 |
appOpsService.setMode |
set default |
默认 |
appOpsService.setMode |
get |
获取 |
appOpsService.getOpsForPackage |