AndroidManifest. xml & lt; uses-permission & gt; node, androidmanifest

Source: Internet
Author: User
Tags deprecated unsupported delete cache

<Uses-permission> node of AndroidManifest. xml, androidmanifest

References:
Http://developer.android.com/reference/android/Manifest.permission.html
Http://developer.android.com/guide/topics/manifest/uses-permission-element.html

<Uses-permission> is a direct sub-node of <manifest>. You can have multiple system permissions to list all the system permissions required by the application. Otherwise, the application cannot run properly where related permissions are required.
The application will display these permissions to users during installation. The application can be installed only after the user permits them.

Syntax:

<uses-permission android:name="string"    android:maxSdkVersion="integer" />

 

Attribute:

Android: name
Permission name. This can be a standard system permission name, such as "android. permission. CAMERA "," android. permission. READ_CONTACTS "can also be the permissions defined by other applications in <permission>.

 

Android: maxSdkVersion
Invalidate this permission statement after an SDK version. Because some permissions may no longer be required after an SDK version, for example, "WRITE_EXTERNAL_STORAGE" is not required in 4.4 (api19) or later.

 

Standard System permission list:

ACCESS_CHECKIN_PROPERTIES: Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded.
Checkin database is a function in google map. The mobile phone automatically records your location

ACCESS_COARSE_LOCATION: Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.
The approximate location can be obtained through the base station or wifi. Related class LocationManager

ACCESS_FINE_LOCATION: Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi.
Precise location can be obtained through GPS, base station, or Wi-Fi. Related class LocationManager

ACCESS_LOCATION_EXTRA_COMMANDS: Allows an application to access extra location provider commands
Information about GPS Positioning must be declared when GPS LocationProvider class is used. Related class LocationManager

ACCESS_MOCK_LOCATION: Allows an application to create mock location providers for testing
Information about GPS Positioning must be declared when GPS LocationProvider class is used. Related class LocationManager

ACCESS_NETWORK_STATE: Allows applications to access information about networks
Obtain the network status. ConnectivityManager

ACCESS_SURFACE_FLINGER: Allows an application to use SurfaceFlinger's low level features.
The Android platform provides an underlying display interface FLINGER service, which requires this permission. MSurfaceSession = new SurfaceSession ();

ACCESS_WIFI_STATE: Allows applications to access information about Wi-Fi networks
Obtain the Wi-Fi status information. WifiManager wm = (WifiManager) getSystemService (Context. WIFI_SERVICE );

ACCOUNT_MANAGER: Allows applications to call into AccountAuthenticators.
Permissions required for user account management. AccountManager

ADD_VOICEMAIL: Allows an application to add voicemails into the system.
Add a voice mail to your mailbox. VoicemailContract

AUTHENTICATE_ACCOUNTS: Allows an application to act as an AccountAuthenticator for the AccountManager
Account authentication permissions. AccountManager

BATTERY_STATS: Allows an application to collect battery statistics
Battery status permissions. Related class BatteryManager

BIND_ACCESSIBILITY_SERVICE: Must be required by an AccessibilityService, to ensure that only the system can bind to it.
Auxiliary service permissions. AccessibilityService

BIND_APPWIDGET: Allows an application to tell the AppWidget service which application can access AppWidget's data.
Related Classes: AppWidgetService

BIND_DEVICE_ADMIN: Must be required by device administration receivreceiver, to ensure that only the system can interact with it.
Permission for the device management service. DeviceAdminReceiver

BIND_DREAM_SERVICE: Must be required by an DreamService, to ensure that only the system can bind to it.
Daydream function related permissions. DreamService

BIND_INPUT_METHOD: Must be required by an InputMethodService, to ensure that only the system can bind to it.
Input Method permissions. InputMethodService

BIND_NFC_SERVICE: Must be required by a HostApduService or OffHostApduService to ensure that only the system can bind to it.
Permissions required for NFC communication. Related Classes: HostApduService and OffHostApduService

BIND_NOTIFICATION_LISTENER_SERVICE: Must be required by an NotificationListenerService, to ensure that only the system can bind to it.
The permission to listen for notification messages. NotificationListenerService

BIND_PRINT_SERVICE: Must be required by a PrintService, to ensure that only the system can bind to it.
Print related permissions. PrintService

BIND_REMOTEVIEWS: Must be required by a RemoteViewsService, to ensure that only the system can bind to it.
Widget-related permissions. RemoteViewsService

BIND_TEXT_SERVICE: Must be required by a TextService
Input Method permissions. TextService

BIND_ TV _INPUT: Must be required by a TvInputService to ensure that only the system can bind to it.
Related TvInputService

BIND_VOICE_INTERACTION: Must be required by a VoiceInteractionService, to ensure that only the system can bind to it.
Speech recognition permissions. VoiceInteractionService

BIND_VPN_SERVICE: Must be required by a VpnService, to ensure that only the system can bind to it.
VPN related permissions. VpnService

BIND_WALLPAPER: Must be required by a WallpaperService, to ensure that only the system can bind to it.
Wallpaper related permissions. Related class WallpaperService

BLUETOOTH: Allows applications to connect to other red bluetooth devices
Bluetooth connection permission. BluetoothAdapter

Descrith_admin: Allows applications to discover and pair bluetooth devices
Bluetooth device discovery and pairing permissions. BluetoothAdapter

Export th_privileged: Allows applications to pair bluetooth devices without user interaction, and to allow or disallow phonebook access or message access.
Allows discovery and pairing of Bluetooth devices without prompting users. BluetoothAdapter

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.
Body sensor permissions.

BRICK: Required to be able to disable the device (very dangerous !).
Change the brick permission in one second...

BROADCAST_PACKAGE_REMOVED: Allows an application to broadcast a notification that an application package has been removed.
Broadcast notification permission after an application is deleted

BROADCAST_SMS: Allows an application to broadcast an SMS receept notification.
Receives the SMS_DELIVER_ACTION permission. Telephony. Sms. Intents

BROADCAST_STICKY: Allows an application to broadcast sticky intents.
Send sticky broadcast permission. Related Methods: sendStickyBroadcast

BROADCAST_WAP_PUSH: Allows an application to broadcast a wap push receipnotification.
Accept the WAP_PUSH_DELIVER_ACTION permission. Telephony. Sms. Intents

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.
Application dialing permission. Related code
Uri uri = Uri. parse ("tel: 12345678 ");
Intent intent = new Intent (Intent. ACTION_CALL, uri );
StartActivity (intent );

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.
The system has exclusive call permissions, including emergency calls.

CAMERA: Required to be able to access the camera device.
Call the camera permission. Camera

CAPTURE_AUDIO_OUTPUT: Allows an application to capture audio output.
Capture the sound of the system's internal speakers. Related Classes: AudioRecord

CAPTURE_SECURE_VIDEO_OUTPUT: Allows an application to capture secure video output.
Private video output capturing permission

CAPTURE_VIDEO_OUTPUT: Allows an application to capture video output.
Video Capture and output Permissions

CHANGE_COMPONENT_ENABLED_STATE: Allows an application to change whether an application component (other than its own) is enabled or not.
Look at the usage here http://blog.csdn.net/yinlijun2004/article/details/6136108

CHANGE_CONFIGURATION: Allows an application to modify the current configuration, such as locale.
Modify the current configuration, such as a region. Http://blog.csdn.net/wqhjfree/article/details/9125997 here

CHANGE_NETWORK_STATE: Allows applications to change network connectivity state
Modify the network connection status permission. ConnectivityManager

CHANGE_WIFI_MULTICAST_STATE: Allows applications to enter Wi-Fi Multicast mode
Modify the permissions of the wifi multicast function. WifiManager

CHANGE_WIFI_STATE: Allows applications to change Wi-Fi connectivity state
Modify the permissions of the Wi-Fi connection status. WifiManager

CLEAR_APP_CACHE: Allows an application to clear the caches of all installed applications on the device.
Clear all application cache permissions.

CLEAR_APP_USER_DATA: Allows an application to clear user data.
Clear user data Permissions

CONTROL_LOCATION_UPDATES: Allows enabling/disabling location update configurations from the radio.
Enable or disable the location data update permission. Related class LocationManager

DELETE_CACHE_FILES: Allows an application to delete cache files.
Delete cache file permissions

DELETE_PACKAGES: Allows an application to delete packages.
Delete package permission

DEVICE_POWER: Allows low-level access to power management.
Low-level power management permissions. Related class PowerManagerService

DIAGNOSTIC: Allows applications to RW to diagnostic resources.
DISABLE_KEYGUARD: Allows applications to disable the keyguard
DUMP: Allows an application to retrieve state dump information from system services.
EXPAND_STATUS_BAR: Allows an application to expand or collapse the status bar.
FACTORY_TEST: Run as a manufacturer test application, running as the root user.
FLASHLIGHT: Allows access to the flashlight
FORCE_BACK: Allows an application to force a BACK operation on whatever is the top activity.
GET_ACCOUNTS: Allows access to the list of accounts in the Accounts Service
GET_PACKAGE_SIZE: Allows an application to find out the space used by any package.
GET_TASKS: This constant was deprecated in API level 21. No longer enforced.
GET_TOP_ACTIVITY_INFO: Allows an application to retrieve private information about the current top activity, such as any assist context it can provide.
GLOBAL_SEARCH: This permission can be used on content providers to allow the global search system to access their data.
HARDWARE_TEST: Allows access to hardware peripherals.
INJECT_EVENTS: Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.
INSTALL_LOCATION_PROVIDER: Allows an application to install a location provider into the Location Manager.
INSTALL_PACKAGES: Allows an application to install packages.
INSTALL_SHORTCUT: Allows an application to install a shortcut in Launcher
INTERNAL_SYSTEM_WINDOW: Allows an application to open windows that are for use by parts of the system user interface.
INTERNET: Allows applications to open network sockets.
KILL_BACKGROUND_PROCESSES: Allows an application to call killBackgroundProcesses (String ).
LOCATION_HARDWARE: Allows an application to use location features in hardware, such as the geofencing api.
MANAGE_ACCOUNTS: Allows an application to manage the list of accounts in the AccountManager
MANAGE_APP_TOKENS: Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.
MANAGE_DOCUMENTS: Allows an application to manage access to documents, usually as part of a document picker.
MASTER_CLEAR: Not for use by third-party applications.
MEDIA_CONTENT_CONTROL: Allows an application to know what content is playing and control its playback.
MODIFY_AUDIO_SETTINGS: Allows an application to modify global audio settings
MODIFY_PHONE_STATE: Allows modification of the telephony state-power on, mmi, etc.
MOUNT_FORMAT_FILESYSTEMS: Allows formatting file systems for removable storage.
MOUNT_UNMOUNT_FILESYSTEMS: Allows mounting and unmounting file systems for removable storage.
NFC: Allows applications to perform I/O operations over NFC
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.
Process_outgoing_cils: Allows an application to see the number being dialed during an outgoing call with the option to redirect the call to a different number or abort the call altogether.
READ_CALENDAR: Allows an application to read the user's calendar data.
READ_CALL_LOG: Allows an application to read the user's call log.
READ_CONTACTS: Allows an application to read the user's contacts data.
READ_EXTERNAL_STORAGE: Allows an application to read from external storage.
READ_FRAME_BUFFER: Allows an application to take screen shots and more generally get access to the frame buffer data.
READ_HISTORY_BOOKMARKS: Allows an application to read (but not write) the user's browsing history and bookmarks.
READ_INPUT_STATE: This constant was deprecated in API level 16. The API that used this permission has been removed.
READ_LOGS: Allows an application to read the low-level system log files.
READ_PHONE_STATE: Allows read only access to phone state.
READ_PROFILE: Allows an application to read the user's personal profile data.
READ_SMS: Allows an application to read SMS messages.
READ_SOCIAL_STREAM: This constant was deprecated in API level 21. This functionality will be unsupported in the future; cursors returned will be empty. Please do not use.
READ_SYNC_SETTINGS: Allows applications to read the sync settings
READ_SYNC_STATS: Allows applications to read the sync stats
READ_USER_DICTIONARY: Allows an application to read the user dictionary.
READ_VOICEMAIL: Allows an application to read voicemails in the system.
REBOOT: Required to be able to reboot the device.
RECEIVE_BOOT_COMPLETED: Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting.
RECEIVE_MMS: Allows an application to monitor incoming MMS messages, to record or perform processing on them.
RECEIVE_SMS: Allows an application to monitor incoming SMS messages, to record or perform processing on them.
RECEIVE_WAP_PUSH: Allows an application to monitor incoming WAP push messages.
RECORD_AUDIO: Allows an application to record audio
REORDER_TASKS: Allows an application to change the Z-order of tasks
RESTART_PACKAGES: This constant was deprecated in API level 8. The restartPackage (String) API is no longer supported.
SEND_RESPOND_VIA_MESSAGE: Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming CILS.
SEND_SMS: Allows an application to send SMS messages.
SET_ACTIVITY_WATCHER: Allows an application to watch and control how activities are started globally in the system.
SET_ALARM: Allows an application to broadcast an Intent to set an alarm for the user.
SET_ALWAYS_FINISH: Allows an application to control whether activities are immediately finished when put in the background.
SET_ANIMATION_SCALE: Modify the global animation scaling factor.
SET_DEBUG_APP: Configure an application for debugging.
SET_ORIENTATION: Allows low-level access to setting the orientation (actually rotation) of the screen.
SET_POINTER_SPEED: Allows low-level access to setting the pointer speed.
SET_PREFERRED_APPLICATIONS: This constant was deprecated in API level 7. No longer useful, see addPackageToPreferred (String) for details.
SET_PROCESS_LIMIT: Allows an application to set the maximum number of (not needed) application processes that can be running.
SET_TIME: Allows applications to set the system time.
SET_TIME_ZONE: Allows applications to set the system time zone
SET_WALLPAPER: Allows applications to set the wallpaper
SET_WALLPAPER_HINTS: Allows applications to set the wallpaper hints
SIGNAL_PERSISTENT_PROCESSES: Allow an application to request that a signal be sent to all persistent processes.
STATUS_BAR: Allows an application to open, close, or disable the status bar and its icons.
SUBSCRIBED_FEEDS_READ: Allows an application to allow access the subscribed feeds ContentProvider.
SUBSCRIBED_FEEDS_WRITE:
SYSTEM_ALERT_WINDOW: Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications.
TRANSMIT_IR: Allows using the device's IR transmitter, if available
UNINSTALL_SHORTCUT: Allows an application to uninstall a shortcut in Launcher
UPDATE_DEVICE_STATS: Allows an application to update device statistics.
USE_CREDENTIALS: Allows an application to request authtokens from the AccountManager
USE_SIP: Allows an application to use SIP service
VIBRATE: Allows access to the vibrator
WAKE_LOCK: Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming
WRITE_APN_SETTINGS: Allows applications to write the apn settings.
WRITE_CALENDAR: Allows an application to write (but not read) the user's calendar data.
WRITE_CALL_LOG: Allows an application to write (but not read) the user's contacts data.
WRITE_CONTACTS: Allows an application to write (but not read) the user's contacts data.
WRITE_EXTERNAL_STORAGE: Allows an application to write to external storage.
WRITE_GSERVICES: Allows an application to modify the Google service map.
WRITE_HISTORY_BOOKMARKS: Allows an application to write (but not read) the user's browsing history and bookmarks.
WRITE_PROFILE: Allows an application to write (but not read) the user's personal profile data.
WRITE_SECURE_SETTINGS: Allows an application to read or write the secure system settings.
WRITE_SETTINGS: Allows an application to read or write the system settings.
WRITE_SMS: Allows an application to write SMS messages.
WRITE_SOCIAL_STREAM: This constant was deprecated in API level 21. This functionality will be unsupported in the future; cursors returned will be empty. Please do not use.
WRITE_SYNC_SETTINGS: Allows applications to write the sync settings
WRITE_USER_DICTIONARY: Allows an application to write to the user dictionary.
WRITE_VOICEMAIL: Allows an application to modify and remove existing voicemails in the system

 

There are too many permission tables .. Not commented .. Forget it


How can I add androidpermissionCAMERA permission to AndroidManifestxml during Android development ?......

Permissions are generally written after the sdk version and before the application tag. For example:
<Uses-sdk android: minSdkVersion = "10"/>

<Uses-permission android: name = "android. permission. CALL_PHONE"> </uses-permission>
<Application android: icon = "@ drawable/icon" android: label = "@ string/app_name">

In Android, when do I need to add a declaration in AndroidManifestxml?

When you have a new activity, you need to add permissions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.