I don't know if I'm the only one having this issue, but I'd figure I'd lay out my findings for everyone to see if we can get to the bottom of it. Since the EB01 leak was released, I've noticed that after a while my installed apps will not remember their preferences anymore, think everytime is the first run, etc...
First time I flashed EB01 was using ROM Manager and an old "green" version of CWM. After the first instance of these issues cropping up, I went back DI01 using a FULL Odin restore (rom, kernel, radio, novinand, etc, w/ re-partitioning), then flashed to an EB01+CWM+Root package using Odin instead of CWM. Again, after a day or two, apps started forgetting their preferences. I then got a new phone as a warranty replacement, went from EA28 to EB01 using Odin: still having the same issues.
The only thing I noticed out of place (I'm no developer) in a logcat trace is:
Code:
Line 745: E/ApplicationContext(31797): Couldn't rename file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml to backup file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml.bak
Line 745: E/ApplicationContext(31797): Couldn't rename file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml to backup file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml.bak
Line 745: E/ApplicationContext(31797): Couldn't rename file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml to backup file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml.bak
Line 745: E/ApplicationContext(31797): Couldn't rename file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml to backup file /dbdata/databases/com.speedsoftware.rootexplorer/shared_prefs/com.speedsoftware.rootexplorer_preferences.xml.bak
Just a few other things I've noticed
*System application do not seem to be affected
*/dbdata/databases/ is full if entries for apps that are no longer installed. I don't know if that is normal or if they are supposed to be cleared out when an app is removed.
*deleting the entry in /dbdata/databases/ for a particular app seems to force it re-create the entry, allowing it save it's preferences.....until they change again.
*reading from dbdata seems to work fine, just writing isn't working.
*only certain apps seem to act up. The first ones to show signs of issues are usually Tapatalk, Root Explorer, & Titanium Backup. Apps like Dropbox and Facebook don't seem to be affected this time around.
I question weather this a corruption due to the installation method (outdated CWM) or a bug in EB01 itself and only folks who add/delete apps frequently like myself are more prone to notice it.
Thoughts?
First, this shouldn't be posted here. This has nothing to do with Development, so it should have gone in the General forum.
Next, have you tried to do a factory reset after the issue pops up and try again? I realize that you did the full Odin wipe, but did you try wiping data anyway? Also, are you on Voodoo or no-voodoo?
1. Apologies, I figured since this was an issue with software under development and is likely a code issue, that it belongs here more than anywhere.
2. Yes, many wipes of data & cache partitions, restores to DI01, etc. The full restore & re-formatting was a last resort. Plus, it's doing the same thing with an entirely new device.
3. Non-voodoo
What I would suggest is reset your phone and reset your data restoring, AKA clearing it from google's servers the best way to do that is reflash a froyo rom, wipe all the cache's and then when it asks you to login with your google account skip that step and then login using Settings->Accounts & Sync add your google account And then in Settings->Privacy Uncheck Backup my data and Automatic Restore. There is a chance there is a app or a setting being pulled from google that could be screwing it up, you could also try formating your SD card.
You mentioned Titanium Backup. It has an "Auto-sync TB settings" is supposed to auto restore it's settings from the SD card after a wipe. Maybe you have a setting in there that is causing an auto-restore to happen of the data from some of your apps.
And definitely check to make sure that you don't have Automatic Restore checked in Settings->Privacy. The best way to do this is just like jazzyjames mentioned. After a wipe, don't log into Google on the first boot, but first go in and uncheck the auto restore. Then you can log into your Google account.
It happens to those who use voodoo, but it was worse with 2.2 for some reason.
I fixed it using and all in one odin 2.2 version. It'll repartition the file system and restore your dbdata.
Done problem solved...
I found the Google Auto-Restore was enabled, so I disabled it to clear everything and did a factory wipe and re-did everything with pretty much every automated backup or sync service turned off.
We'll see how things go.
Related
Earlier today I flashed Fresh 1.1 onto my phone.. I was having some issues with the Calendar syncing up so I unchecked the sync under Settings-Data Sync-Google and backed out of it. (this is where the problems began) I also went to Applications-Manage applications and cleared the cache/data out of the calendar, gmail and google apps. I have removed all of the sprint apps except nfl network (some before, some after Flashing 1.1)
Whenever I go back to Settings-Data Sync-Google or try to open up the market, gmail, calendar or any of the google services, it askes me to "set up my google account".. I click next and it goes to "setting up your Hero200" so I click sign in and type in my login info and I get the message: Can't establish a reliable data connection to the
server.This could be a temporary problem or your SIM card
may not be provisioned for data services. If continues,
call Customer Care. I do have a data connection because I browse on Dolphin, everything else works fin
I've rebooted, but not restored an earlier backup.. Does anyone have any suggestions? Thanks in advance and sorry for the long post...
are you on 3G or wifi?
WiFi, but I've tried it on 3g and it doesn't seem to make difference...
I read somewhere that someone manually set the APN for Sprint, does that make any sense to anyone?
I found this on another forum, can anyone confirm that this might help, or at least won't screw my phone up seriously if I try it:
"Is simple, but you need to be root and know how to play with the device: just delete the folder
/data/data/com.android.providers.settings and restart (before and after) and you can
use the wizard again."
http://code.google.com/p/android/issues/detail?id=3477
i'm not sure, but go to settings>about phone>system updates and try updating the Profile and the PRL. since you're rooted don't mess with the firmware or anything though.
Have you tried restoring your nandroid backup yet?
I updated the Profile and PRL and still no change. I haven't restored my backup, yet...
I'm seriously thinking about following the advise in the link above and deleting: /data/data/com.android.providers.settings and see if that helps.. If I do this and it still doesn't work, I can do my restore and try that and if all else fails, start all over.. Right?
Before I delete this file, I want to back it up on my SD Card, I just push it to the SD card, correct? The problem is, that I have no idea what's in that file, that's why I'm hesitant to do this.. If it does screw something up, a backup should restore this, correct?
Thanks!
Been there, done that, couldn't fix it. I'm convinced that doing the "clear data" for those apps is not a good idea.
I ended up restoring the Nandroid I took right before I cleared that info, then instead went online and changed my Gmail password. That forced me to run through the Google Account Setup wizard again, which actually worked fine.
Yeah, when I cleared that data it wiped all my contacts and everything... I changed my google password and I'm going to restore a backup and see what happens.... At least I should have my contacts back....
Ok, that worked (for now anyways!!) Thanks johnnythan!! I restored a Nandroid and it prompted me for my google password right away...
I'm still getting the calendar force close whenever it tries to sync (problem I was originally trying to fix) but I'll live with that for now... It seems to sync, but takes a couple tries after force closing...
Thanks, much better than starting over from a full reboot!!
have you tried flashing the unofficial modaco rom version 1.3a? If you flash it, and follow the instructions to clear the dalvik and boot cache it may take care of your problems.
I think I tried that in the Fresh1.1 PreKitchen and I don't believe it helped.. I'll defiantly keep that in mind if I have this issue again.. Thanks!
I realize this is a bit of a noob question but I've tried to flash cm rc1 about 6 times now, and every time I've experienced problems trying to restore my apps and settings.
Every time I tried, I started by doing a nandroid backup and wiping before flashing rc1, and I could boot with no problems. However, the first time I did this, the first thing I did was flash gapps and then waited half an hour for most of my downloaded apps to be restored automatically, but none of my settings or contacts came back.
Tried reflashing rc1 again but this time didn't flash gapps yet, instead went to advanced restore options in nandroid and restored only my data, which did the trick, except when I flashed gapps after I got the error where at setup you're supposed to "touch android to begin" and it doesn't do anything. Thought I'd nearly bricked my phone cause I couldn't exit the screen or get into recovery! Eventually managed to restore azure.
Going to try now restoring from my titanium backups and THEN flashing gapps, so hoping this is the best way to do it.
EDIT: Oh yeah so here's actually the main problem/question: I have most of my apps on sd (froyo apps2sd) and have backups made from titanium and a nandroid backup obviously. I want to have all my current apps and settings restored to the rc so that everything is more or less exactly as it is the way I use it now. Is this possible? Or will titanium restore my apps to internal memory?
Okay, so after restoring from titanium and flashing gapps I STILL don't have half of my apps or any of my contacts! What am I doing wrong??
Is there a series of steps you guys follow when migrating everything from one rom to another?
Make sure to enable App2sd in the Cyanogen Application Settings before running the Titanium restore. Also check Titanium Backups's Settings (press Menu button). There is an option to enforce the same location (SD/Internal). Not sure if it helps though.
I am not running an English version so you might have to search for the options.
Your contacts should be stored on your google Account if you had syncing activated.
Check Settings -> Account & Sync (or something like this) and add your google account if it is not already there. After that click the option to sync contacts.
If your contacts wheren't synced try restoring with Titanium again. The files you are looking for are "com.android.providers.contacts-***.tar.gz" and "com.android.providers.contacts-***.properties" NOT ""com.android.contacts-***."
If nothing helps you could always restorer you nandroid backup -> Titanium backup all apps that are NOT moved to SD -> uninstall all apps that are not moved to SD to make some room and move every app on the sd card to your internal storage before running another Titanium backup to have all apps as internal-storage versions. While you are at it you can sync your contacts with your google account and export them to SD for two options to restore them later.
Batch backup system and user apps+data. Then verify that backup to see everything is backed up successfully. For contacts either sync to Google account or you can export your contacts to SD, which I prefer personally. Full wipe, install Titanium, restore. End of story.
Oi rajasetan, can titanium do quiet restore?
Sent from my Legend using XDA App
Thanks denisman, I did actually follow all of those steps and still had problems.. titanium didn't restore my contacts and even though they were synced with google for some reason they never came back, so I took your advice and exported my contacts to sd and will try again. Strange that between google sync and full backup and full restore of apps through titanium I still couldn't restore all my previous settings. Doing a nandroid advanced restore of data was the best option, if only I could do so without getting the error when flashing gapps. Maybe I should flash gapps and THEN nandroid restore data?
rajasyaitan said:
Batch backup system and user apps+data. Then verify that backup to see everything is backed up successfully. For contacts either sync to Google account or you can export your contacts to SD, which I prefer personally. Full wipe, install Titanium, restore. End of story.
Click to expand...
Click to collapse
That's how I've been doing it actually, although I don't have the paid version of titanium so I can't verify my backups. Will upgrade to paid version and try that, thanks.
Update:
Okay so this time I flashed gapps first and THEN used nandroid to restore just my data and that did the trick; contacts, settings and apps are all back the way they should be.
New issue though (I seem plagued by these)! Even though I have the exact same stuff installed, I have only 3mb free on internal memory (even after using adb shell to remove carhome, twitter and other system apps I didn't need) when I used to have 40mb free before. Is cm6.1 that much larger than azure or do I have unnecessary copies of files sitting around somewhere I can't see them?
In titanium settings you need to check "force install to same location", then any apps you used to have on your SD card will stay there.
I had something strange happen with the Messaging app, so I may as well list every step I took in case one of them was important.
TL;DR: I backed up "SMS Storage" from stock ROM with Ti Backup then restored it into CM6, but my old messages were still missing. Afterward I backed up and restored CM6 with nandroid and the old messages came back. fix_permissions was used in the middle for unrelated reasons.
I had stock G2 with perma-root and I wanted to try CM6. Without thinking about my apps or their data, I simply did a backup with ROM Manager, wiped and installed CM6. (All in one step. Man, I love ROM Manager!)
When I finally logged into CM6, Android started downloading all the apps I had before. It was then that I realized, "Fuuuuuuuuuck... all my settings and data are gone." I had older backups in Titanium Backup, but I wanted everything to be up to the minute. I also backed up my ADW settings and desktop configuration. Again, what a dream!
I restored my stock ROM backup and used Titanium Backup to backup everything one more time. Then I went through the download, wipe, install process again. It was already downloaded, and ROM Manager was smart enough not to download it again. Nice.
I waited yet again for Android to reinstall all my apps. A couple didn't download right, so I massaged them. I think they had updates with permission changes.
I restored my ADW settings and icons, and launched Titanium Backup. I used the restore screen and the Batch menu option. I clicked on RUN for "Restore All Apps" or whatever, which I knew would prompt me with a giant checkbox list. I unchecked everything and went down the list checking every user app. They were the ones with white text for the most part. If there was a Google system app that I was comfortable restoring, like the data for, say, Goggles, I checked that, too. I didn't check any of the truly system things.
The restore was a success and all my apps functioned beautifully.
I then opened the Messaging app and realized that all my old text messages were missing. Here's where the weirdness more-or-less starts.
I decide to go hunting in Ti Backup to see if I can find the data for the SMS app. I first restored the one with the Messaging app icon, and that managed to restore just my preferences. That made sense afterall, because it was called "[SMS/MMS PREFS] Messaging 2.2.1".
After that I tried restoring the one called "[SMS/MMS/APN] Dialer Storage 2.2.1", thinking that this must be it. No help at all.
I sent a few text messages to one person creating new data.
GPS is broken in CM6, and someone suggested running fix_permissions from the terminal. I did so, and no help with GPS. (But did this maybe fix the SMS data?)
I realized that Swype was missing and someone posted instructions on how to restore it, but you need to be back at stock and pull the files from the stock ROM. (I also could have unzipped the stock rom image, I read later, but anyway...) I restored my old stock backup, ran the ADB commands to pull the files, then restored my CM6 backup I had made just minutes earlier. I use a combination of ADB and Root Explorer to get the files in the right spot and I have Swype again.
I open the first app I can think of to test Swype, and that's Messaging. Bam! All my old messages are back! And my few new ones are now gone!
What's up with that?
elusivebyte said:
I had something strange happen with the Messaging app, so I may as well list every step I took in case one of them was important.
TL;DR: I backed up "SMS Storage" from stock ROM with Ti Backup then restored it into CM6, but my old messages were still missing. Afterward I backed up and restored CM6 with nandroid and the old messages came back. fix_permissions was used in the middle for unrelated reasons.
I had stock G2 with perma-root and I wanted to try CM6. Without thinking about my apps or their data, I simply did a backup with ROM Manager, wiped and installed CM6. (All in one step. Man, I love ROM Manager!)
When I finally logged into CM6, Android started downloading all the apps I had before. It was then that I realized, "Fuuuuuuuuuck... all my settings and data are gone." I had older backups in Titanium Backup, but I wanted everything to be up to the minute. I also backed up my ADW settings and desktop configuration. Again, what a dream!
I restored my stock ROM backup and used Titanium Backup to backup everything one more time. Then I went through the download, wipe, install process again. It was already downloaded, and ROM Manager was smart enough not to download it again. Nice.
I waited yet again for Android to reinstall all my apps. A couple didn't download right, so I massaged them. I think they had updates with permission changes.
I restored my ADW settings and icons, and launched Titanium Backup. I used the restore screen and the Batch menu option. I clicked on RUN for "Restore All Apps" or whatever, which I knew would prompt me with a giant checkbox list. I unchecked everything and went down the list checking every user app. They were the ones with white text for the most part. If there was a Google system app that I was comfortable restoring, like the data for, say, Goggles, I checked that, too. I didn't check any of the truly system things.
The restore was a success and all my apps functioned beautifully.
I then opened the Messaging app and realized that all my old text messages were missing. Here's where the weirdness more-or-less starts.
I decide to go hunting in Ti Backup to see if I can find the data for the SMS app. I first restored the one with the Messaging app icon, and that managed to restore just my preferences. That made sense afterall, because it was called "[SMS/MMS PREFS] Messaging 2.2.1".
After that I tried restoring the one called "[SMS/MMS/APN] Dialer Storage 2.2.1", thinking that this must be it. No help at all.
I sent a few text messages to one person creating new data.
GPS is broken in CM6, and someone suggested running fix_permissions from the terminal. I did so, and no help with GPS. (But did this maybe fix the SMS data?)
I realized that Swype was missing and someone posted instructions on how to restore it, but you need to be back at stock and pull the files from the stock ROM. (I also could have unzipped the stock rom image, I read later, but anyway...) I restored my old stock backup, ran the ADB commands to pull the files, then restored my CM6 backup I had made just minutes earlier. I use a combination of ADB and Root Explorer to get the files in the right spot and I have Swype again.
I open the first app I can think of to test Swype, and that's Messaging. Bam! All my old messages are back! And my few new ones are now gone!
What's up with that?
Click to expand...
Click to collapse
Just a note, if android starts reinstalling all of your apps automatically again, that means that you have "back up data to google servers" checked in settings, which means that it will first reinstall your apps, then restore all of their settings and data.
I have not changed ROMs before. IMHO the procedure is simple enough. I am not worried about that step at all. The question is, What am I left with afterward.
What data, apps, etc. do I loose? Do I need to recover them from a back up? If so, what parts do I need to recover?
Also, from what I have read, if the ROMs are closely related, all the data and apps are preserved.
Can some one explain/comment on this?
I know this is a very nubbie question. I'm trying to minimize time consuming mistakes.
U should always wipe data with changing roms or u might end up with lots of fcs. While all the roms are similar and contain the same basic apps, some roms are gonna have different and new apps than others. I recomend backing up the apps that u have on ur current rom with TB and once u install a different rom, all u have to do is download TB from the market and install the apps u once backed up
Sent from my SPH-D700 using XDA App
So all the apps I downloaded from market will then need to be reinstalled.
Do I loose the phone logs, all texts, contacts (but linked to gmail)?
I am unclear what "data" is stored where. What counts are "data" in the backups. Is application data backed up with "data", or included w/ the "apps" backup?
I am backed up with TB. (both data and apps).
I have also backed w/ CWM.
I assume/hope my identity (phone#, etc.) is tied to something like a MAC address that will not be wiped.
your identity is not wiped, are you using a sprint phone?
You should backup 2 ways at least, a nandroid with CWM and maybe Titanium Backup. Then follow the instructions of the ROM you are installing. Most no longer require wipes. After you flash the ROM if something did not restore properly just shut down, boot into CWM. Go to backup and restore, go to advanced restore data from your last backup. All should be restored.
Sent from my SPH-D700 using XDA App
I am on Sprint.
I am a bit confused on the CWM recovery, never having actually used it to restore anything. When i go to the restore utility in CWM, I see each of the backups listed. Not sure if I get the option of what to restore.
I may or may not want to restore the old ROM depending on the outcome of the new ROM flash.
But since u gonna issues TB all u have to do is jst download it from the market and the reinstall the apps u want back. U see, instead of searching for them on the market, u can jst install them from TB. And u won't losse contacts or emails if u sync them with gmail
labumm said:
So all the apps I downloaded from market will then need to be reinstalled.
Do I loose the phone logs, all texts, contacts (but linked to gmail)?
I am unclear what "data" is stored where. What counts are "data" in the backups. Is application data backed up with "data", or included w/ the "apps" backup?
I am backed up with TB. (both data and apps).
I have also backed w/ CWM.
I assume/hope my identity (phone#, etc.) is tied to something like a MAC address that will not be wiped.
Click to expand...
Click to collapse
My phone is Captivating, Fascinating, Epic and also LEGENDARY!!
If you are changing ROMs on the same version of firmware, like Gingerbread to Gingerbread, you can backup right before flashing (and you should), then when you flash the new ROM it may or may not preserve your data which is apps, contacts, call logs...IF it fails to restore properly you can do a factory data reset in CWM which will clean any bad restore, then do an ADVANCED RESTORE DATA and pick the newest one. They are date coded. It will ask you to confirm before doing it. This will only restore 3rd party apps and data like call logs, wifi links, email accounts and stuff like that.
The deed is done. The SMS messages do not restore. I tried to pick and choose apps to restore. Then restored all data.
The phone is functional, however. That was my main concern.
Thanks to all who read and responded.
now CleanGB 18
Duh.
Needed to reboot for all restored settings to appear.
To refresh, from what version did you move into? WHat do you have now?
labumm said:
Duh.
Needed to reboot for all restored settings to appear.
Click to expand...
Click to collapse
Ha, was just about to tell you that. Glad you are up and running.
Sent from my SPH-D700 using XDA App
I am a tiny bit concerned that I have just restored a bunch of un-needed crap onto my phone, from the TB backup.
Anyone know what the colors and icons of the files in TB signify?
I was looking for help in the tiki, but I don't see a concise explanation.
http://matrixrewriter.com/wiki/tiki-index.php
I presume I would not accidently reinstall carrier IQ and other un-fixes unintentionally with TB by restoring apps and data.
With Titanium Backup, when you backup your apps and other files it creates a folder full of files that only it can read. When I flashed Jasmine, I copied those files to my computer and then flashed, then redownloaded Titanium Backup and moved those files as well as the license back into the correct folders. Is this the correct way to use TB, or is there a route that I am missing? It worked fine, just not sure if it is the recommended way of use or not.
More or less.
The folder is usually in the /sdcard area which is NOT wiped by custom recovery (default) "factory reset", so I'm not sure there is any reason to back it up and restore it. If you are using the default wiping method in TWRP, the (internal, psuedo-) /sdcard folder is not wiped.
But there's no harm in a PC backup. A backup that goes unused can just be deleted some time down the road; disk space is cheap & it's there in a disaster. The same can not be said for not making backups.
Warning: since you are newish to this stuff this behavior is VERY different in stock recoveries - the stock recovery version of "factory reset" wipes out EVERYTHING. In that case it would be mandatory that you backup the entire /sdcard if you want to save things. It's a little bit unfortunate that Android named this type of procedure "Factory Reset" instead of something more accurate, which would be something like "User Data Wipe", as it leads new rooters to erroneously conclude that random modifications to the /system and boot partitions can be un-done using something called "factory reset". NOT TRUE AT ALL; IT'S JUST FOR WIPING USER DATA.
Different apps use different strategies for "Pro" version licensing. If they stick with the Google Play ("market") best-practice recommendations, there shouldn't be any need to manipulate license files, so long as the app is downloaded from the Play Store with the same google login that was used to originally purchase the app. But I can't say for sure if that's the mechanism with TiBu.
I use TiBu kind of sparingly - typically only for market apps I am interested in, and even in those cases I usually download the app from the market and restore only the data from TiBu (to avoid missing market registration bugs, etc). Folks on small data plans might have different ideas about it because of data usage issues (and timeliness of restore procedures). I don't use TiBu for things like backup of data stores for launcher apps, ROM frameworks (e.g. "Settings"). There probably is some degree of compatibility from ROM to ROM with those items, but it is certainly not guaranteed. (Things like word dictionaries & dialer blacklists fall into this category - it would be nice if they were guaranteed to be compatible, but there is no way to know in advance. You sort of have to experimentally determine whether you have broken anything.)
Alternatively, you could keep a copy of the TiBu .apk file in your SD card somewhere. That would allow you to do whatever restores you like without connecting to the Google Play market. Just copy it to /data/app using TWRP after flashing/wiping and then on first boot it will be ready to do your restores.*
* in TWRP via Advanced -> Terminal
This requires getting comfortable with a minimum number of Unix command line commands, e.g. "cd", "cp", "ls", "pwd", etc.
I did download it from the store, but had previously read that the license would need to be moved in a thread not on this website. When I redownloaded it from the store, it automatically added the license back, so I ended up not needing it.
I only use TB to backup things like my offline games I want my scores saved, or apps that it logs me back into when it loads it back (Facebook, Reddit, Messenger, Twitch, Twitter, etc).
What I was looking to do was just keep the files for the backups of those apps on my SD card (or whatever is the recommended method), rather than stored to the phones internal memory since it gets wiped during the reset.
Your internal /sdcard should not be getting wiped by TWRP's default wipe method (which is used for installing ROMs for instance). You would have to go into the Advanced Wipe submenu for that to happen. A stock recovery "factory reset" would nuke the "internal" /sdcard though.
That said, there is nothing wrong with having backups off the device - especially for people that remain on a locked bootloader and do not have a (independent boot) custom recovery.
TiBu has a place in its settings where you can choose to place it's backups on the external sdcard if you want to do that. Then they would be safe from any type of factory reset, and could be retrieved if the phone suddenly died.