Skip to content

Heydarchi/AIDL-HAL-Service

Repository files navigation

AIDL-HAL-Service

An example of how to develop an AIDL HAL service in AOSP


This repo will show how you can:

Article: How to communicate through AIDL to a HAL service – Part 1

- Implement an AIDL interface --> Merged

Article : How to implement the AIDL interface

- Implement A HAL service(daemon) based on the AIDL interface --> Merged

Article : How To Add An AIDL HAL Service (daemon)

- Develop an application communicating through the AIDL interface with the HAL service(daemon) --> Merged


Building AOSP

If you havn't cloned and set up AOSP locally you can read the article below:

How to build AOSP

Screenshots

App Icon in the emulator

App is running

Logs from Logcat before running the app

Logs from Logcat after running the app

TODO

Diagram Image Link

Sequence Image Link

Implementation

Tasks related to new content.

  • Implment a damon with C++
  • Implment an Android app
  • Add SELinux policies
  • Add required build configurations
  • Add linkToDeath mechanism
  • Implment a new damon with Rust

Docs

  • Add AospInsigth post links
  • Add screenshots
  • Add the Project structure
  • Explain the Binder structure
  • Explain the different Binders in AOSP

About

An example of how to develop an AIDL HAL service in AOSP

Resources

License

Stars

Watchers

Forks

Packages

No packages published