写在AndroidManifest.xml 里
像这个样子:
</application>
<uses-permission
android:name="android.permission.RUN_INSTRUMENTATION" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE">
</uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE">
</uses-permission>
String
ACCESS_CHECKIN_PROPERTIES
Allows read/write access to the "propTechnorati Tags: Android,permission,Manifest
erties" table in the checkin database, to change values that get uploaded.String
ACCESS_COARSE_LOCATION
Allows an application to access coarse (e.g., Cell-ID, WiFi) locationString
ACCESS_FINE_LOCATION
Allows an application to access fine (e.g., GPS) locationString
ACCESS_LOCATION_EXTRA_COMMANDS
Allows an application to access extra location provider commandsString
ACCESS_MOCK_LOCATION
Allows an application to create mock location providers for testingString
ACCESS_NETWORK_STATE
Allows applications to access information about networksString
ACCESS_SURFACE_FLINGER
Allows an application to use SurfaceFlinger's low level featuresString
ACCESS_WIFI_STATE
Allows applications to access information about Wi-Fi networksString
ACCOUNT_MANAGER
Allows applications to call into AccountAuthenticators.String
AUTHENTICATE_ACCOUNTS
Allows an application to act as an AccountAuthenticator for the AccountManagerString
BATTERY_STATS
Allows an application to collect battery statisticsString
BIND_APPWIDGET
Allows an application to tell the AppWidget service which application can access AppWidget's data.String
BIND_INPUT_METHOD
Must be required by input method services, to ensure that only the system can bind to them.String
BLUETOOTH
Allows applications to connect to paired bluetooth devicesString
BLUETOOTH_ADMIN
Allows applications to discover and pair bluetooth devicesString
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 notificationString
BROADCAST_STICKY
Allows an application to broadcast sticky intents.String
BROADCAST_WAP_PUSH
Allows an application to broadcast a WAP PUSH receipt notificationString
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
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 stateString
CHANGE_WIFI_MULTICAST_STATE
Allows applications to enter Wi-Fi Multicast modeString
CHANGE_WIFI_STATE
Allows applications to change Wi-Fi connectivity stateString
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 dataString
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 managementString
DIAGNOSTIC
Allows applications to RW to diagnostic resources.String
DISABLE_KEYGUARD
Allows applications to disable the keyguardString
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 flashlightString
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 ServiceString
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: a thumbnail representation of the tasks, what activities are running in it, etc.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 ManagerString
INSTALL_PACKAGES
Allows an application to install packages.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
MANAGE_ACCOUNTS
Allows an application to manage the list of accounts in the AccountManagerString
MANAGE_APP_TOKENS
Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.String
MASTER_CLEARString
MODIFY_AUDIO_SETTINGS
Allows an application to modify global audio settingsString
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
PERSISTENT_ACTIVITY
Allow an application to make its activities persistent.String
PROCESS_OUTGOING_CALLS
Allows an application to monitor, modify, or abort outgoing calls.String
READ_CALENDAR
Allows an application to read the user's calendar data.String
READ_CONTACTS
Allows an application to read the user's contacts data.String
READ_FRAME_BUFFER
Allows an application to take screen shots and more generally get access to the frame buffer dataString
READ_HISTORY_BOOKMARKS
Allows an application to read (but not write) the user's browsing history and bookmarks.String
READ_INPUT_STATE
Allows an application to retrieve the current state of keys and switches.String
READ_LOGS
Allows an application to read the low-level system log files.String
READ_OWNER_DATA
Allows an application to read the owner's data.String
READ_PHONE_STATE
Allows read only access to phone state.String
READ_SMS
Allows an application to read SMS messages.String
READ_SYNC_SETTINGS
Allows applications to read the sync settingsString
READ_SYNC_STATS
Allows applications to read the sync statsString
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 audioString
REORDER_TASKS
Allows an application to change the Z-order of tasksString
RESTART_PACKAGES
Allows an application to restart other applications.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_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_PREFERRED_APPLICATIONS
This constant is deprecated. 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_ZONE
Allows applications to set the system time zoneString
SET_WALLPAPER
Allows applications to set the wallpaperString
SET_WALLPAPER_HINTS
Allows applications to set the wallpaper hintsString
SIGNAL_PERSISTENT_PROCESSES
Allow an application to request that a signal be sent to all persistent processesString
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_WRITEString
SYSTEM_ALERT_WINDOW
Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications.String
UPDATE_DEVICE_STATS
Allows an application to update device statistics.String
USE_CREDENTIALS
Allows an application to request authtokens from the AccountManagerString
VIBRATE
Allows access to the vibratorString
WAKE_LOCK
Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimmingString
WRITE_APN_SETTINGS
Allows applications to write the apn settingsString
WRITE_CALENDAR
Allows an application to write (but not read) the user's calendar 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 storageString
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_OWNER_DATA
Allows an application to write (but not read) the owner's 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_SYNC_SETTINGS
Allows applications to write the sync settings