Code location

This page describes the structure and how to access the source code.

Source code access

Initialize your repo client using the android-latest-release manifest branch:

repo init -u https://android.googlesource.com/platform/manifest -b android-latest-release
repo sync -c -j8

A standard repo init command without a -g filter syncs all AAOS SDV repositories automatically. If your workflow restricts manifest groups with -g, pass -g default,swcar so the SDV repositories are included.

To pin a checkout to Android 17, pass -b android17-release (or tag android-17.0.0_r1) to repo init. For more information about setting up repo, see Download the Android source.

PDK and source

See the complete list of SDV source code here:

  • /system/software_defined_vehicle/platform contains specific libraries and wrappers related to built-in development: log, trace, and time synchronization.
  • /system/software_defined_vehicle/automotive_services contains the Automotive-specific services: diagnostics, configuration, calibration, vehicle mode, and user profile.
  • /system/software_defined_vehicle/vsidl and /system/software_defined_vehicle/middleware contain the VSIDL and middleware functionality.
  • /system/software_defined_vehicle/update_manager contains the Update Manager functionality.
  • /system/software_defined_vehicle/sdv_gateway contains the SDV Gateway for integration with IVI (in Android 17 QPR2 and higher, libsdvgatewayclient connects directly to SDV agents without a separate sdv_gateway daemon).
  • /system/software_defined_vehicle/telemetry contains the Telemetry source code.
  • /system/software_defined_vehicle/samples contains samples you can start with and run.
  • /device/google/sdv_display_safety contains the build targets for display safety. The code is located in /packages/services/display_safety/ and /packages/apps/Car/DriverUI.

Lunch targets

SDV lunch targets reside in /device/google/sdv and /device/google/sdv_display_safety (aosp_cf_*_sdv_* and sdv_ivi_* in Android 17 QPR2 and higher, or sdv_*_cf and sdv_*_arm64 in Android 17). SDV also uses AOSP components, including Binder. For more information about selecting and building targets, see Download, build, and run.