Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

Manifest.permission

extends Object
java.lang.Object
   ↳ android.Manifest.permission

Summary

Constants
String ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded.
String ACCESS_COARSE_LOCATION Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.
String ACCESS_FINE_LOCATION Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi.
String ACCESS_LOCATION_EXTRA_COMMANDS Allows an application to access extra location provider commands
String ACCESS_MOCK_LOCATION Allows an application to create mock location providers for testing
String ACCESS_NETWORK_STATE Allows applications to access information about networks
String ACCESS_SURFACE_FLINGER Allows an application to use SurfaceFlinger's low level features.
String ACCESS_WIFI_STATE Allows applications to access information about Wi-Fi networks
String ACCOUNT_MANAGER Allows applications to call into AccountAuthenticators.
String ADD_VOICEMAIL Allows an application to add voicemails into the system.
String AUTHENTICATE_ACCOUNTS Allows an application to act as an AccountAuthenticator for the AccountManager
String BATTERY_STATS Allows an application to collect battery statistics
String BIND_ACCESSIBILITY_SERVICE Must be required by an AccessibilityService , to ensure that only the system can bind to it.
String BIND_APPWIDGET Allows an application to tell the AppWidget service which application can access AppWidget's data.
String BIND_DEVICE_ADMIN Must be required by device administration receiver, to ensure that only the system can interact with it.
String BIND_INPUT_METHOD Must be required by an InputMethodService , to ensure that only the system can bind to it.
String BIND_NFC_SERVICE Must be required by a HostApduService or OffHostApduService to ensure that only the system can bind to it.
String BIND_NOTIFICATION_LISTENER_SERVICE Must be required by an NotificationListenerService , to ensure that only the system can bind to it.
String BIND_PRINT_SERVICE Must be required by a PrintService , to ensure that only the system can bind to it.
String BIND_REMOTEVIEWS Must be required by a RemoteViewsService , to ensure that only the system can bind to it.
String BIND_TEXT_SERVICE Must be required by a TextService (e.g.
String BIND_VPN_SERVICE Must be required by a VpnService , to ensure that only the system can bind to it.
String BIND_WALLPAPER Must be required by a WallpaperService , to ensure that only the system can bind to it.
String BLUETOOTH Allows applications to connect to paired bluetooth devices
String BLUETOOTH_ADMIN Allows applications to discover and pair bluetooth devices
String BLUETOOTH_PRIVILEGED Allows applications to pair bluetooth devices without user interaction.
String BODY_SENSORS Allows an application to access data from sensors that the user uses to measure what is happening inside his/her body, such as heart rate.
String BRICK Required to be able to disable the device (very dangerous!).
String BROADCAST_PACKAGE_REMOVED Allows an application to broadcast a notification that an application package has been removed.
String BROADCAST_SMS Allows an application to broadcast an SMS receipt notification.
String BROADCAST_STICKY Allows an application to broadcast sticky intents.
String BROADCAST_WAP_PUSH Allows an application to broadcast a WAP PUSH receipt notification.
String CALL_PHONE Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.
String CALL_PRIVILEGED 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.
String CAMERA Required to be able to access the camera device.
String CAPTURE_AUDIO_OUTPUT Allows an application to capture audio output.
String CAPTURE_SECURE_VIDEO_OUTPUT Allows an application to capture secure video output.
String CAPTURE_VIDEO_OUTPUT Allows an application to capture video output.
String CHANGE_COMPONENT_ENABLED_STATE Allows an application to change whether an application component (other than its own) is enabled or not.
String CHANGE_CONFIGURATION Allows an application to modify the current configuration, such as locale.
String CHANGE_NETWORK_STATE Allows applications to change network connectivity state
String CHANGE_WIFI_MULTICAST_STATE Allows applications to enter Wi-Fi Multicast mode
String CHANGE_WIFI_STATE Allows applications to change Wi-Fi connectivity state
String CLEAR_APP_CACHE Allows an application to clear the caches of all installed applications on the device.
String CLEAR_APP_USER_DATA Allows an application to clear user data.
String CONTROL_LOCATION_UPDATES Allows enabling/disabling location update notifications from the radio.
String DELETE_CACHE_FILES Allows an application to delete cache files.
String DELETE_PACKAGES Allows an application to delete packages.
String DEVICE_POWER Allows low-level access to power management.
String DIAGNOSTIC Allows applications to RW to diagnostic resources.
String DISABLE_KEYGUARD Allows applications to disable the keyguard
String DUMP Allows an application to retrieve state dump information from system services.
String EXPAND_STATUS_BAR Allows an application to expand or collapse the status bar.
String FACTORY_TEST Run as a manufacturer test application, running as the root user.
String FLASHLIGHT Allows access to the flashlight
String FORCE_BACK Allows an application to force a BACK operation on whatever is the top activity.
String GET_ACCOUNTS Allows access to the list of accounts in the Accounts Service
String GET_PACKAGE_SIZE Allows an application to find out the space used by any package.
String GET_TASKS Allows an application to get information about the currently or recently running tasks.
String GET_TOP_ACTIVITY_INFO Allows an application to retrieve private information about the current top activity, such as any assist context it can provide.
String GLOBAL_SEARCH This permission can be used on content providers to allow the global search system to access their data.
String HARDWARE_TEST Allows access to hardware peripherals.
String INJECT_EVENTS Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.
String INSTALL_LOCATION_PROVIDER Allows an application to install a location provider into the Location Manager.
String INSTALL_PACKAGES Allows an application to install packages.
String INSTALL_SHORTCUT Allows an application to install a shortcut in Launcher
String INTERNAL_SYSTEM_WINDOW Allows an application to open windows that are for use by parts of the system user interface.
String INTERNET Allows applications to open network sockets.
String KILL_BACKGROUND_PROCESSES Allows an application to call killBackgroundProcesses(String) .
String LOCATION_HARDWARE Allows an application to use location features in hardware, such as the geofencing api.
String MANAGE_ACCOUNTS Allows an application to manage the list of accounts in the AccountManager
String MANAGE_APP_TOKENS Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.
String MANAGE_DOCUMENTS Allows an application to manage access to documents, usually as part of a document picker.
String MASTER_CLEAR Not for use by third-party applications.
String MEDIA_CONTENT_CONTROL Allows an application to know what content is playing and control its playback.
String MODIFY_AUDIO_SETTINGS Allows an application to modify global audio settings
String MODIFY_PHONE_STATE Allows modification of the telephony state - power on, mmi, etc.
String MOUNT_FORMAT_FILESYSTEMS Allows formatting file systems for removable storage.
String MOUNT_UNMOUNT_FILESYSTEMS Allows mounting and unmounting file systems for removable storage.
String NFC Allows applications to perform I/O operations over NFC
String PERSISTENT_ACTIVITY This constant was deprecated in API level 9. This functionality will be removed in the future; please do not use. Allow an application to make its activities persistent.
String PROCESS_OUTGOING_CALLS Allows an application to modify or abort outgoing calls.
String READ_CALENDAR Allows an application to read the user's calendar data.
String READ_CALL_LOG Allows an application to read the user's call log.
String READ_CONTACTS Allows an application to read the user's contacts data.
String READ_EXTERNAL_STORAGE Allows an application to read from external storage.
String READ_FRAME_BUFFER Allows an application to take screen shots and more generally get access to the frame buffer data.
String READ_HISTORY_BOOKMARKS Allows an application to read (but not write) the user's browsing history and bookmarks.
String READ_INPUT_STATE This constant was deprecated in API level 16. The API that used this permission has been removed.
String READ_LOGS Allows an application to read the low-level system log files.
String READ_PHONE_STATE Allows read only access to phone state.
String READ_PROFILE Allows an application to read the user's personal profile data.
String READ_SMS Allows an application to read SMS messages.
String READ_SOCIAL_STREAM Allows an application to read from the user's social stream.
String READ_SYNC_SETTINGS Allows applications to read the sync settings
String READ_SYNC_STATS Allows applications to read the sync stats
String READ_USER_DICTIONARY Allows an application to read the user dictionary.
String REBOOT Required to be able to reboot the device.
String RECEIVE_BOOT_COMPLETED Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting.
String RECEIVE_MMS Allows an application to monitor incoming MMS messages, to record or perform processing on them.
String RECEIVE_SMS Allows an application to monitor incoming SMS messages, to record or perform processing on them.
String RECEIVE_WAP_PUSH Allows an application to monitor incoming WAP push messages.
String RECORD_AUDIO Allows an application to record audio
String REORDER_TASKS Allows an application to change the Z-order of tasks
String RESTART_PACKAGES This constant was deprecated in API level 8. The restartPackage(String) API is no longer supported.
String SEND_RESPOND_VIA_MESSAGE Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming calls.
String SEND_SMS Allows an application to send SMS messages.
String SET_ACTIVITY_WATCHER Allows an application to watch and control how activities are started globally in the system.
String SET_ALARM Allows an application to broadcast an Intent to set an alarm for the user.
String SET_ALWAYS_FINISH Allows an application to control whether activities are immediately finished when put in the background.
String SET_ANIMATION_SCALE Modify the global animation scaling factor.
String SET_DEBUG_APP Configure an application for debugging.
String SET_ORIENTATION Allows low-level access to setting the orientation (actually rotation) of the screen.
String SET_POINTER_SPEED Allows low-level access to setting the pointer speed.
String SET_PREFERRED_APPLICATIONS This constant was deprecated in API level 7. No longer useful, see addPackageToPreferred(String) for details.
String SET_PROCESS_LIMIT Allows an application to set the maximum number of (not needed) application processes that can be running.
String SET_TIME Allows applications to set the system time.
String SET_TIME_ZONE Allows applications to set the system time zone
String SET_WALLPAPER Allows applications to set the wallpaper
String SET_WALLPAPER_HINTS Allows applications to set the wallpaper hints
String SIGNAL_PERSISTENT_PROCESSES Allow an application to request that a signal be sent to all persistent processes.
String STATUS_BAR Allows an application to open, close, or disable the status bar and its icons.
String SUBSCRIBED_FEEDS_READ Allows an application to allow access the subscribed feeds ContentProvider.
String SUBSCRIBED_FEEDS_WRITE
String SYSTEM_ALERT_WINDOW Allows an application to open windows using the type TYPE_SYSTEM_ALERT , shown on top of all other applications.
String TRANSMIT_IR Allows using the device's IR transmitter, if available
String UNINSTALL_SHORTCUT Allows an application to uninstall a shortcut in Launcher
String UPDATE_DEVICE_STATS Allows an application to update device statistics.
String USE_CREDENTIALS Allows an application to request authtokens from the AccountManager
String USE_SIP Allows an application to use SIP service
String VIBRATE Allows access to the vibrator
String WAKE_LOCK Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming
String WRITE_APN_SETTINGS Allows applications to write the apn settings.
String WRITE_CALENDAR Allows an application to write (but not read) the user's calendar data.
String WRITE_CALL_LOG Allows an application to write (but not read) the user's contacts data.
String WRITE_CONTACTS Allows an application to write (but not read) the user's contacts data.
String WRITE_EXTERNAL_STORAGE Allows an application to write to external storage.
String WRITE_GSERVICES Allows an application to modify the Google service map.
String WRITE_HISTORY_BOOKMARKS Allows an application to write (but not read) the user's browsing history and bookmarks.
String WRITE_PROFILE Allows an application to write (but not read) the user's personal profile data.
String WRITE_SECURE_SETTINGS Allows an application to read or write the secure system settings.
String WRITE_SETTINGS Allows an application to read or write the system settings.
String WRITE_SMS Allows an application to write SMS messages.
String WRITE_SOCIAL_STREAM Allows an application to write (but not read) the user's social stream data.
String WRITE_SYNC_SETTINGS Allows applications to write the sync settings
String WRITE_USER_DICTIONARY Allows an application to write to the user dictionary.
Public Constructors
Manifest.permission ()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ACCESS_CHECKIN_PROPERTIES

Added in API level 1

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.

Constant Value: "android.permission.ACCESS_CHECKIN_PROPERTIES"

public static final String ACCESS_COARSE_LOCATION

Added in API level 1

Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.

Constant Value: "android.permission.ACCESS_COARSE_LOCATION"

public static final String ACCESS_FINE_LOCATION

Added in API level 1

Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi.

Constant Value: "android.permission.ACCESS_FINE_LOCATION"

public static final String ACCESS_LOCATION_EXTRA_COMMANDS

Added in API level 1

Allows an application to access extra location provider commands

Constant Value: "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"

public static final String ACCESS_MOCK_LOCATION

Added in API level 1

Allows an application to create mock location providers for testing

Constant Value: "android.permission.ACCESS_MOCK_LOCATION"

public static final String ACCESS_NETWORK_STATE

Added in API level 1

Allows applications to access information about networks

Constant Value: "android.permission.ACCESS_NETWORK_STATE"

public static final String ACCESS_SURFACE_FLINGER

Added in API level 1

Allows an application to use SurfaceFlinger's low level features.

Not for use by third-party applications.

Constant Value: "android.permission.ACCESS_SURFACE_FLINGER"

public static final String ACCESS_WIFI_STATE

Added in API level 1

Allows applications to access information about Wi-Fi networks

Constant Value: "android.permission.ACCESS_WIFI_STATE"

public static final String ACCOUNT_MANAGER

Added in API level 5

Allows applications to call into AccountAuthenticators.

Not for use by third-party applications.

Constant Value: "android.permission.ACCOUNT_MANAGER"

public static final String ADD_VOICEMAIL

Allows an application to add voicemails into the system.

Constant Value: "com.android.voicemail.permission.ADD_VOICEMAIL"

public static final String AUTHENTICATE_ACCOUNTS

Added in API level 5

Allows an application to act as an AccountAuthenticator for the AccountManager

Constant Value: "android.permission.AUTHENTICATE_ACCOUNTS"

public static final String BATTERY_STATS

Added in API level 1

Allows an application to collect battery statistics

Constant Value: "android.permission.BATTERY_STATS"

public static final String BIND_ACCESSIBILITY_SERVICE

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

Constant Value: "android.permission.BIND_ACCESSIBILITY_SERVICE"

public static final String BIND_APPWIDGET

Added in API level 3

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.

Constant Value: "android.permission.BIND_APPWIDGET"

public static final String BIND_DEVICE_ADMIN

Added in API level 8

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

Constant Value: "android.permission.BIND_DEVICE_ADMIN"

public static final String BIND_INPUT_METHOD

Added in API level 3

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

Constant Value: "android.permission.BIND_INPUT_METHOD"

public static final String BIND_NFC_SERVICE

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

Constant Value: "android.permission.BIND_NFC_SERVICE"

public static final String BIND_NOTIFICATION_LISTENER_SERVICE

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

Constant Value: "android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"

public static final String BIND_PRINT_SERVICE

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

Constant Value: "android.permission.BIND_PRINT_SERVICE"

public static final String BIND_REMOTEVIEWS

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

Constant Value: "android.permission.BIND_REMOTEVIEWS"

public static final String BIND_TEXT_SERVICE

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

Constant Value: "android.permission.BIND_TEXT_SERVICE"

public static final String BIND_VPN_SERVICE

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

Constant Value: "android.permission.BIND_VPN_SERVICE"

public static final String BIND_WALLPAPER

Added in API level 8

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

Constant Value: "android.permission.BIND_WALLPAPER"

public static final String BLUETOOTH

Added in API level 1

Allows applications to connect to paired bluetooth devices

Constant Value: "android.permission.BLUETOOTH"

public static final String BLUETOOTH_ADMIN

Added in API level 1

Allows applications to discover and pair bluetooth devices

Constant Value: "android.permission.BLUETOOTH_ADMIN"

public static final String BLUETOOTH_PRIVILEGED

Allows applications to pair bluetooth devices without user interaction. This is not available to third party applications.

Constant Value: "android.permission.BLUETOOTH_PRIVILEGED"

public static final String BODY_SENSORS

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

Constant Value: "android.permission.BODY_SENSORS"

public static final String BRICK

Added in API level 1

Required to be able to disable the device (very dangerous!).

Not for use by third-party applications..

Constant Value: "android.permission.BRICK"

public static final String BROADCAST_PACKAGE_REMOVED

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.BROADCAST_PACKAGE_REMOVED"

public static final String BROADCAST_SMS

Added in API level 2

Allows an application to broadcast an SMS receipt notification.

Not for use by third-party applications.

Constant Value: "android.permission.BROADCAST_SMS"

public static final String BROADCAST_STICKY

Added in API level 1

Allows an application to broadcast sticky intents. These are broadcasts whose data is held by the system after being finished, so that clients can quickly retrieve that data without having to wait for the next broadcast.

Constant Value: "android.permission.BROADCAST_STICKY"

public static final String BROADCAST_WAP_PUSH

Added in API level 2

Allows an application to broadcast a WAP PUSH receipt notification.

Not for use by third-party applications.

Constant Value: "android.permission.BROADCAST_WAP_PUSH"

public static final String CALL_PHONE

Added in API level 1

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

Constant Value: "android.permission.CALL_PHONE"

public static final String CALL_PRIVILEGED

Added in API level 1

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.

Constant Value: "android.permission.CALL_PRIVILEGED"

public static final String CAMERA

Added in API level 1

Required to be able to access the camera device.

This will automatically enforce the <uses-feature> manifest element for all camera features. If you do not require all camera features or can properly operate if a camera is not available, then you must modify your manifest as appropriate in order to install on devices that don't support all camera features.

Constant Value: "android.permission.CAMERA"

public static final String CAPTURE_AUDIO_OUTPUT

Allows an application to capture audio output.

Not for use by third-party applications.

Constant Value: "android.permission.CAPTURE_AUDIO_OUTPUT"

public static final String CAPTURE_SECURE_VIDEO_OUTPUT

Allows an application to capture secure video output.

Not for use by third-party applications.

Constant Value: "android.permission.CAPTURE_SECURE_VIDEO_OUTPUT"

public static final String CAPTURE_VIDEO_OUTPUT

Allows an application to capture video output.

Not for use by third-party applications.

Constant Value: "android.permission.CAPTURE_VIDEO_OUTPUT"

public static final String CHANGE_COMPONENT_ENABLED_STATE

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.CHANGE_COMPONENT_ENABLED_STATE"

public static final String CHANGE_CONFIGURATION

Added in API level 1

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

Constant Value: "android.permission.CHANGE_CONFIGURATION"

public static final String CHANGE_NETWORK_STATE

Added in API level 1

Allows applications to change network connectivity state

Constant Value: "android.permission.CHANGE_NETWORK_STATE"

public static final String CHANGE_WIFI_MULTICAST_STATE

Added in API level 4

Allows applications to enter Wi-Fi Multicast mode

Constant Value: "android.permission.CHANGE_WIFI_MULTICAST_STATE"

public static final String CHANGE_WIFI_STATE

Added in API level 1

Allows applications to change Wi-Fi connectivity state

Constant Value: "android.permission.CHANGE_WIFI_STATE"

public static final String CLEAR_APP_CACHE

Added in API level 1

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

Constant Value: "android.permission.CLEAR_APP_CACHE"

public static final String CLEAR_APP_USER_DATA

Added in API level 1

Allows an application to clear user data.

Not for use by third-party applications.

Constant Value: "android.permission.CLEAR_APP_USER_DATA"

public static final String CONTROL_LOCATION_UPDATES

Added in API level 1

Allows enabling/disabling location update notifications from the radio.

Not for use by third-party applications.

Constant Value: "android.permission.CONTROL_LOCATION_UPDATES"

public static final String DELETE_CACHE_FILES

Added in API level 1

Allows an application to delete cache files.

Not for use by third-party applications.

Constant Value: "android.permission.DELETE_CACHE_FILES"

public static final String DELETE_PACKAGES

Added in API level 1

Allows an application to delete packages.

Not for use by third-party applications.

Constant Value: "android.permission.DELETE_PACKAGES"

public static final String DEVICE_POWER

Added in API level 1

Allows low-level access to power management.

Not for use by third-party applications.

Constant Value: "android.permission.DEVICE_POWER"

public static final String DIAGNOSTIC

Added in API level 1

Allows applications to RW to diagnostic resources.

Not for use by third-party applications.

Constant Value: "android.permission.DIAGNOSTIC"

public static final String DISABLE_KEYGUARD

Added in API level 1

Allows applications to disable the keyguard

Constant Value: "android.permission.DISABLE_KEYGUARD"

public static final String DUMP

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.DUMP"

public static final String EXPAND_STATUS_BAR

Added in API level 1

Allows an application to expand or collapse the status bar.

Constant Value: "android.permission.EXPAND_STATUS_BAR"

public static final String FACTORY_TEST

Added in API level 1

Run as a manufacturer test application, running as the root user. Only available when the device is running in manufacturer test mode.

Not for use by third-party applications.

Constant Value: "android.permission.FACTORY_TEST"

public static final String FLASHLIGHT

Added in API level 1

Allows access to the flashlight

Constant Value: "android.permission.FLASHLIGHT"

public static final String FORCE_BACK

Added in API level 1

Allows an application to force a BACK operation on whatever is the top activity.

Not for use by third-party applications.

Constant Value: "android.permission.FORCE_BACK"

public static final String GET_ACCOUNTS

Added in API level 1

Allows access to the list of accounts in the Accounts Service

Constant Value: "android.permission.GET_ACCOUNTS"

public static final String GET_PACKAGE_SIZE

Added in API level 1

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

Constant Value: "android.permission.GET_PACKAGE_SIZE"

public static final String GET_TASKS

Added in API level 1

Allows an application to get information about the currently or recently running tasks.

Constant Value: "android.permission.GET_TASKS"

public static final String GET_TOP_ACTIVITY_INFO

Allows an application to retrieve private information about the current top activity, such as any assist context it can provide.

Not for use by third-party applications.

Constant Value: "android.permission.GET_TOP_ACTIVITY_INFO"

public static final String GLOBAL_SEARCH

Added in API level 4

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.

Constant Value: "android.permission.GLOBAL_SEARCH"

public static final String HARDWARE_TEST

Added in API level 1

Allows access to hardware peripherals. Intended only for hardware testing.

Not for use by third-party applications.

Constant Value: "android.permission.HARDWARE_TEST"

public static final String INJECT_EVENTS

Added in API level 1

Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window. Without this permission, you can only deliver events to windows in your own process.

Not for use by third-party applications.

Constant Value: "android.permission.INJECT_EVENTS"

public static final String INSTALL_LOCATION_PROVIDER

Added in API level 4

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

Not for use by third-party applications.

Constant Value: "android.permission.INSTALL_LOCATION_PROVIDER"

public static final String INSTALL_PACKAGES

Added in API level 1

Allows an application to install packages.

Not for use by third-party applications.

Constant Value: "android.permission.INSTALL_PACKAGES"

public static final String INSTALL_SHORTCUT

Allows an application to install a shortcut in Launcher

Constant Value: "com.android.launcher.permission.INSTALL_SHORTCUT"

public static final String INTERNAL_SYSTEM_WINDOW

Added in API level 1

Allows an application to open windows that are for use by parts of the system user interface.

Not for use by third-party applications.

Constant Value: "android.permission.INTERNAL_SYSTEM_WINDOW"

public static final String INTERNET

Added in API level 1

Allows applications to open network sockets.

Constant Value: "android.permission.INTERNET"

public static final String KILL_BACKGROUND_PROCESSES

Added in API level 8

Allows an application to call killBackgroundProcesses(String) .

Constant Value: "android.permission.KILL_BACKGROUND_PROCESSES"

public static final String LOCATION_HARDWARE

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

Not for use by third-party applications.

Constant Value: "android.permission.LOCATION_HARDWARE"

public static final String MANAGE_ACCOUNTS

Added in API level 5

Allows an application to manage the list of accounts in the AccountManager

Constant Value: "android.permission.MANAGE_ACCOUNTS"

public static final String MANAGE_APP_TOKENS

Added in API level 1

Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.

Not for use by third-party applications.

Constant Value: "android.permission.MANAGE_APP_TOKENS"

public static final String MANAGE_DOCUMENTS

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

Constant Value: "android.permission.MANAGE_DOCUMENTS"

public static final String MASTER_CLEAR

Added in API level 1

Not for use by third-party applications.

Constant Value: "android.permission.MASTER_CLEAR"

public static final String MEDIA_CONTENT_CONTROL

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

Constant Value: "android.permission.MEDIA_CONTENT_CONTROL"

public static final String MODIFY_AUDIO_SETTINGS

Added in API level 1

Allows an application to modify global audio settings

Constant Value: "android.permission.MODIFY_AUDIO_SETTINGS"

public static final String MODIFY_PHONE_STATE

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.MODIFY_PHONE_STATE"

public static final String MOUNT_FORMAT_FILESYSTEMS

Added in API level 3

Allows formatting file systems for removable storage.

Not for use by third-party applications.

Constant Value: "android.permission.MOUNT_FORMAT_FILESYSTEMS"

public static final String MOUNT_UNMOUNT_FILESYSTEMS

Added in API level 1

Allows mounting and unmounting file systems for removable storage.

Not for use by third-party applications.

Constant Value: "android.permission.MOUNT_UNMOUNT_FILESYSTEMS"

public static final String NFC

Added in API level 9

Allows applications to perform I/O operations over NFC

Constant Value: "android.permission.NFC"

public static final String PERSISTENT_ACTIVITY

Added in API level 1

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

Constant Value: "android.permission.PERSISTENT_ACTIVITY"

public static final String PROCESS_OUTGOING_CALLS

Added in API level 1

Allows an application to modify or abort outgoing calls.

Constant Value: "android.permission.PROCESS_OUTGOING_CALLS"

public static final String READ_CALENDAR

Added in API level 1

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

Constant Value: "android.permission.READ_CALENDAR"

public static final String READ_CALL_LOG

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.

Constant Value: "android.permission.READ_CALL_LOG"

public static final String READ_CONTACTS

Added in API level 1

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

Constant Value: "android.permission.READ_CONTACTS"

public static final String READ_EXTERNAL_STORAGE

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 getExternalFilesDir(String) and getExternalCacheDir() .

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.

Constant Value: "android.permission.READ_EXTERNAL_STORAGE"

public static final String READ_FRAME_BUFFER

Added in API level 1

Allows an application to take screen shots and more generally get access to the frame buffer data.

Not for use by third-party applications.

Constant Value: "android.permission.READ_FRAME_BUFFER"

public static final String READ_HISTORY_BOOKMARKS

Added in API level 4

Allows an application to read (but not write) the user's browsing history and bookmarks.

Constant Value: "com.android.browser.permission.READ_HISTORY_BOOKMARKS"

public static final String READ_INPUT_STATE

Added in API level 1

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

Allows an application to retrieve the current state of keys and switches.

Not for use by third-party applications.

Constant Value: "android.permission.READ_INPUT_STATE"

public static final String READ_LOGS

Added in API level 1

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.

Constant Value: "android.permission.READ_LOGS"

public static final String READ_PHONE_STATE

Added in API level 1

Allows read only access to phone state.

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.

Constant Value: "android.permission.READ_PHONE_STATE"

public static final String READ_PROFILE

Allows an application to read the user's personal profile data.

Constant Value: "android.permission.READ_PROFILE"

public static final String READ_SMS

Added in API level 1

Allows an application to read SMS messages.

Constant Value: "android.permission.READ_SMS"

public static final String READ_SOCIAL_STREAM

Allows an application to read from the user's social stream.

Constant Value: "android.permission.READ_SOCIAL_STREAM"

public static final String READ_SYNC_SETTINGS

Added in API level 1

Allows applications to read the sync settings

Constant Value: "android.permission.READ_SYNC_SETTINGS"

public static final String READ_SYNC_STATS

Added in API level 1

Allows applications to read the sync stats

Constant Value: "android.permission.READ_SYNC_STATS"

public static final String READ_USER_DICTIONARY

Allows an application to read the user dictionary. This should really only be required by an IME, or a dictionary editor like the Settings app.

Constant Value: "android.permission.READ_USER_DICTIONARY"

public static final String REBOOT

Added in API level 1

Required to be able to reboot the device.

Not for use by third-party applications.

Constant Value: "android.permission.REBOOT"

public static final String RECEIVE_BOOT_COMPLETED

Added in API level 1

Allows an application to receive the 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.

Constant Value: "android.permission.RECEIVE_BOOT_COMPLETED"

public static final String RECEIVE_MMS

Added in API level 1

Allows an application to monitor incoming MMS messages, to record or perform processing on them.

Constant Value: "android.permission.RECEIVE_MMS"

public static final String RECEIVE_SMS

Added in API level 1

Allows an application to monitor incoming SMS messages, to record or perform processing on them.

Constant Value: "android.permission.RECEIVE_SMS"

public static final String RECEIVE_WAP_PUSH

Added in API level 1

Allows an application to monitor incoming WAP push messages.

Constant Value: "android.permission.RECEIVE_WAP_PUSH"

public static final String RECORD_AUDIO

Added in API level 1

Allows an application to record audio

Constant Value: "android.permission.RECORD_AUDIO"

public static final String REORDER_TASKS

Added in API level 1

Allows an application to change the Z-order of tasks

Constant Value: "android.permission.REORDER_TASKS"

public static final String RESTART_PACKAGES

Added in API level 1

This constant was deprecated in API level 8.
The restartPackage(String) API is no longer supported.

Constant Value: "android.permission.RESTART_PACKAGES"

public static final String SEND_RESPOND_VIA_MESSAGE

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.

Constant Value: "android.permission.SEND_RESPOND_VIA_MESSAGE"

public static final String SEND_SMS

Added in API level 1

Allows an application to send SMS messages.

Constant Value: "android.permission.SEND_SMS"

public static final String SET_ACTIVITY_WATCHER

Added in API level 1

Allows an application to watch and control how activities are started globally in the system. Only for is in debugging (usually the monkey command).

Not for use by third-party applications.

Constant Value: "android.permission.SET_ACTIVITY_WATCHER"

public static final String SET_ALARM

Added in API level 9

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

Constant Value: "com.android.alarm.permission.SET_ALARM"

public static final String SET_ALWAYS_FINISH

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.SET_ALWAYS_FINISH"

public static final String SET_ANIMATION_SCALE

Added in API level 1

Modify the global animation scaling factor.

Not for use by third-party applications.

Constant Value: "android.permission.SET_ANIMATION_SCALE"

public static final String SET_DEBUG_APP

Added in API level 1

Configure an application for debugging.

Not for use by third-party applications.

Constant Value: "android.permission.SET_DEBUG_APP"

public static final String SET_ORIENTATION

Added in API level 1

Allows low-level access to setting the orientation (actually rotation) of the screen.

Not for use by third-party applications.

Constant Value: "android.permission.SET_ORIENTATION"

public static final String SET_POINTER_SPEED

Allows low-level access to setting the pointer speed.

Not for use by third-party applications.

Constant Value: "android.permission.SET_POINTER_SPEED"

public static final String SET_PREFERRED_APPLICATIONS

Added in API level 1

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

Constant Value: "android.permission.SET_PREFERRED_APPLICATIONS"

public static final String SET_PROCESS_LIMIT

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.SET_PROCESS_LIMIT"

public static final String SET_TIME

Added in API level 8

Allows applications to set the system time.

Not for use by third-party applications.

Constant Value: "android.permission.SET_TIME"

public static final String SET_TIME_ZONE

Added in API level 1

Allows applications to set the system time zone

Constant Value: "android.permission.SET_TIME_ZONE"

public static final String SET_WALLPAPER

Added in API level 1

Allows applications to set the wallpaper

Constant Value: "android.permission.SET_WALLPAPER"

public static final String SET_WALLPAPER_HINTS

Added in API level 1

Allows applications to set the wallpaper hints

Constant Value: "android.permission.SET_WALLPAPER_HINTS"

public static final String SIGNAL_PERSISTENT_PROCESSES

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.SIGNAL_PERSISTENT_PROCESSES"

public static final String STATUS_BAR

Added in API level 1

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

Not for use by third-party applications.

Constant Value: "android.permission.STATUS_BAR"

public static final String SUBSCRIBED_FEEDS_READ

Added in API level 1

Allows an application to allow access the subscribed feeds ContentProvider.

Constant Value: "android.permission.SUBSCRIBED_FEEDS_READ"

public static final String SUBSCRIBED_FEEDS_WRITE

Added in API level 1

Constant Value: "android.permission.SUBSCRIBED_FEEDS_WRITE"

public static final String SYSTEM_ALERT_WINDOW

Added in API level 1

Allows an application to open windows using the type TYPE_SYSTEM_ALERT , shown on top of all other applications. Very few applications should use this permission; these windows are intended for system-level interaction with the user.

Constant Value: "android.permission.SYSTEM_ALERT_WINDOW"

public static final String TRANSMIT_IR

Allows using the device's IR transmitter, if available

Constant Value: "android.permission.TRANSMIT_IR"

public static final String UNINSTALL_SHORTCUT

Allows an application to uninstall a shortcut in Launcher

Constant Value: "com.android.launcher.permission.UNINSTALL_SHORTCUT"

public static final String UPDATE_DEVICE_STATS

Added in API level 3

Allows an application to update device statistics.

Not for use by third-party applications.

Constant Value: "android.permission.UPDATE_DEVICE_STATS"

public static final String USE_CREDENTIALS

Added in API level 5

Allows an application to request authtokens from the AccountManager

Constant Value: "android.permission.USE_CREDENTIALS"

public static final String USE_SIP

Added in API level 9

Allows an application to use SIP service

Constant Value: "android.permission.USE_SIP"

public static final String VIBRATE

Added in API level 1

Allows access to the vibrator

Constant Value: "android.permission.VIBRATE"

public static final String WAKE_LOCK

Added in API level 1

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

Constant Value: "android.permission.WAKE_LOCK"

public static final String WRITE_APN_SETTINGS

Added in API level 1

Allows applications to write the apn settings.

Not for use by third-party applications.

Constant Value: "android.permission.WRITE_APN_SETTINGS"

public static final String WRITE_CALENDAR

Added in API level 1

Allows an application to write (but not read) the user's calendar data.

Constant Value: "android.permission.WRITE_CALENDAR"

public static final String WRITE_CALL_LOG

Allows an application to write (but not read) the user's contacts data.

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.

Constant Value: "android.permission.WRITE_CALL_LOG"

public static final String WRITE_CONTACTS

Added in API level 1

Allows an application to write (but not read) the user's contacts data.

Constant Value: "android.permission.WRITE_CONTACTS"

public static final String WRITE_EXTERNAL_STORAGE

Added in API level 4

Allows an application to write to external storage.

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.

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

Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"

public static final String WRITE_GSERVICES

Added in API level 1

Allows an application to modify the Google service map.

Not for use by third-party applications.

Constant Value: "android.permission.WRITE_GSERVICES"

public static final String WRITE_HISTORY_BOOKMARKS

Added in API level 4

Allows an application to write (but not read) the user's browsing history and bookmarks.

Constant Value: "com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"

public static final String WRITE_PROFILE

Allows an application to write (but not read) the user's personal profile data.

Constant Value: "android.permission.WRITE_PROFILE"

public static final String WRITE_SECURE_SETTINGS

Added in API level 3

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

Not for use by third-party applications.

Constant Value: "android.permission.WRITE_SECURE_SETTINGS"

public static final String WRITE_SETTINGS

Added in API level 1

Allows an application to read or write the system settings.

Constant Value: "android.permission.WRITE_SETTINGS"

public static final String WRITE_SMS

Added in API level 1

Allows an application to write SMS messages.

Constant Value: "android.permission.WRITE_SMS"

public static final String WRITE_SOCIAL_STREAM

Allows an application to write (but not read) the user's social stream data.

Constant Value: "android.permission.WRITE_SOCIAL_STREAM"

public static final String WRITE_SYNC_SETTINGS

Added in API level 1

Allows applications to write the sync settings

Constant Value: "android.permission.WRITE_SYNC_SETTINGS"

public static final String WRITE_USER_DICTIONARY

Allows an application to write to the user dictionary.

Constant Value: "android.permission.WRITE_USER_DICTIONARY"

Public Constructors

public Manifest.permission ()

Added in API level 1