README.md
1# Rust Skeleton EVS HAL implementation.
2
3WARNING: This is not a reference EVS HAL implementation and therefore does not
4provide any actual functionality.
5
6This folder contains a skeleton EVS HAL implementation in Rust to demonstrate
7how vendors could implement their EVS HAL in Rust. To compile and run this
8implementation, please include below package to the device build script:
9
10* `android.hardware.automotive.evs-aidl-rust-service`
11
12Please note that this service will attempt to register the service as
13`IEvsEnumerator/rust/0` and therefore is also required to be declared in the
14service context by adding below line to a proper `service_contexts` file:
15
16> android.hardware.automotive.evs.IEvsEnumerator/rust/0 u:object_r:hal_evs_service:s0
17
18This implementation intentionally returns `binder::StatusCode::UNKNOWN_ERROR`
19for any API call except deprecated API for ultrasonics; the process will be
20panicked on these methods instead. Hence, this implementation does not comply
21with VTS tests and vendors must replace each method with actual implementation.
22