TitaniumBackup restore failed after flashing Oxygen - Desire Q&A, Help & Troubleshooting

I've got a pretty strange problem over here.
I've just flashed Oxygen 2.1.2 and was trying to restore the data of my downloaded apps (of course not the system apps...) using TitaniumBackup. I was using InsertCoin2.1+3.0 v25 before. For some reason, the restore process did not finish correctly for some apps (Astrid Tasks, PocketCloud, 3g watchdog pro, and several other)
TitaniumBackup pretents the restore was successful but when I launch the app in question there's no data. Just like if i've installed it from the market.
I've done some research using adb.
I've installing the app (in this case 3g watchdog pro) from market and used it for a while.
Using adb shell i've navigated to /data/data/<app>/ and the data was there. (ls showed some stuff in there)
Then i've restored the backup of 3g watchdog pro. After that, ls pretends that the directory containing the data is empty and launching the app shows the welcome screen (=no data)
Something that is even more strange:
pwd returns the direcory i'm in.
So "cd <output of pwd>" should do nothing. After that, ls show the data restored by TitaniumBackup.
Any ideas what just went wrong?

That's weird. I assume you have rebooted at least once?
You could try restoring the apps and data via google cloud backup? When you flash a rom or restore a backup, during the registration process there is an option to backup and restore from google servers. Did you check that when registering?

I never used this feature and dont want to use it either.
Update: manually extracting the backup tar and copying it to the proper location does not help either. Same thing as described above.

Push your previous libsqlite.so file from your old ROM into /system/lib. Then reboot and repeat your restore w/data.

That did the job, thanks. Do I have to push that lib everytime I update Oxygen from now on?

rearwheeldriver said:
That did the job, thanks. Do I have to push that lib everytime I update Oxygen from now on?
Click to expand...
Click to collapse
Unfortunately yes. The library on your old rom is newer than the one used in your new and any stock rom.

Aright, thanks again =)

Related

Titanium Backup-Restore deleted apps?

I ran a titanium backup, then I deleted a bunch of stock apps, then I ran another titanium backup in preparation to flash my first custom rom.
My question is, after I flash the custom rom and use Titanium Backup to restore my apps and settings, is it going to restore all of those apps I deleted? I opened the Titanium folder on my SD card and all of those apps appear to be listed there.
kirk1978 said:
I ran a titanium backup, then I deleted a bunch of stock apps, then I ran another titanium backup in preparation to flash my first custom rom.
My question is, after I flash the custom rom and use Titanium Backup to restore my apps and settings, is it going to restore all of those apps I deleted? I opened the Titanium folder on my SD card and all of those apps appear to be listed there.
Click to expand...
Click to collapse
If you didnt remove them apps from the back up then yes it will restore them. There shoudl be an option if you scroll down i batch where you can see delete back ups for noninstalled apps. I would do this and it should remove the back ups of any app you previously removed but had backed up.
Careful, Titanium doesn't actually take backups of system apps, just their data. If you delete system apps you may not be able to restore them with Titanium.
Does anyone have those stock apps, so i can reinstall through titanium? And how exactly is it done... Thanks.....
rinaldo1976 said:
Does anyone have those stock apps, so i can reinstall through titanium? And how exactly is it done... Thanks.....
Click to expand...
Click to collapse
ditto! Need a zip file if possible with stock apps (mainly stock.apk and widget, news.apk, newsreader, rss.apk, friendstream and widget)
as far as how it's done it depends on your phone.
run
cmd
adb push filename.apk /system/app
In TB, it shows the system apps I had deleted, and they have a line through the file name. Below each one, it says that there isnt any backup of those apps. If I open them, it only gives me the option to un-install them. Should I keep them there in case I need them when I find a way to re-install them?
Certain system apps will not reinstall even if you have a backup of them. If you uninstall Facebook for HTC Sense, for example, there is no way of reinstalling it and getting it to work again. Be careful what you uninstall.
If you pay for the TB Pro Key, you can backup system apps (the actual apk) and restore them to /system/app - I've done so anyway. You shouldn't restore them (or their data) on other roms. You can also freeze the app to test if anything will break by removing it. Freezing doesn't remove the app, just keeps it from running or showing in your app drawer. I know it's a bit pricey, but I think it was more than worth the price. Plus you get background app restores, meaning that you don't have to agree to permissions and select install for each app.
You don't have to restore everything that you backup. When you choose to batch restore (select "restore missing apps with data"), you can uncheck which apps you don't want reinstalled. I usually only restore the apps I absolutely need after a clean install, then if I need an app later I'll restore it. This helps to weed out apps you don't use. You can of course do this with the free version.
If you've removed apps and need them again, you can download the rom and extract the apps you need then push them to /system/app. Or you can just flash the rom over itself without wiping data, just wipe caches. If you're running stock you can do this with the stock rooted rom.
Supersonic Evo 4G | MIUI | Tapatalk

[Solved] Oxygen 2.0 - App+data restore fails

Since my post in the development thread has been kindly deleted after ****ing around the whole afternoon with ROM's and restoring, I'm going to post the question here.
Anyone else got the app+data restore working on Oxygen 2.0 final ?
I always wipe before flashing, I tried it with Titanium backup (2 versions) and Mybackup Pro. Backup & restore works fine on CM RC7, but when I try to restore on Oxygen, it's just missing data for some apps.
But some are successfully restored with data, that what's weird.
I first thought, it's an issue with a Dalvik2sd script, but then tried it in clean Oxygen 2.0 ROM. When i check /data/data with the Root explorer, I can see the app there, but it just isn't loaded properly (for instance Financisto, Runkeeper, AlarmClockPlus, Abduction).
So basically, what's different in new 2.3.3 OTA, or am I the only one with the issue ?
Haven't tried all my apps, but its worked fine for those which I have.
Thanks for the dalvik to SD zip btw
Sent from my HTC Desire using Tapatalk
Yeah np :]
Could you please check other apps if they're ok ? I got about 130 apps, so it's kinda annoying to don't get the data restored.
Having looked through the rest of my apps, there aren't any which had saved data. I can confirm data has been successfully restored for angry birds, flow, BBC news, your orange, tapatalk, bedside, crazy snowboard and im+
Sent from my HTC Desire using Tapatalk
I have been using the Oxygen 2.0 for a couple of hours now and I have to say it is nice, compact and fast.
However, I have noticed that "pm, am" indication are missing from the time notification bar. Also the "AUTOMATIC" on Date and Time settings are not getting any update from the network. Am I right? Or it is just me who has it?
Also tested a previous busybox version, still same issue. But backuping and restoring on Oxygen 2.0 works correctly. Also most apps have the data restored correctly only some have issues. Have no idea, I'll just have to live with some data missing then, the 2.0 ROM just rocks that much :]
I think the best way to reinstall all apps after flash is to let Google install them automatically through market.
i have upgraded my desire from DevNull yesterday after backing up all apps with data via Titanium backup and i didnt experienced any issues with any of my apps (around 80).
This supposed to be the fix, a sqlite lib -> http://forum.xda-developers.com/showpost.php?p=11729730&postcount=341
I think this is the solution to your problem :
http://forum.xda-developers.com/showpost.php?p=11729730&postcount=341
-orgler
Since "someone" deleted a correct fix from the Oxygen thread, I'm gonna repost the file here. Seriously uncool.
Replace the libsqlite.so in /system/lib. You're gonna need to be S-OFF or do it in recovery. Sqlite .db files for some apps that were missing data are readable after, so I can confirm it works.
I noticed the missing data problem almost immediately after installing the rom. Thanks for posting a fix. The "mood" in the new oxygen thread gets a bit tense compared to other desire threads.
If I remember ill hit the thanks button when I'm in on a PC.
sK
Sent from my HTC Desire using XDA Premium App
Np, please thank orgler, he found the fix and posted it. I just saved the answer and posted it here as a solution.
I saw your reply to me just after sending you a PM. Flashing the libsqlite.zip file on top of latest oxygen rom didn't work. No big deal as the app I really need data for backs up to sdcard. I'm sure this problem will get fixed soon enough.
sK
Sent from my HTC Desire using XDA Premium App
I just read your instructions again. I'm not s-off. Do you know how I can replace the lib with ADB?
sK
Sent from my HTC Desire using XDA Premium App
Em, its not a flashable .zip (I didn't state that, but sometimes it's good to open the .zip first )
Boot to recovery, mount the system partition, connect USB cable and go to adb shell (we're gonna backup the original lib first):
#cd system
#cd lib
#mv libsqlite.so libsqlite.so.orig
#exit
Make sure you're in the same directory as libsqlite.so, or copy the .so to the dir where adb is (if your var path isn't set). Then enter in command prompt:
adb push libsqlite.so /system/lib
adb shell
#cd system
#cd lib
#chmod libsqlite.so 640
Then reboot
thed0g said:
Since "someone" deleted a correct fix from the Oxygen thread, I'm gonna repost the file here. Seriously uncool.
Replace the libsqlite.so in /system/lib. You're gonna need to be S-OFF or do it in recovery. Sqlite .db files for some apps that were missing data are readable after, so I can confirm it works.
Click to expand...
Click to collapse
Thanks for your assistance with this it's appreciated. However, pushing it via adb didn't work for me either.
I have a full mybackup of data and .apk files. There is no error when I try to restore the missing applications, mybackup confirms it's been done and requests I reboot, but the application is never there.....
Any more ideas?
That seems to be unrelated, issue was only about data in the apps, app restore worked. I suggest trying to backup with Titanium backup and try to restore with it.
So: Im sure you kept the nandroid backup with all the apps and data. Restore it, pull free version of Titanium off the Market and backup some apps. Flash Oxygen (you can replace the .so file with opening oxygen.zip in Winrar and replacing it in /system/lib) then try restoring the apps. If it works, you'll know the issue is with MyBackupPro.
thed0g said:
That seems to be unrelated, issue was only about data in the apps, app restore worked. I suggest trying to backup with Titanium backup and try to restore with it.
So: Im sure you kept the nandroid backup with all the apps and data. Restore it, pull free version of Titanium off the Market and backup some apps. Flash Oxygen (you can replace the .so file with opening oxygen.zip in Winrar and replacing it in /system/lib) then try restoring the apps. If it works, you'll know the issue is with MyBackupPro.
Click to expand...
Click to collapse
I like your thinking... I did indeed keep the nandroid backup, so I'll give it a whirl.
Thank you.
Great. Solved the problems I had with Titanium.

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?

Issue with TiBu Update.zip

So I made an update.zip before I went from my 4.1 ROM to a 4.2 ROM. However whenever I try to flash my update.zip file it makes my phone not boot. Unfortunately I was stupid and didnt make any other backups. Is there a way to restore individual apps/data from the update.zip file?
Could have something to do with how titanium created the file.
Does the .zip only contain the tibackup app? Or others as well?
Sent from my Galaxy Nexus using xda premium
It contains a large list of apps. When I created the zip I went through the long list of stuff and only backed up what I wanted (none of the red system stuff).
All in all its not a huge deal. Was mostly wanting my SMS/Call Logs/Wi-Fi
All the other stuff would be nice but can be redone
File and directory structure has changed in 4.2.
Sent from my Nexus 7 using Tapatalk 2
najaboy said:
File and directory structure has changed in 4.2.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Yep I dont think thats the cause though as it also happens if I try going back to my 4.1 ROM (JBSourcery).
I went through my update.zip file and removed a bunch more stuff that I likely didnt need and it worked!!! Obviously I backed something up into the zip that was causing the issue. There was also some system apks/files in there that I am positive I didnt choose for the update.zip... not sure if it auto-adds some or if I just spaced out but so far so good!
EDIT: Well it kind of worked... I got some of the apps but some didnt show at all and it didnt restore my SMS messages
Just to update if anyone else runs into this...
As I said above I got it to work by manually editing the .zip file to remove some stuff that I didnt need but it didnt restore my SMS/Call logs or anything like that (Wi-Fi APs as well).
I then went into the .zip and removed all the SMS/Call Log/Wi-Fi lists and then put them in the TitaniumBackup folder on my phone (overwriting my old ones) so it will allow me to restore. I also tried removing all files from my .zip file except the SMS/Call Log/Wi-Fi stuff and will see if reflashing helps
It would be a really great addition to TiBu to have the ability to restore from your .zip file from within TiBu. I dont think it would be super hard to implement but I'm not a dev so thats just speculation.
I will update again later if my workaround does the trick.
Not sure if you've ever heard of it, but grab the app named "App2zip". It will do just that. You select apps that you want installed back on your ROM after flashing a new one. When finished hit the OK button and it will make a flashable zip of all the selected apps. It also keeps all user & system apps on separate pages so you don't accidentally backup a system app that might cause issues. Another good thing is that it works for 4.2! I used it to restore over 150 apps on Mmuzzy's first build after 4.2 dropped and everything restored properly. Just know it zips only the apps, no data. If you want your app data backed up use TiBu and restore data after you flash your ROM & apps zip.
i was able to restore my apps using the update.zip from tibu, it then restored data after i booted the OS. I had to mount /system before i flashed the update.zip because if i didn't mount it first, it wouldn't restore my apps at all. The only problem is my phone lagged like an SOB after restoring the data. I just use tibu to restore apps and data after i boot the phone, keeps the problems off my phone.
RoyJ said:
Not sure if you've ever heard of it, but grab the app named "App2zip". It will do just that. You select apps that you want installed back on your ROM after flashing a new one. When finished hit the OK button and it will make a flashable zip of all the selected apps. It also keeps all user & system apps on separate pages so you don't accidentally backup a system app that might cause issues. Another good thing is that it works for 4.2! I used it to restore over 150 apps on Mmuzzy's first build after 4.2 dropped and everything restored properly. Just know it zips only the apps, no data. If you want your app data backed up use TiBu and restore data after you flash your ROM & apps zip.
Click to expand...
Click to collapse
Yep I have used App2Zip. TiBu has basically replicated that functionality.
So as is normally the case the problem here was my own stupidity.
I thought that by choosing the option to make an update.zip and then choosing all the programs I wanted it would make a current version backup of the apps I selected. However I think how it works is that it only makes the .zip file out of an existing backup. So I should have run a full TiBu backup before making my .zip. I verified this by going through the xml file with my text messages and verifying that it was old stuff.
So in the end it was my fault for not understanding how the program worked. I still think the ability to restore directly from the update.zip from within TiBu would be a welcome addition though.

[Q] adb restore doesn't restore everything

Hey,
I've created a backup with this command:
Code:
./adb backup -f fullbackup_2013-03-28.ab -apk -shared -all -system
The resulting file was 11 GB which was expected. After this I unlocked my bootloader. Restoring the backup hung two times. FIrst at com.android.chrome then at com.google.android.googlequicksearchbox. These two were also mentioned in Android issue report #34311 (sorry can't post link, I'm under 10 posts). Both times I rebooted my phone and restarted the restore. The third restore went through.
Now my problem is I'm missing a lot of data. My storage is only at 6 GB, that's at least 5 GB missing. My music folder for example was only partially restored. How can this be? Is there anything I can do?
I'm running 4.2.2 stock. My adb version is 1.0.31.
Update: I've now extracted the backup and I can say for sure that there are files in there that don't get restored.
Has nobody else experienced such a behavior?
AW: [Q] adb restore doesn't restore everything
yes i have done that with my nexus 7.. it seemed to restored my file structure but when i tried to open files nothing would happen... u really cant rely on that thing
Sent from my Galaxy Nexus using xda app-developers app
It's safer to use adb pull and adb push to backup and restore the sdcard, and only use adb backup for user apps and data. Also, it's not generally a good idea to backup and restore system apps and data. So -noshared and -nosystem for adb backup, and pull and push for the sdcard might work better. As for the data you already backed up, maybe Titanium Backup would help. I understand it can access adb .ab files, though I haven't used it for that myself.

Categories

Resources