ppareit / swiftp

FTP server for your android device.
http://ppareit.github.com/swiftp/
Other
746 stars 293 forks source link

cannot write to external SD on Android 6.0.1 #88

Open TjrGithub opened 7 years ago

TjrGithub commented 7 years ago

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

ppareit commented 7 years ago

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.

le-mon commented 7 years ago

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.

kevinn commented 6 years ago

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

garywill commented 5 years ago

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.

kevinn commented 5 years ago

@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.

ashutoshgngwr commented 5 years ago

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

Xavron commented 7 months ago

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.)