demo007 / keepassdroid

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

Unable to modify on SD-card #689

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Cannot modify / add passwords in database on SD-card
Occurred since upgrade to Samsung Galaxy S5 (Android KitKat)
Get EACCESS(Permission denied)

As I understand this is caused by Apps no longer being allowed to write to 
SD-card

What is the expected output? What do you see instead?
Expected: Normal save and edit of existing databases.
Get: Permission denied error.

What version of the product are you using? On what operating system?
Latest version from App-Store on Android 4.4.2 (KitKat)

Please provide any additional information below.
Could this be fixed by modification of the app?

Original issue reported on code.google.com by joost.ho...@gmail.com on 6 May 2014 at 6:56

GoogleCodeExporter commented 9 years ago
I'm seeing this also after a recent Android update on my Samsung Galaxy S4. 
(4.4.2 also)

Original comment by gdinsm...@gmail.com on 16 May 2014 at 3:04

GoogleCodeExporter commented 9 years ago
Hmm... This looks like it might be an Android limitation, kind of.  Samsung 
treats their SD-card as a secondary external device.  Their primary "external" 
device is provided as part of the main internal flash memory.  Android 
apparently requires a new privilege to write to secondary external devices as 
of about Android 3.x.  The catch is, that privilege is not available to third 
party apps like KeePassDroid.

So, why did it all of a sudden change for me in and Android update?  Follow the 
link below, and you'll see that Samsung was using some tricks to make SD-cards 
work like primary external devices.  That recent patch must have removed their 
tricks for some reason.

http://www.chainfire.eu/articles/113/Is_Google_blocking_apps_writing_to_SD_cards
_/

I suspect the only solution for the moment is to move your KeePass file off of 
the SD-card, and into some location on the primary flash memory.

Original comment by gdinsm...@gmail.com on 17 May 2014 at 2:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I see that apps are allowed some sort of "restricted" folder on the SD card to 
be able to write whatever they want. 
http://forums.androidcentral.com/samsung-galaxy-s5/376743-planning-getting-galax
y-s5-should-i-concerned-about-sd-card-problems.html#post3554548

I'm interested in a solution, as well as work-arounds. Primary flash is ok for 
now, But I'd like to be able to run my SD backup solution without involving 
cloud storage. For now, it may be possible to use existing DropBox storage, 
with a local key file, but that's not optimal either.

Original comment by ALuc...@gmail.com on 2 Jun 2014 at 7:59

GoogleCodeExporter commented 9 years ago
I got it work this way. 

Assumptions:

1) rooted phone
2. Applied the NextAPP SDfix

1. Create database on internal storage. 
2. Create the folder in which you want to keep the Keepass DB on the external 
SDcard
3. Copy Keepass DB from internal storage location to the SDcard folder (step 2)
4. I used Liquid Explorer but also works with Ghost Commander for this step: 
Browse to the Sdcard Keepass database and open it. The dialog will say 
"Complete Action using" select "always" and you are good to go. The next time 
you open Keepass you will see it points to the SDcard

Original comment by nicocv...@gmail.com on 30 Oct 2014 at 2:48