Android Question Revoke app permissions

noeleon

Active Member
Licensed User
Is there a way to programmatically revoke other apps' permissions?

I tried shell but no luck

B4X:
Dim P As Phone
Dim sbOut, sbErr As StringBuilder
sbOut.Initialize
sbErr.Initialize
p.Shell("pm revoke com.google.android.apps.authenticator2 android.permission.CAMERA", Null, sbOut, sbErr)
Log("sbOut: " & sbOut.ToString &CRLF& "sbErr: " &CRLF& sbErr.ToString)

sbErr output is:
Operation not allowed: java.lang.SecurityException: revokeRuntimePermission: Neither user 10351 nor current process has android.permission.REVOKE_RUNTIME_PERMISSIONS.

I have AddPermission(android.permission.REVOKE_RUNTIME_PERMISSIONS) in the manifest.
 

JohnC

Expert
Licensed User
Longtime User
This might be of some help:

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…