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#
- List available AVDs:
- Start the emulator with a writable system image:
emulator -avd Automotive_1408p_landscape -writable-system
- Get root and remount:
Modify make & model#
- Pull the properties file:
adb pull /vendor/etc/automotive/vhalconfig/DefaultProperties.json .
- 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"
}
},
- Push the modified file back to the device:
adb push DefaultProperties.json /vendor/etc/automotive/vhalconfig/DefaultProperties.json
- Reboot the emulator to apply changes: