appops

R
Remy Gold Contributor
Zollner Elektronik AG

Hi,

Is there a way to implement this?

# All Android versions
pm grant de.proglove.connect android.permission.ACCESS_FINE_LOCATION
pm grant de.proglove.connect android.permission.CAMERA
appops set de.proglove.connect GET_USAGE_STATS allow

# For Android 10 and above
pm grant de.proglove.connect android.permission.ACTIVITY_RECOGNITION
pm grant de.proglove.connect android.permission.ACCESS_BACKGROUND_LOCATION
appops set de.proglove.connect SYSTEM_ALERT_WINDOW allow

# For Android 12 and above
pm grant de.proglove.connect android.permission.BLUETOOTH_SCAN
pm grant de.proglove.connect android.permission.BLUETOOTH_CONNECT
pm grant de.proglove.connect android.permission.BLUETOOTH_ADVERTISE

# For Android 13 and above
pm grant de.proglove.connect android.permission.POST_NOTIFICATIONS

Required permissions (proglove.com)
2 years ago
Android Scripting
ANSWERS
MD
Matt Dermody Diamond Contributor
2 years ago

It will likely depend on the manufacturer of the device that you're pairing the ProGlove to. Zebra devices for example have MX settings that can be used to silently grant "dangerous" run time permissions on A11 and A13 that otherwise would require manual user input to accept. It would be a little unusual however to be pairing a ProGlove with a Zebra device as they're competitive companies.

RC
Raymond Chan Diamond Contributor
2 years ago

Granting the permissions configured  with "pm grant ..." adb shell command may be accomplished with MobiControl legacy script command " afw_set_permission_grant_state" for AEDO devices.  Results depend on device brand/model/firmware and device agent version.

However, such legacy script command does not support configuring dangerous permissions that are configured with "appops set ..." adb shell command.