Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,319 Members 53,239 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][CM11][CM10.x] Enabling Facebook Contact Sync In CM rom based

Tip us?
 
cuadedanh
Old
(Last edited by cuadedanh; 7th April 2014 at 04:40 AM.) Reason: add CWM flasable zip file
#1  
Member - OP
Thanks Meter 146
Posts: 65
Join Date: Oct 2009

 
DONATE TO ME
Default [MOD][CM11][CM10.x] Enabling Facebook Contact Sync In CM rom based

Cause from IS google disable Facebook Contacts sync so i modified ContactsProvider.apk to enable FB sync in CM10.2 ;cm 10.1 JB rom (tested),Pacrom 4.3 (tested) and maybe aosp rom ( didnt test).

Guide screenshot and credit is :
-->http://niranjanthilak.com/facebook-s...d-ics-devices/
and --> http://www.modaco.com/page/news/_/an...#commentsStart
many thanks!

I modified code and included in ContactsProvider.apk so you dont have to do with contact database by sqlite... all you need is clearing old contacts database. When it first lauchs it will create new proper contact database.
Changelog:
07/04/14: - Rebuild based on latest CM11 M5( 05042014)
- Remove unnecessary script in flash zip.
30/11/13: update for CM 11

02/10/13: fix for Cm10.2. i have tested it in latest cm-10.2-20131001-NIGHTLY on my Galaxy S, it work fine now.


06//09/13: - add support CM10.2 , pls test it and report.
- add support PacRom JB4.3
- make CWM flashable zip file cm10,cm10.1, pls test it. If u have problem, try manual method



26/12: - remove error CWM zip file, now manual install
- change source to CM10 stable, now it work both CM10 and CM10.1
25/12:
- first bug version
Install:
1. Sync contact to backup data to google cloud,
2. Clear old contact database by ->setting->app-> all->contact storage ->clear data (very important)
3. Delete FB account in Setting-> account

4. Backup ContactsProvider.apk in system/priv-app (or system/app if u use cm10)
5. Flash attached zip file in Clock work mode( if u have problem, try manual method: put attached ContactsProvider.apk in system/app override old one, change permission to 644
6. Reboot the device.
7. Resync Google Contact and FaceBook.

In kitkat (cm11) ContactsProvider.apk is in system/priv-app instead of system/app
if no change-> try step 2; 3
if you lauch contact, phone, android process error..-> try step 2 because conflict in old contact data and resync;
if still error, maybe it s not suitable with ur rom, pls restore ur backup in step 4

Donate me if it is useful for you ^^
The Following 123 Users Say Thank You to cuadedanh For This Useful Post: [ Click to Expand ]
 
Aashuk Mehta
Old
#2  
Aashuk Mehta's Avatar
Senior Member
Thanks Meter 868
Posts: 2,252
Join Date: Sep 2012
Location: Mumbai
Does it work on cm 10

please press thanks if I helped you
 
cuadedanh
Old
#3  
Member - OP
Thanks Meter 146
Posts: 65
Join Date: Oct 2009

 
DONATE TO ME
Quote:
Originally Posted by aashukmehta View Post
Does it work on cm 10

please press thanks if I helped you
you can backup contactprovider.apk and test yourself, if fc you can copy back original apk
The Following User Says Thank You to cuadedanh For This Useful Post: [ Click to Expand ]
 
cuadedanh
Old
(Last edited by cuadedanh; 25th December 2012 at 01:06 PM.)
#4  
Member - OP
Thanks Meter 146
Posts: 65
Join Date: Oct 2009

 
DONATE TO ME
fixed bug in automatic create contacts database problem, now it works like a charm
The Following User Says Thank You to cuadedanh For This Useful Post: [ Click to Expand ]
 
Aashuk Mehta
Old
#5  
Aashuk Mehta's Avatar
Senior Member
Thanks Meter 868
Posts: 2,252
Join Date: Sep 2012
Location: Mumbai
It doesn't work in cm10

can u mod one for cm10 it will be appreciated

please press thanks if I helped you
The Following User Says Thank You to Aashuk Mehta For This Useful Post: [ Click to Expand ]
 
865DETH
Old
#6  
865DETH's Avatar
Member
Thanks Meter 23
Posts: 81
Join Date: Dec 2011
+1 for cm10 compatible

Sent from my Amaze 4G using xda app-developers app
 
jacksita
Old
#7  
jacksita's Avatar
Member
Thanks Meter 16
Posts: 69
Join Date: Sep 2012
Location: Salerno
Is it possible on miui rom 2.12.21?

Inviato dal mio GT-I9000 con Tapatalk 2
Phone:Samsung Galaxy S
Rom:Saurom JWB Best gingerbread based rom so far
Kernel:Semaphore 2.7.4
Work as translator:Saurom(Thanks to lirik0 for the opportunity)
 
cuadedanh
Old
#8  
Member - OP
Thanks Meter 146
Posts: 65
Join Date: Oct 2009

 
DONATE TO ME
Quote:
Originally Posted by 865DETH View Post
+1 for cm10 compatible

Sent from my Amaze 4G using xda app-developers app
now it work both in cm10 and cm10.1, test it and report here, try install manual, sorry for yesterday errorr CWM zip ( it does not overide old contactsprovider.apk)
The Following User Says Thank You to cuadedanh For This Useful Post: [ Click to Expand ]
 
cyburke
Old
#9  
Senior Member
Thanks Meter 49
Posts: 545
Join Date: Nov 2007
Location: Los Angeles, CA
interested to try this if works on CM10.. thanks for your efforts!
 
cuadedanh
Old
#10  
Member - OP
Thanks Meter 146
Posts: 65
Join Date: Oct 2009

 
DONATE TO ME
Quote:
Originally Posted by cyburke View Post
interested to try this if works on CM10.. thanks for your efforts!
pls try it and confirm here, if FC try to clear data in contact storage app.

The Following User Says Thank You to cuadedanh For This Useful Post: [ Click to Expand ]
Thread Tools
Display Modes