Where's database info saved?

Alternative Android Client for Subsonic

Moderators: daneren2005, moderators

Where's database info saved?

Postby gorman » Fri May 05, 2017 1:24 pm

In the future I might considering flashing my smartphone to Lineage OS or udpating it to Nougat (Nexus 6P currently on Marshmallow, as I dread to lose Xposed).

Now I have over 600 albums locally cached on the smartphone and I would very much like to avoid needing to recache them all. I know where the music files are saved but I don't know where the info about them having been already cached is located.

Anybody can help? Basically: how can I backup my current cache situation, in order to restore it after clean flashing?

Thanks in advance.
gorman
 
Posts: 27
Joined: Tue Sep 16, 2014 10:34 am

Re: Where's database info saved?

Postby gorman » Thu May 11, 2017 11:27 am

Is there a different channel of communication where it might be easier to get answers? Just asking, maybe I've missed it (thinking Facebook, Twitter, etc.).
gorman
 
Posts: 27
Joined: Tue Sep 16, 2014 10:34 am

Re: Where's database info saved?

Postby daneren2005 » Fri May 12, 2017 7:05 pm

I don't know exactly where all of that cached information is stored since I just use an API to get an app-specific internal directory to write that stuff to. It is probably different on every device.
Developer of DSub for Android
daneren2005
 
Posts: 1704
Joined: Fri Jul 06, 2012 7:52 pm

Re: Where's database info saved?

Postby acroyear » Fri May 12, 2017 11:19 pm

When it comes to Android apps, "it's complicated". Generally, the client makes API calls for storing the data and the O/S handles the rest, so it really can move around depending on the platform, not just for the Android version, but even for the vendor who may make changes.

Similarly, the cached files the app downloads can be stored on the SD Card in a 'public' folder (accessible by other apps) prior to Android 4...but from 4 onward, all apps keep their own data secure from each other at all times (in line with what IOS has had for a long time), which also allows the Android system preferences system to delete all the files when the app is wiped or un-installed. This is true whether you put the cache on the SD card or the main memory. There is very little control over it.

So yeah, the idea of modifying the DB from the outside isn't really something Android, as a platform, likes to encourage.

As such, no, it isn't likely that the cache data for files would survive a migration. Each installation is independent, and its is an intentional security decision to keep it that way.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 690
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Where's database info saved?

Postby TheScoop » Thu Aug 03, 2017 8:13 am

If you are rooted, then you _might_ have luck using TitaniumBackup to preserver the cache/backup before formatting or switching phones.
TheScoop
 
Posts: 21
Joined: Fri Oct 07, 2016 7:58 pm


Return to DSub for Android

Who is online

Users browsing this forum: No registered users and 1 guest