Android also limits the use of system resources, such as network devices, SD cards, recording devices, and so on. If your application wants to use any system resources, we have to apply for Android permissions. This is the role of <uses-permission> elements.
A permission usually has the following format, with a string named Name to guide the permissions we want to use.
Copy Code code as follows:
<uses-permission android:name= "string"/>
For example, to obtain permission to use the networking APIs, we specify the following elements as the child elements of <manifest>.
Copy Code code as follows:
<uses-permission android:name= "Android.permission.INTERNET"/>
If you need to add additional elements, we need to simply add more <uses-permission> to the line. The following is a collection of online information on the Android uses-permission Chinese annotation version, easy to find ~
Copy Code code as follows:
Allow applications to access and modify the "Properties" table data in the Checkin database
Android.permission.ACCESS_CHECKIN_PROPERTIES
Allows applications to get rough location information via WiFi or mobile base station
Android.permission.ACCESS_COARSE_LOCATION
Allows applications to obtain accurate location information via GPS
Android.permission.ACCESS_FINE_LOCATION
Allow applications to access additional location provider commands
Android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
Allows applications to obtain simulated positioning information for developer debugging applications
Android.permission.ACCESS_MOCK_LOCATION
Allow applications to get network information status
Android.permission.ACCESS_NETWORK_STATE
Allows applications to use Surfaceflinger underlying graphical display support, typically used for screen captures of game or Camera preview interface and underlying mode
Android.permission.ACCESS_SURFACE_FLINGER
Allow applications to access Wi-Fi network status information
Android.permission.ACCESS_WIFI_STATE
Allows the application to obtain account authentication information, mainly for Gmail account information, only system-level processes can access the permissions
Android.permission.ACCOUNT_MANAGER
Allow applications to use voice mail
Com.android.voicemail.permission.ADD_VOICEMAIL
Allows applications to access account management through account authentication Account_manager related information
Android.permission.AUTHENTICATE_ACCOUNTS
Allow applications to update cell phone battery statistics
Android.permission.BATTERY_STATS
Allows the application to bind the widget, telling the Appwidget service to access the widget's database
Android.permission.BIND_APPWIDGET
Allow application binding device management, request system Administrator receiver receiver, only system can use
Android.permission.BIND_DEVICE_ADMIN
Allow application binding Input method, request Inputmethodservice service, only system can use
Android.permission.BIND_INPUT_METHOD
Allow application binding RemoteView must be requested through the Remoteviewsservice service, only the system can use
Android.permission.BIND_REMOTEVIEWS
Requires a textservice, such as Spellcheckerservice (spell check service), to ensure that only the system can interact with it
Android.permission.BIND_TEXT_SERVICE
Requires a vpnservice to ensure that only the system can interact with it
Android.permission.BIND_VPN_SERVICE
Allow application binding wallpaper, which must be requested through the Wallpaperservice service, only the system can use
Android.permission.BIND_WALLPAPER
Allow applications to connect paired Bluetooth devices
Android.permission.BLUETOOTH
Allow applications to manage Bluetooth, search for and pair new Bluetooth devices
Android.permission.BLUETOOTH_ADMIN
Allow applications to disable devices (very dangerous)
Android.permission.BRICK
Allows an application to trigger a prompt message when it is deleted
Android.permission.BROADCAST_PACKAGE_REMOVED
Allows an application to trigger a broadcast when it receives a text message
Android.permission.BROADCAST_SMS
Allow applications to receive the next broadcast quickly after receiving a broadcast
Android.permission.BROADCAST_STICKY
Allow application to trigger a broadcast when the WAP push service is received
Android.permission.BROADCAST_WAP_PUSH
Allows an application to make a call and initialize a phone dial from a non-system dialer
Android.permission.CALL_PHONE
Allow the application to dial any number, including the emergency number without the Dial-up user interface
Android.permission.CALL_PRIVILEGED
Allow applications to access the camera
Android.permission.CAMERA
Allows the application to change the status of the component is enabled
Android.permission.CHANGE_COMPONENT_ENABLED_STATE
Allows the application to modify the current settings, such as localization
Android.permission.CHANGE_CONFIGURATION
Allow applications to change network connection status
Android.permission.CHANGE_NETWORK_STATE
Allow applications to set up WiFi connection multi-mode
Android.permission.CHANGE_WIFI_MULTICAST_STATE
Allow applications to change Wi-Fi connection status
Android.permission.CHANGE_WIFI_STATE
Allow application to purge application cache
Android.permission.CLEAR_APP_CACHE
Allow applications to purge applied user data
Android.permission.CLEAR_APP_USER_DATA
Allow applications to enable/disable location update prompts from the wireless module
Android.permission.CONTROL_LOCATION_UPDATES
Allow application to delete cached files
Android.permission.DELETE_CACHE_FILES
Allow applications to delete applications
Android.permission.DELETE_PACKAGES
Allow application underlying power management
Android.permission.DEVICE_POWER
Allow Application RW Diagnostic resources
Android.permission.DIAGNOSTIC
Allow applications to disable keyboard locks
Android.permission.DISABLE_KEYGUARD
Allow applications to retrieve state dump information from system services
Android.permission.DUMP
Allow applications to extend or shrink the status bar
Android.permission.EXPAND_STATUS_BAR
Allow application to run factory test mode
Android.permission.FACTORY_TEST
Allow applications to access flash
Android.permission.FLASHLIGHT
Allows the application to force the back rewind key, regardless of whether the activity is at the top level
Android.permission.FORCE_BACK
Allow application access to Gmail account list
Android.permission.GET_ACCOUNTS
Allow applications to get the file size of the application
Android.permission.GET_PACKAGE_SIZE
Allow applications to get current or recently run applications
Android.permission.GET_TASKS
Allow applications to use global search capabilities
Android.permission.GLOBAL_SEARCH
Allows applications to access hardware-assisted devices for hardware testing
Android.permission.HARDWARE_TEST
Allow applications to access the underlying events of this program
Android.permission.INJECT_EVENTS
Allow an application to install a location provider
Android.permission.INSTALL_LOCATION_PROVIDER
Allow applications to install applications
Android.permission.INSTALL_PACKAGES
Allow an application to open an internal window without opening this permission to a third party application
Android.permission.INTERNAL_SYSTEM_WINDOW
Allow applications to access network connections
Android.permission.INTERNET
Allow application to call Killbackgroundprocesses (String) method to end background process
Android.permission.KILL_BACKGROUND_PROCESSES
Allow applications to manage the list of accounts in Accountmanager
Android.permission.MANAGE_ACCOUNTS
Allow Application Management Program reference
Android.permission.MANAGE_APP_TOKENS
Allow applications to perform soft formatting and remove system configuration information
Android.permission.MASTER_CLEAR
Allow applications to modify global audio settings
Android.permission.MODIFY_AUDIO_SETTINGS
Allow applications to modify phone status, such as flight mode, etc.
Android.permission.MODIFY_PHONE_STATE
Allows applications to format removable file systems, such as formatting empty SD cards
Android.permission.MOUNT_FORMAT_FILESYSTEMS
Allow applications to mount and uninstall external file systems
Android.permission.MOUNT_UNMOUNT_FILESYSTEMS
Allows applications to perform NFC close-range communication operations
Android.permission.NFC
Allows an application to create a permanent activity
Android.permission.PERSISTENT_ACTIVITY
Allow applications to monitor and modify outgoing calls
Android.permission.PROCESS_OUTGOING_CALLS
Allow applications to read user calendar data
Android.permission.READ_CALENDAR
Allow applications to read call logs
Android.permission.READ_CALL_LOG
Allow applications to read contact Address book information
Android.permission.READ_CONTACTS
Allow applications to read extended storage
Android.permission.READ_EXTERNAL_STORAGE
Allows the application to read the frame cache for screenshots
Android.permission.READ_FRAME_BUFFER
Allow applications to read browser favorites and history
Com.android.browser.permission.READ_HISTORY_BOOKMARKS
Allows the application to read the input state of the current key, only for system
Android.permission.READ_INPUT_STATE
Allow the application to read the system's underlying log
Android.permission.READ_LOGS
Allow application to read phone status
Android.permission.READ_PHONE_STATE
Allow the application to read the user's personal information
Android.permission.READ_PROFILE
Allow the application to read the SMS content
Android.permission.READ_SMS
Allows the application to read the user's social exchange data
Android.permission.READ_SOCIAL_STREAM
Allows the application to read sync settings and read Google online sync settings
Android.permission.READ_SYNC_SETTINGS
Allows the application to read sync status and read Google online sync settings
Android.permission.READ_SYNC_STATS
Allow applications to read user dictionaries provider fetch data
Android.permission.READ_USER_DICTIONARY
Allow application to reboot device
Android.permission.REBOOT
Allow applications to run automatically on startup
Android.permission.RECEIVE_BOOT_COMPLETED
Allow applications to receive MMS
Android.permission.RECEIVE_MMS
Allow applications to receive text messages
Android.permission.RECEIVE_SMS
Allow applications to receive WAP push information
Android.permission.RECEIVE_WAP_PUSH
Allow applications to record audio
Android.permission.RECORD_AUDIO
Allow applications to change the z-axis arrangement tasks
Android.permission.REORDER_TASKS
Allow applications to restart other programs
Android.permission.RESTART_PACKAGES
Allow applications to send text messages
Android.permission.SEND_SMS
Allow applications to monitor or control the activities that have been started in the system
Android.permission.SET_ACTIVITY_WATCHER
Allow an application to set alarm reminders
Com.android.alarm.permission.SET_ALARM
Allows an application to set whether the program always exits in the background
Android.permission.SET_ALWAYS_FINISH
Set Global animation scaling
Android.permission.SET_ANIMATION_SCALE
Set up a debugger that is typically used to develop
Android.permission.SET_DEBUG_APP
Allow low-level access to set screen orientation and actual rotation
Android.permission.SET_ORIENTATION
Allow low-level access to set pointer speed
Android.permission.SET_POINTER_SPEED
Allow application settings to apply parameters
Android.permission.SET_PREFERRED_APPLICATIONS
Allow the application to set the maximum number of running processes
Android.permission.SET_PROCESS_LIMIT
Allow the application to set system time
Android.permission.SET_TIME
Allow the application to set the system time zone
Android.permission.SET_TIME_ZONE
Allow application settings Desktop wallpaper
Android.permission.SET_WALLPAPER
Allow Application Settings Wallpaper recommendation
Android.permission.SET_WALLPAPER_HINTS
Allow application requests to send signals to all displayed processes
Android.permission.SIGNAL_PERSISTENT_PROCESSES
Allow applications to open, close, or disable status bars and icons
Android.permission.STATUS_BAR
Allow applications to access subscribed RSS feed content providers
Android.permission.SUBSCRIBED_FEEDS_READ
Allows an application to write or modify data for a subscription to an RSS feed content provider
Android.permission.SUBSCRIBED_FEEDS_WRITE
Allows the application to open the System window to show other applications
Android.permission.SYSTEM_ALERT_WINDOW
Allow applications to update device status
Android.permission.UPDATE_DEVICE_STATS
Allow application requests to authenticate from Accountmanager
Android.permission.USE_CREDENTIALS
Allow applications to use SIP Video services
Android.permission.USE_SIP
Allow access to vibrating devices
Android.permission.VIBRATE
Allows applications to remain running after the phone is locked on the screen
Android.permission.WAKE_LOCK
Allow applications to write to network GPRS access point settings
Name= "Android.permission.WRITE_APN_SETTINGS
Allows an application to write to a user's schedule but not read
Android.permission.WRITE_CALENDAR
Allow applications to write call logs
Android.permission.WRITE_CALL_LOG
Allow an application to write to a contact but not read
Android.permission.WRITE_CONTACTS
Allows an application to write to an external store, such as a file on an SD card
Android.permission.WRITE_EXTERNAL_STORAGE
Allow applications to write to Google Map service data
Android.permission.WRITE_GSERVICES
Allow applications to write to browser history or favorites but not read
Com.android.browser.permission.WRITE_HISTORY_BOOKMARKS
Allow application to write user profile but not readable
Android.permission.WRITE_PROFILE
Allow applications to write security settings
Android.permission.WRITE_SECURE_SETTINGS
Allow applications to read or write system settings
Android.permission.WRITE_SETTINGS
Allow applications to write text messages
Android.permission.WRITE_SMS
Allow application to write user's social exchange data, but not read
Android.permission.WRITE_SOCIAL_STREAM
Allow program Google to sync settings online
Android.permission.WRITE_SYNC_SETTINGS
Allows the application to write data from the user dictionary provider
Android.permission.WRITE_USER_DICTIONARY