Google is committed to advancing racial equity for Black communities. See how.

Pixel 3 XL and Pixel 4 XL as Development Platforms

The Automotive partner teams who develop front-end software need a Google-supported hardware platform on which to develop apps and user experiences. The Pixel 3 XL and Pixel 4 XL are provided for these purposes.

Caveats

These limitations apply when using a Pixel 3 XL or Pixel 4 XL as a development platform:

  • Only the Pixel 3 XL and Pixel 4 XL are supported. To learn more about the Pixel 4 XL, visit the Google Store.

  • You must use Android 10, build QQ3A.200705.002.

  • Support is not provided for All Bluetooth profiles.

Prerequisites

Before you continue, confirm you have the following items:

  1. OEM unlocking is required. Use either an unlocked Pixel 3 XL or Pixel 4 XL.
  2. Linux desktop capable of building Android code. For more information, see Establishing a Build Environment.

Code sync and build

  1. To sync Android build QQ3A.200705.002:
    mkdir aaos_on_phone
    cd aaos_on_phone
    repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r40 --partial-clone
    repo sync -j4 -c -q
    
  2. Download the proprietary binaries and patches.
    1. Pixel 3 XL. Download the Pixel 3 XL binaries, such as the vendor image and Qualcomm drivers for Android 10, build QQ3A.200705.002:
      curl --output - https://dl.google.com/dl/android/aosp/google_devices-crosshatch-qq3a.200705.002-f3cb7253.tgz  | tar -xzvf -
      tail -n +315 extract-google_devices-crosshatch.sh | tar -zxvf -
      
      curl --output - https://dl.google.com/dl/android/aosp/qcom-crosshatch-qq3a.200705.002-3c07d5f2.tgz | tar -xzvf -
      tail -n +315 extract-qcom-crosshatch.sh | tar -xzvf -
      
    2. Pixel 4 XL. Download the Pixel 4 XL binaries, such as the vendor image and Qualcomm drivers for Android 10, build QQ3A.200705.002:
      curl --output - https://dl.google.com/dl/android/aosp/google_devices-coral-qq3a.200705.002-8c59c992.tgz  | tar -xzvf -
      tail -n +315 extract-google_devices-coral.sh | tar -zxvf -
      
      curl --output - https://dl.google.com/dl/android/aosp/qcom-coral-qq3a.200705.002-316d4246.tgz | tar -xzvf -
      tail -n +315 extract-qcom-coral.sh | tar -xzvf -
      
  3. Run the build. Be sure to replace <target> in the following example with either aosp_coral_car or aosp_crosshatch_car:
    . build/envsetup.sh
    lunch <target>
    m
    
  4. Build the Automotive-related packages:
    m android.hardware.automotive.audiocontrol@1.0-service android.hardware.automotive.vehicle@2.0-service
    

Set up the device to flash the build

If you haven't already done so, enable Developer options. Go to Settings > System > About Phone and then tap Build Number seven times.

When you've enabled Developer options:

  1. Go to Settings > System > Developer options and enable USB debugging and OEM unlocking:
USB bebugging OEM unlocking

Flash the build

  1. To place the device into fastboot mode and then unlock it:
    adb reboot bootloader
    fastboot flashing unlock
    
  2. On the device, select Unload the Bootloader. Doing so erases all data on the device!
  3. To flash the build:
    fastboot -w flashall
    
  4. After the build boots and the Home screen is displayed:
    1. To enable adb remount:
      adb root && sleep 1 && adb disable-verity && sleep 1 && adb reboot && adb wait-for-device root && sleep 1 &&  adb remount
      
    2. To push the required Automotive-specific files to the device:
      adb sync vendor
      adb reboot
      
    3. Wait for the device to start: