# maurice-playground/android_vendor_xiaomi_spes architecture

> Architecture diagram of the GitHub repository maurice-playground/android_vendor_xiaomi_spes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maurice-playground/android_vendor_xiaomi_spes
- Repository: https://github.com/maurice-playground/android_vendor_xiaomi_spes

## Overview

This repository is an Android vendor-proprietary integration payload, not an application with visible source code. Its artifacts indicate telephony/IMS, device-power management, hotword enrollment, and device/power-alarm capabilities. The tree and empty README identify what is shipped, but no source excerpts establish runtime callers, data flow, or service wiring; the graph therefore records components without inferring connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_telephony["Telephony and IMS"]
  node_qti_telephony["QTI telephony service"]
  node_qcril_tunnel["QCRIL message tunnel<br/>[qcrilmsgtunnel.apk]"]
  node_ims_app["IMS service<br/>[ims.apk]"]
  node_telephony_framework["Telephony and IMS libraries"]
  node_telephony_config["Telephony permissions and config"]
end

subgraph group_power["Power and Device"]
  node_dpm_daemon["DPM daemon"]
  node_dpm_service["DPM service app<br/>[dpmserviceapp.apk]"]
  node_dpm_framework["DPM framework APIs"]
  node_dpm_api["DPM API library<br/>[dpmapi.jar]"]
  node_dpm_config["DPM configuration<br/>[dpm.conf]"]
  node_dpm_init["DPM init configuration<br/>[dpmd.rc]"]
  node_power_alarm_product["Power-off alarm<br/>[PowerOffAlarm.apk]"]
  node_power_alarm_ext["Power-off alarm<br/>[PowerOffAlarm.apk]"]
  node_device_info["Device information<br/>[DeviceInfo.apk]"]
end

subgraph group_audio["Audio and Hotword"]
  node_audio_sphere["AudioSphere library<br/>[audiosphere.jar]"]
  node_hotword_ok["OK Google enrollment"]
  node_hotword_x["X Google enrollment"]
  node_hotword_common["Hotword enrollment library"]
end

subgraph group_platform["Platform Integration"]
  node_platform_permissions["Vendor permissions"]
  node_platform_whitelist["Vendor sysconfig allowlists"]
  node_qti_permissions["Product permissions"]
  node_product_whitelist["Product sysconfig allowlist<br/>[qti_whitelist.xml]"]
end

node_android(("Android platform"))

click node_qti_telephony "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/QtiTelephonyService/QtiTelephonyService.apk"
click node_qcril_tunnel "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk"
click node_ims_app "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/ims/ims.apk"
click node_telephony_framework "https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/framework"
click node_telephony_config "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml"
click node_dpm_daemon "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/bin/dpmd"
click node_dpm_service "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/dpmserviceapp/dpmserviceapp.apk"
click node_dpm_framework "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/com.qti.dpmframework.jar"
click node_dpm_api "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/dpmapi.jar"
click node_dpm_config "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/dpm/dpm.conf"
click node_dpm_init "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/init/dpmd.rc"
click node_power_alarm_product "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/app/PowerOffAlarm/PowerOffAlarm.apk"
click node_power_alarm_ext "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/PowerOffAlarm/PowerOffAlarm.apk"
click node_device_info "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/DeviceInfo/DeviceInfo.apk"
click node_audio_sphere "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/audiosphere.jar"
click node_hotword_ok "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk"
click node_hotword_x "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk"
click node_hotword_common "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/com.android.hotwordenrollment.common.util.jar"
click node_platform_permissions "https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/etc/permissions"
click node_platform_whitelist "https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/etc/sysconfig"
click node_qti_permissions "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system/etc/permissions/privapp-permissions-qti.xml"
click node_product_whitelist "https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system/etc/sysconfig/qti_whitelist.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_qti_telephony,node_qcril_tunnel,node_ims_app,node_telephony_framework,node_telephony_config toneBlue
class node_dpm_daemon,node_dpm_service,node_dpm_framework,node_dpm_api,node_dpm_config,node_dpm_init,node_power_alarm_product,node_power_alarm_ext,node_device_info toneAmber
class node_audio_sphere,node_hotword_ok,node_hotword_x,node_hotword_common toneMint
class node_platform_permissions,node_platform_whitelist,node_qti_permissions,node_product_whitelist toneRose
class node_android toneIndigo
```

## Components

### Telephony and IMS

- [QTI telephony service](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/QtiTelephonyService/QtiTelephonyService.apk): `proprietary/system_ext/app/QtiTelephonyService/QtiTelephonyService.apk`
- [QCRIL message tunnel](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk): `proprietary/system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk`
- [IMS service](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/ims/ims.apk): `proprietary/system_ext/priv-app/ims/ims.apk`
- [Telephony and IMS libraries](https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/framework): `proprietary/system_ext/framework`
- [Telephony permissions and config](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml): `proprietary/system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml`

### Power and Device

- [DPM daemon](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/bin/dpmd): `proprietary/system_ext/bin/dpmd`
- [DPM service app](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/priv-app/dpmserviceapp/dpmserviceapp.apk): `proprietary/system_ext/priv-app/dpmserviceapp/dpmserviceapp.apk`
- [DPM framework APIs](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/com.qti.dpmframework.jar): `proprietary/system_ext/framework/com.qti.dpmframework.jar`
- [DPM API library](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/dpmapi.jar): `proprietary/system_ext/framework/dpmapi.jar`
- [DPM configuration](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/dpm/dpm.conf): `proprietary/system_ext/etc/dpm/dpm.conf`
- [DPM init configuration](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/etc/init/dpmd.rc): `proprietary/system_ext/etc/init/dpmd.rc`
- [Power-off alarm](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/app/PowerOffAlarm/PowerOffAlarm.apk): `proprietary/product/app/PowerOffAlarm/PowerOffAlarm.apk`
- [Power-off alarm](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/PowerOffAlarm/PowerOffAlarm.apk): `proprietary/system_ext/app/PowerOffAlarm/PowerOffAlarm.apk`
- [Device information](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/app/DeviceInfo/DeviceInfo.apk): `proprietary/system_ext/app/DeviceInfo/DeviceInfo.apk`

### Audio and Hotword

- [AudioSphere library](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/audiosphere.jar): `proprietary/system_ext/framework/audiosphere.jar`
- [OK Google enrollment](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk): `proprietary/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk`
- [X Google enrollment](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk): `proprietary/product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk`
- [Hotword enrollment library](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system_ext/framework/com.android.hotwordenrollment.common.util.jar): `proprietary/system_ext/framework/com.android.hotwordenrollment.common.util.jar`

### Platform Integration

- [Vendor permissions](https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/etc/permissions): `proprietary/system_ext/etc/permissions`
- [Vendor sysconfig allowlists](https://github.com/maurice-playground/android_vendor_xiaomi_spes/tree/sixteen/proprietary/system_ext/etc/sysconfig): `proprietary/system_ext/etc/sysconfig`
- [Product permissions](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system/etc/permissions/privapp-permissions-qti.xml): `proprietary/system/etc/permissions/privapp-permissions-qti.xml`
- [Product sysconfig allowlist](https://github.com/maurice-playground/android_vendor_xiaomi_spes/blob/sixteen/proprietary/system/etc/sysconfig/qti_whitelist.xml): `proprietary/system/etc/sysconfig/qti_whitelist.xml`

### Other components

- **Android platform**
