• 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
Mar 5, 2015
293
298
/system/xbin/su
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
 
  • Like
Reactions: Ph0enix_216
Upvote 0
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?
 
Upvote 0
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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones