yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Stigy:
I'll test the LightBlue app on my iPod touch tonight.

I have tested my Fitbit with the BLEScanner and it gets data, but the Fitbit app is not updated to support BLE on Android running 4.3 yet so until they update we can't test that functionality directly.

I will post my test results tonight with LightBlue though.
[Samsung Galaxy Nexus] CommanderROR:
I saw somebody with an iPhone5 today and asked him to try the LightBlue app. Sadly it did not detect my Nexus.

Not sure what that means though, might be the app is not meant to detect other phones, or he did something wrong...

Looking forward to your report Stigy!
[Samsung Galaxy Nexus] madd0g:
So far I know BLE isn't intended to be used between phones. Check 4.3 API documentation for more info.
[Samsung Galaxy Nexus] Stigy:
I read that the LightBlue app can clone peripherals so I am going to make it pretend like it is my Fitbit Flex and see if I can get some data from it and see what it says when the 4.3 ROM queries the device.
[Samsung Galaxy Nexus] CommanderROR:
Sounds like a plan. I did not have much chance to experiment, I didn't know the guy with the iPhone...:)
[Samsung Galaxy Nexus] CommanderROR:
[MENTION=1544319]Stigy[/MENTION]

Did you get round to testing this yet?
[Samsung Galaxy Nexus] Stigy:
I tried testing it last night and the Light Blue app on the iPhone I used didn't really do much because the BLEScanner app I have on my Galaxy Nexus just sits there and runs a huge scan. It detects something, but I can't get data from it.

There was a BLE example app video on Youtube from Android developers that I am trying to find the apk or source for to compile since using that you can at least browse the Data on the device its connected to.

http://www.youtube.com/watch?v=vUbFB1Qypg8
[Samsung Galaxy Nexus] Soy_Filipo:
I don't wanna be the party pooper, but, I thought the GN didn't have a 4.0 bluetooth chip http://www.gsmarena.com/samsung_galaxy_nexus_i9250-4219.php
[Samsung Galaxy Nexus] CommanderROR:
It has the hardware, but google chose not to activate the function in firmware. We don't know at this point, whether this is due to some kind of fault in the hardware implementation or for somw other reason.

The only fact is...it has a BT4.0 chip.

[MENTION=1544319]Stigy[/MENTION]

Maybe ask here about further development on the blescanner

https://code.google.com/p/android-ble/

I spoke with the guys that make BT Smart tags, and they plan to release support for Android 4.3 ble soon. Their devices called Smart Nudge are available for around 30€ on ebay, but they ship from Korea or Australia...
[Samsung Galaxy Nexus] Soy_Filipo:
So... is there a file for maguro?
[Samsung Galaxy Nexus] CommanderROR:
First post... I don't mean to be rude, but you should read the thread before asking... ;)

It should work on any 4.3 Rom. Flash with CWM or TWRP

Do you have any BLE accessories to test with?
[Samsung Galaxy Nexus] Soy_Filipo:
Quoting first post

I don't see maguro there, have you read the first post smart ass?
[Samsung Galaxy Nexus] CommanderROR:
Look up what tuna means friend...and no need for insults.

I wouldn't tell you to read the first post if I dis not know Exactly what it says. I've been running the tuna build since day one
[Samsung Galaxy Nexus] Soy_Filipo:
You have a point, you are right, and I'm sorry.
[Samsung Galaxy Nexus] CommanderROR:
No problem.
[Samsung Galaxy Nexus] DoesntPostAThing:
With this it brings me to where I was at with Carlos_Manuel's CM10.2 build, being able to see my fitbit but not connect to it. Is this a problem on the phone's side, or on the fitbit's side?
[Samsung Galaxy Nexus] jackie_jagger:
From what I've heard, it is the Fitbit app on your phone which hasn't been updated to work with 4.3 BLE libraries.
[Samsung Galaxy Nexus] CommanderROR:
The problem is, we currently don't know whether it should pair or not.

We'd need someone with a Nexus4 to test that...
[Samsung Galaxy Nexus] Stigy:
Poeple with Nexus 4 on the Fitbit forums are not getting connections in the Fitbit app either.

Fitbit never implemented true BLE in their app, they just implemented methods to allow it to connect to Samsung's implementation of BLE. The app needs to be updated to support the native Android 4.3 implementation of BLE to pair & transfer data.
[Samsung Galaxy Nexus] Logomotph:
I tried the grouper files and bt seems to work....any way to run a test between an n4 and an n7 to see if ble actually works?
[Samsung Galaxy Nexus] CommanderROR:
Hmmm...I can understand the app not working, but pairing unsuccessful is strange. Well, we'll find out eventually.

About N4 and N7...I know of no app that can test this. BT connection between the two would likely just happen in legacy 2.1 mode with no way to find out what is happening. We'd need se kind of test app. Is there something in the SDK that can be used? I'm no dev, so useless at all this...
[Samsung Galaxy Nexus] Stigy:
Well my Fitbit One shows up under Bluetooth on 4.3 running BLE mod, but I am not sure if it ever did on 4.2.2 so can't be sure this changed anything.

But you're not supposed to pair with a BLE device. The process basically goes: scan for device, find a BLE device, connect, get data, close connection. And that's it - hence why its low energy since its not always connected to the device.

http://en.wikipedia.org/wiki/Bluetooth_low_energy
[Samsung Galaxy Nexus] CommanderROR:
Hmmm... What about security then? Can anybody just read data from BLE gadgets?
[Samsung Galaxy Nexus] madd0g:
A user from Canada while testing in Carloses old ROM thread said Fitbit One didn't show up as a BT device on 4.2.2.
[Samsung Galaxy Nexus] Stigy:
So if that's the case then that is REALLY good news.

I contacted Fitbit on Twitter to see if there was a beta app I can test to help push this along and get confirmation about Galaxy Nexus. Hoping to hear back, but honestly I doubt it at this point.
[Samsung Galaxy Nexus] betizad:
I used to connect to my car BT before using the updated BT4 library but now after it gets paired it says "connected (no phone)" and nothing plays since my xar BT does not detect a connected device.

Though I'm able to connect my home BT speaker and plays perfectly, also my sony smartwatch works great.

Can someone give some hint here?

BTW I see the Fitbit flex as "Quark" in the BLE sample application and some data is shown but I guess I have to wait for Fitbit to update their app.
[Samsung Galaxy Nexus] Stigy:
What app are you using to see the Quark string?

I don't see a device name in the BLEScanner app for my Fitbit One.
[Samsung Galaxy Nexus] dr0id99:
Having the same issue with it connecting to my car now also for handsfree. (dodge) in-case that matters. Anyone know of a fix for this?
[Samsung Galaxy Nexus] betizad:
I used the BLE sample application. BTW mine is fitbit flex and in the ble data I can see the manufacturers which is fitbit.
[Samsung Galaxy Nexus] Stigy:
Can you paste a screenshot? And a link to the APK you installed?

I don't see any manufacturers data in my scan at all.
[Samsung Galaxy Nexus] betizad:
I can't since I switched back to the original BT drivers. In had issues connecting to my BT in the car which is more important for me.

---------- Post added at 02:59 AM ---------- Previous post was at 02:54 AM ----------

Here's the apk I used. http://db.tt/m1BxFfcq
[Samsung Galaxy Nexus] betizad:
Here's the screenshot.
[Samsung Galaxy Nexus] GldRush98:
I thought you needed the new kernel to get BLE support. I don't think the current kernel will work.
[Samsung Galaxy Nexus] betizad:
Just take a look at the above screenshot. I know others have managed to connect heart rate monitors. It's just a matter of when does fitbit updates it's app.
[Samsung Galaxy Nexus] madd0g:
Less thinking, more proof.
[Samsung Galaxy Nexus] Carlos_Manuel:
LOL!

Kernel 3.4.x+ have nothing to do with BLE!

BLE changes are in external/blueroid/bluetooth/ and some are in frm/base/

So kernel does not need any BLE things to support BLE on Tuna and Grouper.. :good:
[Samsung Galaxy Nexus] wbedard:
Just wanted to say that these libraries now allow my Nexus 7 running Android 4.3 (of course...) to see my Misfit Shine, a BT LE device. BTScan also shows some info on a device, which I assume is also the Shine.

Now, if only Misfit would get on the ball in developing a proper Android app for their device. Great work in the meantime, though!

R/

wbedard
[Samsung Galaxy Nexus] lparcshinoda:
Could you provide a working cwm flashable zip for Grouper BLE? Thxalot

Inviato dal mio Galaxy Nexus
[Samsung Galaxy Nexus] betizad:
Bluetooth 2.1 not working

Has anyone had an issue with previously working Bluetooth devices (2.1 or 3.0) and not working with this updated package to 4.0?

I have an issue with my car audio BT which is 2.1/3.0 after using this update package. It gets connected but in bluetooth settings it tells "connected (no phone)" and on car audio it says disconnected and of course nothing plays through BT.

If I use the restore package everything goes back to normal (sure 4.0 devices are not detectable of course).

strangely enough I tried using CM10.2 nightlies and I never had any issues both for 4.0 and 2.1/3.0.

Since cm10.2 is still nightly and after using it for 4 days, I still prefer the stock which is much smoother and less battery hungry. Though I'm missing 4.0 Bluetooth, I'd want to see if anyone can help here.
[Samsung Galaxy Nexus] madd0g:
As I've surprisingly sold my Galaxy Nexus today, I'll leave this thread be. Hope you guys will be able to use BLE in coming BLE enabled apps :].
[Samsung Galaxy Nexus] wbedard:
Since I have a lot of experience with building/patching the Android operating system, I think I can take over maintaining this thread. I'll try to build these libraries from scratch and provide the flashable zips that were requested.

Hopefully, by the next major release of Android, we won't have to enable BLE compatibility through this approach!

R/

wbedard
[Samsung Galaxy Nexus] madd0g:
Excellent, I'll make sure to update post #1 when you'll release something
[Samsung Galaxy Nexus] wbedard:
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
[Samsung Galaxy Nexus] madd0g:
Great, thank you, I've updated first post :].
[Samsung Galaxy Nexus] lparcshinoda:
'

Both are breaking my Bluetooth software on tuna/grouper. Please post a REVERT package ASAP,

Thanks in advance

Inviato dal mio Nexus 7 usando Tapatalk 4
[Samsung Galaxy Nexus] jaizero:
Seems to be working fine on my GNex running AOSPA 3.99 and Golden Kernel. I used BLECheck and it says supported. Also my Motorola SF600 BT headphones work just fine too. :highfive:
[Samsung Galaxy Nexus] wbedard:
I think we need some add'l data points before I withdraw the post. The files work on my devices and there are posts showing that others are working correctly, also. However, I will update my post to include checksums for the files so that users can ensure that they weren't corrupted during download.

R/

wbedard
[Samsung Galaxy Nexus] lparcshinoda:
I tryed 3 times and there is no corruption... On stock 4.3 Y ROM bluetooth just isn't working anymore

Inviato dal mio Galaxy Nexus
[Samsung Galaxy Nexus] wbedard:
Hmmm, I don't have any way of knowing what might be causing the problem on your device. For my device(s), I have used these libraries (flashed from the provided zips) with both the factory images (JWR66Y) from Google as well as a couple of OTA-derived ROMs and it always seems to just work. BLE devices show as available and I haven't even had problems with the legacy (BT2/3) devices that were already paired at the time of install.

Sorry that these files didn't work for you!

R/

wbedard
[Samsung Galaxy Nexus] lparcshinoda:
I'll make more testing ASAP and let you know if it was a problem on my side - good to know it's working for others :laugh:

EDIT

OK I was wrong :P BLE libs working fine. Good work!
[Samsung Galaxy Nexus] inihccor:
I wanna try this mod. Can you make a revert zip?

Inviato dal mio Galaxy Nexus con Tapatalk 4
[Samsung Galaxy Nexus] wbedard:
Yes, I could create revert zips. However, if you're in a hurry and have root access, you can always use a root-enabled file manager or adb from an attached computer to backup/restore the relevant files. It's only 4 little files that get replaced and that's exactly how I applied maddog's original libraries.

I only offer this suggestion since I can't guarantee when the revert zips will be available. Also, this is a good project for an "enthusiast" to get in there and get their hands into the "guts" of their Android device.

R/

wbedard
[Samsung Galaxy Nexus] inihccor:
Nice answer, I'll try!

Inviato dal mio Galaxy Nexus con Tapatalk 4
[Samsung Galaxy Nexus] herby68:
hi friends

using an Galaxy S4 with jamals 4.3 google rom

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

is it possible to flash the zip on it?????

would be great for using my metawatch.

thx

Herby
[Samsung Galaxy Nexus] madd0g:
S4 should have BLE on 4.3 already.
[Samsung Galaxy Nexus] herby68:
ok.

but my metawatch say´s it hasn´t ????

is there an playstore app for checking this?

thx

Herby
[Samsung Galaxy Nexus] madd0g:
Says where ? In the metawatch app Android app ? If yes, then it probably needs to be updated to work with the 4.3 BLE API, try contacting the developers.
[Samsung Galaxy Nexus] herby68:
you can check this on the metawatch screen.....the watch supports BLE because on the iPhone 5 from my son it works with BLE ...you can see this on the display of the watch.

connected to my galaxy S4 there is BR in the display...that is normal BT connection .

The metawatch has an dual chip inside to work with all BT smartphone devices
[Samsung Galaxy Nexus] betizad:
I don't know what is different in the latest package but it works well with my galaxy nexus and all my Bluetooth devices work flawlessly. Even I see the fitbit flex data but needs to wait for the developer to update the app.
[Samsung Galaxy Nexus] normal42:
I've got the easy solution for your Flex.

Download Xposed Framework Installer, here.

Download MoDaCo Toolkit for Xposed, here.

Install Xposed and MoDaCo. Activate the MoDaCo Module in Xposed.

In MoDaCo go to General, System, Device properties, and change two settings.

Brand = samsung

Model = GT-I9505G

Reboot and enjoy.

What this does is it tricks the FitBit app into thinking your phone is a Google S4.

What this mean is all that it would take to get every 4.3 device with BT4 supported would be to add a lookup for those settings to the app in addition to the list of specific devices that are supported.

None of this was my work, it all came from the fitbit forums, here.
[Samsung Galaxy Nexus] betizad:
It's a pity that there is a work around for it but still fitbit has not updated their app.
[Samsung Galaxy Nexus] madd0g:
Guys with Fitbit hardware can try this out :

http://xdaforums.com/showthread.php?p=45870265

How to get your Nexus 4 sync working with Fitbit
[Samsung Galaxy Nexus] esezako:
Excuse me, i am a newbie.

How can i flash this files? I have a heart monitor with BLE.

Thanks
[Samsung Galaxy Nexus] esezako:
Can someone orient me?
[Samsung Galaxy Nexus] madd0g:
Flash in a custom recovery like CWM or TWRP.
[Samsung Galaxy Nexus] samumar82:
Hey nice work!

Can I flash the file on my Galaxy Nexus maguro (EU version)?

I'm running slimbean 4.3 build 1 with franco kernel #391 JSS15Q.

Thanks a lot!
[Samsung Galaxy Nexus] wbedard:
I don't have any experience with Slimbean but, since these are low-level hardware drivers, I doubt you should have any problems.

R/

wbedard
[Samsung Galaxy Nexus] samumar82:
Thanks a lot, will try!

Inviato dal mio Galaxy Nexus usando Tapatalk 4
[Samsung Galaxy Nexus] hanschke:
do I need it with cm mod?
[Samsung Galaxy Nexus] madd0g:
Probably it's already included in CM. Try it with BLE device.
[Samsung Galaxy Nexus] gorillabiscuit:
Page 3 has the modded APK so you don't have to futz with your buildprop... I'm syncing my Fitbit Flex with my Nexus... Toro.
[Samsung Galaxy Nexus] dimfish:
Welcome to my new thread [MOD][4.3+][1.8.1] Fitbit Mobile Sync Bluetooth 4.0 LE
[Samsung Galaxy Nexus] lordscipio:
Any way these libraries can be ported over to work with 4.4? I assume installing these with KitKat would mess stuff up right?
[Samsung Galaxy Nexus] Carlos_Manuel:
My ROM Dreams is based of AOSP and has BLE enabled. Maybe later I can make a fllash-able .zip for KK 4.4 ROMs on Nexus without BLE support.
[Samsung Galaxy Nexus] lordscipio:
Thanks for the response, I'm going to check out your ROM, been on Shiny ROM, it would be super awesome if you could make a generic flashable zip for KitKat BLE support. I'm sure a lot of others would be very thankful as well.
[Samsung Galaxy Nexus] Carlos_Manuel:
Np. I'll just build my ROM again and then I'll upload an flash-able .zip file of KK BLE support for Tuna
[Samsung Galaxy Nexus] krey:
BLE support for stock KitKat on manta plz
[Samsung Galaxy Nexus] lordscipio:
where you able to compile the zip? Thanks again!
[Samsung Galaxy Nexus] Carlos_Manuel:
I posted it here... but I deleted the link...

There's no need for that on KitKat because most of the KK ROMs for Nexus has the support for BLE
[Samsung Galaxy Nexus] wmb09:
Can I use it on Nexus 7 (2012) to use BT 4.0LE devieces? (I wnat to use SIGMA SPORT - BLUETOOTH R1 COMFORTEX - heart rate dev.)
[Samsung Galaxy Nexus] cicijay:
That zip would be very beneficial for those of us using stock KitKat on the Nexus 7 (2012) though :)
[Samsung Galaxy Nexus] Carlos_Manuel:
I don't really care about other nexus devices than Galaxy Nexus and older Nexus devices.

Nexus 7 need it's own BT files because Nexus's BLE files aren't good for N7, even if those could work on N7.
[Samsung Galaxy Nexus] amitabhr:
Deleted. Wrong Thread
[Samsung Galaxy Nexus] neo.quelhas:
4.4

Deleted. Wrong Thread
[Samsung Galaxy Nexus] amitabhr:
I tried flashing this to grouper nexus 7 2012 wifi running stock 4.4 kitkat.

Now I keep getting a continuous pop up saying "Bluetooth share has stopped"

Pressing Ok or Report has no effect, the pop up is there permanently and tablet can not be used till you flash it again.

Any ideas on what i can do to get BLE working on Grouper running Kitkat ?
[Samsung Galaxy Nexus] wbedard:
The libraries that I posted previously are not for KitKat. I haven't yet upgraded my 2012 Nexus 7 to KitKat but I should still be able to create the libraries on my Android build platform. They won't be tested my me but it's a pretty straightforward upgrade, provided the SELinux doesn't get in the way.

BTW, no ETA on when a build will be available but I will try to look into it this weekend.

R/

wbedard
[Samsung Galaxy Nexus] amitabhr:
Thanks !
[Samsung Galaxy Nexus] amitabhr:
Just in case some one else is searching for BLE on Nexus 7 - this ROM has a working BLE on 4.4 KitKat. It is almost Stock ROM called 'purity'.
[Samsung Galaxy Nexus] mipolg:
Hi,

does anyone know, if this also work on the nexus s?

I try to connect my nexus s to a mio alpha, but after installing your drivers there is no devie showing up.

Thanks in advance for help

Michael
[Samsung Galaxy Nexus] raven911:
Just wondering if you ever had a chance to do the Nexus 7 Kitkat Bluetooth LE library build. I guess the alternative is to install a custom ROM, but I'd prefer to stick with stock! Thanks !!
[Samsung Galaxy Nexus] wbedard:
I actually did try to build them right before the holidays but I encountered some problems. Since then, I finally upgraded my own Nexus 7 to kitkat, so I can test it once I do get them built.

I'll try again this weekend to get them built, tested and packaged up!

R/

wbedard
[Samsung Galaxy Nexus] wbedard:
OK, so I got the libraries built early in the week and have been testing them and everything looks good! Using my Nexus 7 (2012), updated to stock KitKat 4.4.2, my Misfit Shine does register with their app and it properly syncs data to the tablet.

I had some initial concerns since the Shine, which is a BT 4.0 LE device, shows up by name (i.e. "Shine") in the list of available Bluetooth devices under Android 4.3. However, using both a stock Nexus 5 and my patched Nexus 7 running 4.4.2, the Shine doesn't show up in the Android Bluetooth settings screen. The fact that it functions properly with the app means that it may just the way KitKat handles BT 4.0 LE devices, most of which don't require pairing like previous gen BT devices, and that similar devices (i.e. Fitbits, etc) will likely function properly with their apps, also.

I just wanted to put this out as the weekend approaches. I will do a bit more testing but plan on posting the build on Friday afternoon for people to play with.

R/

wbedard
[Samsung Galaxy Nexus] imfloflo:
@wbedard Thanks for the work on this will it be compatible/merge into CM11 ?
[Samsung Galaxy Nexus] wbedard:
The patch and initial idea came from Cyanogenmod...☺

All I've been doing is applying their patch to AOSP builds to support non-CM ROMs.

https://github.com/CyanogenMod/andr...mmit/f2a4cff785ba1070a4be342f2a86b00cd2248445
[Samsung Galaxy Nexus] wbedard:
[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
[Samsung Galaxy Nexus] hepi_hape:
sorry, What's BLE for ? its so nessecary ? thx dude
[Samsung Galaxy Nexus] pattyboi:):
bluetooth low energy,and as the name states,its low energy bluetooth.