[Solved] Oxygen 2.0 - App+data restore fails - Desire Q&A, Help & Troubleshooting

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.

Related

(SOLVED!)[Q] App install fails with DT A2SD & CM6.1.2 through Titanium Backup

I've tried to search around for some info but had no luck. I am also not allowed to post in the DT A2SD thread as I do not have a high enough post count. The problem is this:
A few apps that I am reinstalling from Titanium Backup are failing to install. I just partitioned my SD card (32gig class 10) to a 1gig EXT4 with a 32mb swap. I'm only moving apps and kept the Dalvik on internal memory for now. I started to restore my apps through Titanium Backup and the restore goes fine for awhile but then does a soft reboot toward the end. I've attempted this twice and had it happen both time. I am able to finish installing most of my apps when it turns back on except for 4. I get a failed to install from Titanium backup and the market when i try to restore them. My guess is that there is some partial installs from the soft reboot that are already on the EXT partition preventing them from installing. Any idea to a way to get these apps to reinstall again? Thanks for any help!
Cyanogen Mod 6.1.2
Darktremor Apps2SD 2.7.5.3 Beta 03a
Titanium Backup Version 3.6.7.1
Edit: Just moved Dalvik to SD and still no luck
Edit2: Solved! Delete the smdl2tmp1.asec file from your .android_secure folder on your SDCard
Edit3: By deleting the whole .Android_Secure folder I am able to install apps after it has issues with rebooting the rom after an app install.
Hope this helps someone!
I just had this happen with a few apps. I went into Settings/Applications/Manage Applications and found some let overs which I then removed, which allowed me to reinstall.
The one I had was actually the XDA App. I found the com.tapatalk.xda file (something relatively close to that) removed and was able to reinstall.
Good luck!
DrBump471 said:
I just had this happen with a few apps. I went into Settings/Applications/Manage Applications and found some let overs which I then removed, which allowed me to reinstall.
The one I had was actually the XDA App. I found the com.tapatalk.xda file (something relatively close to that) removed and was able to reinstall.
Good luck!
Click to expand...
Click to collapse
I checked in there and the apps are not showing in manage applications either. Thanks for the advice tho.
Yeah I didn't have the full app in there either but I did find those com.* files when you look at all apps that seemed to be related.
I probably just got lucky and found that one to be the problem.
DrBump471 said:
Yeah I didn't have the full app in there either but I did find those com.* files when you look at all apps that seemed to be related.
I probably just got lucky and found that one to be the problem.
Click to expand...
Click to collapse
I even double checked for the com files and only have a few android ones that do not seem related to the apps in question.
Solved: I ended up having an error installing a new app from the market and got a error 18. Found this thread http://forum.xda-developers.com/showthread.php?t=755970
I was unable to remove the file in terminal so I just booted into recovery, mounted my sdcard, went into the .android_secure folder and deleted the smdl2tmp1.asec file there. By doing that I was able to install the app I wanted and install my older apps from the market. Didn't even bother using TB to restore them just in case.
Hope this info helps someone else!
^^Nice work!
Glad you figured it out.
I mentioned I also had an issue with the rom rebooting after installing apps. I deleted the .Android_Secure folder and I was able to continue to install apps again. Just a FYI if anyone has the issue.

[Q] Can't download Handcent SMS or XDA Forums app

I was told I can download handcent sms to fix a timestamp issue im having (because it automatically displays texts in the order they're received instead of using timestamps). However, I had the program and deleted it once before, but after reading up on it I still have a file somewhere on my phone called com.handcent.newsms, and having that somewhere on there is preventing me from installing handcent. I checked in titanium backup and its one of the files with a line through it (aka-its been deleted supposedly), and my phone has been searching my files using ES File Explorer since about 7 hours ago with 0 progress. Any ideas on where this file might be?
Same problem with the XDA Forums app. Had it, deleted it, but after searching Titanium Backup theres still a file being displayed called com.quoord.tapatalkxda.activity and i'm assuming thats the reason I can download but not install the app. And idea where to find this one?
back everything up, boot into recovery and wipe data/cache. then reinstall everything
ive wiped several times when installing new roms (before i knew i even had this issue).
are you restoring the same rom after wiping? if you wipe then install a new rom there should be nothing leftover to give you issues
nope, ive installed a new one every time (to be more specific- miui, cm6, evozone.pure, evozone.riptide). and ive tried searching for the file on my file explorer and it just stays at 0% (on hour 8 now). It shows the files (the handcent one and the xda one) at the very bottom of Titanium Backup with a line through it.
when you touch that line does it not give you the option to delete it? if it is just a line that means that you have a backup for an app that is not currently installed
nope, and it says that theres no backup for it. it has the yellow sign with an exclamation mark in it next to it, which after i looked means theres "nothing"? this is doing a fantastic job of irritating the piss out of me.
in titanium backup, hit menu then clean dalvik, then reload app list, if still there then with a file explorer go into the titaniumbackup folder and delete the files associated with those entries
cleaned dalvik, still there. and thats the problem, i cant find any files associated with them.
ewingt22 said:
cleaned dalvik, still there. and thats the problem, i cant find any files associated with them.
Click to expand...
Click to collapse
Have you ever copied your SD card to your PC? If so - you can go into the TitaniumBackup folder on your SD from previous manual backups and just reinstal the apk from there... I do that all the time. When I flash a ROM, First I make a NAND backup of said ROM, restore all apps and info (Texts,Contacts,Emails etc) then I do a TB back up and a MyBackUpPro Backup and then I copy all the files from my SD (which will contain all the backups you just made)to safely keep all the back ups you just made safe on your PC...If you dont alredy do that kind of thing, maybe its a good idea to start for these types of problems
hope that helps, if not - I do have the Apks for both apps your looking for - I can email them to you if you want
make a backup of your sd card on your computer, then format it and put only a rom .zip file, wipe everything multiple times, install the rom from sd card
check if handcent or xda will install, if yes, replace the files on your sdcard that you copied before format.
if no you have successfully gotten somebody else as frustrated with your phone as you are
Worked, thanks a ton for the help
Sent from my PC36100 using XDA App

TitaniumBackup restore failed after flashing Oxygen

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 =)

Unfortunately messaging has stopped

So I flashed a custom theme here http://forum.xda-developers.com/showthread.php?goto=newpost&t=1803273 and I flashed it over wicked r5.
I also also installed another zip from there to change the jellybean messaging app to the stock touchwiz.
It worked but randomly I get a Unfortunately messaging has stopped error.
Try clearing your cache or fixing permissions. Also, it might just be a bit too much tweaking.. Hopefully you can get it to work.
Sent from my SGH-T999 using xda premium
Every time ive seen that doing a factory reset has fixed it.
BACK UP YOUR INTERNAL SD FIRST!!!
Good luck!
Edit: try daves suggestion first though!
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Every time ive seen that doing a factory reset has fixed it.
BACK UP YOUR INTERNAL SD FIRST!!!
Good luck!
Edit: try daves suggestion first though!
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Yeah, I spent a whole day trying to fix this, in the end had to do a factory wipe.
Corrupt sms / mms database
This has to do with a corrupt db file. It can either happen if something goes wrong with titanium backup/restore process. Or also if you manually copy these files from another older backup (when an older android was installed).
First backup the existing sms/mms with smsbackup from appstore. It is free.
With an explorer app like ESFile explorer, go to "/data/data/com.android.providers.telephony/databases" (or something similar in your phone where the sms / mss .db files are located).
Make a backup of the files here and then Delete all the files.
Then restore the sms from smsbackup app. Voila ! No crash anymore
No need to do a factory wipe.
If everything works fine, you can delete the backup folder containing the old db files.
FYI: After upgrading to Wicked's v.7 I stopped getting these errors. Been a week so far with no probs.
genardas said:
So I flashed a custom theme here http://forum.xda-developers.com/showthread.php?goto=newpost&t=1803273 and I flashed it over wicked r5.
I also also installed another zip from there to change the jellybean messaging app to the stock touchwiz.
It worked but randomly I get a Unfortunately messaging has stopped error.
Click to expand...
Click to collapse
Hi please see http://forum.xda-developers.com/showthread.php?p=27695693 ..... it may be related to your CSC. Or alternatively (in my case) I had mistakenly frozen the system app "BadgeProvider" using Titanium Backup. Constant "Messaging has stopped" kept coming up until I unfroze BadgeProvider.
shriramrs31 said:
This has to do with a corrupt db file. It can either happen if something goes wrong with titanium backup/restore process. Or also if you manually copy these files from another older backup (when an older android was installed).
First backup the existing sms/mms with smsbackup from appstore. It is free.
With an explorer app like ESFile explorer, go to "/data/data/com.android.providers.telephony/databases" (or something similar in your phone where the sms / mss .db files are located).
Make a backup of the files here and then Delete all the files.
Then restore the sms from smsbackup app. Voila ! No crash anymore
No need to do a factory wipe.
If everything works fine, you can delete the backup folder containing the old db files.
Click to expand...
Click to collapse
Thanks I tried restoring one too many things related to SMS with titanium backup which screwed up the messaging app, I wasn't able to receive or read msgs. Your solution worked, I just had to reboot after deleting.
If you rooted your phone, anyone, and you deleted or renamed some system apps to stop them loading then you could face problems with the SMS Messaging app.
Just make sure the system app "WebViewGoogle" is left intact (in the folder data/system/app)
If you deleted it then put it back in, if you renamed it (e.g. from "WebViewGoogle.apk" to "WebViewGoogle.apk.old") then name it back to "WebViewGoogle.apk"
This app must be intact for the Messaging app to work. properly.

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.

Categories

Resources