Prevent Google Contact Sync in Work Profile on Android 10 - Android Q&A, Help & Troubleshooting

Hi folks,
Imagine the current situation:
With the help of Shelter (https://github.com/PeterCxy/Shelter) I created a work profile. I want to use this work profile as a container with less personal data than my main profile.
For this reason I deactivated the "com.google.android.syncadapters.contact" app.
With this setup I was able to add my Google account inside the work profile without having my contacts get downloaded on the device in this profile.
On Android 10 however this doesn't work anymore. The syncadapter is still deactivated (frozen) but the contacts sync nevertheless.
I'm aware of the fact that I can manually disable the sync in the settings of the work profile.
However I need a solution that a) can prevent the sync before adding the account (since the first sync already happened when I add the account and then go to settings) and b) can be done programatically since I'm writing my own app based on this.
So my question is if any of you pros know where the contact sync mechanism (of a google account) is defined since Android 10 and if you see another possibility to disable this again.
Regards,
David

Related

Android Phone safety against theft/snatch/loss

Hello,
I am sure there are numerous applications for GPS tracking and remote controlling/wiping all the data and settings pattern/numeric access codes for your mobiles.
Problem is that executing these safety measures are somehow dependent on certain other factors and can have successful or unsuccessful consequences.
I am thinking of anything more basic and hassle free way of ensuring that even in worst condition I can have certain peace of mind that my critical gmail account data would not be accessed for unauthorized use. For example when it was unlocked for use and meanwhile it was lost or snatched how can I be sure that my google account information specifically gmail/maps are safe. I know I can change the password by reaching to a nearby PC, but that is not always a possibility.
I have got my Samsung Galaxy S2 for more than a month and just figuring out a safe way before putting it in active use.
An idea which I am thinking of is to have another Gmail account specifically for use with Android Phone, and import/export the actual "Contacts" only to this new email account. Since contacts are the most frequently used item, they would be in sync with the new email account, any delta changes would have to be replicated to your original gmail account as well.
I dont use Picasa, so it is of no importance to me to sync the pictures with picasa account.
For access to my actual gmail and other emails (like work email) I can use an add on email android applications like K9-Mail to configure the gmail as IMAP. To get access to this email program I can install any application which can password protect the access to applications and can reactivate the password after any time of inactivity. I dont know whether in such case would I get popup in the notification bar for new emails or not.
The only two most used applications now left are
- Maps and Latitude
- Google Plus
Now both of them need to be used with my actual gmail account, since all contacts and connection are related to my actual identity on google.
So i need to know that is it possible to use one gmail (fake/secondary) account on android phone just for syncing contacts and use another actual (primary/original) account for logging in the official google maps and google plus applications. I know even in this case the password needs to be changed in case of a mishap, however I can be a bit satisfied that all critical data in the email storage is safe.
I just need your opinions and suggestion on the mentioned procedure, or is there any other good and recommended practice for getting multiple accounts configured on Android Phone and selectively use the google accounts for different applications.
Thanks for your inputs.
Hmm...seems like everyone is so sure of the safety of their handset, no one even gives a s*** to think about the worst-case scenario of losing a device.
Cheers...hope everyone retains the droid for life..

[Q] Local phone android contacts with ICS?

Hi everyone,
I'm using CM9, but I tried different ICS roms and I encounter this problem with all of them.
- I'm trying to add a local phone (non gmail) contact to my phone, but it doesn't let me do that. When I add a new contact, a message box pops up saying, that: "Your new contact will be synchronized with <my gmail account>". How to add a local phone (not a SIM card) number?
- I have a backup of all my local phone numbers from GB made with MyPhoneExplorer, and restoring it works when I'm on ICS. The contacts are shown as local phone contacts (PCSC). However, after restarting the phone and waiting a few minutes, all the local contacts are completely gone. MyPhoneExplorer confirms that there are no contacts in the phone either. What's going on?
I really do not want to sync my contacts with google. Looking forward to hearing some answers!
Cheers!
I use CM9-alpha4 (i9001) and it works for me.
I did completely turn of "accounts and sync" and I also didn't flash gapps.
When I first created a new contact I was notified that it will be local and not synced. No problem there.
I'm using the CM9 9-20120614 version (the newest beta). I have Accounts and Sync on, since I want some stuff synced with my phone (facebook, linkedin, gmail calendar, etc.). And I experience the beforementioned problems...
I fiddled with the options but found nothing that would allow me to store my contacts locally and prevent the existing ones from being deleted
There is an issue in the Bugtracker:
https://code.google.com/p/android/issues/detail?id=26834
You could also use some other account that doesn't sync with Google. Funambol[0] would be my choice.
[0] http://f-droid.org/repository/browse/?fdid=com.funambol.androidsync
Thanks for that link.
However, I'm not sure, how is that cloud solution about to help storing my contacts locally without sharing it with any 3rd party?
You have to assiciate your contacts with some account. The funambol client creates such a "account provider" for you. But I just tried it and it seems like the client always wants you to sync with some server. You could set up your own server but that might not be what you want.
Sorry I can't really help. There is another thread about this:
http://forum.xda-developers.com/showthread.php?p=27747450
Alright, thanks a lot for your replies! Sigh, I guess I will just stick with google contacts for now -_-
here's my fix http://forum.xda-developers.com/showthread.php?t=1808037
haydent said:
here's my fix http://forum.xda-developers.com/showthread.php?t=1808037
Click to expand...
Click to collapse
Thanks! I will test it soon, although I have already moved my contacts to Google's cloud. Also, will this fix prevent me from synching google contacts? If so, it's more of a workaround than fix.
It breaks contact syncing deliberately. If you want to keep that while enabling local storage of contacts you need to edit the contacts.apk . I initially decompiled it and identified the line of code that enables or disables the local option.
Sent from my MB526 using xda app-developers app

Cannot get calendar apps to see select Google calendars

I've done some looking around, but I haven't found a solution that has solved the problem, so I hope this isn't redundant:
I have two or three Google calendars. If I go to the website, I see them all fine and can see the information in them. I have my EVO 3D (stock, Gingerbread; too many ICS complaints for me to run the Sprint OTA) set to sync and to show these calendars, but none but the main one will show. This is true whether I have them set to show multiple calendars together or set to show only individual ones. I tried clearing the data in Calendar Storage and resyncing; it made no difference. I don't use the stock Calendar app; I use Jorte and Pimlical, but none of the three of them will show the other calendars (which I believe is because there's only one group of calendar selection settings, no matter which app you use). BTW, the other calendars don't show on either of my tablets, either, so it's not really just a 3D problem.
Does anyone have any idea how to correct this situation?
EVO Longoria
This was an issue with Gingerbread which (for me at least) was resolved in ICS. When I used GB, I got around this problem by using multiple Google accounts and then sharing them with the primary account (the one you have linked to your phone). I had our family calendar as the calendar on my primary Google account. My wife's work calendar was on her account. I created another Google account for my work sked. The key on your secondary calendars, is to go to settings and share them with your primary account. If you select "Make changes and manage sharing" under permissions, you'll be able to make changes from your phone.
Like I said, on ICS, the issue went away for me, and I have created several new calendars on my primary Google account and all of them show up on my E3D.
nobody291 said:
This was an issue with Gingerbread which (for me at least) was resolved in ICS. When I used GB, I got around this problem by using multiple Google accounts and then sharing them with the primary account (the one you have linked to your phone). I had our family calendar as the calendar on my primary Google account. My wife's work calendar was on her account. I created another Google account for my work sked. The key on your secondary calendars, is to go to settings and share them with your primary account. If you select "Make changes and manage sharing" under permissions, you'll be able to make changes from your phone.
Like I said, on ICS, the issue went away for me, and I have created several new calendars on my primary Google account and all of them show up on my E3D.
Click to expand...
Click to collapse
Thanks for responding. I wrote you a long post which got lost because my login timed out before I was finished writing. I should have copied it first, but didn't so let me just say this: There is information going around that clearing Calendar Data solves the problem. I have three devices; it didn't work on any of them, and it also made me lose the ability to see anything on my device past a month ago, which it turns out Google warns you about on a Google Calendar help page:
Clear your device's Calendar application data
Warning: After performing the following steps, events from more than 30 days ago will no longer be available for viewing on your device. Rest assured these events remain saved on the main Google Calendar server and are accessible via the web. Further, these steps will cause your Calendar app settings (e.g., Calendar notification ringtones) to be reset.
We recommend proceeding with these steps only if the above steps did not resolve the issue.
Click to expand...
Click to collapse
I solved my problem by exporting all my calendars, deleting all data from my primary calendar and importing the data back in to it.
This process had differing results on my three devices, but I was at least able to get a complete "timeline" in one calendar to show on each device. This doesn't help everyone, but it may help some. Remember: If you need to keep any extended period of time available on your device, DON'T clear Calendar Data!
It's sad that after all this time Google hasn't been able to do better than this.

[Q] can you use a Script to Auto Login/logout of Google Apps?

Hi All,
I'm hoping someone knows since I haven't been able to find anything in search.
Is it possible to create a script to automatically login or log out of a given account on Hangouts/Gmail etc?
I've automated most of my work's IT requirements with Tasker (turn on higher security when connected to corp wifi etc)
and the last is my accounts.
I'm always on call so i'm always logged into my corporate google account but would love to automate my phone to log out of hangouts when i'm sitting at my desk.
I had planned to use NFC Tags to accomplish this with Retag and Tasker, now I just need to figure out how to automate the login (If it is possible that is)
Thanks
-Grendel

Sync ONLY Google Chrome

Hi there.
In the Lollipop 5.1.1 version as well as CM 12.1 I'm not able to allow Google to sync only Google Chrome. This really annoys me, as I sync all my accounts and other stuff with another software locally.
In the accounts setting of android I see the Google account and can only enable or disable it. I tried the "Accounts Sync Profiler" app that allows to specify what exactly should be synced over my Google account, but it never met the conditions I've set in the software to finally sync my data.
I might want to mention I prefer syncing only when connected to a power source (not battery) and a certain WLAN hotspot I decide. Preferable, I'd like to get only Chrome synced without third party applications. With "Auto Sync" I could enable it only when my mobile fulfill all my requirements, finally.
Is there any Xposed module I can use or at least any app that stops syncing all except my Chrome data when enabling Google Sync?
Thank you.
Really, nobody can help me with that issue?
EDIT: I updated to the new Cyanogen Mod (CM13, Android 6). Android 6 allows me to set what to sync, exactly.

Categories

Resources