How to sync the settings of an app between devices? - General Questions and Answers

So there's an app I'd like to sync between my phone and tablet, however I can't figure out whats the best way to sync it.
So the idea is the following, I'm using the app on my phone, i put it on the charger and pick up my tablet, while swapping them it syncs my data so I can pick up exactly where I've left it on my phone (Its some sort of book app).
I've been thinking about the following since I have root:
Using Syncthing, i've set it to "/system/data/user/0/(app)", however while I'm not completely sure about it there is a risk in it syncing the old files (wrong device) over the correct one. I'm not feeling to confident about this one so I guess i'm keeping this as a last option.
I've also been looking into Titanium Backup, though it kinda is what im looking for the problem is that within the tasks i can only select the days and a static time, it does not trigger when I'm putting the device on a charger so it back-ups the app. (There is a condition about charging, but it seems to be for the day/time you can put whenever it should activate at that moment)
Is there a way to tackle this?

Related

Office Re-install - (ActiveSync Question!)

Hi
I have a complex situation, that probably has a very simple answer. I am probably being paranoid, but hopefully someone knowledgeable about ActiveSync will be able to quickly sort me out.
My laptop was recently repaired, (with a replacement motherboard fitted). When I got it back, Windows XP & Office XP of course both asked to be re-activated.
Windows succeeded, however Office asks me to insert the Office CD to be able to activate. When I do this the activation notification disappears, but Office is left in Reduced Functionality mode (eg I never get to the phone Microsoft to activate bit!)
Unfortunately, my phone is now 6 weeks out of date with Syncing (also due to the laptop being in repair!). I haven't run an ActiveSync since I got the laptop back as I have been worried about running an ActiveSync whilst Outlook is in reduced functionality mode. I was concerned it might lose data (as most Outlook features become read only!), so I have kept them out of sync (and getting more so daily) until I know the best way to proceed.
So, I need to either fix Office re-activating, (which doesn't seem possible) OR to find out how to get ActiveSync to work, with an Office re-install from scratch, without losing or duplicating any of my data. I just don't know enough about ActiveSync to know if it will just work without a problem, or if I need to do things in a certain order.
The current thinking is that I will have to manually remove Office XP (as the uninstall process also doesn't work!), before reinstalling it again, and re-activating the new copy.
So lots of possible paths to the solution, but I'm not sure which order to proceed in.
I ultimately want Office re-activated and fully working again and want the phone fully synced and no lost or duplicate data in either the phone or Outlook.
So some direct questions:
Can the phone Sync with Outlook in Reduced Functionality mode? (or might I lose data?). It seems that if they are synced before I uninstall Outlook, then everything becomes a lot simpler.
Failing that....
What will happen if I forceably remove Office by a manual uninstall. When I re-install Office and put in the my PST files, will ActiveSync cope OK, just pick up where it left off, and happily cope with the data currently being out of Sync? (might I get missing or duplicate data?)
What would be the suggested method to achieve my end result with minimum grief and hassle? And which order should I take these steps?
Thanks for reading this far.
Details:
Windows XP; Office XP Pro (the Product key is valid, I just can't get the software to get far enough to the actual activation screen);
Activesync 4.1; XDA Mini-S;
Mike
If you have a backup program for your phone just make a backup to your memory card. You will now always have a copy of where you are today. Set your active sync in your phone (activesync, menu, options, select your computer, settings) to 'keep the item on your device' and sync away. The worst that could happen is you may have to restore your phone to where it was today when you made the backup. Most likely all will go well and you'll sync up normally. My outlook information on my computer was accidentally erased and fully restored this way. Made my day!
I've always treated active-sync as my backup of the phone, and I am quickly realising why this a foolish approach to have taken!
Your advice seems to be spot on and is what I will do. However, as I don't currently have a backup program for my phone, which would you recommend? I guess it needs to be something that I can install without Active-Sync?
I suspect that a backup to the memory card is a better plan than running an activesync with a new computer (temporarily) as a means of backup - is that right?
Thanks for your help.
Mike
Try putting the office cd in while the PC is booting, so that when it asks, it's already there, which it may or may not detect?
Also, you could do set-up an account on http://live.mail2web.com to sync your contacts, calendar etc too, but you will lose any mail on there. Hopefully this isn't something you are desperate to keep though?
When I to do a "detect & repair" of Office, it actually says "source not available", but it doesn't give that info when I try to re-activate with the CD. However it doesn't give me an option to find the source. I've tried leaving the CD in when booting up, but sadly it made no difference. Certainly if I can just get Office to re-activate without any un-installing then there are no other problems, however that is looking increasingly unlikely. I do have one suggestion to follow there, which is to remove various registry entries before doing another "detect & repair", which might sort itself out.
Failing that I am on a backup PDA, then mannual removal route.
I will look into http://live.mail2web.com and see what it can offer me by way of a backup.
Thanks for your help.
Mike
Final update.
Thanks everyone for your help. I have finally got it all sorted. It turns
out I probably WAS being overly paranoid (but better that, than losing all my
data because I didn't think first!).
What I did:
1) I got a trial copy of SPB Backup for my Phone. (you get 5 runs of the
program before you have to buy - but I will be buying it anyway as I am very
impressed with it). The big advantage of this program is that it can be
installed directly on the storage card which some others can't. It could even
be downloaded as a CAB file (directly in Pocket Internet Explorer) and
executed on the device directly without needing an ActiveSync install. This
was the clincher for me, as I needed to take a backup before running
ActiveSync.
2) Took backups of the phone with SPB and of the PST files from Outlook.
3) Tried an ActiveSync with Outlook in reduced functionality mode. It worked
mostly fine. Came up with some "support code 1" errors for a handful of
contacts, but nothing major. So it appears that ActiveSync mostly works fine
with reduced functionality mode (hence I was probably being paranoid for not
trying this sooner!).
4) With the phone & Outlook now back up to date, there was less of an issue
as to what happened next. However I decided to see which bit of the various
instructions solved my problem. I did this by trying them bit by bit, and
testing with re-activation, re-install, detect & repair etc at every stage.
By process of elimination, I found out that removing the program files folder
made no difference, as did deleting the two Office reg key branches. The
crucial part was the Windows Installer Cleanup. So I restored all the reg and
program files back as they were before the tests, and ONLY ran the Windows
Installer Cleanup program.
5) I was then able to re-install Office over the top of itself, and I was
pleased to note that by keeping the files and reg keys all my settings were
retained.
6) Office happily Activated by the Internet. Hurray!
7) Connected to "Microsoft Update" to get SP3 and all subsequent updates &
patches for Office (re-installing over itself loses all the updates
previously installed)
8) Checked my email accounts, rules, etc and ActiveSync are still working
correctly. Which they are!
So, it seems that if I'd had the guts to go for it, I could have JUST done
the Windows Installer Cleanup trick keeping everything else intact ready to
sync. OR equally I could have just run ActiveSync to get the up to date and
them blown Office all away for a complete re-install. As it happens I am VERY
pleased with the route I took and the end outcome. It is far better than my
expectations of the hassles I would face. The hardest part was gathering all
the information to make me happy enough to proceed... oh and finding the
guts! The actual re-install was totally painless.
Anyway, I hope my findings of using JUST Windows Installer Cleanup, help
someone else who wants to try keeping their settings in the future.
I also hope my findings that ActiveSync mostly works in reduced
functionality mode, also helps others.
Anyway, so thank you to everyone who patiently shared their knowledge with
me. Without you all I would have gone into a flat-spin and struggled to get
my head round it all.
Thanks again

[Q] Has Anyone Figured out How to Stop Auto-debugging?

I do not "ever" have it checked in settings, however, when I load a custom ROM-any one and every one I have ever tried--resulted in the same scenario.
1. Check settings to make sure debugging is unchecked.
2. Connect usb cable.
3. Watch my laptop crash.
It would be funny if I had my laptop longer than 3 months but since it is fairly new it is horrifying to watch. Not too mention, having what you are working on go down with the ship. Good thing I make it a habit to save work while working.
I know, I know--I need a test dummy laptop, but I don't have one. Any other suggestions?

[Q] Inspire thinks it's in a car dock with non-Inspire based kernels

Now, from what I can gather, this problem stems from a faulty or dirty Micro-USB port. I tried compressed air, but it did nothing for me.
I decided to do a complete unroot, S-ON, factory restore and call HTC to see if I could get it fixed. To my surprise, the problem vanished. Thinking I had lucked out and that fixed it, I re-rooted the phone and the problem still didn't reappear.
Then, thinking I would start small, I flashed a Sense kernel. As soon as I rebooted it went straight to Car Home and began answering in speakerphone. For laughs I went ahead and flashed MIUI then CM7, both of which exhibited the same behavior.
After all of this, I got to wondering just why the stock ROM and kernel worked but nothing third party would. Then it hit me that all the 3rd party stuff I had been using were DHD ports, and not based off the Inspire. I downloaded and flashed ClearDroid, which has an Inspire base, and the problem is once again dormant.
The only sense I can make from it is that HTC has implemented some kind of fix for shoddy USB ports in the Inspire kernel.
So now here's the question: Does anybody know anything about this, and would it be possible to implement said fix in, say, and AOSP kernel?
When you flash a Rom there is a folder created called data on the root of your phone. This contains many files that control various settings on your phone. There is a file in particular where cardock settings get synced in data/data/Com.android.providers.settings/databases/settings.db. When you sign in with your google account some of these settings get restored to the mode in which you had it in when you wiped your phone. This is what causes some people to think that parts of their old Rom are bugging out their phone, I guess in a way it is, but its googles fault. The car dock is getting resynced to being on even though you haven't done anything. In order to fix it you must use SQL editor to open the database and look for the carmode or dock settings and set them back to 0. Once you do this it the next time the phone autosyncs it will save your newer settings.
Also Im pretty sure when your rooted this setting will take effect as to where a nonrooted phone doesn't allow the permission to execute the command.
Gizmoe said:
When you flash a Rom there is a folder created called data on the root of your phone. This contains many files that control various settings on your phone. There is a file in particular where cardock settings get synced in data/data/Com.android.providers.settings/databases/settings.db. When you sign in with your google account some of these settings get restored to the mode in which you had it in when you wiped your phone. This is what causes some people to think that parts of their old Rom are bugging out their phone, I guess in a way it is, but its googles fault. The car dock is getting resynced to being on even though you haven't done anything. In order to fix it you must use SQL editor to open the database and look for the carmode or dock settings and set them back to 0. Once you do this it the next time the phone autosyncs it will save your newer settings.
Click to expand...
Click to collapse
I'll try that, but I can completely wipe my phone (cache, system, data, d-cache), flash CM 7.1.0, and without even logging into my Google account it happens.
After searching it seems this is a common problem with the phone. Some people where able to fix it and some where not. Even when it does go away for a while it will re emerge and get worse.
Some of the fixes are
1. turning airplane mode on for 10 min and then shutting it off
2. Changing chargers(dont ask me)
3. Blowing out port which you said you tried.
I am still not 100% its not some internal issue but why even bother if the hardware is malfunctioning.
I would start the warranty process and get it replaced.
Backing up to the beginning.....Are you flashing ROMs or kernels? Seems to me you are flashing ROMs but keep using the word kernel.
Why not just remove the car dock app from the ROM or use Titanium Backup to freeze it?
Agoattamer said:
Backing up to the beginning.....Are you flashing ROMs or kernels? Seems to me you are flashing ROMs but keep using the word kernel.
Why not just remove the car dock app from the ROM or use Titanium Backup to freeze it?
Click to expand...
Click to collapse
Both.
With the stock ROM and kernel, everything is fine. With the stock ROM and a DHD-based kernel it happens. With any AOSP ROM it happens.
Removing the Car Dock app keeps it from launching, but the phone still defaults to speakerphone for all calls (incoming and outgoing).
Gizmoe said:
After searching it seems this is a common problem with the phone. Some people where able to fix it and some where not. Even when it does go away for a while it will re emerge and get worse.
Some of the fixes are
1. turning airplane mode on for 10 min and then shutting it off
2. Changing chargers(dont ask me)
3. Blowing out port which you said you tried.
I am still not 100% its not some internal issue but why even bother if the hardware is malfunctioning.
I would start the warranty process and get it replaced.
Click to expand...
Click to collapse
The problem about warrantying it is when it's in a stock state, it works fine.
I've never dealt with HTC, but I can't exactly see it going over well if I call up and say "My phone acts funky when I run CyanogenMod".
The airplane mode fix is something I haven't heard before. I guess I'll give it a go.

Where are my transferred apps (or why didn't they transfer)? (From S4 to S7)

Hello all,
This is only my second smartphone, so it's my first major data transfer from one phone (S4) to another (obviously the S7). I did the initial set up when I activated my phone. NEC, Smart Switch, etc. Some apps are now moved over, but obviously not all of the apps are on my phone (I double checked from old phone to new phone). If I go to the Play Store I see a long list of my apps, and they say "installed" and "open", which I can do, but they still aren't on my app screens. Some I originally downloaded through Amazon, which was a little harder to access the app store on the new phone (they don't seem to provide the app button for that), but after finally getting it I could see every app I ever downloaded with the ability to install them again.
I can do it manually for every app I don't have--but do I have to? Is there a better way? Why didn't the transfers switch all of the apps from one phone to the other (and again, some missing are both from Google and Amazon). And since I'm asking all these questions, is there a way to get all of the same settings for the apps from one phone to another? Even the ones that did transfer initially had to be set up again for how I like it (or if it's a game it has me starting at the beginning). I guess I thought that would be more of a straight transfer, with all data settings included. I obviously don't know all the ins and outs of smartphone ownership and app information.
Thanks for the help!

Whatsapp backup restoring

I'm actually in a very serious problem as I have a problem with restoring my whatsapp messages please help me asap I uninstalled my whatsapp on 16th July and last I backed up it on 7th July. Now when I try to restore the messages after reinstalling it shows my google account but it doesn't show the size of backup and also it says no Internet connection please help me. Also my whatsapp images and whatsapp videos folders have disappeared. I really want to get back my chats. Hope someone will really help me as it means alot to me now
Connect to a wifi or a hotspot, or get better signal then H+
Kenora_I said:
Connect to a wifi or a hotspot, or get better signal then H+
Click to expand...
Click to collapse
I'm already using WiFi and I tried using mobile data as well both didn't help and I tried reseting network settings and all still it didn't work out
ruinaaaa said:
I'm already using WiFi and I tried using mobile data as well both didn't help and I tried reseting network settings and all still it didn't work out
Click to expand...
Click to collapse
Did you check your google account the backup.
It could be app problem, try resetting and other stuff.
Kenora_I said:
Did you check your google account the backup.
It could be app problem, try resetting and other stuff.
Click to expand...
Click to collapse
Hey yes I checked it as well in google drive it shows the backup I can't restore it locally because I deleted the whatsapp databases like or two months ago will it affect this
Try clearing the data and cache of whatsapp or reinstall it.
Kenora_I said:
Try clearing the data and cache of whatsapp or reinstall it.
Click to expand...
Click to collapse
I tried this too and tried so many things.I watched so many youtube videos and searched a lot in google as well still couldn't find any possible way to recover
Albert83BCN said:
Hi guys!
I have been facing this issue this whole week while trying to move all my chats to a new phone I just bought as with the old one the charging port was dying and I could not bear it anymore. So almost everything restored smoothly from Google Backup and it was like being in my phone again with a few wizard steps but then I Installed WhatsApp (WA) and gone through the typical activation and restoring process and. as many, I got stuck at the 24% sometimes, some others 31% and 39%, and never got past the 39%.
I Tried almost everything: restoring from Google Drive, transfer all WhatsApp directory to internal storage and trying to restore from there, etc. Going back to the old phone to create fresh backups just in case they were corrupted as many people suggests, getting every time more delay to be able to activate WhatsApp again up to 12h for both SMS and call activation... just to mess again and feel back at square one, I guess you all feel the pain.
Well, the good news is that I finally managed to restore all the chat history!!! (well, cannot be certain that 100% was restored but I do not miss anything ATM and I can go back up to 2012 chats so I guess that qualifies as "everything" hehe).
So, I'm posting here because I've been searching a lot on the forums and the reddit and for all the people that is having this issue recently, almost no body came back to report success and I know it feels really discouraging It certainly gives the impression that this issue has no fix at all, and that you should accept losing all the chat history and starting from the start again. But from all the data I've been gathering during this week, at least two or three people reported to eventually being able to restore the chat; they fell in one of these two categories: they either transferred to a different phone where the backup seemed to restore okay, and then exported and restored in the target phone with success (something like a "bridge" restore mode, most of the cases I've read did it this way) or they finally succeeded by sheer brute force by trying again and again and again.
I fall in this 2nd category. In the most recent attempt I was doing what I've been doing again and again and again with just minor variations in the workflow and finally succeeded. TL; DR; I think in reality in many cases attempts could succeed by just letting the phone restore the backup endlessly, by not giving up and assuming the restore process went wrong when it has been stuck forever at either 24, 31 or 39% and force closing..
But I know in the midst of desperation OCD kicks in and you want step-by-step success case scenario reproduction so I will tell you all the steps that I followed that I can remember that got me to finally have the backup to end successfully:
0. First of all, in the winning attempt I had already uninstalled WA from the new phone and removed totally the WA folder in the internal storage / sdcard storage. Not sure this is mandatory but just to tell this was the case.
1. Since I got WA working perfectly on the old phone at every moment, I backed up locally for the Nth f%!?&ยท( time. This left me with the latest local backup plus a few others in the databases folder as a result of keep messing up.
2. I copied the full WhatsApp directory from the internal storage of the old phone to a safe place. This could be the PC or whatever, but PC transfer via USB seems too sloppy. You maybe could do it via ADB, whatever, I went by the route of coping it to the external SD with some random explorer utility like ES File Explorer. It does not matter, the point is to be able to backup the full WhatsApp folder in order to restore it as similar as possible as the original. What we are more interested right now is in the database folder but having all images, videos etc in place will help in getting it like before the easiest way. (Disclaimer: Ok guys sorry if some steps are too obvious to XDA users which usually are highly educated in the matter, but I was thinking of sharing/linking this text on the reddit and others, so please bear with it).
3. I installed latest WA in the new phone, opened the app (I intended to not open but I somewhat forgot) and got to the welcome screen, immediately closed the app at that step.
3. I restored the full folder to the new phone internal storage, pure copy/paste style (as said, in my case via the SD since both phones have SD slot and was very convenient, but via USB, cloud, etc. can be done).
4. I went to the databases folder and only kept the msgstore.db.crypt12 file and the latest backup with a date (ie: msgstore-2019-11-21.db.crypt12), deleted the rest. Honestly I do not think this is crucial but I somewhat wanted to make it easier for WA to know which one to target, I thought about keeping only the msgstore.db.crypt12 but some random dude pointed that the one with the date was needed. I was under the assumption that file structure is identical in both but just wanted to get done with this and keep both, just in case.
5. Before opening again the WA to try to activate and restore with this full local copy, I opened the Android settings app and went to applications > whatasapp > storage, as suggested by user redweaver, thanks for the tip! by keeping looking at the storage usage of the app during the restore process we could get insight about if it was really doing something or the app was really stuck. Keep open for now. In my case, I saw also on the old phone that my data used for the app was 780+ MB, so I had an idea of what should be on the new phone by the time it finished (if it did!).
5b. I don't think this is really necessary but I did it just in case. I was planning to go to work and let the thing running as long as it would need, and I would make sure that the process would get maximum uptime and nothing would get in the way. So I went to Applications > WhatsApp > Battery usage (or something like it) and disabled the battery optimizations for this app. I also went to the developer mode settings and enabled do not lock the phone while it is charging and everything that looked like it might be relevant. Again, most likely this has nothing to do, but reproducible steps, right?
6. Now open WA and activate it as usual, but when it seems that the activation step ended and you go to the next screen, immediately put the phone in air plane mode or disable data/WiFi, whatever. The goal is that it cannot reach Google Drive to look for the online backup. Honestly maybe in the end is not the culprit of GDrive but many people states that the GD backup is broken at this time and suggests going the local route, so we will do it like this.
7. WA should tell you that looking for the backup is going too slow and to skip this step (sorry to not have exact message, I have it in Spanish, but something in these lines, BTW excuse my somewhat limited English ). The point here is to click on the link that says skip the step and when you are prompted with a popup, click also on Skip.
8. WA will display the typical restore / transfer-like screen where the process starts. At this point you have to enable again data plan / WiFi at least or exit air plane mode, don't know really but even if restoring from local it complains about not having internet connection, maybe needs it to encrypt with the key or something? don't know.
9. Now is the feared moment! Even this time, I got somewhat stuck at 31% again. I left it do its thing, and some time later, it prompted for the popup that has a progress-bar from 0 to 100 (honestly, what is the difference between both?!) which also got stuck at 31%. If you let it be, it starts going back and forth many times, I guess maybe its going chat per chat and the progress-bar represents each one? Dunno. Thing is, even in the prior attempts I got at this point and the backup did not finish successfully. But this time I was decided to let it do its thing as much time as it would take, until the end. In the process the phone might display a pop up saying that WA does not respond. I clicked a few times in the 'keep waiting' option, then I just forgot because I did not have time to mess with it and hoped that it was still working on the background, which bring us to step 10.
10. While we are contemplating the backup process, we can go to the settings app again and look how the internal data is going for the WA. In my case, after some time under the restore process, when I went there I saw WA had occupied 0.91 GB of data space. After going back and forth again between WA and settings, the usage keep growing: 0.96, 1.03, 1.10... I thought it was on the right track, and encouraged me to keep waiting. Maybe in the end the process is too slow for old databases. Note that some people speculates that having messages from very long ago might be the culprit here due to changes in the table structure and that this might be the reason breaking the restore process. And maybe it is the case, but even if it is, in my case I finally succeeded where previously I didn't and without deleting anything, so this does not seem to be a deal-breaker or I would have never succeeded. I say it because some people reported that deleting old conversations and trying again finally made them succeed. Now I suspect the true reason was simply that by making the database smaller the process finished earlier, but YMMV.
11. Cannot be totally sure, but in my case, I noticed that leaving WA on the background and clicking on the WA icon again might stop the process for true and bring a message about not being able to recover the chats, I got this previously, do not try to open the WA normally, only leave it temporally to look to the space usage in the settings to get back to it by swyping between recent apps to keep the same instance open and working, this was a key point in my success trial that did not happen during the previous ones.
12. And finally, while I kept switching between WA and the settings and when I last saw like 1.30GB of space used (almost twice the space compared to the old phone, maybe it leaves a lot of temp data) I don't know if I either messed with the app-switching or it really finished, but then I got prompted to the screen where you enter your name or nickname. And when I completed this step, I finally got to the chats screen and everything was like in the old phone! Where previously I would get to a lot of empty chat rooms with maybe 40 total messages restored according to WA. Hurray!
Notice that in my case it was still reporting 31% on the WA background screen under the progress bar popup when it finished!! so it seems that is not really mandatory to experience the 100% complete to have it work in the end, but YMMV.
OK, maybe not the most elegant "guide" out there but I wrote it in a hurry and my english sucks, I just hope it might help someone to not lose their WA chats forever.
Good luck!
Edit: I almost forgot but, for the sake of completeness. I also tried a certain script that can backup WA from the phone and retrieve the encryption key, it will also leave an unencrypted copy of the chats database that can later be viewed with a WhatsApp viewer like this. The script is called WhatsApp Key/DB Extractor, and it still works as of 2019, just look at the latest posts in the thread. Guys here on XDA most likely know about it but if not, you might give it a try. I tried it because I assumed that maybe I could circumvent the restore issues by going that route and pushing the backup via ADB, but turns out the legacy WA won't prepare the database due to the time out of sync issue, or at least the data seemed to be lost after performing the restore process, and the unencrypted database on the PC cannot be digested by WA latest versions by just putting it into the internal storage directly according to what other users commented. But, if you finally give up trying the restore process, it still could be relieving to know that you keep a local copy in the PC that can be viewed with another PC tool, at least you get a backup and the conversations are there, in a different way though. Maybe in the future there's a process that can restore them again to a different phone, and you could then merge the new chat database with the older backup with tools like Merjeapp.
Click to expand...
Click to collapse
This has the solution
Kenora_I said:
This has the solution
Click to expand...
Click to collapse
Thank you but today I read this in the afternoon. This guy has solved it through whatsapp databases but I don't have a way go backup locally as I deleted my whatsapp databases two months ago. All I can do is recovering from google drive but the thing in this guy's scenario his chat was actually being restoring but I can't even do that since it says that I have an Internet connection problem

Categories

Resources