[Q] How to manually restore application data? - Desire HD Q&A, Help & Troubleshooting

Hi,
i had a corrupt nandroid backup but i managed to extract some data from the data.img.
Now i start from the scratch with a new rom and i have an old Titanium Backup of my apps which i already restored.
But the current entries of the applications are stored only in the nandroid. I have no other backup.
I managed to extract the folder data/data in which most application data is stored. When i now try to rename the folder of e.g. "My Car" from \data\data\com.aguirre.android.mycar.activity to OLDcom.aguirre.android.mycar.activity and restore the folder from my nandroid the application crashes. When i rename OLD to com.aguirre.android.mycar.activity to get my old state back everything works fine.
I already tried that (replace the database) months ago with the calendar but it failed too. Why? What does Titantium when restoring application data? Where is the difference?
thanks

Okay the permissions are the problem!
How can i
- change the user and group in root explorer
- change this settings recursive
I now granted everything to all folders and files of com.aguirre.android.mycar.activity and it works.
But how can i get the correct permissions!?

Related

[Q]Automatic install apps with install

I've got some apps that i need in android, so when i test a new build i have to install them all again.
So i'm wondering if there is a way/script that is installing the apps automatically when the build is making a new data.img?
Is there a way to make it myself? It works the same as linux on the pc?
I know you can have multiple build on your sd card, but it won't fit on my sd card. That's because i have a 2gb card and already 1,8gb is in use(android and maps for winmo tomtom)
Thanks in advance.
Well if you have the actual APK, just drop it in the AndroidApps folder - it'll get installed automatically.
Otherwise, Titanium Backup FTW. The free version is still very powerful, but application restoring is kinda painful on the free version - the paid-for version has a '0-click' batch restore, and I've heard it's very fast. I keep considering buying the app, I probably should
I have not been able to find out how to restore backed up programs using Titanium Backup. I did my backups for the programs that I wanted, deleted my data.img so I could try a new build, and when it rebooted Titanium Backup was not there. I reinstalled Titanium Backup thinking it would find the backed up files again, but apparently it stores the backups in the data.img file. I am not sure if this happens to be an issue that I have encountered solely or not, but it kinda aggravated me that it didn't do what it was supposed to do.
Any advice or knowledge of what I may have done wrong?
fierygod said:
I have not been able to find out how to restore backed up programs using Titanium Backup. I did my backups for the programs that I wanted, deleted my data.img so I could try a new build, and when it rebooted Titanium Backup was not there. I reinstalled Titanium Backup thinking it would find the backed up files again, but apparently it stores the backups in the data.img file. I am not sure if this happens to be an issue that I have encountered solely or not, but it kinda aggravated me that it didn't do what it was supposed to do.
Any advice or knowledge of what I may have done wrong?
Click to expand...
Click to collapse
It stores the backups on the root of the sdcard in the folder TitaniumBackup. I have version 2.9.4 installed.
Christiaan91 said:
It stores the backups on the root of the sdcard in the folder TitaniumBackup. I have version 2.9.4 installed.
Click to expand...
Click to collapse
I checked that directory after I performed my backups, and the files were there, but when I reinstalled the app after wiping the data.img, the directory was empty. Apparently I must have needed to rename the directory prior to reinstalling Titanium Backup or something.
fierygod said:
I checked that directory after I performed my backups, and the files were there, but when I reinstalled the app after wiping the data.img, the directory was empty. Apparently I must have needed to rename the directory prior to reinstalling Titanium Backup or something.
Click to expand...
Click to collapse
Probably when you where installing TB again, it emptied the folder.
Sounds likely. I will have to test that theory later on when I go to try a new build, if I remember to do so.
Sent from my MSM using the XDA mobile application powered by Tapatalk

I/O error write to sd card (mybackup pro)

trying to restore apps and i get this message! ? fix?
the restore of data was fine but apps wont!
I'm getting this too when trying to restore my data after flashing a new rom. Let me know if you hear of any solutions.
The mybackup website says its an SD card error.. that may be the case, but it was working fine an hour ago on the old rom I had (because I'm new I can't post the link, but a quick google to their FAQ and you'll see what I mean)
I think my issue was due to the SD card. I reformatted it and then copied the contents back again from my laptop. I've now re-installed the new ROM and am using mybackup root to restore my contents as I type this - all seems fine so far
Thanks for the feedback.
What did you format normal or ext or both
Sent from my HTC Desire using XDA App
I had the same error. I don't find how to fix it but how to recover my data app.
Save the backup on your PC
Execute all .apk in my save folder from your phone
Launch mybackup to do another apps save with data
Copy all file wich are not .apk in the old backup (on your pc) and past them in the new backup folder on your phone (replace all existing file)
And finaly restor the backup, it will restore the data with the app
It's not "user friendly" but it worked for me, it was not a SD card issue
I was having this same issue. Watching alogcat revealed that an apk that MBP was expecting was not there, causing an IO error.
I tried to restore again, this time unselecting that specific app and it appears to be working.
So to fix it, install alogcat and watch for errors as the restore is taking place. This should clue you in on the problem.
gthing said:
I was having this same issue. Watching alogcat revealed that an apk that MBP was expecting was not there, causing an IO error.
I tried to restore again, this time unselecting that specific app and it appears to be working.
So to fix it, install alogcat and watch for errors as the restore is taking place. This should clue you in on the problem.
Click to expand...
Click to collapse
This was exactly my problem. Seems like the ****ing program didn't actually back up a damned thing. The folder which was supposed to have the backed-up APKs was completely empty.
I had to restore from an older backup and it worked.
I guess that's just what happens when you rely on free apps.
Just got the same STUPID problem - I'll try the fix above.
The only reason I chose MyBackup Root was because you can do "0-click batch restore" for free which you can't with the free version of Titanium Backup.
EDIT: Backups won't restore. It says "I/O Error". I've had the SD card for a few weeks and it was working perfectly with Titanium Backup. Also, everything's been properly installed formatted and fixing permissions and clearing caches makes no difference.
EDIT 2: After running aLogcat, it says that Mybackup has the following error: "...apps/appnamehere: open failed: EM0ENT (No such file or directory). It's like this for most of my of apps (and I have hundreds) that are now lost with all their data!
Also, none of the apps that do restore so far link to the market (it says this after restore).
This app really needs updating to resolve these serious issues.
Ouroboros29 said:
I had the same error. I don't find how to fix it but how to recover my data app.
Save the backup on your PC
Execute all .apk in my save folder from your phone
Launch mybackup to do another apps save with data
Copy all file wich are not .apk in the old backup (on your pc) and past them in the new backup folder on your phone (replace all existing file)
And finaly restor the backup, it will restore the data with the app
It's not "user friendly" but it worked for me, it was not a SD card issue
Click to expand...
Click to collapse
When backing up apps and data again it STILL won't backup some apps!! Any suggestions?

Problems with Titanium Backup free version

Hi,
I recently rooted my Desire (for the first time), S-Off'd, flashed CM7r2 hboot, CyanogenMod 7.0.3 stable and created a 1GB ext3 partition using S2E set to install apps (not private apps) and dalvik-cache to sd-ext.
In my attempts to use Titanium Backup to backup and restore the system I've gotten quite frustrated.
It seemed that whenever I ran a TB backup, it was being backed up to the TitaniumBackup folder on the SD card (or whichever folder I created and set in TI's Backup Folder preferences). Immediately after performing the backup, the backed up files were visible in the TitaniumBackup folder using a file explorer yet the folder and files were never visible to view in Windows, with the SD card mounted as a Mass Storage Device. This meant I couldn't copy the backup to my PC.
Of course I tried again and again, sometimes using the same backup folder and creating many new ones too, but the folders were never visible in Windows. In fact occasionally when I created a new backup folder and ran the backup again, the folder and files from the previous backup would disappear from the card, not even visible using a file explorer on the phone and not detectable using TB's 'Detect' button in Backup Folder prefs. At the same time, the drive space occupied by the previous 'disappeared' backups wasn't freed-up, so my SD card just became more and more full (quick system info, Titanium Backup and FreeSpace all confirmed this).
I don't recall reading anywhere that one should reboot after each backup is performed by TB but decided to try it anyway. The result was, as long as I rebooted (the phone) after every backup, the backed up files were correctly saved and could be seen in Windows (and copied to my PC). Any attempt to do more than one backup before rebooting often caused problems.
I did some tests:
Test: Created folder TitaniumBackup, performed a backup then rebooted phone.
Result: Backup correctly saved and visible.
Test: Created folder TitaniumBackup2, performed a backup and rebooted.
Result: Both backups visible and correct.
Test: Created folders TitaniumBackup3 and TitaniumBackup4, ran backups to both folder locations, then rebooted.
Result: All four backups so far visible and correct.
Test: From within TB I deleted backups 2, 3 and 4, leaving backup 1 untouched. No reboot.
Result: In a file explorer the contents of backup folders 2, 3 and 4 were gone, folder 1 contents intact.
Test: Connected phone to PC and mounted sdcard.
Result: All four folders still show their full contents of backup files. Copied folders 2, 3 and 4 to PC successfully.
Test: Rebooted phone and mounted sdcard.
Result: The contents of all four folders was gone (folder 1 should have remained unchanged). This was confirmed using a file explorer on the phone. What's more, the sdcard now has 102MB less free space than when I started which happens to be the size of backup in folder 1 which has mysteriously vanished.
I appreciate this is a long post and you may not have all the answers but any ideas/suggestions would be appreciated.
It seems to me that TB is caching the changes made when a backup is performed (or deleted) ready to apply them when the phone is restarted.
Does everyone else find they must restart their phone after each backup? Or could it be down to software settings on my phone?
How can scheduled backups be relied upon if a restart is required after each backup operation?
And how can backup files be erased by accident (folder 1 in the last test above) yet the disk space remains occupied and is not freed-up?
Would appreciate your thoughts people.
Thanks,
Steve

[Solved] Restoring messages, contacts and calendar from .db files?

Hi,
I changed the ROM on my Desire, and I forgot to backup my calendar/contacts/messages/call logs with a proper backup program, and none of this info was synced with Google.
However, I still have the data files on my micro SD card (I was using a ROM with apps2ext).
From what I've understood - correct me if I'm wrong - these are relevant files:
/data/data/com.android.providers.calendar/databases/calendar.db
/data/data/com.android.providers.telephony/databases/mmssms.db
/data/data/com.android.providers.telephony/databases/telephony.db
/data/data/com.android.providers.contacts/databases/contacts2.db (this one isn't very important, since I saved my contacts to a .vcf file)
I tried to simply copy the backed up files to those locations but it doesn't seem to work.. I'm a noob
Can anyone please help?
P.S. I was using a modified rooted stock ROM, and now I'm using Cyanogenmod 7
EDIT:
I think the problem is that the .db file structure is different in Cyanogenmod.
I restored the data by installing a rooted stock ROM again, restored the .db files to their original locations (instructions here), used MyBackup Pro to backup the data, installed Cyanogenmod again and restored the data using MyBackup Pro.
Oh, and contacts2.db holds both contacts and call logs. Not telephony.db.

Wechat screwed up after titanium backup and restore

I asked previously about backing up before restoring to stock, didn't get any replies so I winged it. Anyway, I ended up taking a titanium backup +data backup of wechat. The result was 3 files, the 27mb apk, 300 mb tar.gz data file, and a small file. I also used a wifi ftp app to backup the /tencent/ folder in /sdcard/ which was 3+ GB. I flashed to stock and then used titanium backup to restore the app and data, and then I added tencent to a zip archive, transferred it to the nexus and unzipped it in /sdcard/ again. When I started wechat and signed in again, all the pictures were either grey boxes, or corrupted rainbow icons. The custom emoticons were all missing, among other things. Basically the only thing that survived were the text logs. Any ideas? What could I be doing wrong? Are there other places data was hiding out? Was the ftp wifi app unreliable? Is it a problem with permissions or owner?

Categories

Resources