Return-Path: Date: Fri, 3 Jan 2014 13:55:20 +0200 From: Andrei Emeltchenko To: bill dr Cc: Luiz Augusto von Dentz , "linux-bluetooth@vger.kernel.org" Subject: Re: BLE for Android Message-ID: <20140103115518.GC9809@aemeltch-MOBL1> References: <20140103110209.GB9809@aemeltch-MOBL1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Bilel, On Fri, Jan 03, 2014 at 12:39:04PM +0100, bill dr wrote: > Hi all, > Thank you Luiz and Andrei for your responses. > > @Andrei : I am aware that the latest android version supports "as best > as it can" BLE. But I have a constaint to use 4.1 Android only. > > > That lead us to my second question : what should I do to add such support ? > > If I have understood correctly the HAL Bluetooth (in Bluez package) is > different from Android HAL. There is no Bluetooth HAL in Android 4.1, HAL appeared when Android moved to Bluedroid stack in version 4.2. > so to have BLE support in Android 4.1 I have to: > > 1- Adding the last Bluez package and compile it. > 2- make changes to Android Bluetooth HAL or just add a JNI interface > wrapping the Bluetooth HAL one ? > 3- make changes to system service to support BLE. > 4- make changes to Android SDK to export these changes to developpers. Looks too much work for nothing. > Is it correct ? is there more straightforward way ? > especially about the second point and the confusion between Bluetooth > HAL and Android HAL. Forget about HAL, hack JNI .... Best regards Andrei Emeltchenko