AndroidPermission

Enum AndroidPermission 

Source
pub enum AndroidPermission {
Show 206 variants AcceptHandover, AccessBackgroundLocation, AccessBlobsAcrossUsers, AccessCheckinProperties, AccessCoarseLocation, AccessFineLocation, AccessLocationExtraCommands, AccessMediaLocation, AccessNetworkState, AccessNotificationPolicy, AccessSupplementalApis, AccessWifiState, AccountManager, ActivityRecognition, AddVoicemail, AnswerPhoneCalls, BattertStats, BindAccessibilityService, BindAppwidget, BindAutofillService, BindCallRedirectionService, BindCarrierMessagingClientService, BindCarrierMessagingService, BindCarrierServices, BindChooserTargetService, BindCompanionDeviceService, BindConditionProviderService, BindControls, BindDeviceAdmin, BindDreamService, BindIncallService, BindInputMethod, BindMidiDeviceService, BindNfcService, BindNotificationListenerService, BindPrintService, BindQuickAccessWalletService, BindQuickSettingsTile, BindRrmoteviews, BindScreeningService, BindTelecomConnectionService, BindTextService, BindTvInput, BindTvInteractiveApp, BindVisualVoicemailService, BindVoiceInteraction, BindVpnService, BindVrListenerService, BindWallpaper, Bluetooth, BluetoothAdmin, BluetoothAdvertise, BluetoothConnect, BluetoothPrivileged, BluetoothScan, BodySensors, BodySensorsBackground, BroadcastPackageRemoved, BroadcastSms, BroadcastSticky, BroadcastWapPush, CallCompanionApp, CallPhone, CallPrivileged, Camera, CaptureAudioOutput, ChangeComponentEnabledState, ChangeConfiguration, ChangeNetworkState, ChangeWifiMulticastState, ChangeWifiState, ClearAppCache, ControlLocationUpdates, DeleteCacheFiles, DeletePackages, DeliverCompanionMessages, Diagnostic, DisableKeyguard, Dump, ExpandStatusBar, FactoryTest, ForegroundService, GetAccounts, GetAccountsPrivileged, GetPackageSize, GetTasks, GlobalSearch, HighOverlayWindows, HighSamplingRateSensors, InstallLocationProvider, InstallPackages, InstallShortcut, InstantAppForegroundService, InteractAcrossProfiles, Internet, KillBackgroundProcesses, LaunchMultiPaneSettingsDeepLink, LoaderUsageStats, LocationHardware, ManageDocuments, ManageExternalStorage, ManageMedia, ManageOngoingCalls, ManageOwnCalls, ManageWifiAutoJoin, ManageWifiInterfaces, MasterClear, MediaContentControl, ModifyAudioSettings, ModifyPhoneState, MountFormatFilesystems, MountUnmountFilesystems, NearbyWifiDevices, Nfc, NfcPreferredPatmentInfo, NfcTransactionEvent, OverrideWifiConfig, PackageUsageStats, PersistentActivity, PostNotifications, ProcessOutgoingCalls, QueryAllPackages, ReadAssistantAppSearchData, ReadBasicPhoneState, ReadCalendar, ReadCallLog, ReadContacts, ReadExternalStorage, ReadInputState, ReadLogs, ReadMediaAudio, ReadMediaImage, ReadMediaVideo, ReadNearbyStreamingPolicy, ReadPhoneNumbers, ReadPhoneState, ReadPrecisePhoneState, ReadSms, ReadSyncSettings, ReadSyncStats, ReadVoicemail, Reboot, ReceiveBootCompleted, ReceiveMms, ReceiveSms, ReceiveWapPush, RecordAudio, ReorderTasks, RequestCompanionProfileAppStreaming, RequestCompanionProfileAutomotiveProjection, RequestCompanionProfileComputer, RequestCompanionProfileWatch, RequestCompanionRunInBackground, RequestCompanionSelfManaged, RequestCompanionStartForegroundServicesFromBackground, RequestCompanionUseDataInBackground, RequestDeletePackages, RequestIgnoreBatteryOptimizations, RequestInstallPackages, RequestObserveCompanionDevicePresence, RequestPasswordComplexity, RestartPackages, ScheduleExactAlarm, SendRespondViaMessage, SendSms, SetAlarm, SetAlwaysFinish, SetAnimationScale, SetDebugApp, SetPreferredApplications, SetProcessLimit, SetTime, SetTimeZone, SetWallpaper, SetWallpaperHints, SignalPersisteneProcesses, SMSFinancialTransactions, StartForegroundServicesFromBackground, StartViewAppFeatures, StartViewPermissionUsage, StatusBar, SystemAlertWindow, TransmitIr, UninstallShortcut, UpdateDeviceStats, UpdatePackagesWithoutUserAction, UseBiometric, UseExactAlarm, UseFingerprint, UseFullScreenIntent, UseIccAuthWithDeviceIdentifier, UseSip, UwbRanging, Vibrate, WakeLock, WriteApnSettings, WriteCalendar, WriteCallLog, WriteContacts, WriteExternalStorage, WriteGservices, WriteSecureSettings, WriteSettings, WriteSyncSettings, WriteVoicemail, Flashlight,
}
Expand description

Android Permissions

See for more details: https://developer.android.com/reference/android/Manifest.permission

Variants§

§

AcceptHandover

Allows a calling app to continue a call which was started in another app.

Protection level: dangerous

§

AccessBackgroundLocation

Allows an app to access location in the background.

Protection level: dangerous

§

AccessBlobsAcrossUsers

Allows an application to access data blobs across users.

§

AccessCheckinProperties

Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded.

Not for use by third-party applications.

§

AccessCoarseLocation

Allows an app to access approximate location.

Protection level: dangerous

§

AccessFineLocation

Allows an app to access precise location.

Protection level: dangerous

§

AccessLocationExtraCommands

Allows an application to access extra location provider commands.

Protection level: normal

§

AccessMediaLocation

Allows an application to access any geographic locations persisted in the user’s shared collection.

Protection level: dangerous

§

AccessNetworkState

Allows applications to access information about networks.

Protection level: normal

§

AccessNotificationPolicy

Marker permission for applications that wish to access notification policy.

Protection level: normal

§

AccessSupplementalApis

Allows an application to access SupplementalApis

Protection level: normal

§

AccessWifiState

Allows applications to access information about Wi-Fi networks.

Protection level: normal

§

AccountManager

Allows applications to call into AccountAuthenticators. Not for use by third-party applications.

§

ActivityRecognition

Allows an application to recognize physical activity.

Protection level: dangerous

§

AddVoicemail

Allows an application to add voicemails into the system.

Protection level: dangerous

§

AnswerPhoneCalls

Allows the app to answer an incoming phone call.

Protection level: dangerous

§

BattertStats

Allows an application to collect battery statistics.

Protection level: signature|privileged|development

§

BindAccessibilityService

Must be required by an AccessibilityService, to ensure that only the system can bind to it.

Protection level: signature

§

BindAppwidget

Allows an application to tell the AppWidget service which application can access AppWidget’s data. The normal user flow is that a user picks an AppWidget to go into a particular host, thereby giving that host application access to the private data from the AppWidget app. An application that has this permission should honor that contract.

Not for use by third-party applications.

§

BindAutofillService

Must be required by a AutofillService, to ensure that only the system can bind to it.

Protection level: signature

§

BindCallRedirectionService

Must be required by a CallRedirectionService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindCarrierMessagingClientService

A subclass of CarrierMessagingClientService must be protected with this permission.

Protection level: signature

§

BindCarrierMessagingService

This constant was deprecated in API level 23. Use BIND_CARRIER_SERVICES instead.

§

BindCarrierServices

The system process that is allowed to bind to services in carrier apps will have this permission.

Protection level: signature|privileged

§

BindChooserTargetService

This constant was deprecated in API level 30. For publishing direct share targets, please follow the instructions in https://developer.android.com/training/sharing/receive.html#providing-direct-share-targets instead

Protection level: signature

§

BindCompanionDeviceService

Must be required by any CompanionDeviceServices to ensure that only the system can bind to it.

§

BindConditionProviderService

Must be required by a ConditionProviderService, to ensure that only the system can bind to it.

Protection level: signature

§

BindControls

Allows SystemUI to request third party controls. Should only be requested by the System and required by ControlsProviderService declarations.

§

BindDeviceAdmin

Must be required by device administration receiver, to ensure that only the system can interact with it.

Protection level: signature

§

BindDreamService

Must be required by an DreamService, to ensure that only the system can bind to it.

Protection level: signature

§

BindIncallService

Must be required by a InCallService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindInputMethod

Must be required by an InputMethodService, to ensure that only the system can bind to it.

Protection level: signature

§

BindMidiDeviceService

Must be required by an MidiDeviceService, to ensure that only the system can bind to it.

Protection level: signature

§

BindNfcService

Must be required by a HostApduService or OffHostApduService to ensure that only the system can bind to it.

Protection level: signature

§

BindNotificationListenerService

Must be required by an NotificationListenerService, to ensure that only the system can bind to it.

Protection level: signature

§

BindPrintService

Must be required by a PrintService, to ensure that only the system can bind to it.

Protection level: signature

§

BindQuickAccessWalletService

Must be required by a QuickAccessWalletService to ensure that only the system can bind to it.

Protection level: signature

§

BindQuickSettingsTile

Allows an application to bind to third party quick settings tiles.

Should only be requested by the System, should be required by TileService declarations.

§

BindRrmoteviews

Must be required by a RemoteViewsService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindScreeningService

Must be required by a CallScreeningService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindTelecomConnectionService

Must be required by a ConnectionService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindTextService

Must be required by a TextService (e.g. SpellCheckerService) to ensure that only the system can bind to it.

Protection level: signature

§

BindTvInput

Must be required by a TvInputService to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindTvInteractiveApp

Must be required by a TvInteractiveAppService to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindVisualVoicemailService

Must be required by a link VisualVoicemailService to ensure that only the system can bind to it.

§

BindVoiceInteraction

Must be required by a VoiceInteractionService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

BindVpnService

Must be required by a VpnService, to ensure that only the system can bind to it.

Protection level: signature

§

BindVrListenerService

Must be required by an VrListenerService, to ensure that only the system can bind to it.

Protection level: signature

§

BindWallpaper

Must be required by a WallpaperService, to ensure that only the system can bind to it.

Protection level: signature|privileged

§

Bluetooth

Allows applications to connect to paired bluetooth devices.

Protection level: normal

§

BluetoothAdmin

Allows applications to discover and pair bluetooth devices.

Protection level: normal

§

BluetoothAdvertise

Required to be able to advertise to nearby Bluetooth devices.

Protection level: dangerous

§

BluetoothConnect

Required to be able to connect to paired Bluetooth devices.

Protection level: dangerous

§

BluetoothPrivileged

Allows applications to pair bluetooth devices without user interaction, and to allow or disallow phonebook access or message access.

Not for use by third-party applications.

§

BluetoothScan

Required to be able to discover and pair nearby Bluetooth devices.

Protection level: dangerous

§

BodySensors

Allows an application to access data from sensors that the user uses to measure what is happening inside their body, such as heart rate.

Protection level: dangerous

§

BodySensorsBackground

Allows an application to access data from sensors that the user uses to measure what is happening inside their body, such as heart rate. If you’re requesting this permission, you must also request BODY_SENSORS. Requesting this permission by itself doesn’t give you Body sensors access.

Protection level: dangerous

§

BroadcastPackageRemoved

Allows an application to broadcast a notification that an application package has been removed.

Not for use by third-party applications.

§

BroadcastSms

Allows an application to broadcast an SMS receipt notification.

Not for use by third-party applications.

§

BroadcastSticky

Allows an application to broadcast sticky intents.

Protection level: normal

§

BroadcastWapPush

Allows an application to broadcast a WAP PUSH receipt notification.

Not for use by third-party applications.

§

CallCompanionApp

Allows an app which implements the InCallService API to be eligible to be enabled as a calling companion app. This means that the Telecom framework will bind to the app’s InCallService implementation when there are calls active. The app can use the InCallService API to view information about calls on the system and control these calls.

Protection level: normal

§

CallPhone

Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call.

Protection level: dangerous

§

CallPrivileged

Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed.

Not for use by third-party applications.

§

Camera

Required to be able to access the camera device.

Protection level: dangerous

§

CaptureAudioOutput

Allows an application to capture audio output. Use the CAPTURE_MEDIA_OUTPU permission if only the USAGE_UNKNOWN), USAGE_MEDIA) or USAGE_GAME) usages are intended to be captured.

Not for use by third-party applications.

§

ChangeComponentEnabledState

Allows an application to change whether an application component (other than its own) is enabled or not.

Not for use by third-party applications.

§

ChangeConfiguration

Allows an application to modify the current configuration, such as locale.

Protection level: signature|privileged|development

§

ChangeNetworkState

Allows applications to change network connectivity state.

Protection level: normal

§

ChangeWifiMulticastState

Allows applications to enter Wi-Fi Multicast mode.

Protection level: normal

§

ChangeWifiState

Allows applications to change Wi-Fi connectivity state.

Protection level: normal

§

ClearAppCache

Allows an application to clear the caches of all installed applications on the device.

Protection level: signature|privileged

§

ControlLocationUpdates

Allows enabling/disabling location update notifications from the radio.

Not for use by third-party applications.

§

DeleteCacheFiles

Old permission for deleting an app’s cache files, no longer used, but signals for us to quietly ignore calls instead of throwing an exception.

Protection level: signature|privileged

§

DeletePackages

Allows an application to delete packages.

Not for use by third-party applications.

§

DeliverCompanionMessages

Allows an application to deliver companion messages to system.

§

Diagnostic

Allows applications to RW to diagnostic resources.

Not for use by third-party applications.

§

DisableKeyguard

Allows applications to disable the keyguard if it is not secure.

Protection level: normal

§

Dump

Allows an application to retrieve state dump information from system services.

Not for use by third-party applications.

§

ExpandStatusBar

Allows an application to expand or collapse the status bar.

Protection level: normal

§

FactoryTest

Run as a manufacturer test application, running as the root user.

Not for use by third-party applications.

§

ForegroundService

Allows a regular application to use Service.startForeground.

Protection level: normal

§

GetAccounts

Allows access to the list of accounts in the Accounts Service.

§Note

Beginning with Android 6.0 (API level 23), if an app shares the signature of the authenticator that manages an account, it does not need "GET_ACCOUNTS" permission to read information about that account. On Android 5.1 and lower, all apps need "GET_ACCOUNTS" permission to read information about any account.

Protection level: dangerous

§

GetAccountsPrivileged

Allows access to the list of accounts in the Accounts Service.

Protection level: signature|privileged

§

GetPackageSize

Allows an application to find out the space used by any package.

Protection level: normal

§

GetTasks

This constant was deprecated in API level 21. No longer enforced.

§

GlobalSearch

This permission can be used on content providers to allow the global search system to access their data. Typically it used when the provider has some permissions protecting it (which global search would not be expected to hold), and added as a read-only permission to the path in the provider where global search queries are performed. This permission can not be held by regular applications; it is used by applications to protect themselves from everyone else besides global search.

Protection level: signature|privileged

§

HighOverlayWindows

Allows an app to prevent non-system-overlay windows from being drawn on top of it

§

HighSamplingRateSensors

Allows an app to access sensor data with a sampling rate greater than 200 Hz.

Protection level: normal

§

InstallLocationProvider

Allows an application to install a location provider into the Location Manager.

Not for use by third-party applications.

§

InstallPackages

Allows an application to install packages.

Not for use by third-party applications.

§

InstallShortcut

Allows an application to install a shortcut in Launcher.

In Android O (API level 26) and higher, the INSTALL_SHORTCUT broadcast no longer has any effect on your app because it’s a private, implicit broadcast. Instead, you should create an app shortcut by using the requestPinShortcut() method from the ShortcutManager class.

Protection level: normal

§

InstantAppForegroundService

Allows an instant app to create foreground services.

Protection level: signature|development|instant|appop

§

InteractAcrossProfiles

Allows interaction across profiles in the same profile group.

§

Internet

Allows applications to open network sockets.

Protection level: normal

§

KillBackgroundProcesses

Allows an application to call ActivityManager.killBackgroundProcesses(String).

Protection level: normal

An application needs this permission for Settings.ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY to show its Activity embedded in Settings app.

§

LoaderUsageStats

Allows a data loader to read a package’s access logs. The access logs contain the set of pages referenced over time.

Declaring the permission implies intention to use the API and the user of the device can grant permission through the Settings application.

Protection level: signature|privileged|appop

A data loader has to be the one which provides data to install an app.

A data loader has to have both permission:LOADER_USAGE_STATS AND appop:LOADER_USAGE_STATS allowed to be able to access the read logs.

§

LocationHardware

Allows an application to use location features in hardware, such as the geofencing api.

Not for use by third-party applications.

§

ManageDocuments

Allows an application to manage access to documents, usually as part of a document picker.

This permission should only be requested by the platform document management app. This permission cannot be granted to third-party apps.

§

ManageExternalStorage

Allows an application a broad access to external storage in scoped storage. Intended to be used by few apps that need to manage files on behalf of the users.

protection level: signature|appop|preinstalled

§

ManageMedia

Allows an application to modify and delete media files on this device or any connected storage device without user confirmation. Applications must already be granted the READ_EXTERNAL_STORAGE or MANAGE_EXTERNAL_STORAGE} permissions for this permission to take effect.

Even if applications are granted this permission, if applications want to modify or delete media files, they also must get the access by calling MediaStore.createWriteRequest(ContentResolver, Collection), MediaStore.createDeleteRequest(ContentResolver, Collection), or MediaStore.createTrashRequest(ContentResolver, Collection, boolean).

This permission doesn’t give read or write access directly. It only prevents the user confirmation dialog for these requests.

If applications are not granted ACCESS_MEDIA_LOCATION, the system also pops up the user confirmation dialog for the write request.

Protection level: signature|appop|preinstalled

§

ManageOngoingCalls

Allows to query ongoing call details and manage ongoing calls.

Protection level: signature|appop

§

ManageOwnCalls

Allows a calling application which manages its own calls through the self-managed ConnectionService APIs.

§

ManageWifiAutoJoin

Allows applications to enable/disable wifi auto join. This permission is used to let OEMs grant their trusted app access to a subset of privileged wifi APIs to improve wifi performance. Not for use by third-party applications.

§

ManageWifiInterfaces

Allows applications to get notified when a Wi-Fi interface request cannot be satisfied without tearing down one or more other interfaces, and provide a decision whether to approve the request or reject it. Not for use by third-party applications.

§

MasterClear

Not for use by third-party applications.

§

MediaContentControl

Allows an application to know what content is playing and control its playback.

Not for use by third-party applications due to privacy of media consumption

§

ModifyAudioSettings

Allows an application to modify global audio settings.

Protection level: normal

§

ModifyPhoneState

Allows modification of the telephony state - power on, mmi, etc. Does not include placing calls.

Not for use by third-party applications.

§

MountFormatFilesystems

Allows formatting file systems for removable storage.

Not for use by third-party applications.

§

MountUnmountFilesystems

Allows mounting and unmounting file systems for removable storage.

Not for use by third-party applications.

§

NearbyWifiDevices

Required to be able to advertise and connect to nearby devices via Wi-Fi.

Protection level: dangerous

§

Nfc

Allows applications to perform I/O operations over NFC.

Protection level: normal

§

NfcPreferredPatmentInfo

Allows applications to receive NFC preferred payment service information.

Protection level: normal

§

NfcTransactionEvent

Allows applications to receive NFC transaction events.

Protection level: normal

§

OverrideWifiConfig

Allows an application to modify any wifi configuration, even if created by another application. Once reconfigured the original creator cannot make any further modifications. Not for use by third-party applications.

§

PackageUsageStats

Allows an application to collect component usage statistics.

Declaring the permission implies intention to use the API and the user of the device can grant permission through the Settings application.

Protection level: signature|privileged|development|appop|retailDemo

§

PersistentActivity

This constant was deprecated in API level 15. This functionality will be removed in the future; please do not use. Allow an application to make its activities persistent.

§

PostNotifications

Allows an app to post notifications.

Allows an app to post notifications

§

ProcessOutgoingCalls

This constant was deprecated in API level 29. Applications should use CallRedirectionService instead of the Intent.ACTION_NEW_OUTGOING_CALL broadcast.

Protection level: dangerous

§

QueryAllPackages

Allows query of any normal app on the device, regardless of manifest declarations.

Protection level: normal

§

ReadAssistantAppSearchData

Allows an application to query over global data in AppSearch that’s visible to the ASSISTANT role.

§

ReadBasicPhoneState

Allows read only access to phone state with a non dangerous permission, including the information like cellular network type, software version.

§

ReadCalendar

Allows an application to read the user’s calendar data.

Protection level: dangerous

§

ReadCallLog

Allows an application to read the user’s call log.

§Note

If your app uses the READ_CONTACTS permission and both your minSdkVersion and targetSdkVersion values are set to 15 or lower, the system implicitly grants your app this permission. If you don’t need this permission, be sure your targetSdkVersion is 16 or higher.

Protection level: dangerous

This is a hard restricted permission which cannot be held by an app until the installer on record whitelists the permission. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

§

ReadContacts

Allows an application to read the user’s contacts data.

Protection level: dangerous

§

ReadExternalStorage

Allows an application to read from external storage.

Any app that declares the WRITE_EXTERNAL_STORAGE permission is implicitly granted this permission.

This permission is enforced starting in API level 19. Before API level 19, this permission is not enforced and all apps still have access to read from external storage. You can test your app with the permission enforced by enabling Protect USB storage under Developer options in the Settings app on a device running Android 4.1 or higher.

Also starting in API level 19, this permission is not required to read/write files in your application-specific directories returned by Context.getExternalFilesDir(String) and Context.getExternalCacheDir().

This is a soft restricted permission which cannot be held by an app it its full form until the installer on record whitelists the permission. Specifically, if the permission is allowlisted the holder app can access external storage and the visual and aural media collections while if the permission is not allowlisted the holder app can only access to the visual and aural medial collections. Also the permission is immutably restricted meaning that the allowlist state can be specified only at install time and cannot change until the app is installed. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

Protection level: dangerous

§Note

If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don’t need this permission, be sure your targetSdkVersion is 4 or higher.

§

ReadInputState

This constant was deprecated in API level 16. The API that used this permission has been removed.

Not for use by third-party applications.

§

ReadLogs

Allows an application to read the low-level system log files.

Not for use by third-party applications, because Log entries can contain the user’s private information.

§

ReadMediaAudio

Allows an application to read audio files from external storage.

This permission is enforced starting in API level Build.VERSION_CODES.TIRAMISU. For apps with a targetSdkVersion of Build.VERSION_CODES.S or lower, this permission must not be used and the READ_EXTERNAL_STORAGE permission must be used instead.

Protection level: dangerous

§

ReadMediaImage

Allows an application to read image files from external storage.

This permission is enforced starting in API level Build.VERSION_CODES.TIRAMISU. For apps with a targetSdkVersion of Build.VERSION_CODES.S or lower, this permission must not be used and the READ_EXTERNAL_STORAGE permission must be used instead.

Protection level: dangerous

§

ReadMediaVideo

Allows an application to read audio files from external storage.

This permission is enforced starting in API level Build.VERSION_CODES.TIRAMISU. For apps with a targetSdkVersion of Build.VERSION_CODES.S or lower, this permission must not be used and the READ_EXTERNAL_STORAGE permission must be used instead.

Protection level: dangerous

§

ReadNearbyStreamingPolicy

Allows an application to read nearby streaming policy. The policy controls whether to allow the device to stream its notifications and apps to nearby devices. Applications that are not the device owner will need this permission to call DevicePolicyManager.getNearbyNotificationStreamingPolicy() or DevicePolicyManager.getNearbyAppStreamingPolicy().

§

ReadPhoneNumbers

Allows read access to the device’s phone number(s). This is a subset of the capabilities granted by READ_PHONE_STATE but is exposed to instant applications.

Protection level: dangerous

§

ReadPhoneState

Allows read only access to phone state, including the current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device.

Protection level: dangerous

§Note

If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don’t need this permission, be sure your targetSdkVersion is 4 or higher.

§

ReadPrecisePhoneState

Allows read only access to precise phone state. Allows reading of detailed information about phone state for special-use applications such as dialers, carrier applications, or ims applications.

§

ReadSms

Allows an application to read SMS messages.

Protection level: dangerous

This is a hard restricted permission which cannot be held by an app until the installer on record whitelists the permission. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set)

§

ReadSyncSettings

Allows applications to read the sync settings.

Protection level: normal

§

ReadSyncStats

Allows applications to read the sync stats.

Protection level: normal

§

ReadVoicemail

Allows an application to read voicemails in the system.

Protection level: signature|privileged|role

§

Reboot

Required to be able to reboot the device.

Not for use by third-party applications.

§

ReceiveBootCompleted

Allows an application to receive the Intent.ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting. If you don’t request this permission, you will not receive the broadcast at that time. Though holding this permission does not have any security implications, it can have a negative impact on the user experience by increasing the amount of time it takes the system to start and allowing applications to have themselves running without the user being aware of them. As such, you must explicitly declare your use of this facility to make that visible to the user.

Protection level: normal

§

ReceiveMms

Allows an application to monitor incoming MMS messages.

Protection level: dangerous

This is a hard restricted permission which cannot be held by an app until the installer on record whitelists the permission. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

§

ReceiveSms

Allows an application to receive SMS messages.

Protection level: dangerous

This is a hard restricted permission which cannot be held by an app until the installer on record whitelists the permission. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

§

ReceiveWapPush

Allows an application to receive WAP push messages.

Protection level: dangerous

§

RecordAudio

Allows an application to record audio.

Protection level: dangerous

§

ReorderTasks

Allows an application to change the Z-order of tasks.

Protection level: normal

§

RequestCompanionProfileAppStreaming

Allows an application to read nearby streaming policy. The policy controls whether to allow the device to stream its notifications and apps to nearby devices. Applications that are not the device owner will need this permission to call DevicePolicyManager.getNearbyNotificationStreamingPolicy() or DevicePolicyManager.getNearbyAppStreamingPolicy().

Not for use by third-party applications.

§

RequestCompanionProfileAutomotiveProjection

Allows application to request to be associated with a vehicle head unit capable of automotive projection (AssociationRequest.DEVICE_PROFILE_AUTOMOTIVE_PROJECTION) by CompanionDeviceManager.

Not for use by third-party applications.

§

RequestCompanionProfileComputer

Allows application to request to be associated with a computer to share functionality and/or data with other devices, such as notifications, photos and media (AssociationRequest.DEVICE_PROFILE_COMPUTER) by CompanionDeviceManager.

Not for use by third-party applications.

§

RequestCompanionProfileWatch

Allows app to request to be associated with a device via CompanionDeviceManager as a “watch”.

Protection level: normal

§

RequestCompanionRunInBackground

Allows a companion app to run in the background.

Protection level: normal

§

RequestCompanionSelfManaged

Allows an application to create a “self-managed” association.

§

RequestCompanionStartForegroundServicesFromBackground

Allows a companion app to start a foreground service from the background.

Protection level: normal

§

RequestCompanionUseDataInBackground

Allows a companion app to use data in the background.

Protection level: normal

§

RequestDeletePackages

Allows an application to request deleting packages.

Protection level: normal

§

RequestIgnoreBatteryOptimizations

Permission an application must hold in order to use Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS.

Protection level: normal

§

RequestInstallPackages

Allows an application to request installing packages.

Protection level: signature

§

RequestObserveCompanionDevicePresence

Allows an application to subscribe to notifications about the presence status change of their associated companion device.

§

RequestPasswordComplexity

Allows an application to request the screen lock complexity and prompt users to update the screen lock to a certain complexity level.

Protection level: normal

§

RestartPackages

This constant was deprecated in API level 15

The ActivityManager.restartPackage(String) API is no longer supported.

§

ScheduleExactAlarm

Allows applications to use exact alarm APIs.

Exact alarms should only be used for user-facing features. For more details, see Exact alarm permission.

Apps who hold this permission and target API level 31 or above, always stay in the WORKING_SET or lower standby bucket. Applications targeting API level 30 or below do not need this permission to use exact alarm APIs.

§

SendRespondViaMessage

Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming calls.

Not for use by third-party applications.

§

SendSms

Allows an application to send SMS messages.

Protection level: dangerous

§

SetAlarm

Allows an application to broadcast an Intent to set an alarm for the user.

Protection level: normal

§

SetAlwaysFinish

Allows an application to control whether activities are immediately finished when put in the background.

Not for use by third-party applications.

§

SetAnimationScale

Modify the global animation scaling factor.

Not for use by third-party applications.

§

SetDebugApp

Configure an application for debugging.

Not for use by third-party applications.

§

SetPreferredApplications

This constant was deprecated in API level 15. No longer useful, see PackageManager.addPackageToPreferred(String) for details.

§

SetProcessLimit

Allows an application to set the maximum number of (not needed) application processes that can be running.

Not for use by third-party applications.

§

SetTime

Allows applications to set the system time directly.

Not for use by third-party applications.

§

SetTimeZone

Allows applications to set the system time zone directly.

Not for use by third-party applications.

§

SetWallpaper

Allows applications to set the wallpaper.

Protection level: normal

§

SetWallpaperHints

Allows applications to set the wallpaper hints.

Protection level: normal

§

SignalPersisteneProcesses

Allow an application to request that a signal be sent to all persistent processes.

Not for use by third-party applications.

§

SMSFinancialTransactions

This constant was deprecated in API level 31. The API that used this permission is no longer functional.

Protection level: signature|appop

§

StartForegroundServicesFromBackground

Allows an application to start foreground services from the background at any time. This permission is not for use by third-party applications, with the only exception being if the app is the default SMS app. Otherwise, it’s only usable by privileged apps, app verifier app, and apps with any of the EMERGENCY or SYSTEM GALLERY roles.

§

StartViewAppFeatures

Allows the holder to start the screen with a list of app features.

Protection level: signature|installer

§

StartViewPermissionUsage

Allows the holder to start the permission usage screen for an app.

Protection level: signature|installer

§

StatusBar

Allows an application to open, close, or disable the status bar and its icons.

Not for use by third-party applications.

§

SystemAlertWindow

Allows an app to create windows using the type WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, shown on top of all other apps.

Protection level: signature|setup|appop|installer|pre23|development

§Note

If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user’s approval by sending an intent with action Settings.ACTION_MANAGE_OVERLAY_PERMISSION. The app can check whether it has this authorization by calling Settings.canDrawOverlays().

§

TransmitIr

Allows using the device’s IR transmitter, if available.

Protection level: normal

§

UninstallShortcut

Don’t use this permission in your app.

§

UpdateDeviceStats

Allows an application to update device statistics.

Not for use by third-party applications.

§

UpdatePackagesWithoutUserAction

Allows an application to indicate via PackageInstaller.SessionParams.setRequireUserAction(int) that user action should not be required for an app update.

Protection level: normal

§

UseBiometric

Allows an app to use device supported biometric modalities.

Protection level: normal

§

UseExactAlarm

Allows apps to use exact alarms just like with SCHEDULE_EXACT_ALARM but without needing to request this permission from the user.

This is only for apps that rely on exact alarms for their core functionality. App stores may enforce policies to audit and review the use of this permission. Any app that requests this but is found to not require exact alarms for its primary function may be removed from the app store.

§

UseFingerprint

This constant was deprecated in API level 28. Applications should request USE_BIOMETRIC instead.

Protection level: normal

§

UseFullScreenIntent

Required for apps targeting Build.VERSION_CODES.Q that want to use notification full screen intents.

Protection level: normal

§

UseIccAuthWithDeviceIdentifier

Allows to read device identifiers and use ICC based authentication like EAP-AKA.

Protection level: signature|appop

§

UseSip

Allows an application to use SIP service.

Protection level: dangerous

§

UwbRanging

Required to be able to range to devices using ultra-wideband.

Protection level: dangerous

§

Vibrate

Allows access to the vibrator.

Protection level: normal

§

WakeLock

Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming.

Protection level: normal

§

WriteApnSettings

Allows applications to write the apn settings and read sensitive fields of an existing apn settings like user and password.

Not for use by third-party applications.

§

WriteCalendar

Allows an application to write the user’s calendar data.

Protection level: dangerous

§Note

If your app uses the WRITE_CONTACTS permission and both your minSdkVersion and targetSdkVersion values are set to 15 or lower, the system implicitly grants your app this permission. If you don’t need this permission, be sure your targetSdkVersion is 16 or higher.

§

WriteCallLog

Allows an application to write (but not read) the user’s call log data.

Protection level: dangerous

§

WriteContacts

Allows an application to write the user’s contacts data.

Protection level: dangerous

§

WriteExternalStorage

Allows an application to write to external storage.

Protection level: dangerous

§Note

If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don’t need this permission, be sure your targetSdkVersion is 4 or higher.

§

WriteGservices

Allows an application to modify the Google service map.

Not for use by third-party applications.

§

WriteSecureSettings

Allows an application to read or write the secure system settings.

Not for use by third-party applications.

§

WriteSettings

Allows an application to read or write the system settings.

Protection level: signature|preinstalled|appop|pre23

§Note

If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user’s approval by sending an intent with action Settings.ACTION_MANAGE_WRITE_SETTINGS. The app can check whether it has this authorization by calling Settings.System.canWrite().

§

WriteSyncSettings

Allows applications to write the sync settings.

Protection level: normal

§

WriteVoicemail

Allows an application to modify and remove existing voicemails in the system.

Protection level: signature|privileged|role

§

Flashlight

Allows an application to control Flashlight.

Protection level: normal

Implementations§

Trait Implementations§

Source§

impl Clone for AndroidPermission

Source§

fn clone(&self) -> AndroidPermission

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AndroidPermission

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AndroidPermission

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AndroidPermission

Source§

fn eq(&self, other: &AndroidPermission) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AndroidPermission

Source§

impl Eq for AndroidPermission

Source§

impl StructuralPartialEq for AndroidPermission

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<'a, T> Desc<'a, T> for T

Source§

fn lookup(self, _: &JNIEnv<'a>) -> Result<T, Error>

Look up the concrete type from the JVM.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.