Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolution to getContentResolver().openInputStream(uri) for google drive file causes StorageFileLoadException[authentication_failure]

Tags:

android

A strange error opening a Google Drive file from a chooser which only starting occurring recently on one of the 2 devices I'm testing on.

The error returned from openInputStream() is:

java.io.FileNotFoundException: StorageFileLoadException[authentication_failure]
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:144)
at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1107)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:944)
at android.content.ContentResolver.openInputStream(ContentResolver.java:664)
at 

...

like image 297
stillsw Avatar asked Dec 10 '25 19:12

stillsw


1 Answers

Just to help anyone else who sees this error, perhaps you'll also find the solution is to update all the Google apps on the device (possibly Google Drive app was the essential one).

like image 143
stillsw Avatar answered Dec 13 '25 07:12

stillsw