[MOD] 4.3 BLE libraries+xml for every ROM (stock or custom)

Search This thread

bfg100k

New member
Nov 21, 2006
4
0
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.

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
 

wbedard

Senior Member
Jul 22, 2010
479
411
Hi wbedard,

Thanks for putting together the patch. Unfortunately it didn't work on my Nexus 7 2012 running android 5.0.2.
...
Happy to send you any diagnostic information if you can tell me what you need and how to get them.

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

Sent from my SM-T800 using Tapatalk
 
  • Like
Reactions: gegunt

bfg100k

New member
Nov 21, 2006
4
0
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.
 

someone_01

Member
Feb 23, 2008
42
2
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.....
Thanks, works fine for me!
Flashed with "Nexus Root Toolkit"
Nexus 7 (2012 5.02) now recognizes my miband :good:

/r
someone
 

wbedard

Senior Member
Jul 22, 2010
479
411
Thanks, works fine for me!
Flashed with "Nexus Root Toolkit"
Nexus 7 (2012 5.02) now recognizes my miband :good:
...
@someone_01

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


Sent from my SM-T800 using Tapatalk
 
  • Like
Reactions: usu4rio and Bonoboo

krey

Member
Feb 27, 2009
9
4
Hi wbedard
OTA android 5.1 for nexus 10 already available, request your kindness to prepare patch for Bluetooth ble enable as usual
Thank
 

wbedard

Senior Member
Jul 22, 2010
479
411
Hi wbedard
OTA android 5.1 for nexus 10 already available, request your kindness to prepare patch for Bluetooth ble enable as usual
Thank
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

Sent from my SM-T800 using Tapatalk
 
  • Like
Reactions: Bonoboo

wbedard

Senior Member
Jul 22, 2010
479
411
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.1.0 (LMY47D)

Hi All, ( @brinko99 , @krey , @Bonoboo )

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
 

Attachments

  • BLE4manta_AOSP_LMY47D_patch.zip
    885.9 KB · Views: 82
  • BLE4manta_AOSP_LMY47D_stock.zip
    709.5 KB · Views: 56

switchblade5984

Senior Member
Aug 29, 2010
92
10
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.
 
Last edited:
  • Like
Reactions: unkle_mdf

wbedard

Senior Member
Jul 22, 2010
479
411
You totally need to add donation button under avatar
...
Huge thanks for your efforts, for providing this very useful patches!
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

Sent from my SM-T800 using Tapatalk
 

wbedard

Senior Member
Jul 22, 2010
479
411
hi wbedard again request your kindness, making patch for nexus 10 5.1.1 (LMY47V)

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

Sent from my SM-T800 using Tapatalk
 
  • Like
Reactions: Bonoboo

wbedard

Senior Member
Jul 22, 2010
479
411
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!
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


Sent from my SM-T800 using Tapatalk
 

wbedard

Senior Member
Jul 22, 2010
479
411
Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.1.1 (LMY47V)

Hi All, ( @brinko99 , @krey , @Bonoboo , @giudech , @PolarFox )

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
 

Attachments

  • BLE4manta_AOSP_LMY47V_stock.zip
    709.5 KB · Views: 117
  • BLE4manta_AOSP_LMY47V_patch.zip
    885.9 KB · Views: 126
Last edited:

wakaru

Senior Member
Jan 2, 2009
50
20
Hi All,
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

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.
 

wbedard

Senior Member
Jul 22, 2010
479
411
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.

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
 
  • Like
Reactions: wakaru and Bonoboo

wbedard

Senior Member
Jul 22, 2010
479
411
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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    Here are flashable .zip files to bring BLE support to any tuna (should work on also on toro and toroplus yes) device on any 4.3 ROM. Attached also the restore .zip to restore the files as they were.

    Based on the commit, files by manuel naranjo: https://github.com/manuelnaranjo/an...mmit/31756f3c0f364c9c7d07e8813a8b806ec0ddaded , so props to him

    I've attached also the same files for grouper N7 and manta N10. Don't have the stock files for those, that's why I didn't made any .zips, but feel free to try them.

    Test it out on BLE devices and post some feedback. As of the time being Fitbit doesn't sync with Android 4.3 API yet, but it should see the device.

    1st August 2013 : Anyone who flashed the previous version, please reflash the version 2 posted below.
    1) first flash 4.3_BLE-tunaRESTORE2.zip to revert and delete the wrongly permission file
    2) flash 4.3_BLE-tuna2.zip for proper permission file placement

    I've made a mistake when making the updater-script, so the .xml permission file was placed into /etc instead of /etc/permissions, sorry for that :|.

    24th August 2013 - Since I've surprisingly got a good offer to sell the Galaxy Nexus, user wbedard said he'll make sure to keep this support alive. He compiled GN, N7 flashable JWR66Y zips for BLE , posted here. Thanks !
    12
    Excellent, I'll make sure to update post #1 when you'll release something

    Well, here are the flashable zips for the Nexus 7 (grouper) and Galaxy Nexus (tuna). I built these myself from the AOSP source (JWR66Y) and incorporated the BLE mods from Cyanogenmod (basically enabling a feature that Google disabled). I have flashed each of them on my own devices and they appear to work without any errors. I tested each device against my Misfit Shine, which is a BLE device and it shows up as an available device.

    As for the Nexus 10 (manta), I note that Google has not yet posted the graphics drivers for Android 4.3 and so I cannot build the libraries for this device. Additionally, I don't have a Nexus 10 to test with. Anyhow, if and when those add'l drivers are released, I will build the libraries for manta and update this post.

    [Edit]
    Here are the MD5 checksums for the attached files. Please check these against the copies you download to ensure they are intact!
    BLE4grouper_AOSP_JWR66Y.zip - AB2C574DDE79C651EB778665DFBE8852
    BLE4tuna_AOSP_JWR66Y.zip - 5D863ABEE3FA5ED3880198CE70697E49
    [/Edit]

    Enjoy!

    R/
    wbedard
    8
    [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
    7
    [MOD][4.4.2] BLE LIbraries for Nexus 7 (grouper)

    I have attached the new build including the patched libraries enabling BT 4.0 LE support for the Nexus 7 (grouper) under Android KitKat 4.4.2. The file can be flashed from your typical custom recovery. It has been tested on and only suitable for the indicated device running the indicated operating system or one closely based on it.

    Reviewing this thread, I note requests for similar support for the Nexus 10 (mantaray). Additionally, I have previously provided similar support for the Galaxy Nexus (tuna). I do plan to create a similar build for mantaray this weekend. However, since I don't have a Nexus 10 to test it on, I will have to rely on actual users to notify me of any problems. Since the process is very simple, I think the risk of any problems is quite low.

    As for the tuna platform, since Google does not have a build target for tuna in Android 4.4.2, I will not be able to provide a build for that platform. However, as was mentioned previously, the patches that I am using come from the CyanogenMod project and they are providing nightly builds of CM11 for the tuna platform. Most custom ROMs derived from CyanogenMod will almost certainly retain the BLE patches.

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

    [Update: I have added an add'l ZIP that will revert the patch back to stock libraries. This will be needed when/if you need to apply an OTA update from Google.]

    [Update2: After finally updating my own Nexus7, I realized that the "stock" libraries that I recently added won't work with an OTA update. The reason is that, although I compiled them from AOSP source code, the checksums won't match what the OTA is expecting since Google uses a different build environment than I do. So, I have re-built my "stock" ZIP to include the files actually present in the Android 4.4.2 factory image. I have used this "stock" ZIP file to update my own device so I know it works. As always though, let me know if you have any issues!]

    R/
    wbedard
    6
    Bluetooth 4.0 LE support for Nexus 10 (manta) running Android 5.0.1 (LRX22C)

    @brinko99, @krey, @Bonoboo
    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