yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
First, it souds like there's something wrong with your computer if you get a blue screen. You might wanna try rebooting your computer first. Use the AC wall adapter to charge your phone if you can't charge it on the computer. If you are able to charge the phone with the AC walll adapter, see if you can go into SPL or KITL. If you were able to get into the bootload or KITL, you will be fine.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
The battery was charged before update to 100% so for sure it's not empty... :-(
[8525, TyTN, MDA Vario II, JasJam ROM Development] silverfox0214:
Tell more about the PC

Most likely the blue screen is related to the USB driver. There should be a hex code displayed. What was that?

Also, please share OS version, and I don't want to assume ActiveSync version either.

We've got to fix the PC first. Have you tried Pof's "How to unbrick your Hermes" steps?

Try removing the battery for a while (as long as you can stand to), like at least 10 minutes, then put it back in.

Let us know just a bit more about your configuration.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
OS ver is Windows 2003 Enterprise R2 trial version, ActiveSync of course 4,5.

Pof's "How to unbrick your Hermes" steps will not work becouse my hermes is dead and even don't wont boot to bootloader or KITL... Removing battery for few hours do nothing. I'm not at home now, so I don't try to bring it back to life last few hours but I will soon.
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
Hmm...if you can't even get to the bootloader or KITL..your phone is basically dead.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
I have written in first post that it's not boot to bootloader... Anyway, how is it possible to brick bootloader while I was flashing only OS and extended rom?
[8525, TyTN, MDA Vario II, JasJam ROM Development] IamGuest:
sample.txt

please show your sample.txt.
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
It's possible when you use the custom RUU Updater and you choose the wrong option, it will start to flash your bootloader first then the OS.
[8525, TyTN, MDA Vario II, JasJam ROM Development] sunlip:
Does it includes IPL flashing ?

See this thread by Olipro

http://xdaforums.com/showthread.php?p=1226412#post1226412
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
I forgot to mention that there's no need to include the extended rom. You can just ust the OS only and those extract CABs will run automatically when your first initialize your device. All the CABs in the extended rom is also in the \windows directory and there's a preconfig.txt file to specifiy which CAB to run. There's also a chance that you specify the wrong range in your sample.txt file which will caused the rom written in a different address and bricked your device.
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
OS only don't have IPL in there unless you are doing a full rom upgrade.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
My sample.txt looks like this:

and my RUU updater marked this options before flash (see atatchment).
[8525, TyTN, MDA Vario II, JasJam ROM Development] pof:
You created a NBH with a header containing IPL, SPL, splashes, and radio... and you only put OS and ExtROM in the NBH. You overwrite IPL & SPL with EMPTY data. Device is dead. Your "sample.txt" should have looked like this:

HERM100
SuperCID
2.05.255.1
WWE
700,04_ExtROM.nb
400,06_OS.nb
[8525, TyTN, MDA Vario II, JasJam ROM Development] LegolasTheElf:
If I may be so bold.. Your machine is a complete write-off. It is dead forever. Get it replaced..
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
Great. Thanks anyway.
[8525, TyTN, MDA Vario II, JasJam ROM Development] trashcan:
If you still have warranty, go have it replace. Just say one day you try to turn it on and it won't turn on. They won't going to know that you have flashed other OS to the phone because it's completely dead. I believe the only way to bring it back to life is using JTAG but most of the people don't have this knowledge and we don't have the pinouts for JTAG yet.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ell82:
I'm in Poland and I bought it on ebay three months ago from UK but I will try to contact with seller, thanks (I have box, etc).
[8525, TyTN, MDA Vario II, JasJam ROM Development] sol95:
poor guy...
[8525, TyTN, MDA Vario II, JasJam ROM Development] mablan:
Just a question ....?

If I use the Dutty's Good NBH Tool to convert the .nb to .nbh file only checkin (adding) the OS, whitout IPL, SPL or splashscreens and create a NBH do I still have to write a sample.txt with the info Pof has posted??...

I have created nbh files with duttys tool but only including splash screens and never have write a sample.txt file...

Am I making something wrong? :confused:

thanks in advance for the coments.

Regards;

Mablan
[8525, TyTN, MDA Vario II, JasJam ROM Development] pof:
sample.txt is only used for nbhgen (another tool to create NBH files).
[8525, TyTN, MDA Vario II, JasJam ROM Development] mablan:
THANK YOU very much Pof...

:)
[T-Mobile, Samsung Galaxy SIII] jcalderin:
I have network problems with my T-Mobile (d2tmo) Samsung Galaxy S III.

When I switch from 2g (EDGE) to 4g, the phone work fine (on 4g) for various minutes, then network stop working and not able to make/receive call's or texts, also not data but still showing signal bars and 3g on notification bar.

For temporarily fix the issue I switch manually to EDGE (2g) network and then switch back to 4g, the phone work fine few minutes, then drop/stop working again.

If I use the phone on EDGE (2g) network the device work perfect all day.

My currently setup on device is:

Model: SGH-T999

ROM: CM 11 ( cm-11-20150208-NIGHTLY-d2lte)

Android: 4.4.4.

Base Band: T999UVUENC2

Kernel: 3.4.104

Thanks... ;)
[T-Mobile, Samsung Galaxy SIII] jcalderin:
Update info:

I have noticed that in some areas the T Mobile 4g connection In the T999 Galaxy S III remains operational. When I move from those areas, the connection stop working again (no data, receive/make calls or receive/send texts) but still showing bars and 3g icon.

I download and try a PlayStore app to fix this issue (Data Fix) but network problems continue.

Actually this is my APN settings:

Name: T-MOBILE

APN: fast.tmobile.com

Proxy:

Port:

Username:

Password:

Server:

MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc[/url]

MMS proxy:

MMS port:

MCC: 310

MNC: 260

Authentication type:

APN type: default,supl,mms

APN Protocol:
[Miscellaneous Android Development] bradstewart:
UPDATE 29/03: Added version for Lollipop 5.1 (tested on CM12.1/AOSP ROMs).

UPDATE: Fixed zip file.

I have compiled a modified Lollipop ContactsProvider to allow the Facebook app to sync contacts on CM12/AOSP based ROMs.

To install:

Download the attached recovery flashable zip and copy it to your phone.

Clear data for the Facebook app and Contacts Storage (Apps > All). VERY IMPORTANT.

Reboot into recovery and flash the zip file.

When you log back into the Facebook app you may see the option to enable contact sync, if not it will appear at the bottom of the App Settings screen.

If you find your contacts are not appearing after enabling in the FB app, do the following:

Open a command prompt

adb shell

su

sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db 'ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR';

try the previous step a second time and if it was successful you will be told it already exists.

Reboot

This has been tested and works perfectly on a Galaxy S5 and HTC One M7 with both CM12 and AOSP based ROMs, but I would advise as always making a backup of things before flashing. I take no responsibility for any brickage that may occur.
[Miscellaneous Android Development] Meneldor:
Thanks, it's working (from the App Settings screen)!
[Miscellaneous Android Development] sapplegater:
[MENTION=422930]bradstewart[/MENTION] would you be able to type up a tutorial on what you edited to get facebook sync working I'm waiting to get this working on 5.1.
[Miscellaneous Android Development] bradstewart:
Version for 5.1 has been added.
[Miscellaneous Android Development] KingNothingUA:
killed my system. crash loop of android acore. am on cos12 on oneplus one.
[Miscellaneous Android Development] n00b Samurai:
It works on the oneplus you have to clear the fb app and contacts storage again while its crashing and once you wipe them it will stop I'm using it now on the cm12.1 nightly..
[Miscellaneous Android Development] Ragarianok:
Can you make a 5.1.1 version? :)
[Miscellaneous Android Development] bradstewart:
I'm not running 5.1.1 myself yet so if somebody wants to supply a ContactsProvider.apk from a deodexed 5.1.1 ROM I should be able to mod it.
[Miscellaneous Android Development] Ragarianok:
Not really sure what you mean by deodexed. :/ But here's the the contactsprovider.apk from CM12.1 (5.1.1).
[Miscellaneous Android Development] n00b Samurai:
Anything for 5.1.1 yet?
[Miscellaneous Android Development] Ragarianok:
Can you just tell us how to mod the apk?
[Miscellaneous Android Development] n00b Samurai:
wee woo wee woo
[Miscellaneous Android Development] n00b Samurai:
Ragarianok you find anything out lol?
[Miscellaneous Android Development] Ragarianok:
I cracked it!

I managed to mod the contactsprovider.apk from cm12 (5.1.1). You'll have to copy it over to system/Contacts Provider and change permissions to 644. Then reboot.

You might also have to do that extra thing in the first post in this thread (making a new column), but you can do that in Terminal Emulator from the Play Store.
[Miscellaneous Android Development] n00b Samurai:
If you don't mind me asking what you did mines working but its not doing quite right I have to keep re-adding the tables and it syncs all contacts instead of existing like I pick xD
[Miscellaneous Android Development] Ragarianok:
What I did was:

-Uncheck Google Contacts sync

-Remove Facebook account

-Clear Data for Contacts Storage

-Copy ContactsProvider.apk to system/priv-app/ContactsProvider

-Reboot

-Add table with Terminal Emulator (after clearing data again, if necessary due to errors on boot)

-Re-check Google Contacts sync

-Login to Facebook

-Go to app settings

-Scroll down to Sync Contacts

-Choose either Sync All or Existing

I usually just sync all.
[Miscellaneous Android Development] n00b Samurai:
yep i did that XD its just not wanting to sync existing only lol

---------- Post added at 11:28 AM ---------- Previous post was at 11:06 AM ----------

trying to figure out what bradstewart did to make his work just right I remembered this link http://niranjanthilak.com/facebook-sync-for-android-ics-devices/ for ICS but it seems to be the same basic concept to make it work here....
[Miscellaneous Android Development] Ragarianok:
I'm really not sure what he did, but it's working for me... even it's a little tedious. I think I did pretty good for a beginner.
[Miscellaneous Android Development] n00b Samurai:
You did awesome man and I appreciate it :D I was just curious as to what exactly he did lol
[Miscellaneous Android Development] #include:
Pics are blurry!

The sync works, thanks a lot about it. But is there any way to make the sync download high res pics from facebook to contacts ? All the synced pics are blurry :/
[Miscellaneous Android Development] n00b Samurai:
There's not that's the resolution that Facebook pushes mine goes clear after a while once it fully sync's

---------- Post added at 01:19 AM ---------- Previous post was at 01:15 AM ----------

Best way to get high res is to just use haxsync
[Miscellaneous Android Development] fusion327:
Thank you OP and Ragnarok for the file.

However, I tried using both files and it seems that my Google account is having trouble syncing after using the new ContactsProvider.apk file.

Is anyone else having the same issue? Is there a resolution towards it? Thanks
[Miscellaneous Android Development] DonPhelippe:
Due to Ubersync failure I finally managed to arrive to this thread to find out why Facebook doesnt have the Sync Contacts option - BUT!

When I browsed through the zip I saw that the contactsprovider apk is around 490k in size while the contacts provider apk in my CM12.1 ROM is around 990k (running Temasek's CM12.1 ROM for N9005 / Note 3 int'l). Any idea if I should tamper with it or...?

Edit: I can provide the ContactsProvider.apk if you are willing to take a shot at it ofc.
[Miscellaneous Android Development] viniciusrsouza:
HaxSync just stopped syncing just like any other Facebook contacts sync app. They killed the ability of apps contact and calendar info downloads. This is pretty sad. I used HaxSync for years.

Is this workaround here still working? I just arrived here from Google.

If yes, any way of downloading high resolution pictures? No, right?
[Miscellaneous Android Development] ts_mpls:
I share your feelings and yes, I just finally got this working. It took a few tries, I'm on a 5.1.1 rom and didn't realize that I needed the version posted back in this post http://xdaforums.com/showthread.php?p=60483526.

I'm still not really sure why this is all necessary. Does Facebook not think that we should have contacts on our phones? Why does it still work in other OEM ROMs? Why does it still work in iOS?
[Miscellaneous Android Development] toy203:
I did everything and replaced with the 5.1.1 apk but after the first reboot, there's no folder and no database to modify with the terminal. Also, the Contacs line inside Google accounts is disappeared. So no luck so far, maybe i'm missing something?
[Miscellaneous Android Development] ts_mpls:
FYI, after finally getting the modified apks in this thread working, I discovered that this xposed module does basically the same thing and still appears to work even on 5.1.1:

http://xdaforums.com/showthread.php?t=2791863

And best of all, this way you don't need to worry about replacing the apk after every flash or waiting for someone to crack it after the next os version comes out.
[Miscellaneous Android Development] Ragarianok:
Nope, nothing can be done about it. I'm using Sync.Me for that purpose. It's not as good as HaxSync, but the change in Facebook's API kind of effed up a bunch of contact sync apps.

---------- Post added at 02:03 AM ---------- Previous post was at 02:00 AM ----------

I have no idea.

---------- Post added at 02:04 AM ---------- Previous post was at 02:03 AM ----------

Well, that's good to know! I've been hesitant about using Xposed, since it's not quite stable yet.

---------- Post added at 02:07 AM ---------- Previous post was at 02:04 AM ----------

Facebook is perfectly fine with us having our FB contacts synced with our phones, but only by their terms. Their app natively has the ability to sync contacts, but after their disagreement with Google, Google decided to block contact syncing with Facebook.

---------- Post added at 02:10 AM ---------- Previous post was at 02:07 AM ----------

It's possible that the only reason the .apk here is smaller than the one with your ROM is that it you have contacts already saved in your phone.
[Miscellaneous Android Development] #include:
Which rom are you using ? You need to install sqlite3, the best way is install titanium backup because it includes a working version of sqlite3. Also, I could not find the binaries for sqlite3 for 5.1.1 roms hence installing titanium and using sqlite3 from there to modify databases worked.
[Miscellaneous Android Development] Ragarianok:
HaxSync no longer works since Facebook changed their API. Ubersync doesn't work either, unless it just so happens that your FB friends have also used Ubersync. Sync.Me is the only app still mostly working for syncing FB contacts.
[Miscellaneous Android Development] Ragarianok:
Use Sync.Me. It's still mostly working, though you might have manually search for your contacts to sync. Still not nearly as good as HaxSync, but it's something.

---------- Post added at 02:15 AM ---------- Previous post was at 02:14 AM ----------
[Miscellaneous Android Development] toy203:
I'm running the latest CM 12.1 nightly, and have the paid version of titanium backup. I'll try to find how to actually use sqlite to edit the db, thanks. :)
[Miscellaneous Android Development] toy203:
Well I thing my biggest problem now is that there's no database, I searched the folder with ES but no such thing in priv-apps after I deleted data from contact storage.
[Miscellaneous Android Development] Ragarianok:
An easier way to edit the database is download Terminal Emulator from the Play Store.

Then do this:

Type su

Give root permission

Type sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db 'ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR';

That's it. You should be able to sync Facebook contacts now.

You'll have to do every time you clear your contacts data, however.
[Miscellaneous Android Development] viniciusrsouza:
To be honest, I'm planning to find a good WhatsApp contacts pictures sync app and use it in instead of Facebook.

A little bit tired of Facebook and it's garbage work for Android.

Yeah, he got.

Completely abandoning everyone who paid for his app.
[Miscellaneous Android Development] DonPhelippe:
Well, my ROM is CM12. 1 for HLTE (Samsung Note 3 int'l). If you check the ROM download site, inside ANY of the 5.1.1 ROMS the ContactsProvider.apk is 900+k.

Check this out:

https://basketbuild.com/devs/temasek/Samsung Galaxy Note 3 - HLTE/CM12.1/Old

P.S. and if you can do throw up a solution for my .apk (alternatively I can upload the .apk myself here, from the .ZIP of the ROM)

Edit: The ContactsProvider.apk (fresh from newly d/l-ed ROM and freshly installed)

https://www.dropbox.com/s/wiv1s0i5q07avxq/ContactsProvider.zip?dl=0
[Miscellaneous Android Development] Eltjo:
I'm using KatKiss 5.1.1_023 and it is not working.
[Miscellaneous Android Development] nonexiztense:
I have found a solution for the contact image quality. I'm running cm12.1 nightly I flashed tonight with the latest market Facebook app. I didn't use this specific mod. I used the exposed module xfbsync to implement the hack to enable contacts sync but I suspect that I won't matter which method you use. This is how I got it to work. It should work on almost any device or rom

1. Install the xposed module/or manual mod contacts.

2. Install Facebook.

3. Used sqlite to edit Facebook app database facebook/prefs_db/preferences.

4. Search for the word: contacts

5. Edit three lines in database change values of three entries from 0 to 1

a. /config/gk/values/fb4a_contactsync_highres

b. /config/gk/values/contacts_sync_android

c. /config/gk/values/fb4a_contactsync_enabled

6. Un-sync Facebook account from device through the app. Select remove Facebook data from within the app.

7. Reboot and then re-sync your Facebook contacts from within the app.

8. It worked if you see a.new option will appear under contacts sync settings in the FB app to only sync hi red images on wifi.

9. Finally no more bs profile thumbnails in your contact list.
[Miscellaneous Android Development] ts_mpls:
Nice, this totally works! Now if I could just figure out why most of my accounts keep disappearing every few days... :mad:
[Miscellaneous Android Development] lparcshinoda:
It's not working on Nexus 5 stock 5.1 :( I cannot update my contacts anymore even after restoring the original ContactsProvider.apk .....
[Miscellaneous Android Development] scubamikejax904:
I have followed your steps, but after a short time the settings from step 5 have reverted back to "0" from "1" any ideas what would cause it not to stick (or does it do that to you too?)

Thank you for your help
[Miscellaneous Android Development] ts_mpls:
Yeah, I'm seeing that now too. I'm wondering if maybe Facebook is running and overwrites that value. I'm going to try setting it via recovery.
[Miscellaneous Android Development] ts_mpls:
Ok, I did it in what I think is a little easier way. I just turned off syncing in FB and then froze (disabled) the FB app to make sure everything was stopped. Then I found that I only had to change the '/config/gk/values/fb4a_contactsync_highres' key to 1. After doing that, I defrosted FB, fired it up, and the high quality option was there. I resync'd everything and it seems to be working so far. I'll report back in a day or two with whether or not it stuck.
[Miscellaneous Android Development] sapplegater:
Any idea what folder the database is located in? The only one I can find that has to do with contacts does not have fb4a_contactsync_highres located in it.
[Miscellaneous Android Development] ts_mpls:
It should be in /data/data/com.facebook.katana/databases/prefs_db, in the preferences table. I think I recall that value may not appear until you add an account.
[Miscellaneous Android Development] sapplegater:
I have an account added and the value is still not in the preferences table. Ill try adding and see if that works.

I ended up finding it in that database file, now changing :) Thanks!
[Miscellaneous Android Development] voetbalremco:
It is force closing on CM12.1 for me upon rebooting after flashing the zip and thus not working.
[Miscellaneous Android Development] ts_mpls:
Unfortunately I just checked it now, a day later, and the highres value is back to 0 and that option has disappeared from the UI. Damn you, Facebook!
[Miscellaneous Android Development] agentdr8:
I've updated the xfbsync module to include the database changes as mentioned here. Whenever the xposed framework sees the FB package, it will open the prefs database and force the values to 1 if they are 0.

Thanks to [MENTION=1547526]nonexiztense[/MENTION] for finding the database settings needed, and for [MENTION=4015855]sapplegater[/MENTION] for bringing it to my attention.
[Miscellaneous Android Development] ts_mpls:
Dude, you're the man! I had just started to crack open your code to see if I could do the same thing but I wasn't sure how to test it. Thanks!!
[Miscellaneous Android Development] agentdr8:
Will post up the latest changes to my github if you want to check out the source.
[Miscellaneous Android Development] ts_mpls:
Yeah I'd love to. It still seems like it isn't quite perfect but I don't know how much more you can do. I checked just now and the option is gone from the FB app UI so I'm guessing that value is back to 0 in the db. I'm not complaining at all, I'm sure it's the dumb FB app's fault. Why they hide that option I have no idea.

I'm not familiar with what all the Xposed framework gives you access to but I was wondering if there's any way to intercept and override the outbound request the FB app makes for the contact picture? Of course, that's based on the assumption that it would be as simple as, say, slapping "&highres=1" on the end of the URL. And that could be completely wrong too since I'm also not familiar with the FB API.
[Miscellaneous Android Development] sapplegater:
The plugin is working perfectly for me hasn't reverted or anything. I installed rebooted and then rebooted the second time and its stuck ever since. Strange that its not working for others. Which version of the Facebook app are you on?
[Miscellaneous Android Development] osm0sis:
Yup I think you're right. I'm wondering if there's a way to do all the patching on-the-fly, on-device via recovery flashable zip. We'd need smali dexed for arm, etc. but it could work for those who don't want to or can't run Xposed on Lollipop.
[Miscellaneous Android Development] phazei:
I think something may have changed in the ContactsProvider.apk

I was running BlissPop 6-08-2015 and it was just fine.

Now I'm on 6-15-2015, clean install, after installing this APK, I no longer have any "Contacts Provider" listed in apps, or in the /data/data folder.
[Miscellaneous Android Development] Sibat Al Nistas:
The file isn't working anymore on Lollipop 5.1.1 r4......
[Miscellaneous Android Development] sidrockrulz:
5.1.1 as a zip file?

Anyway we can get the 5.1.1 workaround as a zip ?
[Miscellaneous Android Development] UsualSuspectReaL:
Guys anyone can fix zip for 5.1.1 ?
[Miscellaneous Android Development] Petert87:
Is it possible that this doesnt work with Nexus and GPE devices?