# automotive-grade-linux/android_device_sodev_xenvm-cf architecture

> Architecture diagram of the GitHub repository automotive-grade-linux/android_device_sodev_xenvm-cf, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/automotive-grade-linux/android_device_sodev_xenvm-cf
- Repository: https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf

## Overview

This repository defines an additive Raspberry Pi 4 variant of the xenvm-trout Android Automotive guest. The documented workflow is to opt the repository into an AOSP checkout, select its lunch product, resolve the board’s Cortex-A72 ISA baseline, and build a guest image with the included init and SettingsProvider customizations. The graph follows README-documented relationships; no source excerpts were provided, so implementation details beyond those statements are omitted.

Main entry points: [`aosp_xenvm_trout_rpi4_arm64.mk`](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/aosp_xenvm_trout_rpi4_arm64.mk) (Raspberry Pi 4 product), [`AndroidProducts.mk`](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/AndroidProducts.mk) (Product choices), [`xenvm_trout_rpi4_arm64/BoardConfig.mk`](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/xenvm_trout_rpi4_arm64/BoardConfig.mk) (Pi 4 board config), [`init.xenvm-buried-eth0.rc`](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/init.xenvm-buried-eth0.rc) (Ethernet init config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_selection["Product selection"]
  node_product_index["Product choices<br/>[AndroidProducts.mk]"]
  node_product["Raspberry Pi 4 product"]
end

subgraph group_board["Board identity"]
  node_board_config["Pi 4 board config<br/>[BoardConfig.mk]"]
end

subgraph group_guest["Guest customizations"]
  node_init_config["Ethernet init config"]
  node_settings_defaults["Settings defaults<br/>[defaults.xml]"]
end

node_builder(("AOSP build user"))
node_upstream_product["Upstream trout product"]
node_upstream_board["Upstream board config"]
node_guest_image["AAOS guest image"]
node_rename_eth0["rename_eth0 service"]
node_settings_provider["SettingsProvider"]

node_builder -->|"selects lunch choice"| node_product_index
node_product_index -->|"declares product"| node_product
node_product -->|"inherits"| node_upstream_product
node_product -->|"selects device config"| node_board_config
node_board_config -->|"includes"| node_upstream_board
node_builder -->|"builds"| node_guest_image
node_product -->|"configures"| node_guest_image
node_product -->|"installs"| node_init_config
node_product -->|"installs overlay"| node_settings_defaults
node_init_config -->|"starts"| node_rename_eth0
node_settings_defaults -->|"sets defaults for"| node_settings_provider

click node_product_index "https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/AndroidProducts.mk"
click node_product "https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/aosp_xenvm_trout_rpi4_arm64.mk"
click node_board_config "https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/xenvm_trout_rpi4_arm64/BoardConfig.mk"
click node_init_config "https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/init.xenvm-buried-eth0.rc"
click node_settings_defaults "https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_product_index,node_product,node_builder toneBlue
class node_board_config toneAmber
class node_init_config,node_settings_defaults toneMint
class node_upstream_product,node_upstream_board,node_guest_image,node_rename_eth0,node_settings_provider toneIndigo
```

## Components

### Product selection

- [Product choices](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/AndroidProducts.mk): `AndroidProducts.mk`
- [Raspberry Pi 4 product](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/aosp_xenvm_trout_rpi4_arm64.mk): `aosp_xenvm_trout_rpi4_arm64.mk`

### Board identity

- [Pi 4 board config](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/xenvm_trout_rpi4_arm64/BoardConfig.mk): `xenvm_trout_rpi4_arm64/BoardConfig.mk`

### Guest customizations

- [Ethernet init config](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/init.xenvm-buried-eth0.rc): `init.xenvm-buried-eth0.rc`
- [Settings defaults](https://github.com/automotive-grade-linux/android_device_sodev_xenvm-cf/blob/main/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml): `overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml`

### Other components

- **AOSP build user**
- **Upstream trout product**
- **Upstream board config**
- **AAOS guest image**
- **rename_eth0 service**
- **SettingsProvider**

## Connections

- AOSP build user → Product choices: selects lunch choice (evidence: `README.md`)
- Product choices → Raspberry Pi 4 product: declares product (evidence: `README.md`)
- Raspberry Pi 4 product → Upstream trout product: inherits (evidence: `README.md`)
- Raspberry Pi 4 product → Pi 4 board config: selects device config (evidence: `README.md`)
- Pi 4 board config → Upstream board config: includes (evidence: `README.md`)
- AOSP build user → AAOS guest image: builds (evidence: `README.md`)
- Raspberry Pi 4 product → AAOS guest image: configures (evidence: `README.md`)
- Raspberry Pi 4 product → Ethernet init config: installs (evidence: `README.md`)
- Raspberry Pi 4 product → Settings defaults: installs overlay (evidence: `README.md`)
- Ethernet init config → rename_eth0 service: starts (evidence: `README.md`)
- Settings defaults → SettingsProvider: sets defaults for (evidence: `README.md`)
