clementine-player / Android-Remote

Control Clementine from your Android device
GNU General Public License v3.0
198 stars 80 forks source link

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

Open boscowitch opened 10 years ago

boscowitch commented 10 years ago

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)

amuttsch commented 10 years ago

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

boscowitch commented 10 years ago

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

jodoinandre commented 10 years ago

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 commented 10 years ago

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

amuttsch commented 9 years ago

Please help me understand this problem:

amuttsch commented 9 years ago

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

stefbats commented 9 years ago

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.

amuttsch commented 9 years ago

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.

stefbats commented 9 years ago

Ok then. Thanks

amuttsch commented 9 years ago

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 :-(

boscowitch commented 9 years ago

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.

stefbats commented 9 years ago

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

boscowitch commented 9 years ago

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

amuttsch commented 9 years ago

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

jefferai commented 9 years ago

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.

amuttsch commented 9 years ago

@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 commented 9 years ago

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.

jefferai commented 9 years ago

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

amuttsch commented 9 years ago

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

akyag commented 9 years ago

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.

OkunH commented 8 years ago

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.

sbrl commented 7 years ago

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.

bha2020 commented 6 years ago

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

pestsov commented 3 years ago

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

Rasie1 commented 2 weeks ago

Pls fix this, it's 5 minutes of work and it will make the download functionality not useless. Make the directory selectable