Local Exchange database loation? - Hero, G2 Touch Android Development

Anyone know where the local exchange/calendar files/database is located? Is it possible to read data from this into another app? (making a widget)

The calandar information for exchange is stored in
/data/data/com.android.providers.calendar/databases/calendar.db
It appears to store the details for both google calandars and exchange in the same database as after copying this file to my PC I can see both sets of data using sqllite data browser.
Presumably it's the same for mail ? Have a look in the HTC mail data folder and see whats in that database.
Hope this helps.
Mark

Thanks Mark!
I did some more digging and found this (using internal api's) http://jimblackler.net/blog/?p=151
Still don't get my data out - but that is probably a better approach.
I'll do some more digging..

No Worries.
Good luck

Related

Restrict Attachments

Hi
May be its not the best place to post this question but I will try it any way
I'm looking for a solution to manage and restrict centrally the attachment from the Exchange Server, a way to enforce a policy which restrict the sync of an attachment or even allowing just syncing the calender and preventing syncing the inbox
do any one have a solution or a name of a product?
10x
I will be amazed if there's a third party product/app that does this. I would just play with the Exchange Server settings and see if you select which folders can be synced?
How about just downloading the first 10k of the messages??
My emails dont arrive with attachments unless i tap the attachment, which then makes the device download it.
the main problem is that a corporate may allow to expose its business assets through the use of PDA's. restricting the sync of attachment in the mail, contact , task or calender may allow a safer use of the push mail. today i have seen that many corporate disallow the use of PDA's because of this.
I haven't seen a solution for this issue except encrypting the PIM which holds the data, but this solution have its own disadvantage.
Did any one tried parsing the HTTP communication and block some request without impacting the sync process ?, something like a reverse proxy

[Q] Is there a way to edit / de-dupe people database?

I can't sync to Google and I have 1,200+ database entries
(about 200 are actual contacts, the rest of either phantom or
empty entries, Google sync created). I'd like to clean up the
database but don't know what I need to do.
Does anyone have a utility to remove duplicate contacts,
either from the exported vcf file or the live database?
I can run a utility on any of Win32, Unix or the phone itself.
Thanks
Other than manually, I'm not entirely sure.
After reading your post, I would have to guess that you're in the data industry? I had never heard someone say de-dupe before I was introduced to the business myself.
log in to gmail, on your computer, under contacts, you can fix you duplicates there, and make all the changes you want, when it syncs again it will be fixed.
hope that works for you, did for me.
I would say go to gmail and export the contacts to CVS. then make the changes there... delete all contact in gmail... and import the shorter 200 list.
To me I think that would be the easiest way.
SoBBie
I'd just organize them according to the date created

[Q] Remove old contacts from sd card

Hi
Delivery of my new Nexus has posed one very important question? My previous HTC sensation had all my contacts on board the sd card. I forgot to transfer the contacts to the sim and now my new Nexus has no sd slot and my pc wont read my phonebook contacts so I am in a spot of bother as I dont know who is calling me at anytime. Can anybody shed some light?
Rds
rdsreference said:
Hi
Delivery of my new Nexus has posed one very important question? My previous HTC sensation had all my contacts on board the sd card. I forgot to transfer the contacts to the sim and now my new Nexus has no sd slot and my pc wont read my phonebook contacts so I am in a spot of bother as I dont know who is calling me at anytime. Can anybody shed some light?
Rds
Click to expand...
Click to collapse
One of the big advantages to have a Google Android phone over a non smart phone was the built in feature of contact sync between the device and the Google "cloud" for each Google account on the device.
I've always used this contact sync feature and it has provided peace of mind knowing my contacts are also backed up in the cloud where I can access them online, download them, edit or save them without having access to my device.
Also, as I move between Android devices, all I do is login with my Google account and the device loads my most recent version of the contacts and then continues to keep them in sync.
I do know Android stores the contacts in a .db file under the /data partition and this could be pulled from a device as a rough backup/restore method. I don't recall having heard of anybody saving their contacts to the 'sd card'. I'm not really sure the benefit to this. The contacts .db file for Android is an sqlite database, as all other .db files on Android are, and there are programs out there to import/export contacts to/from these sqlite .db files.
What type of contacts file are you referring to? .db ? Could you post up the name of the exact file? What application did you use to create the contacts on your sdcard?
The more detailed the information the better the reply.
Hope that helps and I didnt miss the mark!

Sync Device Contacts To Google?

New question: How do I sync contacts stored on the device to Google? When creating a brand new contact on the phone it asks where you want to save it, but for contacts that are imported via Bluetooth you have no choice as to where they are saved. Thus, I have contacts on the device I want uploaded to Google and can't figure out how to do that.
--Original Post--
Ok, this is a silly question. I have a second S4 which is for work. I have a gmail account specifically for that device (Google Apps corporate stuff as seen HERE), it syncs with my office outlook, etc. That said, I have a number of contacts on my personal S4 which I had been using until I got the company S4 which I want to now send to the work S4 so I can delete them from my personal S4.
Now then, what I want to happen is to be able to send the contact, have it upload to Google, and be done (thus also syncing with my Outlook in my office, etc). What I tried was to open contacts, menu/import/export/share namecard via/Bluetooth and sent them via Bluetooth. That worked, they show up in my contact list just fine, and they are stored on the device. Problem is, they don't seem to upload to Google.
Once (if?) they do, I want to be able to delete them from the device so they are ONLY stored on Google. Will deleting them from the device also delete them from Google again? How would I resolve this conflict if so? I don't want to sit and manually type all these contacts out into Google via web browser (or the phone) to have them sync down to the phone. One would think there would be another way...
Silly questions, I know. But hey, maybe someone has done this before.
I don't exactly remember where it is but if you're using the stock rom if you go to settings (don't know where it really is) there's some feature that allow you to do that, contacts msgs etc.. Its not group play but it's similar to it.. If you're using the stock rom then look for it kuz that's one of the things I first saw when I got the s4...
Sent from my SGH-M919 using XDA Premium 4 mobile app
Ok, so I ended up just sending all the contacts via Bluetooth since I needed them. That works fine, however they still haven't uploaded to Google. Web searching reveals lots of people with this issue.
New question: How do you force sync contacts stored on the device to Google?
02CWRX said:
Ok, so I ended up just sending all the contacts via Bluetooth since I needed them. That works fine, however they still haven't uploaded to Google. Web searching reveals lots of people with this issue.
New question: How do you force sync contacts stored on the device to Google?
Click to expand...
Click to collapse
Settings->Accounts->Google->your account->Sync now should work.
It doesn't.
To the top, still looking for an answer here.
Try this
Select all the contacts that's on device and export it to sd card.
Now chose import from sd card and select which gmail account to import to.
The phone will scan the sd card and should pick up the file you exported earlier.
Edit: I just make up a bunch of contacts and save it to my device. Did the export to sd and import to my gmail account and it sync.
baseballfanz said:
Try this
Select all the contacts that's on device and export it to sd card.
Now chose import from sd card and select which gmail account to import to.
The phone will scan the sd card and should pick up the file you exported earlier.
Edit: I just make up a bunch of contacts and save it to my device. Did the export to sd and import to my gmail account and it sync.
Click to expand...
Click to collapse
You're a genius. Since this is a work phone and didn't come with one, I had no SD card in it and obviously didn't want to spend my own money on one for it, thus the export to SD wasn't an option listed. I took the old SD card from my Sensation 4G, did as you suggested, and it worked. Thanks so much!
The only downside was that since I had so many contacts, I got a couple errors that I was trying to do too many at once. Hopefully it all panned out, I will be able to check Monday at the office. I am hoping the new contacts added here will sync down to my Outlook at work, but I think they will.
Thanks again!
EDIT: Everything worked fine. Thanks again!

[Q] How to maximize privacy on the Z1

Hi,
This might seem strange but I would like to configure my Z1 in such a way that Google knows at least as possible about my life. If possible, I would like to use only Gmail and nothing else from Google.
Recently, I activated sync for the first time because I wanted the state of mails to be the same on my phone as my computer which came with a number of unwanted side-effects:
- I got an error message that the number of contacts to be deleted was too large. I immediately said cancel as I did not want to delete contacts. Moreover, I do not want that my phone contacts were copied into my Google contacts. I see no reason why I would store phone numbers in my Google contacts, I only want to use Google for email. Clearly, it was too late: all the phone numbers are now also stored in Google contacts -- information I did not want to share with google.
- my complete calendar was copied in Google Calendar. When I started using the Z1, I deliberately choose the standard Calendar from the Z1 as I do not want that Google stores information about my calendar and find it very, very uncomfartable that my personal Calendar is now data stored on a Google server.
Is it possible to get rid of Google Calendar without losing Gmail?
Is it possible to limit sync only to mail itself?
I would appreciate any advice on how I can maximize my privacy while keeping my phone "smart".
Try to ask Munjeni in his thread about his privacy guard rom his is a master of privacy
Wysłane z mojego D5503 przy użyciu Tapatalka
Just open your Google account in the settings menu, under the sync options uncheck everything but Gmail. That should stop sync of your contacts, people, calendar, chrome etc...
dvandyck said:
I would appreciate any advice on how I can maximize my privacy while keeping my phone "smart".
Click to expand...
Click to collapse
Leave sync off, it only eats battery.
Just remember to press 'refresh' when you open the Gmail app. You won't get status bar messages about your Gmail, but if you check manually couple of times a day, then you've saved yourself all the syncronisation agro.
I had the same problem with contacts and I didn't want all my email contacts ending up listed as contacts in my phone, as it makes sending group texts impossible, it kept defaulting to sending MMS instaed, because some contacts were email addresses. Grr.
So I made up another gmail account, that's blank, has no contacts. Then I log into the phone with that and let the phone set up with that account. Once it's done all the syncronising I added my real gmail account, but set to not syncornise. I just manaully sync when I open the Gmail app, saves all the problems.
There are a couple of apps that can help.
Afwall+, which is a good firewall. You can set which apps use your wifi and which apps use mobile data, or just stop apps dialing out altogether.
There's a mention above of Privacy Gaurd, but it's very basic and I'm not sure it works with 'system' apps like google. I would recomend DonkeyGuard, it's by far the easiest and most comprehensive way of regulating what apps see what information on your phone. To make it work you will need to have a rooted phone, as well as having Xposed installed. But if you are serious about your privacy, then you know that it's worth the effort.
To have Google unaware about your phone contacts and calendar you need create contacts/events as device contact/event, not bound to Google account. There is setting for that, make it default.
First time I wanted separate google from my personal data I deleted google account on my phone as no other method worked, I lost all my contacts as by default they were assigned to google.
I was better than that. I had backup, restored contacts as device ones.
From this moment I have my info private (hope so, possibly information leaks in background but it is over anyone's head, some things are deeply hardcoded in OS then you can do nothing).
Sometimes you HAVE to give Google some information.
There is Xposed module which provides FALSE info in such cases. Sufficient solution for me.
Unfortunately it doesn't work for native applications (not sure about it).
spudata said:
Just open your Google account in the settings menu, under the sync options uncheck everything but Gmail. That should stop sync of your contacts, people, calendar, chrome etc...
Click to expand...
Click to collapse
Thanks! I unchecked everything except Weather and news, GMail and Google Drive (I backup some important but not very private docs there).
F308 said:
To have Google unaware about your phone contacts and calendar you need create contacts/events as device contact/event, not bound to Google account. There is setting for that, make it default.
Click to expand...
Click to collapse
Thanks! I see indeed that when I create an event, I can choose the account to which the event is assigned. Google is standard for the moment.
Where can I set device account as the standard for contacts/events? I do not see such an option in the settings of Calendar or Contacts...
Also, it appears that I cannot change the account to which an already created event is assigned to.
Is it possible to move all created events in the Calendar from Google account to device account?
My phone runs on the 14.4.A.157 official build -- it is not rooted and I prefer to stay on the official Sony release channel.
dvandyck said:
Where can I set device account as the standard for contacts/events? I do not see such an option in the settings of Calendar or Contacts...
[...]
Also, it appears that I cannot change the account to which an already created event is assigned to.
Is it possible to move all created events in the Calendar from Google account to device account?
Click to expand...
Click to collapse
1.
Not sure. It was long ago. Cannot find now.
Maybe it will help you if I tell that I froze GoogleBackupTransport.apk, GoogleCalendarSyncAdapter.apk, GoogleContactsSyncAdapter.apk.
2.
I did it in such way:
a) made backup.
b) deleted google account from my phone.
c) defined acount again.
d) configured it as don't-synchronize (somewhere in synchronization settings).
e) restored contacts from backup. At this point I was asked if i want restore them to my google account or to device. I chose the latter.
F308 said:
1.
I did it in such way:
a) made backup.
b) deleted google account from my phone.
c) defined acount again.
d) configured it as don't-synchronize (somewhere in synchronization settings).
e) restored contacts from backup. At this point I was asked if i want restore them to my google account or to device. I chose the latter.
Click to expand...
Click to collapse
Thanks, that seems a very attractive approach as it does not involve re-entering things manually.
Did you perform the backup and restore with Sony PC Companion or did you use some other tool for this?
Does this mean that you also have the option to restore all events in Calendar and change the account to which they are assigned to as well?
dvandyck said:
Did you perform the backup and restore with Sony PC Companion or did you use some other tool for this?
Does this mean that you also have the option to restore all events in Calendar and change the account to which they are assigned to as well?
Click to expand...
Click to collapse
No. In fact I do more than one type of backup.
You never know what will really work unless you try.
I used native Easy Backup app and exported contacts to file directly, there is such option when listing contacts.
Don't remember what else but you can find tons of applications of this sort.
I could restore calendar, too.
I think if you freeze apk's which I mentioned earlier - even Google will not be able to pull your info because will have no tool to do it.
If you want to delete your contacts from Google Contacts, you can go to https://www.google.com/contacts/, you can also export contacts to pc/phone
Well. Myself I am convinced that once they got information - they will keep it forever, you only will not see it.
F308 said:
Well. Myself I am convinced that once they got information - they will keep it forever, you only will not see it.
Click to expand...
Click to collapse
I think the same too.
In fact it is lost case.
Security agency can compile information, add together Google info|Facebook|Twitter|LinkedIn|Microsoft (Skype) | phone number which I had to give Google | biometric passport photo | fingerprints required for passport and hell knows what else, DNA maybe.
Conclusion:
They know when to send you toilet paper because it has ended and you didn't notice.

Categories

Resources