Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Pinned Music after Flashing

OP The0Code

15th June 2014, 09:01 PM   |  #1  
OP Senior Member
Thanks Meter: 5
 
194 posts
Join Date:Joined: Nov 2010
Just wondering if there's any workaround to this but obviously, whenever flashing a fresh new rom and fully wiping the phone, all music pinned to Google Play Music becomes unpinned and have to be repinned again which can be annoying if you're a rom junkie. I used to move around on roms more frequently but my library is just too big now and switching roms becomes this huge task.

I was just wondering if there was anyway at all to keep pinned music on Google Play Music on the phone after clean flashing a new rom? (Other than moving the music manually to the phone via USB ofc, I still want to use the cloud).

Thanks in advance.
15th June 2014, 09:08 PM   |  #2  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,333
 
24,415 posts
Join Date:Joined: Aug 2010
More
Are you not restoring a titanium backup??

Sent from my Nexus 5 using Tapatalk
15th June 2014, 09:13 PM   |  #3  
OP Senior Member
Thanks Meter: 5
 
194 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by rootSU

Are you not restoring a titanium backup??

Sent from my Nexus 5 using Tapatalk

Restoring through TB doesn't restore the pinned tracks I don't think. I haven't tried that in a while but the short amount of time it takes to back up Google Play Music alone shows it doesn't work I think. Also, the back up size is much too small so I'm pretty sure that doesn't work :/
15th June 2014, 09:16 PM   |  #4  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,333
 
24,415 posts
Join Date:Joined: Aug 2010
More
Oh does pinned mean "available offline"?

Sent from my Nexus 5 using Tapatalk
15th June 2014, 09:17 PM   |  #5  
OP Senior Member
Thanks Meter: 5
 
194 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by rootSU

Oh does pinned mean "available offline"?

Sent from my Nexus 5 using Tapatalk

Yeah that's what I mean. Making the music I have uploaded on my account available offline by pinning them and keeping that from rom to rom.
15th June 2014, 09:20 PM   |  #6  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,333
 
24,415 posts
Join Date:Joined: Aug 2010
More
Where does it store it?

Maybe titaniums "backup external data" covers it?

If Not, I could probably write you a couple of bash shell scripts to run that would move it to and from /sdcard but may aswell manually the data.

Sent from my Nexus 5 using Tapatalk
15th June 2014, 09:44 PM   |  #7  
OP Senior Member
Thanks Meter: 5
 
194 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by rootSU

Where does it store it?

Maybe titaniums "backup external data" covers it?

If Not, I could probably write you a couple of bash shell scripts to run that would move it to and from /sdcard but may aswell manually the data.

Sent from my Nexus 5 using Tapatalk

I just tried the external data preference and the backups are still only 7MB total which is farrrr to small consideirng i've pinned 10GB+ of music. Anyhow, the problem is the pinned music does not show up in plain sight on the internal storage so moving them manually isn't really an option. Google Play Music hides/encrpyts it somehow I guess. I would hate to make you go through that, I'm sure someone has found a solution to this already hahahah
15th June 2014, 10:09 PM   |  #8  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,333
 
24,415 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by The0Code

I just tried the external data preference and the backups are still only 7MB total which is farrrr to small consideirng i've pinned 10GB+ of music. Anyhow, the problem is the pinned music does not show up in plain sight on the internal storage so moving them manually isn't really an option. Google Play Music hides/encrpyts it somehow I guess. I would hate to make you go through that, I'm sure someone has found a solution to this already hahahah

Meh, it's easier than you think

I just pinned some music.

The files are not encrypted By the way.

They're stored /data/data/com.google.android.music/files/music

Also the fact they're pinned is stored in a data base table data/data/com.google.android.music/databases/music.db in the "keepon" table

Im not sure if titanium backs up the databases but a simple set of scripts would be

Backup

mv /data/data/com.google.android.music/files/music/* /sdcard/playbackup/music
mv /data/data/com.google.android.music/databases/* /sdcard/playbackup/databases

Restore

mv /sdcard/playbackup/music/* /data/data/com.google.android.music/files/music
mv /sdcard/playbackup/databases/* /data/data/com.google.android.music/databases


Sent from my Nexus 5 using Tapatalk
Last edited by rootSU; 15th June 2014 at 11:12 PM.
The Following User Says Thank You to rootSU For This Useful Post: [ View ]
15th June 2014, 10:30 PM   |  #9  
OP Senior Member
Thanks Meter: 5
 
194 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by rootSU

Meh, it's easier than you think

I just pinned some music.

The files are not encrypted By the way.

They're stored /data/data/com.google.android.music/files/music

Also the fact they're pinned is stored in a data base table data/data/com.google.android.music/databases/music.db in the "keepon" table

Im not sure if titanium backs up the databases but a simple set of scripts would be

Backup

mv /data/data/com.google.android.music/files/music/* /sdcard/playbackup/music
mv /data/data/com.google.android.music/databases/* /sdcard/playbackup/databases

Restore

mv /sdcard/playbackup/music/* /data/data/com.google.android.music/files/music
mv /sdcard/playbackup/databases/* /data/data/com.google.android.music/databases


Sent from my Nexus 5 using Tapatalk

Well I'm sort of a noob when it comes to the deeper parts of android like writing scripts lol How would you suggest I go about this? Looking at music.db, it's 7MB which is the same size as the TB backup that was made so maybe TB IS the answer? hahah not even sure at this point...
15th June 2014, 10:31 PM   |  #10  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,333
 
24,415 posts
Join Date:Joined: Aug 2010
More
You need the files too though. Not just the database

Sent from my Nexus 5 using Tapatalk

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes