commit | 1c951aa6219ee56ee4c0ee109c43bd9113069c4e | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Dec 13 11:15:24 2024 -0800 |
committer | Xin Li <delphij@google.com> | Fri Dec 13 11:15:24 2024 -0800 |
tree | 30d0e8752f74412c4a57ee47eb067fb8f65e6cc1 | |
parent | 274af33df82e57693cad2eb90c2f9718a849b214 [diff] | |
parent | 8fac6d0e54e28f768bb74b71c5e923cc3ea1d76c [diff] |
Merge 24Q4 into AOSP main Bug: 370570306 Merged-In: I5bb6e3944c908659a9dc385402b6765ab0ad4eb9 Change-Id: I7e94556b3de05ef023915f5c5e9fa857e8bf9049
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>