快速身份验证令牌自动使用权限清单 [英] Getting auth token automatically using the manifest permissions

查看:255
本文介绍了快速身份验证令牌自动使用权限清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从Android应用程序访问谷歌驱动器。我使用 getAuthToken 方法和它的正常工作。用户必须验证对话框它第一次将使用应用程序。

I try to access Google Drive from an Android application. I use the getAuthToken method and it's working fine. The user must validate a dialog the first time it will use the application.

不过,我不知道它是否有可能在安装应用程序的使用权限。例如,谷歌云端硬盘应用能做到这一点。此应用程序可以访问我的谷歌驱动器,并没有显示对话框来验证权限请求。看着在AndroidManifest.xml中使用的权限,可以发现:

However, I wonder whether it would be possible to use the permissions at the installation of the application. For instance, the Google Drive application can do that. This application can access my Google Drive and it didn't display dialogs to validate permission requests. Looking at the permissions used in the AndroidManifest.xml, one can find:

<uses-permission android:name="com.google.android.gm.permission.READ_GMAIL"/>
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"/>
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES"/>
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES"/>
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.writely"/>
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.wise"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>

我没有找到有关这些权限的许多信息,但有可能使用这些权限没有寻求从用户验证?或者是这些类型的权限严格的谷歌Apps的?

I didn't find much information about these permissions , but is it possible to use such permissions to not have to seek validation from the user? Or are these kinds of permission strictly for Google Apps?

感谢您提前

推荐答案

看来,这是不可能做到这一点。一个很好的答案都可以在这里找到 。最好的解决办法似乎显示许可请求对话框。

It appears that it is not possible to do that. A nice answer can be found here. The best solution seems to display the permission request dialog.

这篇关于快速身份验证令牌自动使用权限清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆