commit | 2501a024c736d350728df461c8bad821ab1123ea | [log] [tgz] |
---|---|---|
author | Rui Qiu <ruiqiu@google.com> | Thu Dec 01 00:55:06 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 01 00:55:06 2022 +0000 |
tree | fca30f4ab6d036f6133f44a96f985cedb380c979 | |
parent | 2ab7c54e29055ca48540a1fb982c29334db86fda [diff] | |
parent | dae4207497f982ed6adaa0127fc412fb961170d7 [diff] |
[automerger skipped] Merge changes Ib40a0ce8,Ibb53d182 into tm-qpr-dev am: c3ac8d4f1f am: dae4207497 -s ours am skip reason: Merged-In Ib40a0ce823dc6e9626a0e862b94bc2061de922cb with SHA-1 63397f4235 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/services/Car/+/20593370 Change-Id: I384686bd7ea1ac470d23f7167628ffa357fdfc9c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Source code for Android Automotive OS.
car_product/ - AAOS product car-builtin-lib/ - A helper library for CarService to access hidden framework APIs car-lib/ - Car API car-lib-module/ - Car API module cpp/ - Native services experimental/ - Experimental Car API and services packages/ - Apps and services for cars service/ - Car service module service-builint - Platform builtin component that runs CarService module tests/ - Tests and sample apps tools/ - Helper scripts
Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo
tool. To run manually, use:
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.
Dumpsys and car shell can be useful when debugging CarService integration issues.
adb shell dumpsys car_service # to dump all car service information adb shell dumpsys car_service --services [service name] # to dump a specific service information adb shell dumpsys car_service --list # get list of available services
Dumpsys for CarService includes the following (more information is availble in dumpsys, below are just highlights):
adb shell cmd car_service
CarService supports commands via car shell:
(list is not complete, run adb shell cmd car_service -h for more details)
Start Garage mode
adb shell cmd car_service garage-mode on
Finish Garage mode
adb shell cmd car_service garage-mode on
Get Garage mode status
adb shell cmd car_service garage-mode query
Change Garage mode max duration (only eng and debug builds)
adb shell setprop android.car.garagemodeduration <seconds>