• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Music File Permissions?

Ph0enix_216

Android Enthusiast
I'm guessing this isn't the right place to put this, but after about an hour of Google searching, I'm at the end of my rope.

I'm using CM13 as my daily driver, and I've formatted my external SD card as "adopted storage". I've managed to move all my music to "/mnt/expand/$GUID/media/0/Music/", and my music player could see all my songs, but not play them. So I did a bit of chmod-ing to try and fix the permissions on my MP3 files, but now I can't get the player to actually see my songs anymore. So my question is: What are the correct permissions needed for Android to play MP3 files?

 
From what I've seen Marshmallow gets pissy if the app that is reading the files didn't create the folder the files are stored in, or sometimes even if it didn't write the files themselves. I haven't tried expanded storage (and at this point not sure if I want to) so I can't give much detail beyond that.

I've got my music in /storage/GUID/Music with -rwxrwx--x, root ownership, sdcard_rw group. All's working OK
 
Looking over various media files (mp4, ogg, mp3) on both the internal storage and microSD card on my phone the permissions are all 770 (rwxrwx---) so if you do 'chmod 777 *mp3' on all the files in your music directory that should get them back to their previous state.
Still puzzled by why your music player app wouldn't play them though. What app are you using? Where you able to use this app before and this problem just started after some change you implemented? Have you tried a different music player app? Is this problem just happening on files in this specific directory or can you play files located in other places in your phone?
 
Looking over various media files (mp4, ogg, mp3) on both the internal storage and microSD card on my phone the permissions are all 770 (rwxrwx---) so if you do 'chmod 777 *mp3' on all the files in your music directory that should get them back to their previous state.
Still puzzled by why your music player app wouldn't play them though. What app are you using? Where you able to use this app before and this problem just started after some change you implemented? Have you tried a different music player app? Is this problem just happening on files in this specific directory or can you play files located in other places in your phone?

I was using both CyanogenMod's music player and Shuttle Music. As far as I could tell, this problem occurred no matter where the music was stored on expanded storage.
 
If you copy a couple of those 'non-playable' mp3 files to a computer/laptop try and see it they are playable using there. Trying to determine if your problem is something that's on (or not on) your phone or with those files. I'd be more suspicious of the files themselves.
 
Back
Top Bottom