Hi Sir,
I am working on AOSP version 9.0 and using iMX8M Mini EVK development Kit and developing a android application which will use my custom system service to access HAL functionality.
I am able to create custom system service in AOSP framework and able to use it from from my Android App.
but while interfacing JNI layer and HIDL layer I am facing issue.
I am following below link for creating my custom HIDL and trying to access it from JNI layer -
https://devarea.com/android-hidl-and-project-treble/#.XZMirXUzY8o
and
https://www.jianshu.com/p/ca6823b897b5
I am also following the Light Example from AOSP to create my own custom HIDL and JNI layer.
AOSP File Path =>
JNI -> com_android_server_lights_LightsService.cpp << framework/base/services/core/jni >>
HIDL -> Light.cpp / Light.h / ILight.Hal << hardware/interfaces/light >>
I am Successfully able to build the JNI layer and HIDL layer separately but i am not able to access HIDL from my JNI layer code. I am trying to use Binderized Mode as shown in above links and in AOSP Light Example.
After successfully compiling the AOSP code when i try to run it on iMX8M EVK it is not booting and when i checked the logcat it is waiting for my HIDL service. Boot is getting stuck at android logo itself.
Please Suggest how can I use HIDL in Pass through or Binderized Mode and access it from my JNI code.
NOTE : I am referring above mentioned link and AOSP Light Example for creating my JNI and HIDL code.
Thanks,
Maneesh
Dear Maneesh Singh,
Hi Vinoth,
We are trying to use CAN on imx8qxp board (Android Automotive 12.1.0_1.1.0) but we cannot see the CAN interface.
We have tried to update the flexcan in dts files. But we are getting following logs in kernel logs:
can_stby : disabling
can_en : disabling
Could you please support?
Hi Vinothkumar,
For JNI to work you need complete framework in place like system service, JNI, HIDL, HAL etc.
I am still working on it and will update you once I will made any progress.
Thanks,
Maneesh
Thank you Maneesh,
Which communication are you using for Vehicle HAL and Vehicle Driver and How you are verify the data pass from Vehicle Driver to HAL ?
Regards,
VinothS
I am looking at can communication from vehicle HAL up to the application layer in android automotive? Any idea about this?
Also, can u share implementation for the same?
Regards,
Ramesh
Hi Ramesh
Share your mail Id and information about your board and android version.
Thanks,
Vinoth S,
Hi vinothkumars,
Thank you.
Working on Android 10 latest nxp automotive release on the IMX8 QXPMEK board.
Any open-source implementation and documents for this Share the links to this email id - shriyanayak1992@gmail.com
Regards,
Ramesh
Hi Ramesh,
I am also looking into communication from vehicle HAL up to the application layer in android automotive?
Do you have any example code to start wtih.
Thanks
Hello,
This question is more related to how the Android USB HAL interface with the Android framework. I highly suggest you to ask your question on the Google support page. They could help you and have a better understanding of this problem.
Community forum - Android Help
I apologize for the inconvenience this could give you.
Best regards,
Diego.