Contacts database location - Captivate General

Not sure if this would be helpful but I decided to poke around the Captivate/Android OS and I located the contacts database.
Code:
ADB SHELL
SU
cp /dbdata/databases/com.android.providers.contacts/contacts2.db /sdcard/sd/contacts2.db
cp /dbdata/databases/com.android.providers.telephony/mmssms.db /sdcard/sd/mmssms.db
Opened using sqlitebrowser.sourceforge.net
Next I want to find the call history database.

Related

[MOD] Native Facebook app modded to use touch site!

Ok so after getting tired of the darn Facebook app using m.facebook.com for EVERYTHING, I decided to finally take matters into my own hands.
I updated all URL references in the app to now use the touch.facebook.com url. The only one that caused issue was the SHARE url that is launched whenever you try to share a link in Android with Facebook.
Unfortunately Facebook only offers http://www.facebook.com/sharer.php and http://m.facebook.com/sharer.php but no touch-site version. I tried using the full-site version of their share link but it never worked correctly so had to revert to mobile link
Anyways enjoy everyone.
INSTRUCTIONS FOR INSTALLING (ADB METHOD)
Code:
adb remount
adb shell rm /system/app/Facebook.apk
adb shell rm /data/dalvik-cache/[email protected]@[email protected]
adb push Facebook.zip /system/app/Facebook.apk
*** One thing to note is I rebooted after removing the existing Facebook app. I didn't add that step above as I'm hoping it was not required. My reasoning for rebooting is just in case Android kept the existing Facebook.apk signature in memory. Since this is a modded Facebook.apk I signed it with a developer key. If you have trouble, try removing your Facebook.apk and reboot and then push the modded copy.
IF YOU HAD FACEBOOK CONTACTS SYNC DO THE FOLLOWING
Open the Facebook App
Hit your menu key, open "Settings"
Scroll to the bottom and open "Sync Contacts" and re-enable sync
Don't bother trying to re-add Facebook in the Account Manager in Android, just do it from within Facebook as described above.
this man is genius! i hate the mobile site
cool, nice... would try it!
odd, i prefer the m. site and mine always reverts to the touch site with the user agent specified as android...
shafty023 said:
INSTRUCTIONS FOR INSTALLING (ADB METHOD)
Code:
adb remount
adb shell rm /system/app/Facebook.apk
adb shell rm /data/dalvik-cache/[email protected]@[email protected]
adb push Facebook.zip /system/app/Facebook.apk
Click to expand...
Click to collapse
I did the same as above, but made sure I backed up the original Facebook.apk file
Code:
adb remount
adb pull /system/app/Facebook.apk ./_STUFF/Facebook/Facebook.apk.bak
adb shell rm /system/app/Facebook.apk
adb shell rm /data/dalvik-cache/[email protected]@[email protected]
adb push ./_STUFF/Facebook/Facebook.zip /system/app/Facebook.apk
adb shell reboot
CODE TO GO BACK:
Code:
adb remount
adb shell rm /system/app/Facebook.apk
adb shell rm /data/dalvik-cache/[email protected]@[email protected]
adb push ./_STUFF/Facebook/Facebook.apk.bak /system/app/Facebook.apk
adb shell reboot
can we get this in an update.zip please
device froze a number of times while contact photos are synchronizing
also after sync, merged contacts needs to be merged again, and two entries of "view facebook profile" will be shown under view contact.
@k3vink3vin have you install a Desire rom before cause two facebook entry in contact can be due to Desire rom which haven't the same system for syncing facebook contact info in phone's contact
imfloflo said:
@k3vink3vin have you install a Desire rom before cause two facebook entry in contact can be due to Desire rom which haven't the same system for syncing facebook contact info in phone's contact
Click to expand...
Click to collapse
yes I ran Desire rom before, it leaves some facebook id under notes for merged contacts. Currently running Cyan 5.0.7.1.
I have fixed the problem by nandroid restoring, remove facebook sync before removing Facebook.apk, push modded Facebook.zip and setup sync again.
I still get occasional FCs when scrolling through Friends in Facebook App.
k3vink3vin said:
yes I ran Desire rom before, it leaves some facebook id under notes for merged contacts. Currently running Cyan 5.0.7.1.
I have fixed the problem by nandroid restoring, remove facebook sync before removing Facebook.apk, push modded Facebook.zip and setup sync again.
I still get occasional FCs when scrolling through Friends in Facebook App.
Click to expand...
Click to collapse
When you get the occasional FC can you please view your logs and send me a dump so we can see exactly what is causing your FC? I am able to scroll through FB friends with no FC ever.
shafty023 said:
When you get the occasional FC can you please view your logs and send me a dump so we can see exactly what is causing your FC? I am able to scroll through FB friends with no FC ever.
Click to expand...
Click to collapse
have been scrolling for like 10mins and couldn't get it to FC!
I believe it is related to the kernel I was using (wildmonks' 33.5 CFS 925mV). I flashed pershoot's latest .34 and the FCs are gone
Another problem though, I am synchronizing all facebook contacts to my contact list. In my phone contacts, all facebook contacts are included, however, many of their profile photos won't load (more than half of my facebook contacts). Tapping into the contact and tap on facebook view profile opens the facebook app and sees their profile photo and wall no problem.
Is there any way to force the photos to re-sync?
k3vink3vin said:
Is there any way to force the photos to re-sync?
Click to expand...
Click to collapse
Nope, I've had that issue since loading Froyo even with the stock Facebook app. Try erasing the Note section on each contact that should have its picture synced, then merge the contact with the facebook contact, go to accounts & settings in android->settings and refresh the facebook sync.
it says it is unable to remove '/system/app/Facebook.apk' There is no such file or directory :<
Google Contact Sync on Facebook
Thank so much shafty the facebook app works well now
might be off topic but has anyone tried this? It allows matching your friends on facebook to your google contacts so that it syncs their contact photo and birthday.
http://heartofangel.com/google-contact-sync
Guess I'll disable facebook sync and give it a go.
yes! been waiting for someone to baksmali and mod Facebook app! can i request you also tweak the notifications retrieval time? to like allow 1 min, 3 min, 5 min?
!
Just wanted to say great job shafty! And also its awsome to see you in the n1 forums i know you have had the n1 for a while ...
arctu said:
yes! been waiting for someone to baksmali and mod Facebook app! can i request you also tweak the notifications retrieval time? to like allow 1 min, 3 min, 5 min?
Click to expand...
Click to collapse
I'll see if those are changeable.
teamsilence said:
Just wanted to say great job shafty! And also its awsome to see you in the n1 forums i know you have had the n1 for a while ...
Click to expand...
Click to collapse
Ya I've just been slammed with work and haven't had any free time to hack. I technically didn't have time to hack the Facebook app but I just got so sick of the mobile site and wanted the touch site.
mudrock1000 said:
it says it is unable to remove '/system/app/Facebook.apk' There is no such file or directory :<
Click to expand...
Click to collapse
That would mean you don't have Facebook installed currently or if you do then it is installed to /data/app/Facebook.apk instead.
System Applications
Code:
/system/app/
User Applications
Code:
/data/app/
By the way, I don't always check back on threads that I create or post in because of my busy schedule so hit me up on Twitter to let me know u have a question. Then just tweet me the url of your thread post with the question. I'll try my best to help everyone as I get free time.

[How-To] Stop syncing calendar and contacts to google

I you are a paranoid one (like me) who doesn't want to sync all your valuable and sensitive calendar and contacts information to the google cloud, BUT WANT to use the android default calendar and contacts app AND want to sync with your desktop then you're officially lost in the google world.
I tried several syncing solutions and the only one which was worth of beeing used (this is my personal opinion, YMMV) is MyPhoneExplorer which is free and gives you lots of extras.
However, to make a long journey short: Just do the following on your ROOTED device:
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock6 /system
cd /system/app
mv GoogleCalendarSyncAdapter.apk GoogleCalendarSyncAdapter.apk.org
mv GoogleContactsSyncAdapter.apk GoogleContactsSyncAdapter.apk.org
cd /
mount -o remount,ro /dev/block/mtdblock6 /system
The above will remount your system partition as RW, rename the 2 sync adapters and remount back to RO. It might be that your system partition relies on another block, you should check on your device via mount first.
Up to now (3 days) I could not detect any side effects on my device (Dell Streak with Android 2.2). I can sync with my dektop, access calendar and contact just like normal but without sending anything to the cloud. Market access, google reader and all that other stuff are still working. You might want to use DroidWall in addition to prevent unknown apps from accessing the net.
Please post back in this thread if this solution works for you too and on which device/os you are on.
Cheers

Deleting Default Bookmarks [Stock Browser]

If you want to delete the default bookmarks in the browser, but keep getting an error saying you are not allowed to, you need to edit the sqlite database for the browser.
You need to edit /data/data/com.android.browser/databases/browser.db
The table will be called bookmarks
Any record in that table with a "created" field of "0" and "bookmark" field of "1" will not be user deletable in the browser.
You can either edit the created field to with any number, and then delete it from the browser, or just delete the record from the editor you are using.
This can also allow you to make bookmarks undeletable in regular use.
For me, the easiest thing to do is use SQL Editor from the market (paid, worth it imho). Root Explorer should also help do the same.
Alternatively, you can use the "sqlite3" command, but it's not included in the stock firmwares. I'm going to copy it over from my g1/cm4.6 and see if it works. Sqlite3 v3.6.22 from g1 1.6 defanged works. Zipped copy is attached. Just get it copied to /system/xbin/ and give it 755 permissions and chgrp to 2000 like everything else in there.
You can also go mucking about with copying the db file to your computer and editing it there, but that's a big hassle.
DB Browser is free and is pretty good too.

[Q] Have any ideas how to temporarily empty the contacts and call log DBs? $40 Reward

So I'm hacking the AppRadio and one thing it likes to do is copy the entire contacts and call log databases over bluetooth. This can take a while and with the way it is hacked now it is completely unnecessary. What I would like to do is empty the contacts and call logs databases and restore them when that part of the connection process is over. It seems like these things are cached because after renaming the dabases all the contacts are still there. I renamed contacts.db to contacts.bak and the next morning all my contacts were gone. However when I renamed every .db file to .bak all my contacts are still there two days later. Heres what the folder looks like
Code:
contacts2.bak contacts2.db-wal profile.db-shm
contacts2.db-shm profile.bak profile.db-wal
Even with calling this the contacts are still there:
Code:
getContentResolver().notifyChange(Calls.CONTENT_URI, null);
getContentResolver().notifyChange(Phone.CONTENT_URI, null);
So does anyone have an idea on how would be the best way to do this? I'd also be open to override the bluetooth AT command. The Android source where this happens can be seen here:
http://androidxref.com/source/xref/...c/com/android/phone/BluetoothAtPhonebook.java
I'll Paypal $40 to anyone who can produce code to empty and restore the contacts and call databases. It needs to be able to run in 0-2 seconds because there is a short window of time. It needs to be done between when the radio pairs and when it requests the logs and address book. It can prepare for this in advance and take any amount of time.
Heres basicly the code I'm using now:
Shell
Code:
cd /data/data/com.android.providers.contacts/databases
for file in *.db ; do mv $file `echo $file | sed 's/\\(.*\\.\\)db/\\1bak/'` ; done
Java
Code:
getContentResolver().notifyChange(Calls.CONTENT_URI, null);
getContentResolver().notifyChange(Phone.CONTENT_URI, null);

[Guide] Remove Facebook Day from Facebook Messenger without losing any features

Disable Facebook Messenger Day (Root Method)​
1. Download and launch the Terminal Emulator!
2. Execute su in terminal prompt. (To give aplication Root access!)
3. Then Execute am start -n "com.facebook.orca/com.facebook.messaging.internalprefs.MessengerInternalPreferenceActivity"
After executing latest command, new window will popup and you will see secret messanger settings.
Now follow this steps in secret settings:
GATEKEPPER OVERRIDE > Search GateKeepers > type "Internal" and then set messenger_internal_prefs_android to TRUE
then go back and find MobileConfig in secret settings, and then:
MobileConfig > Search > then type and search for "wave2" > press on wave2 and set value to FALSE
Then press RESTART NOW! And your Messanger Day will be disabled!
Thanks!
Reserved
Covered two days ago on the XDA Portal: https://www.xda-developers.com/disable-facebook-messenger-day-android/
This for remove fb messenger or enable fb mesesenger? Can understand
Sent from my SM-G950N using Tapatalk
This has been patched as of v131 and on. Internal menu can still be brought up. However, attempting to change params in mobile config throws an error. You need an employee or tester login. None of the mobile config settings will be listed.
Edit:
If you have automatic updates like I do (preference), uncheck Messenger. Downgrade to a version from July. You can get one from APK Mirror.
Facebook pushed a server side script that now displays a permanent upgrade notification on the top of the messages list. This targets clients using versions all the way down to 124.0
I downgraded one by one to each version (excl beta!) found on APK Mirror. Right now, v123 and below does not have this problem. You still get all the other features and the internal menu.

Categories

Resources