swiftp icon indicating copy to clipboard operation
swiftp copied to clipboard

cannot write to external SD on Android 6.0.1

Open TjrGithub opened this issue 7 years ago • 7 comments

Using the lastest version 2.13.1 of https://f-droid.org/repository/browse/?fdfilter=ftp&fdid=be.ppareit.swiftp_free on Android 6.0.1, I cannot write to the external SD card. Furthermore, the FTP server never prompts me for write permission to the external SD. Writing to the internal SD works fine, though.

Possibly related bugs: #72, #39

TjrGithub avatar Mar 17 '17 09:03 TjrGithub

Accessing external sd cards, usb's, etc is handled on android using the Storage Access Framework: https://developer.android.com/guide/topics/providers/document-provider.html

Swiftp does not (currently) implements this. This would mean a complete reimplementation of all file handling. While this is possible, it is not something I have the incentive to do.

As this is a recurring request and a valid open issue, I'll live this open.

ppareit avatar Mar 23 '17 11:03 ppareit

Here on android 4.4.4 in future on android 6.*

I really "vote" for this. In combination with the autoconnect feature, swiftp is the perfect solution to local "auto-sync" and "auto-backup".

Access to externalSD should be default in every file-handling-app.

le-mon avatar Jun 04 '17 03:06 le-mon

Voting for this. Would like to manage the SD Card as well.

kevinn avatar Mar 04 '18 08:03 kevinn

After adding 2 permissions I can write my SD card

ACCESS_ALL_EXTERNAL_STORAGE
WRITE_MEDIA_STORAGE

I didn't modify the source code. I added after installing, at /data/system/packages.xml. Find this app in that file and add:

<item name="android.permission.WRITE_MEDIA_STORAGE" granted="true" flags="0" />
<item name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" granted="true" flags="0" />

So, I guess this issue is simple to solve by adding these 2 permissions.

garywill avatar Jan 04 '19 06:01 garywill

@garywill

The latest release on f-droid already allows SD Card access for quite a bit. No need to add new entries to the xml.

kevinn avatar Jan 04 '19 09:01 kevinn

Why is this still open? @garywill @kevinn #122 :sweat_smile:

ashutoshgngwr avatar Jan 04 '19 11:01 ashutoshgngwr

Should be closable.

This should be fixed with latest improvements. Android 6 fully tested as working great on internal and sd card. (Currently only github project is updated and not fdroid or Play Store.)

Xavron avatar Apr 08 '24 13:04 Xavron