Open mvysny opened 6 years ago
https://www.googleapis.com/auth/drive
(the full access rights) fails with an exception:
E/ClientConnectOperation: Handling authorization failure
nzh: Authorization failed: Unsupported scope: https://www.googleapis.com/auth/drive
at nzl.a(:com.google.android.gms@11951448:25)
at nvy.<init>(:com.google.android.gms@11951448:26)
at nxh.a(:com.google.android.gms@11951448:72)
at swi.run(:com.google.android.gms@11951448:11)
at mvc.run(:com.google.android.gms@11951448:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at nak.run(:com.google.android.gms@11951448)
at java.lang.Thread.run(Thread.java:761)
Is there a way to access all files in user's Google Drive with this API?
I'm trying to use this API to access all files on user's Drive, but it is not possible:
Drive.SCOPE_FILE
only listsNew Folder
as a child of the root folder (client.rootFolder
)Scope("https://www.googleapis.com/auth/drive.readonly")
fails with:requestScopes(Drive.SCOPE_FILE, Scope("https://www.googleapis.com/auth/drive.readonly"))
seems to ignore the latter one and still only lists theNew Folder