Skip to content

Advanced Android Permissions Management


Enable Mock Location

cmd appops set 0 androidmock_location allow

Set Application Run in Background Behavior

cmd appops set com.android.settings RUN_IN_BACKGROUND ignore

Set Any Application Run in Background Behavior

cmd appops set com.android.settings RUN_ANY_IN_BACKGROUND ignore

Set Application to Launch in Foreground

cmd appops set com.android.settings START_FOREGROUND ignore

Set Application Settings for Instant Launch in Foreground

cmd appops set com.android.settings INSTANT_APP_START_FOREGROUND ignore

Set Application Permission for Clipboard

cmd appops set com.android.settings READ_CLIPBOARD allow

Set Application Permission for Writing Clipboard

cmd appops set com.android.settings WRITE_CLIPBOARD allow

Set Application Permission for Read SMS

cmd appops set com.android.settings READ_SMS allow

Set Application Permission for Send SMS

cmd appops set com.android.settings SEND_SMS allow

Set Application Permission for Receive SMS

cmd appops set com.android.settings RECEIVE_SMS allow

Set Application Permission for Location Access

cmd appops set com.android.settings ACCESS_FINE_LOCATION allow

Set Application Permission for Camera Access

cmd appops set com.android.settings CAMERA allow

Set Application Permission for Microphone Access

cmd appops set com.android.settings RECORD_AUDIO allow

Set Application Permission for Read Contacts

cmd appops set com.android.settings READ_CONTACTS allow

Set Application Permission for Write Contacts

cmd appops set com.android.settings WRITE_CONTACTS allow

Set Application Permission for Read Call Log

cmd appops set com.android.settings READ_CALL_LOG allow

Set Application Permission for Write Call Log

cmd appops set com.android.settings WRITE_CALL_LOG allow

Set Application Permission for Read Calendar

cmd appops set com.android.settings READ_CALENDAR allow

Set Application Permission for Write Calendar

cmd appops set com.android.settings WRITE_CALENDAR allow

Set Application Permission for Read Storage

cmd appops set com.android.settings READ_EXTERNAL_STORAGE allow

Set Application Permission for Write Storage

cmd appops set com.android.settings WRITE_EXTERNAL_STORAGE allow

Set Application Permission for Read Phone State

cmd appops set com.android.settings READ_PHONE_STATE allow

Set Application Permission for Make Phone Calls

cmd appops set com.android.settings CALL_PHONE allow

Set Application Permission for Read Logs

cmd appops set com.android.settings READ_LOGS allow

Set Application Permission for Change Network State

cmd appops set com.android.settings CHANGE_NETWORK_STATE allow

Set Application Permission for Use Fingerprint

cmd appops set com.android.settings USE_FINGERPRINT allow

Set Application Permission for Accept Handover

cmd appops set com.android.settings ACCEPT_HANDOVER allow

Set Application Permission for Read Calendar Events

cmd appops set com.android.settings READ_CALENDAR_EVENTS allow

Set Application Permission for Write Calendar Events

cmd appops set com.android.settings WRITE_CALENDAR_EVENTS allow

Set Application Permission for Read Clipboard

cmd appops set com.android.settings READ_CLIPBOARD allow

Set Application Permission for Write Clipboard

cmd appops set com.android.settings WRITE_CLIPBOARD allow

Set Application Permission for Read Usage Stats

cmd appops set com.android.settings READ_PHONE_NUMBERS allow

Set Application Permission for Answer Phone Calls

cmd appops set com.android.settings ANSWER_PHONE_CALLS allow

Set Application Permission for Access Call Logs

cmd appops set com.android.settings ACCESS_CALLS allow

Set Application Permission for Read Voicemail

cmd appops set com.android.settings READ_VOICEMAIL allow

Set Application Permission for Write Voicemail

cmd appops set com.android.settings WRITE_VOICEMAIL allow

Set Application Permission for Use SIP

cmd appops set com.android.settings USE_SIP allow

Set Application Permission for Read SIP Settings

cmd appops set com.android.settings READ_SETTINGS allow

Set Application Permission for Write SIP Settings

cmd appops set com.android.settings WRITE_SETTINGS allow

Set Application Permission for Use VoIP

cmd appops set com.android.settings USE_VOIP allow

Find available modes

dumpsys appops|grep mode|sort|uniq

Get the status of Location Access permission for Google Maps

cmd appops get com.google.android.apps.maps ACCESS_FINE_LOCATION

Get the status of Camera permission for Google Photos

cmd appops get com.google.android.apps.photos CAMERA

Get the status of Microphone permission for Google Assistant

cmd appops get com.google.android.googlequicksearchbox RECORD_AUDIO

Get the status of Read Contacts permission for Google Contacts

cmd appops get com.google.android.contacts READ_CONTACTS

Get the status of Write Contacts permission for Google Contacts

cmd appops get com.google.android.contacts WRITE_CONTACTS

Get the status of Read Calendar permission for Google Calendar

cmd appops get com.google.android.calendar READ_CALENDAR

Get the status of Write Calendar permission for Google Calendar

cmd appops get com.google.android.calendar WRITE_CALENDAR

Get the status of Read Storage permission for Google Drive

cmd appops get com.google.android.apps.docs READ_EXTERNAL_STORAGE

Get the status of Write Storage permission for Google Drive

cmd appops get com.google.android.apps.docs WRITE_EXTERNAL_STORAGE

Get the status of Read Phone State permission for Google Phone

cmd appops get com.google.android.dialer READ_PHONE_STATE

Get the status of Location Access permission for Google Chrome

cmd appops get com.android.chrome FINE_LOCATION

Query App Operation Status

cmd appops query-op --user 0 androidcamera allow