2
Android文檔包含adb grant和adb revoke命令的以下說明。使用adb授予/撤消權限
使用adb工具來管理在命令行權限:按組列表 權限和地位:
$ adb shell pm list permissions -d -g
授予或撤銷一個或多個權限:$ adb shell pm [grant|revoke] <permission-name> ...
分析您的應用程序的使用權限 服務。
我運行此命令,而沒有任何錯誤消息:
abd shell pm [grant|revoke] com.my.app android.permission.ACCESS_FINE_LOCATION
如果我打開設置 - >應用程序 - >的myapp - >權限。 我沒有看到任何改變......
如何知道我的ADB命令的作品?爲什麼應用程序的設置沒有任何變化?
檢查此:https://greenify.uservoice.com/knowledgebase/articles/749142-how-to-grant-permissions-required-by-some-features – Mehta