Marshmallow permission implementation

寵の児 提交于 2019-11-27 22:49:59

There is no longer need AUTHENTICATE_ACCOUNTS on Android 6.0.

you can use android:maxSdkVersion="22" on your uses-permission element to stop requesting it as of Android 6.0.

As mentioned in comment by CommonsWare Sir and this blog helped to understand more on this issue.

Michael Liang

AUTHENTICATE_ACCOUNTS this permission no exist any more, as google project manager said.

Issue 2592: Requesting AUTHENTICATE_ACCOUNTS permission prompts to: 'Allow app to perform an unknown action'

We'll have to wait for a future preview revision to pursue this because the M revision 2 'key changes' section states: "Some accounts and identity permissions are moved to CONTACTS permissions group and others are removed or granted based on account type. In particular, android.permission.USE_CREDENTIALS, android.permission.MANAGE_ACCOUNTS, and android.permission.AUTHENTICATE_ACCOUNTS are ungrouped pending further changes in a later release." http://developer.android.com/preview/support.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!