yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] wbedard:
[MOD][4.4.2] BLE LIbraries for Nexus 10 (manta)

I have attached a build providing patched libraries which enable BT 4.0 LE support for the Nexus 10 (manta) under Android KitKat 4.4.2. The patch can be flashed from your typical custom recovery.

While the patch is a simple one and known to work, this actual build is untested by me as I do not have access to a Nexus 10. Therefor, I am also attaching a zip file that restores the stock Bluetooth libraries for the Nexus 10. As a side note, the stock libraries were not extracted from the Google-provided factory images but were also built by me from the un-patched AOSP source code. In the unlikely event that something goes horribly wrong and I am not available to help, one can fully restore their device by re-flashing the system image provided by Google using a computer and ADB.

Feel free to post any questions or concerns and I will help out as best I can!

R/

wbedard
[Samsung Galaxy Nexus] hepi_hape:
Thx for tha answer :D

is that so necessary to inject on CM11 / its already there ?:highfive:
[Samsung Galaxy Nexus] scaramonga:
Flashed to my Nexus 10 running KitKat 4.4.2, nothing exploded as yet :p My Bluetooth headphones still working as they were, they are supposed to work best with BT4, but who knows? I cant tell any difference thus far.

Many thx for creating and supplying file :good:
[Samsung Galaxy Nexus] wbedard:
My pleasure...glad I could help out. It's easy for me to keep this up to date. If Google happens to release an update for the Nexus 10 and I forget, just remind me here and I'll recompile for the new version.

R/

wbedard
[Samsung Galaxy Nexus] df99:
Works great with my Fitbit device!

I wanted to get my Fitbit device to sync directly with my Nexus 7 (2012). Fitbit is a tiny device that monitors physical activity and uploads the data to the Fitbit web site whenever it is in range of a BLE-enabled computer or compatible Android/IOS device. Unfortunately, my Nexus 7 (2012) would never work due to the BLE support issue.

I applied the Nexus 7 BLE patch (BLE4grouper_AOSP_KOT49H.zip) with my custom bootloader, after backing up the stock 4.4.2 system files.

After a reboot, BLECheck now shows that BLE is supported!

I downloaded the Beta of the Fitbit Android app which bypasses device checking and will attempt to connect to the Fitbit with any Android device with BLE support. It worked perfectly!

Thanks!

Don
[Samsung Galaxy Nexus] gabriel_hart:
Thanks [MENTION=2769491]wbedard[/MENTION]! Exactly what I needed to get my wive's Fitbit talking to her GNex.
[Samsung Galaxy Nexus] wbedard:
BT4LE Update for Android 4.4.4/KTU84P on Nexus 10 (manta)

Hey all,

I got a reminder that I needed to update this thread with new builds since Google has updated Android. First out of the gate is for the Nexus 10. Again, since I don't have a Nexus 10 device on which to test these patches, I've built flash zips both for the patch and to undo the patch.

Let me know if you have any issues with these files. Next weekend, I'll try to build the update for the Nexus 7 (grouper), though I may be the only guy still running one of those!

R/

wbedard
[Samsung Galaxy Nexus] N3o21:
Thanks. This patch is usable also for grouper 4.4.4 stock ROM. Tested on my N7 (2012 wifi) and my Jawbone UP24 - works nice.
[Samsung Galaxy Nexus] lo97:
What about a patch for the galaxy nexus and android 4.4.4? Thanks ;)
[Samsung Galaxy Nexus] wbedard:
Since AOSP does not support the Galaxy Nexus running Android 4.4.x, I can't build the patched libraries.

However, most of the Android 4.4.x builds for the Galaxy Nexus are based on work done under the Cyanogenmod project, which created the original patches that I have been using in my builds. Such ROMs for the Galaxy Nexus very likely have support for BTLE already "baked in."

R/

wbedard
[Samsung Galaxy Nexus] krey:
Thank very much for the patch
[Samsung Galaxy Nexus] thomstrack:
~ deleted ~
[Samsung Galaxy Nexus] Bonoboo:
Can we hope for same patch for Nexus 10 running 5.0?
[Samsung Galaxy Nexus] wbedard:
I was waiting to see if there was any demand for an update. Since there is, I'll look into it. No ETA's on when it will be available but I'll try to get started on it this weekend. As far as the Nexus 10 goes, remember that I don't have a device to test it on first. Be sure to post your feedback, either positive or negative.

R/

wbedard
[Samsung Galaxy Nexus] Suxsem:
Hi!

Do you think that I can use the new Xiaomi Mi Band with this mod? They say that it requires bluetooth 4.0...

And please, can you port this mod to lollipop?
[Samsung Galaxy Nexus] wbedard:
I have no clue whether it will work with your band. As to porting the drivers, what device are you using? It has to have a build target in the AOSP codebase.
[Samsung Galaxy Nexus] Suxsem:
Galaxy nexus :)
[Samsung Galaxy Nexus] wbedard:
Hmmm, just out of curiosity, what lollipop ROM are you using? Google isn't supporting the GNex with lollipop and it doesn't have a build target in AOSP.
[Samsung Galaxy Nexus] krey:
seem hope for Nexus 10 running ble in android 5.0 is fading but never lose hope, thank in advance who can enable ble for nexus 10,
[Samsung Galaxy Nexus] iSiddharth:
I wanted BLE support in My Android 4.2.2 Custom ROM, What can I do?
[Samsung Galaxy Nexus] madd0g:
So far I remember, BLE was introduced with 4.3, previous versions have no support, completely different Bluetooth stack.
[Samsung Galaxy Nexus] brinko99:
Now that 5.0.1 is out for the Nexus 10, I'm hoping to get BT LE support for 5.0.1. Any update is appreciated!
[Samsung Galaxy Nexus] wbedard:
I'm sorry...the truth is that I've just been dragging my feet on this due to several other more interesting computer projects that I've been working on. However, I'm updating my AOSP repository as I write this (which will take a while...). Without any unforeseen setbacks, I should be able to have something for the Nexus 10 by this weekend.

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.0.1 (LRX22C)

[MENTION=1522439]brinko99[/MENTION], [MENTION=1600929]krey[/MENTION], [MENTION=5037002]Bonoboo[/MENTION]

Hi All,

After much delay (my apologies), I have at least an initial cut at a patch that will (could?) provide BT LE support for the Nexus 10 running Android 5.0.1. I cannot emphasize enough that this patch is completely untested by me and I can imagine a lot of reasons why it might not work. However, I can also assure you that if you have the ability to apply this patch, you also have the ability to fix things if the patch breaks anything.

Here's the details on what I am providing and how I assembled them. The patch file "BLE4manta_AOSP_LRX22C_patch.zip" was build by me using the official AOSP source code. That code was modified using a simple patch from Cyanogenmod 11 (Android 4.4.x) that simply reverts an earlier patch by Google that disabled BT LE functionality for several Nexus devices, including the Nexus 10. Although the patch is a very simply one, there were a lot of changes in the AOSP codebase btwn Android 4.x and Android 5.x and that is the major risk factor in why this patch might not work. Additionally, the Android file structure changed a bit between 4.x and 5.x so some of the files I replaced in Android 4.x don't exist in Android 5.x. I compared the system directories btwn what I built and what Google provides in their factory image and tried to identify all the files associated with the bluetooth software stack. Although I might have included some files that weren't affected by the patch, an additional risk is that I might have missed some important files. If that is the case, users will just have to wait until the Cyanogenmod developers develop the CM12 (Android 5.x) source code, which they have started on only recently.

With that out of the way, if something does go wrong, the file "BLE4manta_AOSP_LRX22C_stock.zip" will replace all affected files (4 files in total) with the ones provided in the Android factory image. That should put your device back to pre-patch condition. Although I likely don't have the skills to make many changes to this patch if it doesn't work, I would welcome any feedback, especially if you need help reverting the patch. If it does work though, you can enjoy the knowledge that you're likely some of the first people to enjoy Bluetooth 4.0 LE support for the Nexus 10 under Android Lollipop! Good luck and let me know how it goes...:)

R/

wbedard
[Samsung Galaxy Nexus] brinko99:
Excellent! This patch is working for me (Nexus 10 / 5.0.1 / LRX22C). Both regular and LE connections are working with my limited test.

Thank you very much!
[Samsung Galaxy Nexus] wbedard:
LOL, I can barely believe that worked! Glad to hear it though. Enjoy and have a great weekend...:>)

BTW, feel free to talk this up among any other manta users that you may interact with in the manta-specific forums. As you may have noticed, this thread has grown pretty far from it's roots and I simply can't be bothered to start my own thread in a forum for a device I don't own.

R/

wbedard
[Samsung Galaxy Nexus] krey:
Thank very much work on Nexus 10 5.0.1 / LRX22C. Try on hrm scocshes working smoothly, thank man.
[Samsung Galaxy Nexus] flyzer07:
Hello wbedard, first of all thanks a lot for your very helpful job.

I tested the last version on my Nexus 7 running 5.0.2 stock but it failed.

I was not able to activate the bluetooth after the flash.

I tried to go back to the previous state with your second zip but it still doesn't work :(

So I have no more bluetooth at all !

Do you know how can I solve this ?

Any chance to update your patch to make it working for the 5.0.2 ?

Thanks in advance.

Flyzer.
[Samsung Galaxy Nexus] wbedard:
I don't understand what patch you could have installed. I didn't think that I had released a patch for the Nexus 7 (grouper?...you didn't say) running any version of Lollipop.

I am thinking that you should probably download the factory image for your device (just Google "android nexus factory image"). Copy it to your device and flash it from recovery. That should take care of your bluetooth issues.

R/

wbedard
[Samsung Galaxy Nexus] flyzer07:
Yes you're right you didn't release something for the Nexus 7.

I reinstall my device with the stock image.

Now the Bluetooth is working again that's fine but I'm still looking for a solution for the BLE.

Any idea ?
[Samsung Galaxy Nexus] wbedard:
No problem. To best manage my time, I'm not building patches until people request them, especially since these devices are getting along in years. However, I'll put your request (Nexus 7, grouper, running Android 5.0.2...?) on my "to-do" list. No promises but I imagine I can get something together by this weekend.

Glad to hear that you got your tablet squared away!

R/

wbedard
[Samsung Galaxy Nexus] flyzer07:
Thanks a lot dude ! :good:

I'm looking forward to read you :p

By the way, do you know why Google don't implement this function on this Tablet ?

They still support it as it is running 5.0.2 now.

By the way "2", I applied the patch on my Galaxy Nexus running Android stock (4.4.2) and it's working fine.

I can now connect my Garmin Vivosmart.

Greetings from Switzerland.
[Samsung Galaxy Nexus] Izeltokatl:
Thank you VERY much for this! Just flashed this on PurityROM (4.4.4) and it works GREAT! Now I can use my SwiftPointGT bluetooth mouse on my device!
[Samsung Galaxy Nexus] wbedard:
Bluetooth 4.0 LE support for Nexus 7 (grouper) running Android 5.0.2 (LRX22G)

Hi All (@flyzer07),

Please see attached the patched Bluetooth libraries for the Nexus 7 (grouper) running Android 5.0.2 (LRX22G). These libraries will provide BT 4.0 LE capability under the new Android release. Each of the provided files should be flashed from recovery following the standard procedures which you are likely already familiar with.

As usual, the file "BLE4grouper_AOSP_LRX22G_patch.zip" was created from the official AOSP source code that has been patched using time-honored commits from the Cyanogenmod project. The file "BLE4grouper_AOSP_LRX22G_stock.zip" was assembled from files extracted from the corresponding factory image provided by Google.

Although I do have a Nexus 7 device, it has not yet been upgraded to Lollipop and so I have not tested these patches personally. Please let me know if you experience any issues and I will see what I can do to help.

R/

wbedard
[Samsung Galaxy Nexus] cloud_strife84:
Hi I flashed BLE drivers on My Galaxy Nexus 4.3 and MiBand works :D Thank you!!!
[Samsung Galaxy Nexus] krey:
i hope wbedard can give patch Ble for Nexus 10 (Manta) running Android 5.0.2 (LRX22G) as usually. Thanks
[Samsung Galaxy Nexus] wbedard:
Yeah, I saw the announcement of the new OTA update for the Nexus 10. I'll try to get the updated BTLE libraries out by the weekend.. ☺

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.0.2 (LRX22G)

Hi All, ( [MENTION=1522439]brinko99[/MENTION] , [MENTION=1600929]krey[/MENTION] , [MENTION=5037002]Bonoboo[/MENTION] )

Please see attached both the patched and stock bluetooth libraries for the Nexus 10 (manta) running Android 5.0.2 (LRX22G). As always, do let me know how it goes but especially if you encounter any problems...enjoy!

R/

wbedard
[Samsung Galaxy Nexus] khenderick:
I can find libraries for the Galaxy Nexus (tuna) for 4.x, but unfortunately not for 5.02. Any chance you could create libraries for this combination as well?

Edit; In the mean time, I discovered that my rom (SlimRom) already has the correct libraries installed for BLE.
[Samsung Galaxy Nexus] wbedard:
Almost all Android 5.x ROMs for the GNex are based, more or less, on Cyanogenmod, since Google hasn't supported that device in AOSP since 4.4. As such, the BLE support should be "baked-in" by default.

R/

wbedard
[Samsung Galaxy Nexus] bfg100k:
patch does not work :(

Hi wbedard,

Thanks for putting together the patch. Unfortunately it didn't work on my Nexus 7 2012 running android 5.0.2. It boots ok and when you go into the bluetooth settings and tap the switch, it will show as turned on. However, going into the notifications (i.e. slide down from top of screen and tap on settings), the bluetooth indicator will still show off. I have also tried going into an app that uses BTLE (e.g. Wahoo Fitness) and it too cannot detect that bluetooth has been turned on. Note that I have previously used this app on android 4.4.4 with your patch and it works fine with my BTLE sensors. Happy to send you any diagnostic information if you can tell me what you need and how to get them.
[Samsung Galaxy Nexus] wbedard:
Hmmm, sorry to hear that it didn't work for you. I will review my build+packaging this week to see if I can find anything amiss. Unfortunately, it looks like I will be unable to perform tests using my own device since it recently seems to have lost the ability to write to its flash memory... ?

If anyone else would like to contribute their experiences with my recent builds for the Nexus 7 (grouper) running Android 5.0.2, they would be greatly appreciated!

R/

wbedard
[Samsung Galaxy Nexus] bfg100k:
Hi wbedard, any luck with a fix for this? I will be happy to help if you can tell me what to do on my device.
[Samsung Galaxy Nexus] someone_01:
Thanks, works fine for me!

Flashed with "Nexus Root Toolkit"

Nexus 7 (2012 5.02) now recognizes my miband :good:

/r

someone
[Samsung Galaxy Nexus] wbedard:
[MENTION=851426]someone_01[/MENTION]

Thank you very much for the feedback! There was some concern, based on other feedback, that there might be an issue with that specific build. As you have time, please conduct add'l testing with your device and reply back with any issues you may encounter.

Also, feel free to remind me to provide updated builds once Android 5.1 becomes available.

R/

wbedard
[Samsung Galaxy Nexus] krey:
Hi wbedard

OTA android 5.1 for nexus 10 already available, request your kindness to prepare patch for Bluetooth ble enable as usual

Thank
[Samsung Galaxy Nexus] wbedard:
No problem! My computer is tied up for the next several days but I'll try to get started on it over the weekend or early next week.

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.1.0 (LMY47D)

Hi All, ( [MENTION=1522439]brinko99[/MENTION] , [MENTION=1600929]krey[/MENTION] , [MENTION=5037002]Bonoboo[/MENTION] )

Please see attached both the patched and stock bluetooth libraries for the Nexus 10 (manta) running Android 5.1.0 (LMY47D). As always, do let me know how it goes but especially if you encounter any problems...enjoy!

R/

wbedard
[Samsung Galaxy Nexus] krey:
wbedard thanks very much
[Samsung Galaxy Nexus] GMPOWER:
Here are the files for the Nexus 7 (grouper). I tested on my two personal devices, but report back if you have a problem.
[Samsung Galaxy Nexus] switchblade5984:
tried installing, app shows BLE is supported, but bluetooth will not turn on.

if i install the stock zip, BLE shows not supported, and bluetooth turns on fine.
[Samsung Galaxy Nexus] Bonoboo:
You totally need to add donation button under avatar (here).

Huge thanks for your efforts, for providing this very useful patches!
[Samsung Galaxy Nexus] wbedard:
Thanks for the kind thoughts! As for the donations, it's really such a small effort that I don't mind doing it on a "gratis" basis. Honestly, if it were a big enough effort that I felt like asking for donations, I probably wouldn't want to do it at all... ? Just getting the ocassional "thanks" from this small group who I support is more than enough!

R/

wbedard
[Samsung Galaxy Nexus] krey:
hi wbedard again request your kindness, making patch for nexus 10 5.1.1 (LMY47V)
[Samsung Galaxy Nexus] wbedard:
No problem, I'll get to work on it in the next couple of days. Might have something built by the weekend but no promises... getting busy around here!

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Hmm, I might be a bit longer on that next build than I originally said. I'm running a test on my computer that's preventing me from running my Android build environment. I need to run this test for maybe 1 more week and then I can switch over to building Android. I'll get it posted just as soon as I can, though!

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.1.1 (LMY47V)

Hi All, ( [MENTION=1522439]brinko99[/MENTION] , [MENTION=1600929]krey[/MENTION] , [MENTION=5037002]Bonoboo[/MENTION] , [MENTION=4521773]giudech[/MENTION] , [MENTION=571881]PolarFox[/MENTION] )

Please see attached both the patched and stock bluetooth libraries for the Nexus 10 (manta) running Android 5.1.1 (LMY47V). As always, do let me know how it goes but especially if you encounter any problems...enjoy!

BTW, my apologies for dragging my feet on this one. Trust me...I did blow it off a couple of days!

R/

wbedard
[Samsung Galaxy Nexus] wakaru:
Many thanks again wbedard.

Any chance to get the version for 5.1.1 (LMY48I)?

No rush, I will wait ot install the patch until your new libraries are available.
[Samsung Galaxy Nexus] wbedard:
LOL...I had a moment during the week, after reading about Google's new monthly update policy, when I anticipated seeing a lot more traffic in this thread! And so it begins...:>)

No prob. This weekend, I am updating my Nexus 5 to LMY48I and writing some scripts to automate some of the "tweaking" I do to the stock ROM. This will make it easier for me to deal with potentially monthly updates on my own devices. I also need/want to research the details on another project that I've been putting off for a while. Most likely, I will be able to build the libraries for manta (while I'm at it, I might try to squeeze in other frequent requested devices...) over the next week. I would anticipate having some builds staged by Friday for you to play with over the weekend. As usual, I will try to send out a PM to all the interested parties as well as updating this thread.

You know, part of me envies you guys what with how long Google has supported the Nexus 10!

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
Bad news... I didn't do much work on building the new libraries during the week.

Good news... I'm working on it now (like this minute...) and hope to have something together on Saturday.

Stay tuned and sorry for the delay!

R/

wbedard
[Samsung Galaxy Mini] orome2:
Hi guys. I'm using cyanogenmod 10. Works perfect. But when i try open videos on facebook or youtube or any movie site it skips all videos. Like a 1 second. Can you help me for that problem? Please help me. And there is any fix for camera?
[Samsung Galaxy Mini] TheWhisp:
no one will help you until you learn to post in appropriate forum section
[Samsung Galaxy Mini] Mdetring:
Wrong place -~_«»°_~-
[Samsung Galaxy Mini] Andrespro6:
Spam thread... Read the CM10 thread, the answer is there
[Samsung Galaxy Mini] ZaXpired:
Damn .. Just answer him and let Moderators do what they have to do !!!

Bro .. your problem because Google and adobe stopped supporting Flash in android 4.0+ .. you have to download Adobe Flash Player for JB or ICS " Google it " and everything will be fine.
[Samsung Galaxy Mini] thelastbad:
that happen with me in cm10 last build its opened when video in hq
[Samsung Galaxy Mini] manudroid19:
Well, it's different, but when I was in cm10, I couldn't watch videos offline, and I did it using mx player app and mx player codecs ;)
[AT&T Samsung Galaxy Note II] cMACr:
Don't hate, I have some noob questions, first is after a clean install of the latest slim rom, I can no longer find the option to turn off my hardware lights (back and menu) I just spent the last 40 minutes looking, maybe I am blind, but they were off on the previous build.

Next, and the reason for the reinstall, how does I get the OTA to work, I just get an error.

And I don't have enough posts to post in the slim thread.
[AT&T Samsung Galaxy Note II] thatmetaldude85:
slim

I was told that The OAT wasn't incorporated on the Note 2 and that came from someone from the IRC...
[AT&T Samsung Galaxy Note II] cMACr:
Thanks

Was wondering, seen a few threads in other devices that said it needed to be turned on.

Thanks for the repy.

Does anyone thing the option to turn off the capacitive lights got lost in the menu restructuring in the latest 7.8 build?
[AT&T Samsung Galaxy Note II] cMACr:
Hello?

Is anyone running Slim that can check their settings to see if the option is there, please?:confused:
[AT&T Samsung Galaxy Note II] cMACr:
Woot! Finally found it. Thanks for all the help.

For anyone else looking, advance options, device, screen, touch key...
[JAM, MDA Compact, S100 General] vbijelovic:
Hi!

I would like to use my tmobile compact with my orange sim and was wondering if there was a way to do it? I have read several posts on here about it, so I would just like a confirmation (better still, a refutal) that it is not possible at the moment and even if I overwrote the ROM with a different one, it would not change the SIM lock. Am I correct on this, or is there a pleasant surprise in store for me? Go easy, my first post..

Thanks,

Viktor
[JAM, MDA Compact, S100 General] jfran:
Your best bet is imei check for 20 quid.

http://imei-check.co.uk

ciao

jim
[JAM, MDA Compact, S100 General] aladdin1001:
Or if you've had your contract with T-mobile for over 28 days, you could phone them and ask for the unlock code which they will supply for 15 quid. (i'm not sure if charges differ according to the type of handset) anyway, you could try though
[JAM, MDA Compact, S100 General] vbijelovic:
thanks guys - was hoping to do it myself, but thanks anyway!!
[Nexus 4 Q&A, Help & Troubleshooting] Ehnoah:
Hey Guys,

today my Handy downloaded 4.3 but I not want loose my Root so how can I delete the Downloaded update Files?

I am scared that I tap on "Tap here to Install" so is it possible to delete?

I also read that Root with 4.3 is not really more, so is there any way to save root before Update? Or just wait until Nexus 4 Toolkit is updated? :)

I have Superuser Installed the one with #

But Important for me is remove this Tap to Install. Then I just wait for Mark's Tool to get our Update for Donators :)

best wishes,
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
As long as you have a custom recovery, root is very easy to obtain, even on 4.3.