how to access HAL layer

438 views
Skip to first unread message

Torsten Robitzki

unread,
Jan 29, 2016, 10:25:18 AM1/29/16
to android-ndk
Hello,
I'm quite new to android development. My task at hand is, to access a certain function in the Bluetooth HAL layer (defined in hardware/libhardware/include/hardware/bluetooth.h). I've managed so far, to compile/link a cpp file to a shared object and to load that shared object into my Android Java App on a test phone. The required header (bluetooth.h) is not installed with the NDK, so now I wonder, what is the correct way to get the required libraries and headers to build a shared object against the Android HAL?

Thanks in advance and kind regards,

Torsten

Prashanthi Shivapooja

unread,
Jan 29, 2016, 10:35:38 AM1/29/16
to andro...@googlegroups.com

Hi,

Did u get libbluetooth.so file check date and time of build.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.

Glenn Kasten

unread,
Jan 30, 2016, 10:56:06 AM1/30/16
to android-ndk
HAL is an internal platform API, not an NDI API for apps.
You can only use HAL if you are building the platform.


On Friday, January 29, 2016 at 7:35:38 AM UTC-8, Pooja wrote:

Hi,

Did u get libbluetooth.so file check date and time of build.

On 29 Jan 2016 20:55, "Torsten Robitzki" <torsten....@gmail.com> wrote:
Hello,
I'm quite new to android development. My task at hand is, to access a certain function in the Bluetooth HAL layer (defined in hardware/libhardware/include/hardware/bluetooth.h). I've managed so far, to compile/link a cpp file to a shared object and to load that shared object into my Android Java App on a test phone. The required header (bluetooth.h) is not installed with the NDK, so now I wonder, what is the correct way to get the required libraries and headers to build a shared object against the Android HAL?

Thanks in advance and kind regards,

Torsten

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.

Torsten Robitzki

unread,
Feb 1, 2016, 10:49:44 AM2/1/16
to android-ndk
Hi Glenn, Hi Pooja,
now, if managed to build against the HAL, by getting the sources (for the headers) and by extracting the needed shared objected from my test phone.

cheers,
Torsten
Reply all
Reply to author
Forward
0 new messages