qutterr / keepassdroid

Automatically exported from code.google.com/p/keepassdroid
0 stars 0 forks source link

Cannot open DB in internal storage on 4.4 (KitKat) #612

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Device: Nexus 5
OS: Android 4.4

As per http://developer.android.com/about/versions/android-4.4.html:

If you have previously published an app for Android, be aware that your app 
might be affected by changes in Android 4.4.

If your app reads from external storage...

Your app can not read shared files on the external storage when running on 
Android 4.4, unless your app has the READ_EXTERNAL_STORAGE permission. That is, 
files within the directory returned by getExternalStoragePublicDirectory() are 
no longer accessible without the permission. However, if you need to access 
only your app-specific directories, provided by getExternalFilesDir(), then you 
do not need the READ_EXTERNAL_STORAGE permission.

Original issue reported on code.google.com by federico...@gmail.com on 4 Nov 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Forgot to mention, KeePassDroid 1.99.10

Original comment by federico...@gmail.com on 4 Nov 2013 at 8:48

GoogleCodeExporter commented 8 years ago
According the the documentation apps that request WRITE_EXTERNAL_STORAGE are 
automatically granted READ_EXTERNAL_STORAGE. So, I don't believe a change is 
needed.

Original comment by bpel...@gmail.com on 8 Nov 2013 at 3:22

GoogleCodeExporter commented 8 years ago
Where is that stated and is that still valid for 4.4?

The fact remains, in 4.4 you cannot open a DB with KeePassDroid.

Original comment by federico...@gmail.com on 8 Nov 2013 at 9:47

GoogleCodeExporter commented 8 years ago
Just to clarify, you can browse the external storage but you cannot open any 
file on 4.4, they just appear grayed out.

Original comment by federico...@gmail.com on 8 Nov 2013 at 12:23

GoogleCodeExporter commented 8 years ago
KeePassDroid doesn't have a built in file browser. It tries to use a file 
browser app installed on the device. So, I'm guessing the app that is doing the 
file browsing on your device doesn't have this permission.

I did confirm I can open file from external storage on the 4.4 emulator.

Original comment by bpel...@gmail.com on 9 Nov 2013 at 3:37

GoogleCodeExporter commented 8 years ago
You are absolutely right, my apologies. Sorry for the noise.

Original comment by federico...@gmail.com on 11 Nov 2013 at 8:27

GoogleCodeExporter commented 8 years ago
For what it's worth, I just installed keepassdroid on 4.4 Nexus 5, and the 
default file browser that opens is unable to select files from internal 
storage. First I manually copied my keyfile to this using mtp and was unable to 
select it, then I enabled dropsync and synced my kdb file using it and was 
unable to select that.

Original comment by xan...@gmail.com on 11 Dec 2013 at 8:07

GoogleCodeExporter commented 8 years ago
Just to add to this (as I came across this page searching for info of the same 
problem on my Nexus 5) the work around is to use a different file explorer. 
After installing ES File Explorer I was able to select a database fine and open 
it.

Original comment by petebris...@googlemail.com on 22 Dec 2013 at 3:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Keepassdroid on 4.4 Nexus 5 is unable to select files from internal storage 
using the default file browser. 

This is definitely a problem with Keepassdroid because the default file browser 
app is able to select db files from internal storage when for example trying to 
upload the db file to Google Drive or attaching the db file to an email. The 
files are only greyed out when using Keepassdroid with the default filebrowser.

Original comment by kissei.o...@forward3d.com on 9 Jan 2014 at 4:23

GoogleCodeExporter commented 8 years ago
Same issue here, Nexus 5, android 4.4; choosing another file explorer is indeed 
a workaround but very confusing for the user.

Original comment by mike.ros...@gmail.com on 19 Feb 2014 at 10:09

GoogleCodeExporter commented 8 years ago
Thanks for this solution. I just installed ES File Explorer and it work. 

Thank you.

David

Original comment by Dave.Le...@gmail.com on 28 Jan 2015 at 3:31

GoogleCodeExporter commented 8 years ago
Likewise, if go to the Download app, it won't be able to open the file with 
KeePassDroid for some reason. Another workaround is to open the .kdbx file via 
a direct link to the file on Google Drive, but then it's read-only, so I can't 
use KeePassDroid to edit entries due to 
https://code.google.com/p/keepassdroid/issues/detail?id=331

Original comment by jko...@gmail.com on 6 Jun 2015 at 7:51