安卓权限Manifest.permission

权限部分

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

//
Allows applications to open network sockets.
网络链接
Protection level: normal

Constant Value: “android.permission.INTERNET”

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

//
Allows an app to use fingerprint hardware.
允许app使用指纹硬件
Protection level: normal

Constant Value: “android.permission.USE_FINGERPRINT”

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

//
Allows applications to access information about Wi-Fi networks.
允许应用获取wifi网络信息
Protection level: normal

Constant Value: “android.permission.ACCESS_WIFI_STATE”

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

//
Allows applications to change Wi-Fi connectivity state.
允许改变wifi连接状态
Protection level: normal
Constant Value: “android.permission.CHANGE_WIFI_STATE”

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

Protection level: dangerous

Constant Value: “android.permission.READ_PHONE_STATE”

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

//
Allows an app to use fingerprint hardware.
允许app使用指纹硬件
Protection level: normal

Constant Value: “android.permission.USE_FINGERPRINT”

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

//
Allows applications to access information about Wi-Fi networks.
允许应用获取wifi网络信息
Protection level: normal

Constant Value: “android.permission.ACCESS_WIFI_STATE”

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

//
Allows applications to change Wi-Fi connectivity state.
允许改变wifi连接状态
Protection level: normal
Constant Value: “android.permission.CHANGE_WIFI_STATE”

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

//
允许以只读方式访问电话状态,包括当前的蜂窝网络信息,所有正在进行的呼叫的状态以及在设备上注册的所有PhoneAccounts的列表。
注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。如果不需要此权限,请确保targetSdkVersion为4或更高
Allows read only access to phone state, including the current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device.

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.

Protection level: dangerous

Constant Value: “android.permission.READ_PHONE_STATE”

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

//
Allows applications to access information about networks.
允许应用程序访问有关网络的信息
Protection level: normal

Constant Value: “android.permission.ACCESS_NETWORK_STATE”

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

//
Allows an application to receive the Intent.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.
允许应用程序接收系统完成启动后广播的Intent.ACTION_BOOT_COMPLETED。 如果您不请求此许可,那么您那时将不会收到广播。 尽管拥有此许可权不会带来任何安全隐患,但它可能会增加系统启动所花费的时间并允许应用程序自行运行,而用户不会意识到它们,这会对用户体验产生负面影响。 因此,您必须明确声明使用此功能,以使用户可见。

Protection level: normal

Constant Value: “android.permission.RECEIVE_BOOT_COMPLETED”

<uses-permission
    android:name="android.permission.BROADCAST_STICKY" />
        //
        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.

允许应用程序广播粘性信息。这些是广播,其数据在完成后由系统保留,因此客户端可以快速检索该数据,而不必等待下一次广播。
Protection level: normal

Constant Value: “android.permission.BROADCAST_STICKY”

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

//
Allows access to the vibrator.
允许访问振动器
Protection level: normal

Constant Value: “android.permission.VIBRATE”

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

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

If this permission is not whitelisted for an app that targets an API level before Build.VERSION_CODES.Q this permission cannot be granted to apps.
允许应用程序写入外部存储。 注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。 如果不需要此权限,请确保targetSdkVersion为4或更高。 从API级别19开始,不需要此权限即可阅读
如果未在Build.VERSION_CODES.Q之前针对针对API级别的应用将此许可列入白名单,则无法将该许可授予该应用。

Protection level: dangerous

Constant Value: “android.permission.WRITE_EXTERNAL_STORAGE”

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

//
Allows an app to create windows using the type WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, shown on top of all other apps. Very few apps should use this permission; these windows are intended for system-level interaction with the user.

Note: If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user’s approval by sending an intent with action Settings.ACTION_MANAGE_OVERLAY_PERMISSION. The app can check whether it has this authorization by calling Settings.canDrawOverlays().

Protection level: signature|preinstalled|appop|pre23|development

Constant Value: “android.permission.SYSTEM_ALERT_WINDOW”
允许应用使用WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY类型创建窗口,该窗口显示在所有其他应用的顶部。 很少有应用程序应使用此权限; 这些窗口用于与用户进行系统级交互。

注意:如果应用程序的目标是API级别23或更高级别,则应用程序用户必须通过权限管理屏幕向该应用程序明确授予此权限。 该应用通过发送带有操作Settings.ACTION_MANAGE_OVERLAY_PERMISSION的意图来请求用户的批准。 该应用可以通过调用Settings.canDrawOverlays()来检查其是否具有此授权。

防护等级:签名|预装| appapp | pre23 |开发

常数值:“ android.permission.SYSTEM_ALERT_WINDOW”

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

//
Allows applications to disable the keyguard if it is not secure.
Protection level: normal

Constant Value: “android.permission.DISABLE_KEYGUARD”
如果它不安全,则允许应用程序禁用键盘锁。
防护等级:正常
常数值:“ android.permission.DISABLE_KEYGUARD”

<uses-permission
    android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
        //
        Allows an application to call ActivityManager.killBackgroundProcesses(String).

Protection level: normal

Constant Value: “android.permission.KILL_BACKGROUND_PROCESSES”

允许应用程序调用ActivityManager.killBackgroundProcesses(String)。



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

//

Allows applications to perform I/O operations over NFC.
允许应用程序通过NFC执行I / O操作。
Protection level: normal

Constant Value: “android.permission.NFC”

<uses-permission
    android:name="android.permission.WAKE_LOCK" />
        //
        Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming.

允许使用PowerManager WakeLocks保持处理器休眠或屏幕变暗。
Protection level: normal

Constant Value: “android.permission.WAKE_LOCK”

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

//
允许应用程序录制音频。
防护等级:危险
//
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 Context.getExternalFilesDir(String) and Context.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.

This is a soft restricted permission which cannot be held by an app it its full form until the installer on record whitelists the permission. Specifically, if the permission is whitelisted the holder app can access external storage and the visual and aural media collections while if the permission is not whitelisted the holder app can only access to the visual and aural medial collections. Also the permission is immutably restricted meaning that the whitelist state can be specified only at install time and cannot change until the app is installed. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

Protection level: dangerous

Constant Value: “android.permission.READ_EXTERNAL_STORAGE”
允许应用程序从外部存储读取。

任何声明WRITE_EXTERNAL_STORAGE权限的应用都将隐式授予此权限。

此权限从API级别19开始强制执行。在API级别19之前,不强制执行此权限,并且所有应用仍然有权读取外部存储。您可以通过在运行Android 4.1或更高版本的设备上,在“设置”应用中的“开发人员”选项下启用“保护USB存储设备”,以强制执行的权限测试您的应用。

同样从API级别19开始,读/写Context.getExternalFilesDir(String)和Context.getExternalCacheDir()返回的应用程序特定目录中的文件不需要此权限。

注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。如果不需要此权限,请确保targetSdkVersion为4或更高。

这是一个软性受限许可,除非记录上的安装程序将该许可列入白名单,否则它不能由应用程序以其完整格式保留。具体而言,如果将许可列入白名单,则持有人应用程序可以访问外部存储以及视觉和听觉媒体收藏,而如果未将许可列入白名单,则持有人的应用程序只能访问视觉和听觉媒体收藏。同样,权限是一成不变的限制,这意味着白名单状态只能在安装时指定,并且在安装应用程序之前无法更改。有关更多详细信息,请参见PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set)。

防护等级:危险

常数值:“ android.permission.READ_EXTERNAL_STORAGE”

<uses-permission
    android:name="android.permission.EXPAND_STATUS_BAR" />
        //
        Allows an application to expand or collapse the status bar.

Protection level: normal

Constant Value: “android.permission.EXPAND_STATUS_BAR”
允许应用程序展开或折叠状态栏。

防护等级:正常

常数值:“ android.permission.EXPAND_STATUS_BAR”

<uses-permission
    android:name="android.permission.BLUETOOTH" />
        //
        Allows applications to connect to paired bluetooth devices.

Protection level: normal

Constant Value: “android.permission.BLUETOOTH”
允许应用程序连接到配对的蓝牙设备。

防护等级:正常

常数值:“ android.permission.BLUETOOTH”

<uses-permission
    android:name="android.permission.BLUETOOTH_ADMIN" />
        //
        Allows applications to discover and pair bluetooth devices.

Protection level: normal

Constant Value: “android.permission.BLUETOOTH_ADMIN”
允许应用程序发现和配对蓝牙设备。

防护等级:正常

常数值:“ android.permission.BLUETOOTH_ADMIN”

<uses-permission
    android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
        //
        Allows mounting and unmounting file systems for removable storage.
            Not for use by third-party applications.

Constant Value: “android.permission.MOUNT_UNMOUNT_FILESYSTEMS”
允许挂载和卸载可移动存储的文件系统。

不适用于第三方应用程序。

常数值:“ android.permission.MOUNT_UNMOUNT_FILESYSTEMS”

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

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

//
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”
允许应用程序读取低级系统日志文件。

不适用于第三方应用程序,因为日志条目可以包含用户的私人信息。

常数值:“ android.permission.READ_LOGS”

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

//
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.

Protection level: dangerous

Constant Value: “android.permission.CAMERA”
这将为所有相机功能自动强制使用功能清单元素。 如果您不需要所有相机功能或在没有相机的情况下可以正常运行,则必须适当修改清单以在不支持所有相机功能的设备上安装。

防护等级:危险

常数值:“ android.permission.CAMERA”

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

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

//
Allows an application to access extra location provider commands.
Protection level: normal

Constant Value: “android.permission.ACCESS_LOCATION_EXTRA_COMMANDS”
允许应用程序访问其他位置提供程序命令。

防护等级:正常

常数值:“ android.permission.ACCESS_LOCATION_EXTRA_COMMANDS”

<uses-permission
    android:name="android.permission.CHANGE_NETWORK_STATE" />
        //
        Allows applications to change network connectivity state.

Protection level: normal

Constant Value: “android.permission.CHANGE_NETWORK_STATE”
允许应用程序更改网络连接状态。

防护等级:正常

常数值:“ android.permission.CHANGE_NETWORK_STATE”

<uses-permission
    android:name="android.permission.WRITE_APN_SETTINGS" />
    //
    Allows applications to write the apn settings and read sensitive fields of an existing apn settings like user and password.

Not for use by third-party applications.

Constant Value: “android.permission.WRITE_APN_SETTINGS”
允许应用程序写入apn设置并读取现有apn设置的敏感字段,例如用户和密码。

不适用于第三方应用程序。

常数值:“ android.permission.WRITE_APN_SETTINGS”

<uses-permission
    android:name="android.permission.ACCESS_COARSE_LOCATION" />
        //
        Allows an app to access approximate location. Alternatively, you might want ACCESS_FINE_LOCATION.

Protection level: dangerous

Constant Value: “android.permission.ACCESS_COARSE_LOCATION”
允许应用访问大概位置。 或者,您可能需要ACCESS_FINE_LOCATION。

防护等级:危险

常数值:“ android.permission.ACCESS_COARSE_LOCATION”

<uses-permission
    android:name="android.permission.ACCESS_FINE_LOCATION" />
    //   
    Allows an app to access precise location. Alternatively, you might want ACCESS_COARSE_LOCATION.

Protection level: dangerous

Constant Value: “android.permission.ACCESS_FINE_LOCATION”
允许应用访问精确位置。 或者,您可能需要ACCESS_COARSE_LOCATION。

防护等级:危险

常数值:“ android.permission.ACCESS_FINE_LOCATION”

<uses-permission
    android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
    //
    Allows an application to request installing packages. Apps targeting APIs greater than 25 must hold this permission in order to use Intent.ACTION_INSTALL_PACKAGE.

Protection level: signature

Constant Value: “android.permission.REQUEST_INSTALL_PACKAGES”
允许应用程序请求安装软件包。 定位到大于25的API的应用必须拥有此权限才能使用Intent.ACTION_INSTALL_PACKAGE。

防护等级:签名

常数值:“ android.permission.REQUEST_INSTALL_PACKAGES”

<uses-permission
    android:name="android.permission.READ_CONTACTS" />
        //
        Allows an application to read the user's contacts data.

Protection level: dangerous

Constant Value: “android.permission.READ_CONTACTS”
允许应用读取用户的联系人数据。

防护等级:危险

常数值:“ android.permission.READ_CONTACTS”

<uses-permission
        android:name="android.permission.INTERNET" />
//
Allows applications to open network sockets.
网络链接
Protection level: normal

Constant Value: "android.permission.INTERNET"
   

    <uses-permission
        android:name="android.permission.USE_FINGERPRINT" />
//            
Allows an app to use fingerprint hardware.
允许app使用指纹硬件
Protection level: normal

Constant Value: "android.permission.USE_FINGERPRINT"



    <uses-permission
        android:name="android.permission.ACCESS_WIFI_STATE" />
//            
 Allows applications to access information about Wi-Fi networks.
允许应用获取wifi网络信息
Protection level: normal

Constant Value: "android.permission.ACCESS_WIFI_STATE"

    <uses-permission
        android:name="android.permission.CHANGE_WIFI_STATE" />
//
Allows applications to change Wi-Fi connectivity state.
允许改变wifi连接状态
Protection level: normal
Constant Value: "android.permission.CHANGE_WIFI_STATE"
    
    <uses-permission
        android:name="android.permission.READ_PHONE_STATE" />
//  
            允许以只读方式访问电话状态,包括当前的蜂窝网络信息,所有正在进行的呼叫的状态以及在设备上注册的所有PhoneAccounts的列表。
            注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。如果不需要此权限,请确保targetSdkVersion为4或更高
            Allows read only access to phone state, including the current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device.

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.
    
 Protection level: dangerous

Constant Value: "android.permission.READ_PHONE_STATE"
    

    <uses-permission
        android:name="android.permission.ACCESS_NETWORK_STATE" />
//           
 Allows applications to access information about networks.
允许应用程序访问有关网络的信息
Protection level: normal

Constant Value: "android.permission.ACCESS_NETWORK_STATE"

    <uses-permission
        android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
 //
            Allows an application to receive the Intent.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.

            允许应用程序接收系统完成启动后广播的Intent.ACTION_BOOT_COMPLETED。 如果您不请求此许可,那么您那时将不会收到广播。 尽管拥有此许可权不会带来任何安全隐患,但它可能会增加系统启动所花费的时间并允许应用程序自行运行,而用户不会意识到它们,这会对用户体验产生负面影响。 因此,您必须明确声明使用此功能,以使用户可见。
Protection level: normal

Constant Value: "android.permission.RECEIVE_BOOT_COMPLETED"

    <uses-permission
        android:name="android.permission.BROADCAST_STICKY" />
     //
            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.
允许应用程序广播粘性信息。这些是广播,其数据在完成后由系统保留,因此客户端可以快速检索该数据,而不必等待下一次广播。
Protection level: normal

Constant Value: "android.permission.BROADCAST_STICKY"


            

    <uses-permission
        android:name="android.permission.VIBRATE" />
 //
            Allows access to the vibrator.
           允许访问振动器
Protection level: normal

Constant Value: "android.permission.VIBRATE"

    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 //           
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 Context.getExternalFilesDir(String) and Context.getExternalCacheDir().

If this permission is not whitelisted for an app that targets an API level before Build.VERSION_CODES.Q this permission cannot be granted to apps.
    允许应用程序写入外部存储。 注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。 如果不需要此权限,请确保targetSdkVersion为4或更高。 从API级别19开始,不需要此权限即可阅读
    如果未在Build.VERSION_CODES.Q之前针对针对API级别的应用将此许可列入白名单,则无法将该许可授予该应用。

Protection level: dangerous

Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"


    

       

    <uses-permission
        android:name="android.permission.SYSTEM_ALERT_WINDOW" />
//
            Allows an app to create windows using the type WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, shown on top of all other apps. Very few apps should use this permission; these windows are intended for system-level interaction with the user.

Note: If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user's approval by sending an intent with action Settings.ACTION_MANAGE_OVERLAY_PERMISSION. The app can check whether it has this authorization by calling Settings.canDrawOverlays().

Protection level: signature|preinstalled|appop|pre23|development

Constant Value: "android.permission.SYSTEM_ALERT_WINDOW"
    
            允许应用使用WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY类型创建窗口,该窗口显示在所有其他应用的顶部。 很少有应用程序应使用此权限; 这些窗口用于与用户进行系统级交互。

注意:如果应用程序的目标是API级别23或更高级别,则应用程序用户必须通过权限管理屏幕向该应用程序明确授予此权限。 该应用通过发送带有操作Settings.ACTION_MANAGE_OVERLAY_PERMISSION的意图来请求用户的批准。 该应用可以通过调用Settings.canDrawOverlays()来检查其是否具有此授权。

防护等级:签名|预装| appapp | pre23 |开发

常数值:“ android.permission.SYSTEM_ALERT_WINDOW”

    <uses-permission
        android:name="android.permission.DISABLE_KEYGUARD" />
            //
            Allows applications to disable the keyguard if it is not secure.

Protection level: normal

Constant Value: "android.permission.DISABLE_KEYGUARD"
    如果它不安全,则允许应用程序禁用键盘锁。
防护等级:正常
常数值:“ android.permission.DISABLE_KEYGUARD”

    <uses-permission
        android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
            //
            Allows an application to call ActivityManager.killBackgroundProcesses(String).

Protection level: normal

Constant Value: "android.permission.KILL_BACKGROUND_PROCESSES"
    
    允许应用程序调用ActivityManager.killBackgroundProcesses(String)。



    <uses-permission
        android:name="android.permission.NFC" />
  //
            
 Allows applications to perform I/O operations over NFC.
允许应用程序通过NFC执行I / O操作。
Protection level: normal

Constant Value: "android.permission.NFC"
    

   

    <uses-permission
        android:name="android.permission.WAKE_LOCK" />
            //
            Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming.
允许使用PowerManager WakeLocks保持处理器休眠或屏幕变暗。
Protection level: normal

Constant Value: "android.permission.WAKE_LOCK"
    

    <uses-permission
        android:name="android.permission.RECORD_AUDIO" />
//
            允许应用程序录制音频。
防护等级:危险
    <uses-permission
        android:name="android.permission.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 Context.getExternalFilesDir(String) and Context.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.

This is a soft restricted permission which cannot be held by an app it its full form until the installer on record whitelists the permission. Specifically, if the permission is whitelisted the holder app can access external storage and the visual and aural media collections while if the permission is not whitelisted the holder app can only access to the visual and aural medial collections. Also the permission is immutably restricted meaning that the whitelist state can be specified only at install time and cannot change until the app is installed. For more details see PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set).

Protection level: dangerous

Constant Value: "android.permission.READ_EXTERNAL_STORAGE"
    允许应用程序从外部存储读取。

任何声明WRITE_EXTERNAL_STORAGE权限的应用都将隐式授予此权限。

此权限从API级别19开始强制执行。在API级别19之前,不强制执行此权限,并且所有应用仍然有权读取外部存储。您可以通过在运行Android 4.1或更高版本的设备上,在“设置”应用中的“开发人员”选项下启用“保护USB存储设备”,以强制执行的权限测试您的应用。

同样从API级别19开始,读/写Context.getExternalFilesDir(String)和Context.getExternalCacheDir()返回的应用程序特定目录中的文件不需要此权限。

注意:如果您的minSdkVersion和targetSdkVersion值均设置为3或更低,则系统会隐式授予您的应用此权限。如果不需要此权限,请确保targetSdkVersion为4或更高。

这是一个软性受限许可,除非记录上的安装程序将该许可列入白名单,否则它不能由应用程序以其完整格式保留。具体而言,如果将许可列入白名单,则持有人应用程序可以访问外部存储以及视觉和听觉媒体收藏,而如果未将许可列入白名单,则持有人的应用程序只能访问视觉和听觉媒体收藏。同样,权限是一成不变的限制,这意味着白名单状态只能在安装时指定,并且在安装应用程序之前无法更改。有关更多详细信息,请参见PackageInstaller.SessionParams.setWhitelistedRestrictedPermissions(Set)。

防护等级:危险

常数值:“ android.permission.READ_EXTERNAL_STORAGE”


    <uses-permission
        android:name="android.permission.EXPAND_STATUS_BAR" />
            //
            Allows an application to expand or collapse the status bar.

Protection level: normal

Constant Value: "android.permission.EXPAND_STATUS_BAR"
            允许应用程序展开或折叠状态栏。

防护等级:正常

常数值:“ android.permission.EXPAND_STATUS_BAR”

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

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

    <uses-permission
        android:name="android.permission.BLUETOOTH" />
            //
            Allows applications to connect to paired bluetooth devices.

Protection level: normal

Constant Value: "android.permission.BLUETOOTH"
    允许应用程序连接到配对的蓝牙设备。

防护等级:正常

常数值:“ android.permission.BLUETOOTH”


    <uses-permission
        android:name="android.permission.BLUETOOTH_ADMIN" />
            //
            Allows applications to discover and pair bluetooth devices.

Protection level: normal

Constant Value: "android.permission.BLUETOOTH_ADMIN"
    允许应用程序发现和配对蓝牙设备。

防护等级:正常

常数值:“ android.permission.BLUETOOTH_ADMIN”



    <uses-permission
        android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
            //
            Allows mounting and unmounting file systems for removable storage.
                Not for use by third-party applications.

Constant Value: "android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
    允许挂载和卸载可移动存储的文件系统。

不适用于第三方应用程序。

常数值:“ android.permission.MOUNT_UNMOUNT_FILESYSTEMS”


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

    <uses-permission
        android:name="android.permission.READ_LOGS" />
//
            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"
    
            允许应用程序读取低级系统日志文件。

不适用于第三方应用程序,因为日志条目可以包含用户的私人信息。

常数值:“ android.permission.READ_LOGS”
    <uses-permission
        android:name="android.permission.CAMERA" />
//
            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.

Protection level: dangerous

Constant Value: "android.permission.CAMERA"
    这将为所有相机功能自动强制使用功能清单元素。 如果您不需要所有相机功能或在没有相机的情况下可以正常运行,则必须适当修改清单以在不支持所有相机功能的设备上安装。

防护等级:危险

常数值:“ android.permission.CAMERA”


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

    <uses-permission
        android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
            //
            Allows an application to access extra location provider commands.

Protection level: normal

Constant Value: "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"
    允许应用程序访问其他位置提供程序命令。

防护等级:正常

常数值:“ android.permission.ACCESS_LOCATION_EXTRA_COMMANDS”


    <uses-permission
        android:name="android.permission.CHANGE_NETWORK_STATE" />
            //
            Allows applications to change network connectivity state.

Protection level: normal

Constant Value: "android.permission.CHANGE_NETWORK_STATE"
    允许应用程序更改网络连接状态。

防护等级:正常

常数值:“ android.permission.CHANGE_NETWORK_STATE”


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

            //
            Allows applications to write the apn settings and read sensitive fields of an existing apn settings like user and password.

Not for use by third-party applications.

Constant Value: "android.permission.WRITE_APN_SETTINGS"
    允许应用程序写入apn设置并读取现有apn设置的敏感字段,例如用户和密码。

不适用于第三方应用程序。

常数值:“ android.permission.WRITE_APN_SETTINGS”


    <uses-permission
        android:name="android.permission.ACCESS_COARSE_LOCATION" />
            //
            Allows an app to access approximate location. Alternatively, you might want ACCESS_FINE_LOCATION.

Protection level: dangerous

Constant Value: "android.permission.ACCESS_COARSE_LOCATION"
    允许应用访问大概位置。 或者,您可能需要ACCESS_FINE_LOCATION。

防护等级:危险

常数值:“ android.permission.ACCESS_COARSE_LOCATION”


    <uses-permission
        android:name="android.permission.ACCESS_FINE_LOCATION" />
            
            //
            
            Allows an app to access precise location. Alternatively, you might want ACCESS_COARSE_LOCATION.

Protection level: dangerous

Constant Value: "android.permission.ACCESS_FINE_LOCATION"
    允许应用访问精确位置。 或者,您可能需要ACCESS_COARSE_LOCATION。

防护等级:危险

常数值:“ android.permission.ACCESS_FINE_LOCATION”

 

    <uses-permission
        android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
            //
            Allows an application to request installing packages. Apps targeting APIs greater than 25 must hold this permission in order to use Intent.ACTION_INSTALL_PACKAGE.

Protection level: signature

Constant Value: "android.permission.REQUEST_INSTALL_PACKAGES"
    允许应用程序请求安装软件包。 定位到大于25的API的应用必须拥有此权限才能使用Intent.ACTION_INSTALL_PACKAGE。

防护等级:签名

常数值:“ android.permission.REQUEST_INSTALL_PACKAGES”


    <uses-permission
        android:name="android.permission.READ_CONTACTS" />
            //
            Allows an application to read the user's contacts data.

Protection level: dangerous

Constant Value: "android.permission.READ_CONTACTS"
    允许应用读取用户的联系人数据。

防护等级:危险

常数值:“ android.permission.READ_CONTACTS”


   
  

https://developer.android.com/reference/android/Manifest.permission

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值