Pay Attention: How do we backup DATA in Apps. NOT just APPS - HD2 Android Q&A, Help & Troubleshooting and Genera

Title says it all. I've seen this question asked but too many times I see people saying. "Use Search Function"
The search function has been scoured and I see plenty of great apps that restore and backup apps, contacts, etc.. none restore data WITHIN the apps.
Is there an app that backs up DATA within the apps not just the apps.
Thank you,
come again.

Titanium backup backs up my apps plus all system data

I'd like to know this too, with possible Rom coming in September I'm desperate to make the change over as smooth as possible.

post in general section

Mooved

Good question. I use MyBackup (online) for saving my data - but only sms-contacts..
If you find an app that save all you need, please post its name here ^^
thx

The process is quite complex (at least the way I do it) but it can be done!
Note: YOU NEED LINUX FOR THIS (or if you're brave you can mess with the tools on this site: http://www.chrysocome.net/download. success is not guaranteed. Still post about your experiences though )
Note: Steps 1 to 3 are not always necessary, it depends on which Android build you are using.
1) Give Root Explorer (or a similar file explorer app - must be able to access system/data files) root access
2) Locate the folders containing the user data you want to backup, this is usually somewhere near /data/data. The folders have various naming conventions and dont always contain the name of the app (i'll check and edit this post if i have time)
3) Change the folder's permission settings - I usually just permit everything
4) Shut down Android and in one way or another, mount your sd card on your Linux machine, and locate your data.img or userdata.img file.
5) Open a command line window, enter the following:
Code:
sudo mount -o loop data.img /mnt/data
Note: you might need to create the folder you are mounting too
Note: sudo not always neccesary
Note: change data.img to userdata.img, you'll know if this applies to you
6) Browse to the folder containing the data you want to backup and copy it onto your computer. DONE!
You can restore these backups on a different build by using the same method, just in reverse. Also, don't forget to check if the same folder already exists, if yes, it can be extremely annoying to find you dont have permission to change/overwrite it!
I used this to copy all of my saved games, i especially didn't want to loose my Asphalt 5 progress
P.S. if this solves your problem, please change the title of this thread to simplify things for other users

Thanks Kev007, I'll try this

filou75 said:
Thanks Kev007, I'll try this
Click to expand...
Click to collapse
While it is good to know how to do this stuff, just download Titanium from the market. It backs up all apps plus data in about a minute. You can restore individually or in batches using filters. Search around there is lots of info on this app.
It is great to learn some basic Linux stuff. It will help when you are trying to do things in Android. If you have no intention of learning Linux, Titanium is the way to go.

that be good actually - on my last android reinstall I lost my paper toss high score (allbeit only 3 pmsl) but still seems like a good thought considerin the games etc with save data.

Seconded - Titanium Backup preserves all my app data.
This is one of the reasons I love Android over WinMo - backing up app data is practically a nobrainer when you have the right tool.

+1 on Titanium Backup.
Works great on all builds. Just don't try to restore native HTC apps/data from sense to vanilla Froyo.

Kev007 said:
The process is quite complex (at least the way I do it) but it can be done!
Note: YOU NEED LINUX FOR THIS (or if you're brave you can mess with the tools on this site: http://www.chrysocome.net/download. success is not guaranteed. Still post about your experiences though )
Note: Steps 1 to 3 are not always necessary, it depends on which Android build you are using.
1) Give Root Explorer (or a similar file explorer app - must be able to access system/data files) root access
2) Locate the folders containing the user data you want to backup, this is usually somewhere near /data/data. The folders have various naming conventions and dont always contain the name of the app (i'll check and edit this post if i have time)
3) Change the folder's permission settings - I usually just permit everything
4) Shut down Android and in one way or another, mount your sd card on your Linux machine, and locate your data.img or userdata.img file.
5) Open a command line window, enter the following:
Code:
sudo mount -o loop data.img /mnt/data
Note: you might need to create the folder you are mounting too
Note: sudo not always neccesary
Note: change data.img to userdata.img, you'll know if this applies to you
6) Browse to the folder containing the data you want to backup and copy it onto your computer. DONE!
You can restore these backups on a different build by using the same method, just in reverse. Also, don't forget to check if the same folder already exists, if yes, it can be extremely annoying to find you dont have permission to change/overwrite it!
I used this to copy all of my saved games, i especially didn't want to loose my Asphalt 5 progress
P.S. if this solves your problem, please change the title of this thread to simplify things for other users
Click to expand...
Click to collapse
Now THIS is an answer. I knew I wasnt the only one trying to do this. I dont need to backup the APPS because I already have them backed up oin my PC.
My buddy has a linux box ill try this with. Thanks.
PS. To the titanium suggestions. I've tried that. Doesnt seem to save game states or 3rd party app preferences...

Related

Portable Webserver for APK files

Hi guys,
I have just been playing around with the idea of hosting a webserver on my machine that my phone could connect to to download apk files after performing a wipe.
Iv been thinking about this as everytime i wipe my phone i connect back to the market and download appmanager to install apps direct from sd. So instead of having to do that im looking at having them all in a directory on my PC/Flashdrive (as this will be portable) using XAMPP.
Before any gets any wrong ideas this is not intended for any illegal doings. Its just to make my life easier. I thought i would share what i have started to see if this will help out anyone else.
So far i have it working (very rough). But i dont know any coding so this is a bit of a hack job.
I am using XAMPP as stated aswell as a PHP script that will automaticly populate the page will all files within a particular folder.
I have attached the index file i am using.
if you wish to use this please make sure you do a few things.
Install XAMPP
From where you installed XAMPP. In the HTDOCS folder create a "APK" Folder
Place the index.php in the HTDOCS folder
Edit the index.php file to change the path of the APK folder (currently set to D:\\Dream\\xampp\\htdocs\\APK) keep the double slashes "\\"
Start the Apache webserver from the XAMPP control panel
Now connect to Localhost, any files you place in that folder should now appear
Anyone wishing to use this, edit this, whatever you feel like. Go ahead
If you would like to help and change the look and feel of the page it would be greatly appreciated. If you do post the files back up here for all to use
Hope you guys like
Can I ask why you wouldn't just backup your apps to your sdcard (use something like MyBackup) and be done with it?
You can always copy them from your sdcard to your flash drive (and back from flash drive to sdcard temporarily if you need to re-install).
I'm all for experimenting, learning and even playing around a lot. But this seems like overkill. First off, your apps will surely get outdated quickly, and you'll end up upgrading lots of apps. You'll end up spending an enormous amount of time managing your own local library.
Personally, I think you're wasting your time unless your trying to learn how to do something in the process. Maybe you are, and in that case, go for it. Otherwise, enjoy your phone and let the Market do the management for you.
Or you can just have all your .apk's in a folder and use adb to install all of em at once. But like the above post you might have to get updates for alot of em.

{TOOL}APK_TOOL_v1 [8-5] Linux only

This is a little tool I put together after a post I made on the Rom Customizer thread.
This is only for linux only at the moment, but its simple enough that i may be able to get a batch file for you windows guys.
it comes with everything needed-including the option to install java if you dont have it
What it does is this
1. pulls the specified apk
2. takes a baskup -you can restore to the backup by running the restore script.
3. replaces an image file in drawable-mdpi with the one you provide.
4. re-zips and re-signs the app
5.pushes the app back to either /system or /data
this has only been tested on pre-installed app, ie no market apps.
Its pretty simple but it could be helpful, so let me know what you think.
Extract the working folder to your desktop please.

[Q] Backup Builds

So with the advent of boot loaders such as Excellers which allow you to choose different builds of Android, what exactly do you need to copy off the SDCard to backup your build?
I dont mean the data, sms, mail, etc, but the actual entire build?
Is it enough to simply copy the Android folder and the files inside it including data.img or is there a need to copy the other folders and files that android creates in the root of your SD (LOST.DIR, rosie_scroll, etc)?
Android builds automatically create those folders and files if they do not exist for them, but will it cause issues if they already exist, since we can now switch between builds on the same card?
Any ideas??
Oh, and I did search, didnt find anything conclusive though.
As far as I know. Making a copy of the Android folder is enough. Be carefull though, the DCIM folder must be backup aswell if you have made any pictures/video's. The rest of the folders .secure etc are just temp folders.
For backing up you can use the free program Titanium backup aswell (found on market), use the search, someone wrote a nice guide for it some time ago. Can be used very easy to transfer your installed apps from one build to another. Transfering system settings isn't a good idea, especially not if you switching different builds. Only when updating your current build it should be ok (not recommended), but sometimes copying your data.img to your new build is enough to get your applications in the new build.
Machiel187 said:
As far as I know. Making a copy of the Android folder is enough. Be carefull though, the DCIM folder must be backup aswell if you have made any pictures/video's. The rest of the folders .secure etc are just temp folders.
For backing up you can use the free program Titanium backup aswell (found on market), use the search, someone wrote a nice guide for it some time ago. Can be used very easy to transfer your installed apps from one build to another. Transfering system settings isn't a good idea, especially not if you switching different builds. Only when updating your current build it should be ok (not recommended), but sometimes copying your data.img to your new build is enough to get your applications in the new build.
Click to expand...
Click to collapse
Basically I just want to try out different builds concurrently, switching between them with Exceller.
Data isn much of an issue since most of mine is in the cloud somewhere but its a pain installing some new build only to find the one you just had and spent time configuring, was a hell of a lot better.
Well i'm not entirely sure about where the settings are stored. But my guess is, just backup the android folder and you will be fine (think most is stored in the data.img). Delete all the other folders and switch to your new build. If you don't like it, switching back should be a breeze.
Why don't you just try it once. Change some settings, delete all the folders except for the android folder and boot again, see if the changes you made are still there.
Machiel187 said:
Well i'm not entirely sure about where the settings are stored. But my guess is, just backup the android folder and you will be fine (think most is stored in the data.img). Delete all the other folders and switch to your new build. If you don't like it, switching back should be a breeze.
Why don't you just try it once. Change some settings, delete all the folders except for the android folder and boot again, see if the changes you made are still there.
Click to expand...
Click to collapse
mainly because there arent enough hours in the day, so many roms, so little time.............
Well, since i'm at work and bored, I tried it for you.
Only imporant folder is the Android folder and our DCIM for your pictures. All the other directories do nothing but temp stuff on my rEVOlution 2.2. Deleted them all and android still booted just fine with all settings and homescreens I had applied.
Hope this awnsers your question now.
Excellent, thank you very much, I will be trying to clear some time later to try an alternate build on the same card. I will post how it goes.
Seems to work, as long as you edit the startup text to include the foldername of your build Exceller lets you switch between builds:
set cmdline "rel_path=YourbuildfolderHere"

Transforming a Nandroid Backup to a flashable zip via clockwork recovery?

I have a friend over on the east coast that isnt following direction as well as one would hope and is a little scared about rooting his phone and getting it to be as good as my X is. I finally got it rooted for him but he is freaking out about using a clean nandroid backup i sent him and dumping it in the correct directory for nandroid backup and restore giving him a clean image of my phone...
I had assumed that this would have been the easiest method but it got me thinking.
Could i rename my nandroid back up folder the ending tree folder that holds the .android_secure.img, cache.img, data.img, nandroid.md5 and system.img ... like clockworkmod/backup/2010-11-25.05.05.13 could i just pop all those files into a .zip named whatever and direct him to clockwork recovery and flash zip from sd card?
Or could someone point me into a direction on how to accomplish that? I think i would like to also do it for my self and upload it to my dropbox account for later access or to share with friends.
I noticed when i opened like the latest rubix rom that it didnt contain any files similar to that so im curious if its possible.
Also one last question, while i have your technicle mind at attention..
Could someone answer me, in Titanium backup it gives you the option to create a update.zip, then it gives you two radio buttons one says titanium backup will be installed as user application and then System application.
I know that the whole create update.zip thing is for flashing it to the rom from recovery. But what is the diffrence bewteen those two options. What is best and what is the diffrence..
Thanks for letting me pick your Brains!
One drawback of giving him your nandroid backup is that it contains YOUR gmail account with your contacts, facebook account (if applicable), among all other sorts of your personal stuff. In my past experience, you can ADD a gmail account to the phone, but you cannot get rid of the primary/original account so he will have both on there. Other than that, it actually does work though (at least it did on the Droid 1).
Wipe your data and make a nandroid before you reboot and sign in. that way your accounts won't be tied to it
Sent from my DROIDX using XDA App
Your friend - with all due respect if he's having that much trouble with something this simple I really don't think he should be screwing around with root access in the first place. If he has that little understanding of administrator-level access, why on earth does he even want root? He won't even know what to do with it.
Not trying to be harsh, just trying to understand.
Flash Nandroid - NO, don't do it! I'm sure it can be done, but not in the way you described.
Titanium Backup - system apps reside in /system/app as opposed to /data/app. The only real difference is that system apps will still be there after you do a factory reset.
If your going to let your friend flash a nandroid, then you need to remove your gmail and social applications. If you wipe data as mentioned above you'll lose all non-system apps...basically everything you've installed and set up, which is most likely what you're trying to give him. The only way I can think to make this work is to first create a backup for your use, then remove everything that requires you to log in with adb, then replace all of the apps you removed (extract the rom your running and look in system/app for them - data/app apps can be installed from the market). Reboot the phone to verify that all of your accounts are gone, create the new backup and send it to him. Then flash the backup you made for your use.
The easiest way to give him "your set up" would probably be to make a full backup with titanium (not an update.zip). Backup all user apps and system data. Go into the titanium folder on your sd card and delete all files except the .apk files that have anything to do with gmail or social apps. Have him flash the same rom, copy your titanium file to his sd card, and restore all apps and system data to his phone.
Sent from my DROIDX using XDA App

[HOWTO] extract and import sms from old NAND backup to your new device

Long story short : I needed to get my sms from my old motoG and transfer them to my new motoG5. Here is how:​
This can be done without any third part app, only a capable recovery and adb is needed.
Get your old SMS
take you Nand backup you hopefully did before your device died.
find the mmssms.db file that you can find in :
Code:
data.f2fs.win000
Use :
Code:
tar –xf data.f2fs.win000.tar.gz
Android 6:
Code:
/data/data/com.android.providers.telephony/databases/
Android 7:
Code:
/data/user_de/0/com.android.providers.telephony/databases/
Copy mmssms.db to your computer.
Import your database to your new device
==> root is needed for that operation
Push mmssms.db to your device (depending on you android version, see above)
e.g.:
Code:
adb push ./mmssms.db /data/user_de/0/com.android.providers.telephony/databases/mmssms.db
Delete any journal.db you may find in the same folder.
Wipe cache and art-cache
Reboot.
Delete sms-mms application data
Start the sms-mms app
Voilà!
An alternative way that doesn't require root is available here. (thx to @Mirhawk)
also thx to @dlegit for the new directory.
If you could convert the db file into xml format you should be able to use an app to restore without needing root
Edit
Just noticed you posted another guide which mentions that
TheFixItMan said:
If you could convert the db file into xml format you should be able to use an app to restore without needing root
Edit
Just noticed you posted another guide which mentions that
Click to expand...
Click to collapse
Yeap, I just wanted to do it without third party software
I didn't say this 'how to' is super useful, I just shared the way I did it.

Categories

Resources