yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] leongohan:
I've tried this solution on CyanogenMod Android v4.4.4 KitKat CM11 M10 on my Galaxy S3.

Facebook syncs works, but when I open my contacts, they're all sorted in uncorrected way.

I explaint it better.. I' ve seen that it mix and merge in a random ways the Google contact, with Whatsapp contact and facebook Contacts, so that it became unusable! :rolleyes::cyclops:
[Android Apps and Games] Retseem:
Tried it on Mokee KK 4.4.4 on my Nubia Z7 Mini.

Phone process crashes immidiately after boot, and some com.android.core process keeps crashing, so unfortunately I had to roll back. :(
[Android Apps and Games] rt6:
Call logs are not working!

S2 with CM 11 M11
[Android Apps and Games] dev.ahmadnaser:
thanks for the link

thanks for the link
[Android Apps and Games] monacoo:
Any idea how to enable it in Google edition lolipop?
[Android Apps and Games] hamsterbacke81:
after i installed this app, call log always shows empty (incoming and outgoing) and when i try to add new contact, error pompts up and says "contact is ended"(i have the german version, it says the app "contact" ended).
[Android Apps and Games] Mardon:
Sounds like this patch needs to be updated

Gesendet von meinem LT18i mit Tapatalk
[Android Apps and Games] carminepola:
Please fix for cm11 m10
[Android Apps and Games] realcyberbob:
This would be much appreciated.
[Android Apps and Games] Mardon:
M10 is outdated better m12

Gesendet von meinem LT18i mit Tapatalk
[Android Apps and Games] amelsfort:
Will this fix also work on CM12 / Lollipop? Or does it need an update to work with CM12?
[Android Apps and Games] Zuberek42:
Whole installation process runs without any problem, everything looks to be fine but when I sync Facebook Contacts there is nothing added :(
[Android Apps and Games] zenalone:
Maybe this is funny. I'm in CM 11 and many times i have replaced the custom ContactProvider.apk with the link given. Its not success.

Then i try to use stock ContactProvider.apk from my other device; Asus Fonepad 7.

I replaced the Asus ContactProvider.apk to my CM11, but its not take any effect and the contact is crash. After it, i try again to replaced the Asus ContactProvider.apk that installed on my 11 now with the ContactProvider.apk where the link given. I reboot my device and the fb contact can sync now. Thx guys.
[Android Apps and Games] anttaz:
causes bricked device on XT907 :(
[Android Apps and Games] barak91:
This solution caused my OnePlus One's ContactsStorage App to disappear from the app list.

Also the directory \data\data\com.android.provider.contacts have disappeared

What can I do about it?

You can also reply to me here:

http://xdaforums.com/android/help/how-reinstall-contactsstorage-app-t3158801
[Android Apps and Games] arja30:
no for CM12 and cm12.1. work

no for CM12 and cm12.1. work... please
[Android Apps and Games] yash1331:
Can you make one for cm 12.1 please?
[Android Apps and Games] Aashuk Mehta:
[/COLOR]

Yes a high res mod would be good

please press thanks if I helped you
[Android Apps and Games] hisname:
yea I deleted my ROM ' s app and put this app in. but I when I try installing, it says app not installed

Sent from my supercharged tank
[Android Apps and Games] sigarocubano:
There are the install instructions on the first post. See those, and it works fine.
[Android Apps and Games] Mardon:
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
[Android Apps and Games] cuadedanh:
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...
[Android Apps and Games] sigarocubano:
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.
[Android Apps and Games] NegativeOne:
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
[Android Apps and Games] balistic2:
I can confirm this works on CM 10.1 on my Epic 4G Touch from Sprint. Thanks for bringing back FB sync!
[Android Apps and Games] bootsy85:
same for me, I'm on 4.2.1. Does it work for anbybody on this AOKP?
[Android Apps and Games] shawe_ewahs:
cuadedanh can you share this mod on the source code? It can be more usefull for add on any custom ROM :p
[Android Apps and Games] cuadedanh:
Hehe, the first post has links to original guide and everyone can mod, read it and moding for custom rom.
[Android Apps and Games] confyzone:
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
[Android Apps and Games] Mardon:
AW: [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
[Android Apps and Games] confyzone:
Re: [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
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

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
[Android Apps and Games] confyzone:
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
[Android Apps and Games] bootsy85:
does anyone have a 4.2.1 aokp version?
[Android Apps and Games] sigarocubano:
If I flash a new nightly must I repeat every time the installation procedure mentioned in the first post? It is boring.
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Yes.

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

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] sigarocubano:
have you this?
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Apk is on 1st post

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] rollingdices:
Hi,

I'm on Stunner Rom for Galaxy Note, which is based on CM10.1, but when I try your Mod, I just get FCs of system-ui and phone every few seconds. So I had to step back :(
[Android Apps and Games] bootsy85:
it's aokp and not just cm10.1...I have the same problem
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Did you wipe app data after reboot after replacing apk?

Replace apk and set right permissions and reboot

Wipe app data of contacts provider. Contacts and google system framework and reboot

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] major9:
Does this Mod sync the Photos using the Contact's No ?
[Android Apps and Games] rollingdices:
Yep, tried even more than once. Maybe it's really that the ROM is more based on aokp (what I don't know) as bootsy85 wrote.
[Android Apps and Games] major9:
Works on Moto Defy CM10.

P.S - Don't forget to backup your Call Logs.
[Android Apps and Games] sigarocubano:
How can I replace the apk in flashable rom zip?
[Android Apps and Games] bootsy85:
I just tried it on different CM10, CM10.1 and AOKP versions based on CM10 and CM10.1...pure CM works, AOKP not.
[Android Apps and Games] yogeshmha:
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

OK I m going to try this on my stock nexus 4. Just bumped in here to know if any one has already tried on stock 4.2.1
[Android Apps and Games] bestfil:
Odp: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

android.process.acore has been stopped

This is popping up every few seconds.
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Normal when you dont clean app data and cache

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] bestfil:
Odp: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

So shall I use cwm or 4ext and clear cache and Dalvik as well as deleting contact's and fb's data?

I thought that it was problem of compatibility with cfX 4.2.1 SR6
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

No.

Wipe exactly what i have written a few posts before via manage apps.

No wipes in cwm required.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] Wonty:
work's great with Desire S and CM10.1 pure:good::D
[Android Apps and Games] bestfil:
Odp: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

So I did it and it keeps generating mentioned process halt...
[Android Apps and Games] sigarocubano:
I have replaced the apk in flashable rom zip and then I have flashed my rom and it works very good.
[Android Apps and Games] johnnyb255:
Many thanks for this mod, followed instructions and worked without too much hassle on SGS CM10.1 nightlies, even a widget contact's pic updated soon after Facebook profile pic changed.

I found having to recopy the .apk across after every nightly upgrade/clearing caches etc annoying so I altered a previous addon.d file to backup the ContactsProvider.apk and restore it after rom flash- I don't know anything about Linux or Java or whatever the code is but it seems to work.

Just rename the .txt file to .sh, place in /system/addon.d folder and set permissions the same as the other similarly named .sh files- rwxr-xr-x (I think that is 751).

Hope this helps.
[Android Apps and Games] phazei:
This seems such a simply fix, any reason it hasn't been included in CM at all? Any reason they wouldn't?

I couldn't find any mention of it on their bug tracker. So I went and created this:

https://jira.cyanogenmod.org/browse/CYAN-153

So maybe someone will see it and include it if it's voted for or something.
[Android Apps and Games] johnnyb255:
From the reply it seems the CM has considered it before and rejected.

What is the background to all this- why has the functionality been lost?
[Android Apps and Games] phazei:
I wonder what it is facebook needs to fix to get it working and why it works on the stock phone. If it works on stock phones, I don't see them being in that big of a hurry to fix it. I realize there are other better sync programs, but I don't know of any that add the facebook phone number, which is pretty much the only reason I wanted it to sync...
[Android Apps and Games] NegativeOne:
I tried this a while ago manually (to create my own ContactsProvider.apk) and failed. I must have done something wrong. I've already seen those links.

OP: Would you mind writing out a short guide yourself summarizing what you did? Those links have a lot of discussion, most of which is actually gone due to age, and there were many different ideas of ways to make it work. Obviously you found one that I missed :).

Thanks much!

(I want to get an updated ContactsProvider.apk based on the newer CM10.1 nightlies)
[Android Apps and Games] bestfil:
Odp: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Hello!

Is there any chance to share modified source code?

I would like to modify contactsprovider from cfX 4.2.1 SR8 (fully merged with AOSP).

Your modified apk doesn't work there...
[Android Apps and Games] kamikass:
First time I had some issues with google account sync, but then, I erased data from contacts, contactsprovider, configurations, google stuff and reinstalled, then it worked flawlessly...

Still trying to find a way to sync the high res FB contact photos... Any suggestion?

Thanks!
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

There r some free apps in market which can sync high res contact pics from fb

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] LinuxLarry:
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.
[Android Apps and Games] Chaosmaker2k:
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Any chance of updating to the 4.2.2 contacts apk? Tried using this one but nothing but fc even after fixing permission and reboot
[Android Apps and Games] cuadedanh:
i had already added this code in apk file so u dont have create it manual by SU

it still works in 4.2.2 so dont need to update ( tested in SGS i9000 cm-10.1-20130216-NIGHTLY-galaxysmtd 4.2.2)
[Android Apps and Games] sigarocubano:
I don't reach to sync the picture of my WhatsApp's contacts.

It doesn't in WhatsApp application, but it does in contacts app.

May this related to the this mod of ContactsProvider.apk?

Take care.

Dan
[Android Apps and Games] Mardon:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Whatsapp contacts have their own icons in whatsapp app.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] Spatinator:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Dos this work in paranoid Android JB??
[Android Apps and Games] sigarocubano:
Why I don't have ?
[Android Apps and Games] JustinOkay:
:good::good::good:

Confirmed working on Samsung Infuse running scotts cm10.1

Awesome fix this is really awesome.

Is there any way to sync phone numbers with facebook contacts as well? HTC contacts apps does it perfectly as it syncs all contacts from facebook and displays only the contacts with mobile phone numbers. If sense can do this I'm sure eventually CM10/AOKP will be able to. Just my 2 cents but it would be nice to see such a feature. Thanks Again :laugh:
[Android Apps and Games] bootsy85:
Do you have a version of this/any other fix which works with AOKP at all?
[Android Apps and Games] bestfil:
Now it WORKS!

Thanks LinuxLarry!

In fact what "ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR;" in contacts2.db does?

Does it add place for additional date from FB?

Thanks a lot man!
[Android Apps and Games] Veereihen6:
Confirmed this works on deck's CM10.1 on HTC Evo 4G LTE.

Thanks !!
[Android Apps and Games] zellleonhart:
Can anyone test if this is working on Paranoid Android (PA) ROMs?
[Android Apps and Games] Spatinator:
AW: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Confirmed working on Paranoid Android on Jellybean 4.1.2

Thanks for mod

Could you increase the photo quality/size, the pictures arent really amazing...
[Android Apps and Games] zellleonhart:
On nexus 4 4.2.2 PA, it doesn't work. Force closes even with permissions properly set.

I guess we need new update on this apk.
[Android Apps and Games] ghazanfar320:
Will it work if we add it in to the custom rom (replacing the old contactsprovider.apk) and then flash that rom?
[Android Apps and Games] Mukiai:
Don't work on S5830 with PAC 4.2.2. (it worked with previous versions).
[Android Apps and Games] Wedge10:
Working perfectly on Galaxy Wonder with CM10 - thanks so much :)
[Android Apps and Games] ginobili1:
Can anyone confirm if it is working with Android Revolution HD 10 on the GNex i9250?

Also can anyone post screenshots of the application after facebook sync? I just want to see if friend's statuses and direct fb messaging from the contacts application is available (as is the case with Whatsapp etc.).

Thanks.
[Android Apps and Games] NegativeOne:
I stopped bothering with this because it doesn't grab high quality pics and needs to be re-flashed all the time. I use haxsync now.

out of curiousity - i don't really remember - does this catch contacts who have denied apps permissions to their info?
[Android Apps and Games] bootsy85:
"native" facebook sync does, haxsync does not. as far as I remember "3rd party apps" only need extra permission/can be denied.
[Android Apps and Games] :
I'm on the 4.2.2 PACMAN KEXEC 22.0.0 ROM, and this yielded terrible results for me. Then of course like an idiot I accidentally copied over my backup.
[Android Apps and Games] JakeDHS07:
Fixed sync Awesome

My biggest hold up with 4.2.2 was this problem. Now with this mod running CM 10.1 4.2.2 happily on my droid RAZR Maxx. Awesome.
[Android Apps and Games] MaikuMizu:
I tried clearing the contacts cache, moved the old APK, and placed this one in the proper place, set permissions, but when I hit Contacts or Phone it crashes. Every once in awhile it'll pop up saying it failed at random. Reset everything back to the original stuff and it's still happening. I'm using the latest Nightly CM10.1 on my Hercules S2. Ideas?
[Android Apps and Games] JakeDHS07:
Re: [MOD][CM10.1] Enabling Facebook Contact Sync In CM10.1 JB and maybe AOSP ROMs

Clear Contacts Storage, Contacts and Facebook then reboot. Worked for me
[Android Apps and Games] matadorrr:
Works on Sensation Xe

It works on Sensation Xe

Rom: CyanogenMod 10
[Android Apps and Games] RoadToNever:
No luck on AOSP 4.1.2, contactsprovider FCs.
[Android Apps and Games] jennifer_d:
GApps FCs

I tried the entire procedure. After copying the new apk to system/apps i began to get "gapps has stopped unexpectedly" error. The Phone and People apps wouldn't open and there was no option to sync contacts in Accounts.

I'm using Unofficial CM10 by quarx on Motorola Defy+ and minimal GApps.

Copying the original backed up apk did not solve the issue. Reflashing ROM. :(
[Android Apps and Games] Mardon:
Better to include the apk in flashable rom zipfile before flashing rom.

Prevents such errors for most users.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] maarawoe:
I am pretty sure I made no mistake but after following this procedure on CM10.1 I am getting FC on contacts and my phone stopped booting.
[Android Apps and Games] usman farhat:
Didn't work on cm10.1 HTC sensation jb 4.2.2

got continuous force close errors. restored to original now.
[Android Apps and Games] Left4DeadMW:
Not working on Jenkins's armv6 LG P500 only on RC2 :P

Got FC..
[Android Apps and Games] Mardon:
Should work if you integrate it in flashable rom zipfile before flashing.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] Left4DeadMW:
Cleared data on Contacts storage, Replaced file using rom toolbox, changed permissions and rebooted...

Why zip flashing it would make a difference, isn't that like a script for what i just did?
[Android Apps and Games] Mardon:
Because when integrated in zip you dont need to clear app caches and data.

Only contacts storage data cache wipe is not enough.

Contacts sync provider google services framework and some other also needs a wipe. So its easier to include it before flashing the romzip

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Android Apps and Games] cuadedanh:
if anyone need, i will make a CWM flashable zip
[Android Apps and Games] asdot:
awesome, It's works on my CM10.1

or maybe I'm just lucky :D
[Android Apps and Games] ziaulh.ch:
Works with HTC sensation Cm 10.1 albino. But the contact is joining wrong contacts by default. And the image quality is poor.
[Android Apps and Games] Left4DeadMW:
It worked without this new metod on RC1 trough..

I'll give it a shot on RC3 now perhaps it's fixed :P
[Android Apps and Games] pandawa.bs:
Sync with existing contact

Your MOD is great, works on my CM10 Xperia Tipo. But, I just want sync only my existing contact (local) with my FB contact. But, I've synced all my FB contact in my phone and woozaa..lag my phone. Any solution?

Sorry for my bad English. Thanks for reply :)
[Android Apps and Games] cuadedanh:
It is FB prob, no solution now
[Android Apps and Games] Abhishek992:
works great

thank you !!!

for your great mod

:laugh::laugh::laugh::laugh::laugh::laugh:

it syncs now

but only prob is image quality??

Samsung Galaxy S GT-I9000
[Android Apps and Games] ScreamSchrei:
Works, but some Problems with it.

I had that problem that WhatsApp is changing some profile pictures between contacts.

Contact 1 has a picture.

Contact 2 not.

Now got u r contact sync and whats happen is:

Contact1's picture is in contact2's too.

And more.. it was totaly random. All none picture contacts have now a picture from a random contact with a picture.

Maybe u show if u can fix this.. then it's rly nice mod ^^

Edit: And of course, i cleared contact data. More than one time to show if this bug will gone, but isn't ;)
[Android Apps and Games] Zehlek:
Does not work on Nexus 4 4.2.2 with PA. I always get fc
[Android Apps and Games] cellabonez:
Sync great Xperia with facebook on slim bean 4.2.2
[Android Apps and Games] puckshock:
Confirmed to work on i9100 Rootbox 4.0, got the acore and contacts FC so I just wiped the Contacts, Contacts Storage and Facebook after pushing the new Providers.apk and rebooted.

All good though, thanks!
[Android Apps and Games] allgoodcory:
That would be greatly appreciated. I really enjoy the stock android that CM develops but I have tried to do this mod twice and its failed both times. This is really a deal breaker with me though. I'm using an AT&T Samsung Galaxy S III (SGH-i747) with the official CM 10.1 and CWM recovery installed.