android6.0中,获取通讯录的权限是
<uses-permission android:name="android.permission.GET_ACCOUNTS"></uses-permission>
6.0之前的版本中的权限设置是
<uses-permission Android:name="android.permission.READ_CONTACTS"></uses-permission>
下面是一个对应关系
组名称 | 组下面的权限 |
---|---|
group:android.permission-group.CONTACTS(联系人组) | android.permission.WRITE_CONTACTS(写入联系人) android.permission.GET_ACCOUNTS(查找设备上的帐户) android.permission.READ_CONTACTS(读取联系人) |
group:android.permission-group.PHONE(手机拨号) | android.permission.READ_CALL_LOG(读取通话记录) android.permission.READ_PHONE_STATE(读取电话状态) android.permission.CALL_PHONE(拨打电话) android.permission.WRITE_CALL_LOG(修改通话记录) android.permission.USE_SIP(SIP视频服务) android.permission.PROCESS_OUTGOING_CALLS(程序监视,修改或放弃拨出电话) com.android.voicemail.permission.ADD_VOICEMAIL(允许应用程序添加系统中的语音邮件) |
group:android.permission-group.CALENDAR(日历) | android.permission.READ_CALENDAR(读取日历) android.permission.WRITE_CALENDAR(修改日历) |
group:android.permission-group.CAMERA(相机) | android.permission.CAMERA(获取拍照权限) |
group:android.permission-group.SENSORS(传感器) | android.permission.BODY_SENSORS(获取传感器权限) |
group:android.permission-group.LOCATION(定位) | android.permission.ACCESS_FINE_LOCATION(通过gps获取定位权限) android.permission.ACCESS_COARSE_LOCATION(通过wifi和移动基站获取定位权限) |
group:android.permission-group.STORAGE(内存卡) | android.permission.READ_EXTERNAL_STORAGE(读取内存卡) android.permission.WRITE_EXTERNAL_STORAGE(写内存卡) |
group:com.sina.weibo.permission-group() | com.sina.weibo.permission.USER |
group:android.permission-group.MICROPHONE(麦克风) | android.permission.RECORD_AUDIO(录音权限) |
group:android.permission-group.SMS(短信) | android.permission.READ_SMS(读取短信) android.permission.RECEIVE_WAP_PUSH(接收WAP PUSH信息) android.permission.RECEIVE_MMS() android.permission.RECEIVE_SMS(接收短信权限) android.permission.SEND_SMS(发送短信) android.permission.READ_CELL_BROADCASTS(获取小区广播) |