Prerequisites

  • Android SDK installed with emulator and adb in PATH
  • An non-google-service Android Automotive AVD created (e.g., Automotive_1408p_landscape)

Steps

Boot emulator with writable system

  1. List available AVDs:
emulator -list-avds
  1. Start the emulator with a writable system image:
emulator -avd Automotive_1408p_landscape -writable-system
  1. Get root and remount:
adb root
adb remount

Modify make & model

  1. Pull the properties file:
adb pull /vendor/etc/automotive/vhalconfig/DefaultProperties.json .
  1. Edit DefaultProperties.json locally to change make/model (use your editor).
{
    "property": "VehicleProperty::INFO_MAKE",
    "defaultValue": {
        "stringValue": "Toyota"
    }
},
{
    "property": "VehicleProperty::INFO_MODEL",
    "defaultValue": {
        "stringValue": "Camry"
    }
},
  1. Push the modified file back to the device:
adb push DefaultProperties.json /vendor/etc/automotive/vhalconfig/DefaultProperties.json
  1. Reboot the emulator to apply changes:
adb reboot