Music stored on the External SD Card is removed from playlists at reboot - General Questions and Answers

So I'm getting a really frustrating issue happening with my phone wherein any .mp3 files stored on my external SD card are removed from their playlists whenever I restart my phone. Any music stored on the internal phone storage still remains in the playlists but everything else gets cleared out of them. I've taken a look into the Media Store's SQL logs and found this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Basically, I cleared the Media Store's data to reset the Android media database, then I rebooted. On the first reboot, all my playlists displayed perfectly (external SD music AND internal SD music). This produced the 3 log lines above the highlighted line in the image. Then I restarted my phone again and once again all the music on the external SD card was erased from my playlists. Restarting gave the log lines below and including the highlighted line. What seems to be happening is Android is removing any reference to files stored on my external SD from the Media Store database at reboot, then it rescans when the phone starts, but it generates the playlists BEFORE it scans the external SD for media, so it just thinks there's loads of missing media in the playlists and removes any reference to external SD music. Then it scans the external SD for music and finds all my media there.
So in the end I can still access all the music stored on my external SD and my phone sees it just fine, it's just that it's never maintained in any playlists. If anyone has any method of fixing this or any advice at all, I'd really appreciate it! I don't have enough room on my internal SD to store all my music.
Thanks!
(I'm on a Google Play Edition Galaxy S4 running Android 5.1)
EDIT:
After more experimentation, I've made a breakthrough. Ultimately, this all happens cause Android's Media Scanner will scan the internal SD for media at startup. When it finds Playlist files it attempts to import them into the system database but because the SD card takes a while to mount at startup and is temporarily unreadable for a while at boottime, when it tries to follow the path back to the music on the SD card it can't find the music since the SD card is still mounting. Instead of, yknow, doing anything logical like waiting for the SD to mount, it just erases the entries from the playlist. So to get around this stupid flaw in the system, you need to move all your playlists (.m3u/.pla/etc files) from the internal SD to the external SD card.
By moving the playlist files to the SD card, it ensures that they only ever get read once the SD card has finished mounting and the Media Scanner then attempts to scan the external SD for media. At this point it finds the playlists and follows their mp3 file paths back to the finally loaded Music folder on the external SD.

I had that happen to me

Related

Music not found in Jelly Bean Stock [Solved]

I have the stock Jelly Bean JRO03E which i got from here
Code:
http://forum.xda-developers.com/showthread.php?t=1784497
I have been using it for a while now and the only problem that i face is that the Play Music app does not recognize music from the phone. It keeps saying Ways to add music connect usb and transfer music to phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have transferred all the music in the Music folder in SDcard. I have made 3 folders in Music folder and those folders contain the music.
Previously when i was on ICS i didnt face this problem, but after JB i am having it. I installed PlayerPro and it also does not show any music, and even i cannot put the music folder in it.
Another problem is that now i have two sd card directories, on in direct phone with name sd card and other in storage then sdcard0
Is this a problem? what shall i do about it?
Ive got exactly the same problem
I tried flashing the new bootloader like someone suggested
I tried a super clean install
I tried the factory image directly from google.
But i still got this problem......
I got it solved! I am gonna share it with you too
There was a .nomedia file, I deleted it first. Then I removed the Music folder and then cleared the data of media storage from apps settings,
then rebooted the phone and a new Music folder created. I put all my songs in it and then open the Music player and all files appeared in stock as well as PowerPro
I had the same issue, had both SDcard and SDcard0, music showed on both in file explorer but not detected in play music. I deleted USB storage in Settings>storage, remounted USB storage, rebooted, made new music folder in SDCard and copied music from PC, all working
I have 50gigs of crap on my SD card. it would LITERALLY take the entire stinking day to move everything off the card format it and move everything back again (freaking MTP crap)
is there a better solution? for now I just moved the music folder into the download folder (the only folder player pro can see for some reason)
Found a solution that did not require whacking everything
https://play.google.com/store/apps/details?id=com.humanrobot.scanmedia
install and run that. now the "Music" folder is visible in player pro again (MAN I HATE database driven access wish it would just see the stinking folders and use those)

[Q] Device Memory Usage

My Device:
I have a Samsung Note 10.1 (2012 release) - GT-N8000.
Android Version - 4.1.2
Software Build Number - JZ054K.N8000XXCMF1
The problem:
Data stored on SD Card is counted against Internal Memory's calculation.
Other Info:
My device has a total of 16GB internal memory and 32GB of external memory.
When I bought the Note, I had about 11GB of free memory, which has steadily fallen to 8GB.
According to the Storage page, apps use a little over 3GB of space in the internal memory and 0GB in the SD Card.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
However, if I open an app like PressReader, which consumes the maximum of my 3GB used space, it shows that most of the data is stored in the SD Card.
I cannot figure why is there a discrepancy between the two pages. The Main storage page gives a different story to what the app says. I can also confirm that the app is indeed storing the data in the SD Card - For I can browse the SD card and see the newspapers in there.
Any thoughts on this issue?
When you say "SD-Card" which do you mean- the internal SD-Card that's carved out of the Note's Flash Memory, or any external SD-Card that you have plugged into the SD-Card port? You'd eluded to the internal, but I need to be sure before I answer.
kcrudup said:
When you say "SD-Card" which do you mean- the internal SD-Card that's carved out of the Note's Flash Memory, or any external SD-Card that you have plugged into the SD-Card port? You'd eluded to the internal, but I need to be sure before I answer.
Click to expand...
Click to collapse
sd card is the one plugged in.
Most modern tablets emulate an sdcard in device memory. The external sdcard does not store apps unless you root and use an app like folder mount to move and link the apps to external sdcard.
Sent from my GT-N8013 using Tapatalk 4
tselling said:
Most modern tablets emulate an sdcard in device memory. The external sdcard does not store apps unless you root and use an app like folder mount to move and link the apps to external sdcard.
Sent from my GT-N8013 using Tapatalk 4
Click to expand...
Click to collapse
image 2 clearly shows that the data is stored in the SD card. I can also browse the SD card and see the files in there.
However, Image 1 says that not a single byte is used in the SD card, and the 16GB built in memory is being used up.
Am trying to figure out this anomaly.
The value shown in image 2, under SD Card, as well as the files you are viewing in the file browser under sdcard0 are not the physical microsd card. The actual card is named extsdcard and most likely you will find it empty. Data stored on it is not reflected in Application Manager. SDcard0 is internal memory emulating an SD card.
Unfortunately most Android apps are not designed to be able to put their data on a true external card. Only very storage intensive apps such as music players and PDF readers typically allow you to switch to extsdcard.
Look for settings in Press Reader and see if it allows changing its data storage location. If it does change it from sdcard0 to extsdcard. If not, write to the creator and recommend that be added. Every Android app SHOULD allow this. But most do not because developers just don't bother to do it.
If you are still in doubt, unmount and remove the external card. You will see that the data is still there on what you see as 'sdcard'.
Sent from my GT-N8013 using Tapatalk 4

Including SD Data as Internal space?

Hi
My phone keeps saying its full. Its not. Going through my installed apps it just doesn't amount to around 12GB.
Checking the properties of the Android folder including data and obb only amounts to 5GB.
It seems the phone thinks files in Pocket Casts on the SD and other SD based files like Here Maps data reside on the internal when they dont!
Anyone clarify this or figure out a fix?
Update: deleting app data of Pocket Casts and Here Maps didn't change anything..
There's still something not right as I went through and checked folder sizes of everything on internal and give or tale a MB here and there, there's nothing else other than the 5.1GB of data. Where is the other 5GB??
Do you happen to have Google Play Music downloaded locally and saved to SD?
Indeed I do...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Clear that cache and stored music. Use Google MusicManager for PC to download your music, that way you will not reach your 2 download limit, as it does not count against that limit according to Google when using the manager.
That way you can copy that music to your SD card and it will be in MP3 format.
No, that's not the issue. It only had 40MB of data. I'm literally stumped as to where this hidden few gigs are!
Highlighting all files including hidden on Windows or with File Commander on the phone only shows 3.9GB, but the phone thinks 9GB is used!
One of my work mates had something similar, was told to factory reset and start again and it did actually fix the problem
Did you try the clear cache option in storage settings? It clears for all apps.
Yes. Cleared everything. No joy. Factory reset in the end and that sorted it as its now back as it was with 7GB free. Assume it may have been some oddity from flashing UK generic over O2 rom? Only thing I can think it was.
Ah I didn't see you replied to this. Anyway, I noticed that Google play music does a funny thing where if you have saved music (not cached music) stored on the external SD, the space counts against your internal SD as well. Again, this is not cached music, but music that you've indicated you want saved to device.

SD card problem

I can't get Google play music to play my music from my card reader worked on my Nexus 6p but can't get it to work on my pixel anyone got a idea why it wouldn't work?
I had trouble with a usb flash stick. My Pixel couldn't read the Fat32 partitioned stick wanted to format it to some Android format format, so I did. Then it wouldn't play the mp3s from my phone on my friend's amp that accepts Fat32.
You might have luck if you format the SD card with the Pixel then put the files back on it.
I had lots of issues with my Mac Pro connecting to Pixel as MTP or PTP. I hope for bug fixes and performance improvement in 7.1.1
:Alwayshopingforfixesandimprovement:
Sent from my sailfish using XDA Labs
I've just plugged a couple of FAT32 USB thumb driver into my Pixel via a USB C to USB 3.0 adaptor (which Choetech kindly sent me to review), and they worked absolutely fine. Wanted to format an NTFS formatted drive, but that was to be expected.
I'm trying to back up photos from my camera, and I can't get my 64gb SD card to work. It's formatted as exFAT since that is standard for SDXC cards. A smaller FAT32 SD card works most of the time if I tap the right settings after I plug it in.
I am using the included OTG dongle, and I tried a couple different SD card readers. All the combinations of cards and readers work on my computer.
I was able to get it to work using Solid Explorer and the Solid Explorer USB OTG Plugin, but the transfer speed was like 48kb/sec, and it was going to take 300 hours to back up the photos on my SD card at that rate. It's worth a try, and you can get a refund for the plugin if it's extremely slow for you too.
.. and here we see why many phone manufacturers are opt'n not to include removeable storage, even without an sd card, people have issues with their sd card.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
clockcycle said:
.. and here we see why many phone manufacturers are opt'n not to include removeable storage, even without an sd card, people have issues with their sd card.
Click to expand...
Click to collapse
There may be reasons not to have internal SD storage, like profit, performance, and maintaining control of the file structure. But that's not a good reason not to have external storage work. For example, many laptops now come with proprietary or soldered internal SSDs and no way to add internal storage. But you would definitely expect to be able to use SD cards with them, for example to get photos off your camera. It seemed to work most of the time for phones that had microSD slots, so there's no reason why it shouldn't work now.
Finally, when the iPad came out, being able to edit photos from your camera was a selling point. I would expect that to work on the latest Android phones 6 years later.

SD installed as internal storage, internal storage full, SD nearly empty, WTF?

I installed a 128gb MicroSD card in my Shield tablet and thought everything was setup, it formatted and encrypted the card to my tablet and when using a file manager app it shows one big honking storage drive, however when I go through settings I can see that my microSD card is barely touched and the internal drive is full, so full that I can't install anything else unless I delete something.
WTF is the point of having the microSD setup as internal storage if it doesn't share the install load?
Now I am trying to migrate data to the microSD card and I get the error that there is not enough storage space.
What can I do to fix this? :crying:
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
P.S. as an aside, could this be happening because the microSD card is a fake?
I don't think it is, but can't figure out why I am having this issue
I should add, I purchased this microSD
Lexar High-Performance microSDXC 633x 128GB UHS-I Card
Please XDA, you're my only hope
I don't think your SD is set up as adoptable storage yet. When it is it should look something like this:
This SD is set up as adoptable plus removable though, usually you will only see the adoptable part of it. As I will never fill the entire SD with "internal" content this way was better for me :good:
Interesting, begs the question, how did you set that up?
I just looked through my options, im not seeing it
Just looked it up, i followed those steps, my card has been formatted as internal and i moved data to new storage
Just formatted the card on my PC (the long way), then formatted as portable on tablet, restart, then format as internal, restart, then move data, and nothing has changed.
I am using android 7.
Not sure if you resolved this, but if you select the SD card the screen will switch. The 3 dots in the top right corner, then select migrate data. All the apps that can be moved will be moved.

Categories

Resources