NOTE: car-lib directory will be replaced with car-lib-module.
This directory contains Car services API. All the vendor or app code should use the API defined here. The APIs also released to the final Android Automotive OS SDK as part of the Android SDK. The actual services implementation are located under packages/services/Car/service
.
Some vendor services use AIDL/HIDL interfaces located in hardware/interfaces/automotive/
and frameworks/hardware/interfaces/automotive/
, see https://source.android.com/devices/architecture/hidl/interfaces to learn more.
Car API documentation is available at https://developer.android.com/reference/android/car/packages. See https://source.android.com/devices/automotive to learn how to use AAOS SDK.
api/ - Generated API signature src/ android/car/ - All the available Car API Car.java - Top level Car API *.aidl - Internal AIDL declarations com/android/car/internal - Internal helper classes used in Car API
src/android/car/...
p/s/Car/service/
dump()
method for access the state of the service using adb shell dumpsys car_service --services <CLASS_NAME>
EmbeddedKitchenSinkApp
for exercising the API manuallyp/s/Car/service/.../CarShellCommand.java
for adb shell cmd car_service
, it's useful for debuggingp/s/Car/tests/
, see the tests/README.md
to learn where to add the testsm android.car-stubs-docs-update-current-api
m android.car-system-stubs-docs-update-current-api
m android.car-test-stubs-docs-update-current-api