首页 > 代码库 > Android常用权限

Android常用权限

  Android常用权限记录,根据使用频率排序,方便快速查找,更多权限后续补充

功能权限注释翻译
访问网络<uses-permission android:name="android.permission.INTERNET" />访问网络连接Allows applications to open network sockets
网络状态<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

允许程序访问网络状态,如是否能联网

Allows applications to accessinformation about networks
程序缓存<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />

允许挂载和反挂载可移动存储文件系统,

操作system/data/data/包名/cache目录

Allows mounting and unmounting file systems for removable storage
SD卡写操作<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />允许程序写入外部存储,如SD卡上写文件Allows an application to write to external storage
拨打电话<uses-permission android:name="android.permission.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

读取联系人<uses-permission android:name="android.permission.READ_CONTACTS"/>允许应用访问联系人通讯录信息Allows an application to read the user‘s contacts data
处理拨出电话<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>允许程序监视、修改有关播出电话Allows an application to monitor, modify, or abort outgoing calls
发送短信<uses-permission android:name="android.permission.SEND_SMS"/>发送短信Allows an application to send SMS messages
接收短信<uses-permission android:name="android.permission.RECEIVE_SMS"/>允许程序监控一个将收到短信息,记录或处理

Allows an application to monitor incoming SMS messages,to record or perform processing on them

读取短信内容<uses-permission android:name="android.permission.READ_SMS"/>允许程序读取短信息Allows an application to read SMS messages
粗略位置<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 通过WiFi或基站获取粗略经纬度,精度误差:30~1500米Allows an application to access coarse (e.g., Cell-ID, WiFi)location
精确位置<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 通过GPS芯片接收卫星的定位信息,精度达10米内Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi
wifi状态<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> 获取当前WiFi接入的状态以及WLAN热点的信息Allows applications to access information about Wi-Fi networks
打开摄像头<uses-permission android:name="android.permission.CAMERA"/> 允许访问摄像头进行拍照Required to be able to access the camera device.
自动对焦

 

<uses-feature android:name = "android.hardware.camera" />

<uses-feature android:name="android.hardware.camera.autofocus" />

 自动对焦  --
闪光灯<uses-permission android:name="android.permission.FLASHLIGHT" /> 控制闪光灯Allows access to the flashlight
电量统计<uses-permission android:name="android.permission.BATTERY_STATS" /> 获取电池电量统计信息Allows an application to collect battery statistics
开机启动<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 允许程序开机允许服务Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting
使用蓝牙<uses-permission android:name="android.permission.BLUETOOTH"/>允许程序连接配对过的蓝牙设备Allows applications to connect to paired bluetooth devices
管理蓝牙<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>允许程序进行发现和配对新的蓝牙设备Allows applications to discover and pair bluetooth devices
闹钟<uses-permission android:name="android.permission.SET_ALARM"/>设置闹铃提醒Allows an application to broadcast an Intent to set an alarm for the user.
应用大小<uses-permission android:name="android.permission.GET_PACKAGE_SIZE"/>获取应用的文件大小Allows an application to find out the space used by any package
声音设置<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>修改声音设置信息Allows an application to modify global audio settings
录音<uses-permission android:name="android.permission.RECORD_AUDIO"/>录制声音通过手机或耳机的麦克Allows an application to record audio
振动<uses-permission android:name="android.permission.VIBRATE"/>手机振动Allows access to the vibrator
桌面壁纸<uses-permission android:name="android.permission.SET_WALLPAPER"/>设置桌面壁纸Allows applications to set the wallpaper
系统设置<uses-permission android:name="android.permission.WRITE_SETTINGS"/>允许读写系统设置项Allows an application to read or write the system settings.