The Android documentation contains the following description of the adb grant and adb revoke commands.
grant <PACKAGE_PERMISSION>
Grant application permissions. Only additional permissions stated by expression may be granted.
revoke <PACKAGE_PERMISSION>
Revoke permissions for applications. Only optional permissions declared by an expression can be revoked.
Can someone provide an example of the correct syntax for using them?
I assume this will be a permission like android.permission.WRITE_EXTERNAL_STORAGE or maybe just WRITE_EXTERNAL_STORAGE . Well, I tried this, and several others, and I can't get it to work.
I also tried (to no avail) several combinations of the package and resolution, which makes more sense to me (this sounds like a command that will change the resolution to one package, not all)
android android permissions adb
gabriel
source share