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

Search This thread

Mardon

Inactive Recognized Contributor
Mar 5, 2008
3,995
5,987
Hamburg
markusmenzel.de
Tested on cm10.1 but now all facebook contacts are in adressbook and not only the ones i set in fb app.
I want to add only facebook for already existing contacts and not all facebook contacts.


Gesendet von meinem GT-S5830 mit Tapatalk 2
 

Attachments

  • uploadfromtaptalk1357508576794.jpg
    uploadfromtaptalk1357508576794.jpg
    31.5 KB · Views: 861
  • Like
Reactions: hmzuleta

cuadedanh

Senior Member
Oct 30, 2009
70
152
Tested on cm10.1 but now all facebook contacts are in adressbook and not only the ones i set in fb app.
I want to add only facebook for already existing contacts and not all facebook contacts.


Gesendet von meinem GT-S5830 mit Tapatalk 2

All feature depend on official FB app can supply, i only open the way for it (not a stand alone app), so high rest and calendar feature are not available. For ur all FB contacts in people app maybe FB app changes the way to sync or it s only compatible to gingerbread...
 

sigarocubano

Senior Member
Jan 24, 2012
139
9
Naples
All feature depend on official FB app can supply, i only open the way for it (not a stand alone app), so high rest and calendar feature are not available. For ur all FB contacts in people app maybe FB app changes the way to sync or it s only compatible to gingerbread...
Thus does facebook app implement a low resolution for pictures?

For the calendar, one can export the facebook calendar to google calendar, it is simple and useful.
 

NegativeOne

Senior Member
Jul 21, 2010
997
159
this works great. can someone post a flashable zip though? I can't seem to figure out the way to do it for system apps
 

shawe_ewahs

Senior Member
Jun 20, 2009
324
15
cuadedanh can you share this mod on the source code? It can be more usefull for add on any custom ROM :p
 

confyzone

Senior Member
Jun 13, 2009
325
68
Manitoba
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

What's the preferred file manager to do this with I'm trying it with es file explorer but it won't let me copy the new APK file in the system/app yet it'll let me change the original to a .Bak file

Sent from my Galaxy Nexus using xda app-developers app
 

Mardon

Inactive Recognized Contributor
Mar 5, 2008
3,995
5,987
Hamburg
markusmenzel.de
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

What's the preferred file manager to do this with I'm trying it with es file explorer but it won't let me copy the new APK file in the system/app yet it'll let me change the original to a .Bak file

Sent from my Galaxy Nexus using xda app-developers app

You need to remount system partition as r/w before you can make any changes! Any filemanager with root features is fine.

Gesendet von meinem GT-S5830 mit Tapatalk 2
 

confyzone

Senior Member
Jun 13, 2009
325
68
Manitoba
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

You need to remount system partition as r/w before you can make any changes! Any filemanager with root features is fine.

Gesendet von meinem GT-S5830 mit Tapatalk 2

Well that's a given I already enabled that as I posted that I can rename contactprovider.apk

Sent from my Galaxy Nexus using xda app-developers app
 

Mardon

Inactive Recognized Contributor
Mar 5, 2008
3,995
5,987
Hamburg
markusmenzel.de
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Well that's a given I already enabled that as I posted that I can rename contactprovider.apk

Sent from my Galaxy Nexus using xda app-developers app

Maybe not enough space on system partition left... Try copy original apk to sd and delete apk from system. Now copy new apk to system

Gesendet von meinem GT-S5830 mit Tapatalk 2
 

confyzone

Senior Member
Jun 13, 2009
325
68
Manitoba
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Apparently es had a update and it decided to work properly this morning

Sent from my Galaxy Nexus using xda app-developers app
 

Mardon

Inactive Recognized Contributor
Mar 5, 2008
3,995
5,987
Hamburg
markusmenzel.de
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

If I flash a new nightly must I repeat every time the installation procedure mentioned in the first post? It is boring.

Yes.
Or you can replace the apk in flashable rom zip before flashing new rom.

Gesendet von meinem GT-S5830 mit Tapatalk 2
 
  • Like
Reactions: sigarocubano

Top Liked Posts

  • There are no posts matching your filters.
  • 126
    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-sync-for-android-ics-devices/
    and --> http://www.modaco.com/page/news/_/a...sync-in-ice-cream-sandwich-r140#commentsStart
    many thanks!
    Screenshot_2012-05-29-19-25-21_thumb.png
    Screenshot_2012-05-29-19-25-08_thumb.png

    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 ^^
    6
    It Works

    Confirmed Working

    Phone Samsung Galaxy S3 (Metro PCS)
    Model SCH-R530M
    Rom CM10.1 version 10.1-20130121-EXPERIMENTAL-d2mtr-M1
    Android 4.2.1
    Kernel 3.0.57-cyanogenmod-gb1ea79a

    If there is anything else that you would like to know about the phone or OS please ask.

    This is how I installed it. After hours of failing to remake my own ContactsProvider.apk I simply downloaded the one that was posted in this thread.

    First I activated AIRPLANE mode
    I dropped that file on my external SD card.
    I loaded the root browser from in side my rom tools app
    I copied the ContactsProvider.apk from my external SD card and pasted it in system/apps/. (this created a ContactsProvider - COPY.apk or something very similar)
    I then renamed the original ContactsProvider.apk to ContactsProvider.apk.bak
    Then renamed the new file ContactsProvider - COPY.apk to ContactsProvider.apk
    Next I changed the permissions to 0644
    After that I changed the group and owner back to root : root (it was something odd like system and sd_card )
    Lastly I used adb shell and I added the missing column to the the contacts2.db
    These are the commands I ran
    su
    sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db
    ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR;
    .exit
    exit
    exit

    Next I rebooted my phone (this is where I thought I failed)

    After the phone booted I was greeted with a contacts failed to load it crashed and then I was blessed with the android.process.acore fails. While dealing with the constant pop ups from that message I managed to get the next steps completed

    I turned AIRPLANE mode back off so that the phone would get signal
    I then went into settings>apps (second to bottom option under device section) and then switched to the ALL section
    Next i cleared the data on Contacts and then Contacts Storage
    Rebooted

    BOOSH!

    The system started up no contacts crash no acore issues. I opened my contacts and it was normal. I then opened Facebook and was greeted with a sync option that was familiar to us all. I selected "Sync All" and then I checked my contacts and it worked. You can access that menu to change the options by loading up facebook going into settings and at the bottom is the Sync Contacts option press that and it opens the menu with the options.

    I hope that this boring post help someone in get theirs to work as well.

    On a side note. It did sync all the pictures as well. They are just poor quality.
    4
    oh, maybe change in Cm11 code, let me see in it and rebuild :laugh:
    Already did it ;)
    Works fine now.
    3
    Could someone create a version for CM11/AOSP 4.4?
    start it now, wait some minutes
    3
    updated for CM11. Have tested, it works fine