编程知识 cdmana.com

Android foundation - Development Rights

brief introduction

Android permissions are limited APP The role of active directory and scope , In Android Development AndroidManifest.xml Middle configuration , Such as :

<uses-permission android:name="android.permission.ACCEPT_HANDOVER"></uses-permission>

Android 9 The above needs to be in <application> Add allowed operations in , Such as :

android:requestLegacyExternalStorage="true"

AndroidManifest.xml An example of comprehensive permission configuration is as follows :

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.myapplication">
    <!--     Android permission configuration starts -->
    <uses-permission android:name="android.permission.ACCEPT_HANDOVER"></uses-permission>
    <!--     End of Android permission configuration -->
    <application android:allowBackup="true"
        android:label="@string/app_name"
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:requestLegacyExternalStorage="true"
        >
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

The common authority table summarizes

jurisdiction paraphrase
android.permission.WRITE_USER_DICTIONARY Allow the application to write new words... To the user dictionary
android.permission.WRITE_SYNC_SETTINGS write in Google Online synchronization settings
android.permission.WRITE_SOCIAL_STREAM Read the user's social stream
android.permission.WRITE_SMS Allow programs to write SMS
android.permission.WRITE_SETTINGS Allow programs to read or write system settings
android.permission.WRITE_SECURE_SETTINGS Allow applications to read or write security system settings
android.permission.WRITE_PROFILE Allow programs to write personal data
com.android.browser.permission.WRITE_HISTORY_BOOKMARKS Allow an application to write ( But not readable ) User's browsing history and Bookmarks
android.permission.WRITE_GSERVICES Allow the program to modify Google Service map
android.permission.WRITE_EXTERNAL_STORAGE Allow programs to write to external storage , Such as SD Write the document on the card
android.permission.WRITE_CONTACTS Write contact , But not readable
android.permission.WRITE_CALL_LOG Allow programs to write ( But I can't read ) User's contact data
android.permission.WRITE_CALENDAR Allow programs to write schedules , But not readable
android.permission.WRITE_APN_SETTINGS Allow programs to write to the network GPRS Access point settings
android.permission.WAKE_LOCK Allow the background process to still run after the phone screen is closed
android.permission.VIBRATE Allow program vibration
android.permission.USE_SIP Allow programs to use SIP Video service
android.permission.USE_CREDENTIALS Allow the program to request validation from AccountManager
android.permission.UPDATE_DEVICE_STATS Allow programs to update device status
com.android.launcher.permission.UNINSTALL_SHORTCUT Delete shortcut
android.permission.TRANSMIT_IR Allow the use of the device's infrared transmitter , If available
android.permission.SYSTEM_ALERT_WINDOW Allow programs to display system Windows
android.permission.SUBSCRIBED_FEEDS_WRITE Allows programs to write to or modify a database of subscriptions
android.permission.SUBSCRIBED_FEEDS_READ Allow the program to access the database of subscription information
android.permission.STATUS_BAR Allow the program to open 、 close 、 Disable status bar
android.permission.SIGNAL_PERSISTENT_PROCESSES Allows the program to send a permanent process signal
android.permission.SET_WALLPAPER_HINTS Allow the program to set wallpaper suggestions
android.permission.SET_WALLPAPER Allow programs to set desktop wallpaper
android.permission.SET_TIME_ZONE Allow the program to set the system time zone
android.permission.SET_TIME Allow programs to set system time
android.permission.SET_PROCESS_LIMIT Allow the program to set a limit on the maximum number of processes
android.permission.SET_PREFERRED_APPLICATIONS Allow the program to set the parameters of the application , No longer work to see addPackageToPreferred(String)
android.permission.SET_POINTER_SPEED Cannot be obtained by a third party application , System permissions
android.permission.SET_ORIENTATION Allows the program to set the screen direction to horizontal or standard display , Not for general applications
android.permission.SET_DEBUG_APP Allow programs to set up debugging programs , Generally used to develop
android.permission.SET_ANIMATION_SCALE Allows the program to set global animation scaling
android.permission.SET_ALWAYS_FINISH Allow programs to set whether programs always exit in the background
com.android.alarm.permission.SET_ALARM Allow the program to set alarm
android.permission.SET_ACTIVITY_WATCHER Allow program settings Activity The observer is generally used for monkey test
android.permission.SEND_SMS Allow programs to send text messages
android.permission.SEND_RESPOND_VIA_MESSAGE Allow users to use your app for instant SMS replies when they call .
android.permission.RESTART_PACKAGES Allow the program to end the task by restartPackage(String) Method , This way will give up outside
android.permission.REORDER_TASKS Allow programs to reorder the system Z Tasks in axis operation
android.permission.RECORD_AUDIO Allow the program to record sound through the phone or headset's mic
android.permission.RECEIVE_WAP_PUSH Allow the program to receive WAP
android.permission.RECEIVE_SMS Allow programs to receive text messages
android.permission.RECEIVE_MMS Allow programs to receive multimedia messages
android.permission.RECEIVE_BOOT_COMPLETED Allow the program to start automatically
android.permission.REBOOT Allow the program to restart the device
android.permission.READ_USER_DICTIONARY Get data from a provider , For the corresponding provider , Application needs “ Read access rights ”
android.permission.READ_SYNC_STATS Allow the program to read the synchronization state , get Google Online synchronization status
android.permission.READ_SYNC_SETTINGS Allow programs to read synchronization settings , Read Google Online synchronization settings
android.permission.READ_SOCIAL_STREAM Read the user's social stream
android.permission.READ_SMS Allow program to read SMS content
android.permission.READ_PROFILE Access user profile
android.permission.READ_PHONE_STATE Allow programs to access phone status
android.permission.READ_LOGS Allow programs to read the system's underlying logs
android.permission.READ_INPUT_STATE Allows the program to read the input status of the current key , Only for system
com.android.browser.permission.READ_HISTORY_BOOKMARKS Allows programs to read browser favorites and history
android.permission.READ_FRAME_BUFFER Allows the program to read the frame cache for screenshots
android.permission.READ_EXTERNAL_STORAGE The program can read the external storage space of the device ( built-in SDcard And external SDCard) The file of , If your App Already added “WRITE_EXTERNAL_STORAGE
android.permission.READ_CONTACTS Allow programs to access contact address book information
android.permission.READ_CALL_LOG Read call logs
android.permission.READ_CALENDAR Allow the program to read the user's schedule information
android.permission.PROCESS_OUTGOING_CALLS Allow programs to monitor , To modify or abandon a broadcast call
android.permission.PERSISTENT_ACTIVITY Allows the program to create a permanent Activity, This feature is marked as being removed in the future
android.permission.NFC Allow the program to execute NFC Close communication operation , For mobile support
android.permission.MOUNT_UNMOUNT_FILESYSTEMS Allow programs to mount 、 Anti mount external file system
android.permission.MOUNT_FORMAT_FILESYSTEMS Allows programs to format removable file systems , For example, format empty SD card
android.permission.MODIFY_PHONE_STATE Allow the program to change the phone status , Like flight mode , But it does not include the replacement system Dialer Interface
android.permission.MODIFY_AUDIO_SETTINGS Allow the program to modify the sound settings
android.permission.MEDIA_CONTENT_CONTROL Allow an application to know what is playing and controlling its content . Not used by third party applications .
android.permission.MASTER_CLEAR Allow the program to perform soft formatting , Delete system configuration information
android.permission.MANAGE_DOCUMENTS Allow an application to manage access to documents , It's usually a document selector section
android.permission.MANAGE_APP_TOKENS Manage creation 、 destroy 、Z Axis order , Only for system
android.permission.MANAGE_ACCOUNTS Allow program management AccountManager List of accounts in
android.permission.LOCATION_HARDWARE Hardware that allows location in an application , Don't use third-party apps
android.permission.KILL_BACKGROUND_PROCESSES Allow the program to call killBackgroundProcesses(String). Method to end the background process
android.permission.INTERNET Allow programs to access network connections , May arise GPRS Traffic
android.permission.INTERNAL_SYSTEM_WINDOW Allow programs to open internal windows , Do not open this permission to third-party applications
com.android.launcher.permission.INSTALL_SHORTCUT create shortcut
android.permission.INSTALL_PACKAGES Allow programs to install apps
android.permission.INSTALL_LOCATION_PROVIDER Allow the program to install the location provided
android.permission.INJECT_EVENTS Allow the program to access the underlying events of this program , Get the key 、 The event flow of the trackball
android.permission.HARDWARE_TEST Allow programs to access hardware AIDS , For hardware testing
android.permission.GLOBAL_SEARCH Allow programs
android.permission.GET_TOP_ACTIVITY_INFO Allowing an application to retrieve private information is currently the top activity , Not used by third party applications
android.permission.GET_TASKS Allow the program to get task information
android.permission.GET_PACKAGE_SIZE Allow the program to get the file size of the application
android.permission.GET_ACCOUNTS Allow programs to access accounts Gmail list
android.permission.FORCE_BACK Allow the program to force the use of back Back button , No matter what Activity Is it on the top floor
android.permission.FLASHLIGHT Allow access to flash
android.permission.FACTORY_TEST Allow the program to run factory test mode
android.permission.EXPAND_STATUS_BAR Allow the program to expand or contract the status bar
android.permission.DUMP Allow programs to acquire systems dump Information from system services
android.permission.DISABLE_KEYGUARD Allow programs to disable keyboard locks
android.permission.DIAGNOSTIC Allow the program to RW To diagnostic resources
android.permission.DEVICE_POWER Allow program access to underlying power management
android.permission.DELETE_PACKAGES Allow programs to delete apps
android.permission.DELETE_CACHE_FILES Allow programs to delete cache files
android.permission.CONTROL_LOCATION_UPDATES Allow programs to get mobile network location information changes
android.permission.CLEAR_APP_USER_DATA Allow the program to clear user data
android.permission.CLEAR_APP_CACHE Allow the program to clear the application cache
android.permission.CHANGE_WIFI_STATE Allow the program to change WiFi state
android.permission.CHANGE_WIFI_MULTICAST_STATE Allow the program to change WiFi Multicast status
android.permission.CHANGE_NETWORK_STATE Allow programs to change network state , If it's connected to the Internet
android.permission.CHANGE_CONFIGURATION Allow current application to change configuration , Such as positioning
android.permission.CHANGE_COMPONENT_ENABLED_STATE Change whether the component is enabled
android.permission.CAPTURE_VIDEO_OUTPUT Allow an application to capture video output , Not used by third party applications
android.permission.CAPTURE_SECURE_VIDEO_OUTPUT Allow an application to capture video output . Not used by third party applications
android.permission.CAPTURE_AUDIO_OUTPUT Allow an application to capture audio output . Not used by third party applications
android.permission.CAMERA Allow the program to access the camera to take photos
android.permission.CALL_PRIVILEGED Allow programs to make calls , Replace the Dialer Interface of the system
android.permission.CALL_PHONE Allows programs to make calls from non system dialers
android.permission.BROADCAST_WAP_PUSHWAP PUSH
android.permission.BROADCAST_STICKY Allow the program to receive the next broadcast quickly after receiving the broadcast
android.permission.BROADCAST_SMS Allows the program to trigger a broadcast when it receives a text message
android.permission.BROADCAST_PACKAGE_REMOVED Allow broadcast when program is deleted
android.permission.BRICK Can disable the phone , Very dangerous , Just as the name implies, making mobile phones into bricks
android.permission.BLUETOOTH_PRIVILEGED Allow applications to pair bluetooth devices , Without user interaction . This is not a third-party application available .
android.permission.BLUETOOTH_ADMIN Allow programs to discover and pair new Bluetooth devices
android.permission.BLUETOOTH Allow programs to connect to paired bluetooth devices
android.permission.BIND_WALLPAPER Must pass WallpaperService Service to request , Only the system can use
android.permission.BIND_VPN_SERVICE binding VPN The service has to go through VpnService Service to request , Only the system can use
android.permission.BIND_TEXT_SERVICE Must ask for textservice( For example
android.permission.BIND_REMOTEVIEWS Must pass RemoteViewsService Service to request , Only the system can use
android.permission.BIND_PRINT_SERVICE It must be requested by printservice, To ensure that only the system can bind to it .
android.permission.BIND_NOTIFICATION_LISTENER_SERVICE It must be requested by notificationlistenerservice, To ensure that only the system can bind to it .
android.permission.BIND_NFC_SERVICE from hostapduservice or offhostapduservice You have to make sure that only the system can bind to it .
android.permission.BIND_INPUT_METHOD request InputMethodService service , Only the system can use
android.permission.BIND_DEVICE_ADMIN Ask the system administrator to receive receiver, Only the system can use
android.permission.BIND_APPWIDGET Allow the program to tell appWidget The service needs to access the database of the widget , Only very few applications use this permission
android.permission.BIND_ACCESSIBILITY_SERVICE request accessibilityservice service , To ensure that only the system can bind to it .
android.permission.AUTHENTICATE_ACCOUNTS Allow the program to access account management through account verification ACCOUNT_MANAGER Related information
com.android.voicemail.permission.ADD_VOICEMAIL Allow an application to add voice mail system
android.permission.ACCOUNT_MANAGER Allow the program to obtain account verification information , Mainly for GMail Account information , Permissions that only system level processes can access
android.permission.ACCESS_WIFI_STATE Allow the program to get the current WiFi The state of access and WLAN Hot information
android.permission.ACCESS_SURFACE_FLINGER Android Graphic display support on the bottom of the platform , Generally used for game or camera preview interface and bottom mode screenshots
android.permission.ACCESS_NETWORK_STATE Allow programs to get network information status , If the current network connection is valid
android.permission.ACCESS_MOCK_LOCATION Allow program to obtain simulation location information , Generally used to help developers debug applications
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS Allows programs to access additional location provider instructions
android.permission.ACCESS_FINE_LOCATION Allow the program to pass GPS The chip receives the positioning information of the satellite
android.permission.ACCESS_COARSE_LOCATION Allow the program to pass WiFi Or mobile base station to obtain the longitude and latitude information of user error
android.permission.ACCESS_CHECKIN_PROPERTIES Allow programs to read or write registers check-in Database property table permissions

版权声明
本文为[ZHAO_JH]所创,转载请带上原文链接,感谢

Scroll to Top