Migrate from AAOS 26Q2 to 26Q4

This page explains how to upgrade Android Automotive OS (AAOS) software-defined vehicle (SDV) source checkouts, Cuttlefish build and flashing scripts, Health Monitor configurations, and service bundles from Android 17 (AAOS 26Q2) to Android 17 QPR2 (AAOS 26Q4). For more information about new features in this release, see Android Automotive 26Q4.

Check your checkout version

Run the following command from the root of your AOSP checkout to confirm whether your workspace targets Android 17 QPR2 or Android 17:

PROTO=system/software_defined_vehicle/vsidl/language/src/protos/sdv/vsidl/v1/syntax.proto
if [ ! -f "$PROTO" ]; then
  echo "syntax.proto not found; run from your AOSP checkout root" >&2
  false
elif grep -Eq "repeated[[:space:]]+Apex[[:space:]]+apex" "$PROTO"; then
  echo "26Q4 or higher"
else
  echo "26Q2"
fi

If syntax.proto defines repeated Apex apex (alongside Host system graph fields) on VsidlEntry, your checkout includes the Android 17 QPR2 VSIDL system graph and platform updates.

Backward compatibility for existing bundles

Service bundles authored manually for Android 17 using Android.bp, sdv_service_bundles_manifest.textproto, permissions.textproto, health_config.proto textproto files, and generated libsdv_mw_clientlib middleware compile and run unchanged on Android 17 QPR2. Original equipment manufacturers (OEMs) and Tier-1 suppliers can upgrade their OS and Cuttlefish baseline first, then adopt the VSIDL system graph incrementally per service bundle.

Verify the following runtime and SDK changes before running existing bundles on Android 17 QPR2:

  • Default PermissionsOnly authorization: Runtime communication authorization defaults to PermissionsOnly instead of Lenient. Service bundles with missing policy files or legacy ACL-only configurations are denied at run time unless you package a valid permissions.textproto file or set sdv.authz.enable=acls_only during migration. For more information, see SDV communications authorization overview.
  • APEX symlink boundary and SPIFFE prefix checks: Service bundle validation unconditionally rejects symbolic links that escape the Android Pony EXpress (APEX) root directory. When the default-disabled com.android.sdv.middleware.flags.spiffe_id aconfig flag is enabled, SPIFFE identity validation also rejects reserved com.android.sdv.sys. and sui. package prefixes across all validated service bundles. For more information, see Service bundle identity.
  • IVI telemetry permission flag: On In-Vehicle Infotainment (IVI) targets, SDV Telemetry enforces the com.android.sdv.telemetry.permission.USE_SDV_TELEMETRY_SERVICE permission only when the default-disabled com.android.sdv.telemetry.flags.telemetry_permission_enabled aconfig flag is enabled. SDV Core service bundles aren't affected. For more information, see AAOS SDV telemetry overview.
  • Low-level C++ libsdv_comms_cpp SDK updates: Direct C++ callers of libsdv_comms_cpp must migrate from Context::CreateForTest (returning Context) to Context::Create(fqin) (returning SdvResult<Context>). Replace <sdv/sd_lookup.hpp> and static dt/sd factory methods with sdv_comms::SdvComms and GetSdvComms(fqin) in <sdv/sdv_comms.hpp>. Remove calls to the deleted Async and Future C++ wrappers. Service bundles that use generated VSIDL middleware (libsdv_mw_clientlib) aren't affected.

Mandatory OS and build-script updates

When moving build pipelines, Cuttlefish launch scripts, and system images from Android 17 to Android 17 QPR2, update product targets, custom partition paths, agent paths, and Health Monitor startup timeout properties as summarized in the following table.

Area Android 17 (AAOS 26Q2) Android 17 QPR2 (AAOS 26Q4)
SDV Core lunch targets sdv_core_cf-aosp_current-userdebug, sdv_core_arm64-aosp_current-userdebug, sdv_core_perf_cf-aosp_current-userdebug, sdv_core_tiny_cf-aosp_current-userdebug aosp_cf_x86_64_sdv_core-aosp_current-userdebug, aosp_cf_arm64_sdv_core-aosp_current-userdebug, aosp_cf_x86_64_sdv_core_perf-aosp_current-userdebug, aosp_cf_x86_64_sdv_core_tiny-aosp_current-userdebug. For more information, see Download, build, and run.
SDV Media and HAR lunch targets Separate sdv_media_cf-aosp_current-userdebug and sdv_media_har_cf-aosp_current-userdebug (sdv_media_arm64 and sdv_media_har_arm64 on ARM64) Unified into aosp_cf_x86_64_sdv_media-aosp_current-userdebug and aosp_cf_arm64_sdv_media-aosp_current-userdebug with high availability renderer (HAR) support included. sdv_media_har_cf remains as a deprecated wrapper, while sdv_media_har_arm64 is removed. For more information, see Get started with Display Safety.
SDV IVI lunch targets sdv_ivi_cf-aosp_current-userdebug and separate sdv_ivi_cf_ds-aosp_current-userdebug (sdv_ivi_arm64-aosp_current-userdebug and sdv_ivi_arm64_ds-aosp_current-userdebug on ARM64) sdv_ivi_cf-aosp_current-userdebug and sdv_ivi_arm64-aosp_current-userdebug as primary IVI targets with Display Safety included. Transitional aosp_cf_x86_64_auto_sdv and aosp_cf_arm64_auto_sdv aliases are also available, while sdv_ivi_cf_ds and sdv_ivi_arm64_ds remain only as deprecated wrappers.
OEM A/B partition images Single sparse image passed twice with --custom_partition_path="$OUT/oem_ab.img;$OUT/oem_ab.img;$OUT/oem_ab_metadata.img" Two non-sparse 64 MiB f2fs slot images plus 1 MiB ext4 metadata passed with --custom_partition_path="$OUT/oem_ab_a.img;$OUT/oem_ab_b.img;$OUT/oem_ab_metadata.img". For more information, see OEM AB partition updates.
SDV Gateway on IVI libsdvgatewayclient routes requests through the intermediate sdv_gateway daemon sdv_gateway daemon is removed; libsdvgatewayclient connects directly to IVI communication agents. For more information, see Use the SDV Gateway on IVI.
Core SDV agent partition Core SDV agents installed under /system_ext Core SDV agents migrated from /system_ext to /system (sdv_diagnostics_agent remains under /product/bin/ and sdv_someip_stack_agent remains under /vendor/bin/). Update hardcoded script, SELinux, or test binary paths for core agents.
Health Monitor startup timeout Global ro.boot.sdv.health_monitor.agent_startup_timeout_sec property (mapped from androidboot.sdv.health_monitor.agent_startup_timeout_sec) alongside HealthMonitorConfiguration (health_monitor_config.proto) at ro.sdv.health_monitor.config_path ro.boot.sdv.health_monitor.agent_startup_timeout_sec is removed. Set per-agent binder_timeout_ms (default 3,000 ms) on BinderServiceAgent in HealthMonitorConfiguration at ro.sdv.health_monitor.config_path. For more information, see Health monitoring.

Migrate Health Monitor startup timeouts

If your virtual machine (VM) overrides agent startup timeouts or maintains shared branches across both releases, compare the per-VM Health Monitor configurations for each release:

AAOS 26Q4

Remove androidboot.sdv.health_monitor.agent_startup_timeout_sec (which Android init exposes as ro.boot.sdv.health_monitor.agent_startup_timeout_sec) from BOARD_BOOTCONFIG and board property files. Configure binder_timeout_ms (default 3,000 ms when omitted) per monitored_agent in the HealthMonitorConfiguration textproto file (health_monitor_config.proto) referenced by ro.sdv.health_monitor.config_path (or dynamically overridden with persist.sdv.health_monitor.config_path):

period_ms: 100
monitored_agent {
  agent_name: "sdv_dt_agent"
  binder_interface_name: "google.sdv.data_tunnel.IAgentService/default"
  binder_timeout_ms: 3000
}
monitored_agent {
  agent_name: "sdv_rpc_agent"
  binder_interface_name: "google.sdv.rpc.IRpcAgent/default"
  binder_timeout_ms: 5000
}

AAOS 26Q2

On branches pinned to Android 17, retain the HealthMonitorConfiguration textproto file (health_monitor_config.proto) referenced by ro.sdv.health_monitor.config_path (or overridden with persist.sdv.health_monitor.config_path) and set the global startup timeout through androidboot.sdv.health_monitor.agent_startup_timeout_sec in BOARD_BOOTCONFIG (exposed at run time as ro.boot.sdv.health_monitor.agent_startup_timeout_sec):

period_ms: 100
monitored_agent {
  agent_name: "sdv_dt_agent"
  binder_interface_name: "google.sdv.data_tunnel.IAgentService/default"
}
monitored_agent {
  agent_name: "sdv_rpc_agent"
  binder_interface_name: "google.sdv.rpc.IRpcAgent/default"
}

For more information, see Health monitoring.

Incremental migration to the VSIDL system graph

In Android 17 QPR2, you can replace manual per-bundle packaging and configuration boilerplate with declarative apex and host blocks in VSIDL files. When vsidlc compiles a system graph, it validates system-graph structural rules E40F through E421 alongside related E1xx, E2xx, E3xx, E5xx, and E6xx checks (inspectable with vsidlc --explain <CODE>, such as vsidlc --explain E41F) and writes generated Soong modules and configurations under <output>/generated/.

The following table maps each manual Android 17 artifact to its Android 17 QPR2 system graph equivalent.

Workflow or artifact Android 17 manual workflow Android 17 QPR2 VSIDL system graph
APEX packaging and bundle manifest Manual Android.bp, apex_manifest.json, and sdv_service_bundles_manifest.textproto apex { service_bundle_manifest { ... } } in VSIDL generating build targets under <output>/generated/apex/, with native_library for custom C++ or Rust Soong targets. For more information, see Define the system graph and Service bundle metadata.
Authorization policy Handwritten configs/permissions.textproto Least-privilege permissions.textproto auto-generated from declared service_bundle units, with authz { src: "..." } for custom policy overrides. For more information, see Authorization policy.
Lifecycle orchestration Handwritten per-bundle and per-VM orchestrator textproto files host { vm { orchestration { ... } instance { ... } } } in VSIDL; custom modes continue to use manual files referenced with orchestration { src: "..." }. For more information, see Configure the Orchestrator.
Health and QoS monitoring Handwritten health textproto files instance { health { ... } qos { ... } } in VSIDL; compiler check E41F requires bundles with instance.health to declare a com.android.sdv.health.ServiceHeartbeat publisher. For more information, see Health monitoring.
SOME/IP runtime configuration Separate vsidl_rc_generator build rule alongside some_ip_mapping vsidl_rc_generator integrated into vsidlc, packaging someip-config.binpb and vsidl-config.binpb into the APEX. For more information, see Integrate SOME/IP with SDV.
Handwritten Rust code services/<Bundle>/src/main.rs copied outside the vsidlc output directory vsidlc --services isolates modifiable code in <output>/hwc/services/<package_path>/<Bundle>/src/main.rs (or a custom directory passed with --hwc <dir>) while writing generated rules under <output>/generated/services/. For more information, see Implement business logic.
Inner-loop deployment Bump APEX version, push to /data/mydir/, and stage through sdv_update_manager_client On aosp_cf_x86_64_sdv_core and aosp_cf_arm64_sdv_core userdebug builds, run adb root && adb remount -R once, then push rebuilt APEX files directly to /product/apex/ and run adb reboot to activate changes without re-staging through Update Manager. You can also deploy directly from Android Studio for Platform. For more information, see Fast service bundle updates during development and Set up an IDE for SDV development.

For more information about defining apex and host blocks, see Define the system graph and Build and deploy service bundles.