Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,429 Members 54,654 Now Online
XDA Developers Android and Mobile Development Forum

Pinned Music after Flashing

Tip us?
 
The0Code
Old
#1  
Senior Member - OP
Thanks Meter 4
Posts: 190
Join Date: Nov 2010
Default Pinned Music after Flashing

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.
 
rootSU
Old
#2  
rootSU's Avatar
Senior Member
Thanks Meter 9721
Posts: 20,881
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Are you not restoring a titanium backup??

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
The0Code
Old
#3  
Senior Member - OP
Thanks Meter 4
Posts: 190
Join Date: Nov 2010
Quote:
Originally Posted by rootSU View Post
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 :/
 
rootSU
Old
#4  
rootSU's Avatar
Senior Member
Thanks Meter 9721
Posts: 20,881
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Oh does pinned mean "available offline"?

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
The0Code
Old
#5  
Senior Member - OP
Thanks Meter 4
Posts: 190
Join Date: Nov 2010
Quote:
Originally Posted by rootSU View Post
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.
 
rootSU
Old
#6  
rootSU's Avatar
Senior Member
Thanks Meter 9721
Posts: 20,881
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
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
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
The0Code
Old
#7  
Senior Member - OP
Thanks Meter 4
Posts: 190
Join Date: Nov 2010
Quote:
Originally Posted by rootSU View Post
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
 
rootSU
Old
(Last edited by rootSU; 15th June 2014 at 10:12 PM.)
#8  
rootSU's Avatar
Senior Member
Thanks Meter 9721
Posts: 20,881
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by The0Code View Post
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
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
The0Code
Old
#9  
Senior Member - OP
Thanks Meter 4
Posts: 190
Join Date: Nov 2010
Quote:
Originally Posted by rootSU View Post
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...
 
rootSU
Old
#10  
rootSU's Avatar
Senior Member
Thanks Meter 9721
Posts: 20,881
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
You need the files too though. Not just the database

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes