Android-Remote icon indicating copy to clipboard operation
Android-Remote copied to clipboard

Can't change download directory to any path on external sd card

Open boscowitch opened this issue 10 years ago • 25 comments

Hi I can't download to my extSdCard folder it for example: /storage/extSdCard/Clementine

it just says that it didnt find a "memory device"! (in german no shure about the correct unlocalised spelling)

boscowitch avatar May 23 '14 15:05 boscowitch

Please provide more information like your device model and the path specified in the download settings inside the app.

amuttsch avatar May 24 '14 14:05 amuttsch

Device: Galaxy Note 3 Android: 4.4.2 Default Path works: /storage/emulated/0/ClementineMusic

Changed to /storage/extSdCard/Clementine (Clementine folder created on phone with android file explorer!) works not fails at download

boscowitch avatar May 25 '14 00:05 boscowitch

Whatever happened to this one? I have the exact same problem on my Samsung Note 2. Using Android 4.4.2, clementine 1.2.3 on ubuntu 14.04. Download works with default path (kinda, crashes sometimes) but not when changed to the external SD card path (/storage/extSdCard/Clementine, by coincidence)

jodoinandre avatar Oct 03 '14 03:10 jodoinandre

Forgot to mention clementine remote version is v8.5-45-g3100d5e.

jodoinandre avatar Oct 03 '14 03:10 jodoinandre

Please help me understand this problem:

  • What is the default path? /storage/emulated/0/ClementineMusic?
  • Is this the internal storage of your device and /storage/extSdCard/ your SD card?
  • Can you choose another path on your internal storage?

amuttsch avatar Oct 21 '14 19:10 amuttsch

.Can you please test this build if changing the path works for you now? Thanks

http://builds.clementine-player.org/android/ClementineRemote-release-v9-48-g8f405e1.apk (If you have the Play Store version installed you have to uninstall it first since it's signed differently)

amuttsch avatar Oct 28 '14 08:10 amuttsch

I am trying this build right now. The default folder is "/storage/emulated/0/ClementineMusic" , when i try to change it to "/storage/extSdCard/Music" the message "Directory not writable" appears. Is there a way to go around this. Apreciate the help.

stefbats avatar Nov 15 '14 02:11 stefbats

Apperently Google changed the behavior for writing files to an external storage. Samsung impletmented this in 4.4. In Android 5 I think all users will be affected by this :-(

I'll have a look on how to fix this.

amuttsch avatar Nov 16 '14 17:11 amuttsch

Ok then. Thanks

stefbats avatar Nov 17 '14 00:11 stefbats

Can you please check if you can select the following dir? /storage/extSdCard/Android/data/de.qspool.clementineremote/files/Music

Android Apps can only write to its specific app folder on external storage :-(

amuttsch avatar Nov 17 '14 13:11 amuttsch

Ugh, thx for the info... seems there is no fix except if you root your phone... duh. And It seems to be a "feature" damn google... that makes it pretty hard to keep one music collection on the sd card thats not burried in 100 different apps folders.

boscowitch avatar Nov 17 '14 14:11 boscowitch

The folder doesn't exist on my sdcard. btw the device i'm using is a Samsung Galaxy S3 i9301I Android 4.4.2 stock rom

I'll try again on another device asap

stefbats avatar Nov 17 '14 14:11 stefbats

I think the App sd card writeable folder /storage/extSdCard/Android/data/de.qspool.clementineremote/files/Music is not created until the app request a write on in with some external write path function, only way to test if its really writeable is maybe to create it manually for now... otherwise the App must be patched so one can select the sd card as a target and it handels all those writing handles and folder creation...

boscowitch avatar Nov 17 '14 14:11 boscowitch

Okay, I added a dialog that shows available paths and let you select a custom one when the device supports it. Please try it and tell me if it works for you:

http://builds.clementine-player.org/android/ClementineRemote-release-v9-85-g03d2140.apk

amuttsch avatar Nov 17 '14 14:11 amuttsch

There isn't a non-rooted way to deal with this in 4.4, but Android 5.0 adds the ability to authorize apps to access directories on an SD card.

jefferai avatar Nov 17 '14 17:11 jefferai

@jefferai: afaik apps can access their "android/data/com.package.name" directory on the SD card, but not the entire card. Do you have a source where the authorization on 4.4 and 5.0 is explained? The Android reference is a bit sparse on that topic (or I am too blind to find it :-) ) Previous versions already have a seperate permission for writing to external storage (WRITE_EXTERNAL_STORAGE).

amuttsch avatar Nov 17 '14 21:11 amuttsch

I added the public music directory to the list if it's writable. @efbatista & @boscowitch can you test if it works on your devices? http://builds.clementine-player.org/android/ClementineRemote-release-v9-86-gdf655fc.apk

Update regarding Android 5.0: Selecting a custom directory still works as expected.

amuttsch avatar Nov 18 '14 09:11 amuttsch

@Asfaloth 4.4 doesn't have authorization...it doesn't allow writing to the rest of the SD card, period, without root. You can add things to the SD card via other means, but only read it.

5.0 uses the WRITE_EXTERNAL_STORAGE permission (I think it's that one) but then requires the user to decide which directory/ies the application may access. So it's a (quite decent) middle ground.

jefferai avatar Nov 21 '14 16:11 jefferai

Can anyone how encounted this problem report if this problem is still present?

amuttsch avatar Apr 29 '15 10:04 amuttsch

Yes.. This problem is still present. Crashes every time I click on download folder path. I am on android 5.1.1 and Remote version 10.1

Edit: Oops, looks like you have already fixed this. Saw the commits after I made the comment. Any ETA on the release though? Unable to download my playlist to my phone.

akyag avatar Jul 23 '15 14:07 akyag

I use android 6, honor 6. When i change in the settings to the folder in the SD-card, where is a copy of my music is stored, there comes the notification: "verzeichnis nicht beschschreibbar" (can´t write to the folder). Afaik other apps are able to write to other folders?! i.e. word can read and write to folders, i had created on the sd-card.

OkunH avatar Sep 16 '16 13:09 OkunH

I've just stumbled upon this issue too. Every other app on my phone can write to arbitrary folders on my external SD Card - except the clementine remote. The special /storage/extSdCard/Android/data/de.qspool.clementineremote/files/Music folder appears to work though.

sbrl avatar Jan 19 '17 06:01 sbrl

using 6.0 onwards Im able to read my removable sdcard but unable to write to sdcard. But how shareIt app manages to write to sdcard .Is there any solution like that . Please help

bha2020 avatar Jul 12 '18 12:07 bha2020

This makes the download function useless on non rooted phones, since /Android/data/ is not accessible! I believe there must be a way to rewrite the app so download to /Download or other folder works..

pestsov avatar Sep 27 '21 06:09 pestsov