Files
mg4-luxury-2022-info/device-info/EXPORT_2026-08-21-init-and-hal.md

9.3 KiB
Raw Permalink Blame History

2026-08-21 SAIC export — init scripts, HAL manifest, partition map

This is a curated second delta from /root/MG/export.zip that captures the boot-time wiring, HAL surface, and partition map that the previously-existing profile documents did not already summarize. No APK bytes, certificates, VIN, serial, BSSID, or other identifying material are added.

All *.rc, *.xml, and *.conf files referenced from this document are committed alongside it in initrc/ and config/.

Init service catalogue (system + vendor)

The exporter surfaced 60+ init scripts. The system/vendored ones that the existing reports do not already describe are listed below with the role they play on this head unit. None of these scripts is novel — they are recorded here so the repository has a single place to compare the captured head unit against other SAIC variants.

Service File Class / user Purpose
tboxservicemain TboxService.rc class main, user root, group inet Starts once sys.boot_completed=1; bridges the AVN to the TBOX over the internal network.
yfve_diag yfve_diag.rc class main yfve diagnostic companion to the TBOX SDK.
admOtaApp admOtaApp.rc class main, user root, group root system Starts the internal OTA agent (com.abupdate.ota) once boot completes.
update_engine update_engine.rc late_start, user root, group root system wakelock inet cache A/B OTA engine, enabled only when ro.boot.slot_suffix is set.
update_verifier / update_verifier_nonencrypted update_verifier.rc user root, group cache system, priority -20 Verifies the applied payload before boot.
otapreopt otapreopt.rc post-fs-data Moves A/B artifacts into the dalvik-cache and relabels them.
cameraserver cameraserver.rc class main, user cameraserver, group audio camera input drmrpc The standard camera daemon; user-visible camera count was 0 (private HAL only).
vendor.camera-provider-2-4 [email protected] class hal, user cameraserver Private HAL front end for AVM.
vendor.vehicle-hal-2.0 [email protected] class hal, user vehicle_network, group system inet The VHAL implementation that fronts every CarProperty* read/write.
bootanim bootanim.rc class core animation, user graphics, group graphics audio, oneshot Boot animation.
init.mt2712_avm init.mt2712_avm.rc post-fs-data mkdir for /data/avm, /data/avm/source, /data/avm/output.

The legacy on property:on property:sys.boot_completed=1 blocks in TboxService.rc and admOtaApp.rc are duplicated lines in the captured output; not a copy-paste problem to flag here, just worth noting.

Partition map and storage layout

device/proc_mounts.txt shows the device partitions as the app saw them. Important AOSP-style partitions and the SAIC-specific ones are:

Mount Filesystem Notes
/ (/dev/root) ext4 ro system image
/vendor (/dev/block/dm-1) ext4 ro vendor image (this archive)
/data (userdata) ext4 rw, seclabel user data
/mnt/mtkdata (mtkdata) ext4 rw, seclabel MediaTek data partition
/Map ext4 rw, errors=panic SAIC map data partition
/vr ext4 rw, errors=panic SAIC voice-recognition resources
/online ext4 rw, errors=panic SAIC online-media cache
/fota ext4 rw, errors=panic SAIC A/B OTA staging area
/configure ext4 rw, errors=panic SAIC persisted config / calibration

The captured SELinux policy version is 28.0; the actual precompiled_sepolicy and precompiled_sepolicy.plat_and_mapping.sha256 are binary and were recorded as metadata-only rather than copied.

VINTF / HAL matrix

readable/system_etc/vintf/compatibility_matrix.device.xml declares what the framework expects from this device. Notable automotive and vendor HALs:

HAL Version Note
android.hardware.automotive.vehicle 2.0 Standard AOSP VHAL
android.hardware.automotive_zs11e.vehicle 2.0 Vendor-specific overlay — confirms the SAIC/ZS11E VHAL extension
android.hardware.automotive.evs 1.0 Surround-view HAL (EvsEnumeratorHw)
android.hardware.automotive.audiocontrol 1.0 Audio control HAL
android.hardware.camera.provider 2.4 Private camera provider
android.hardware.broadcastradio 1.1 Broadcast radio HAL
android.hardware.gnss 1.0 GNSS HAL
android.hardware.graphics.composer 2.1 SurfaceFlinger composer
android.hardware.audio 4.0 Primary audio HAL

readable/vendor_etc/vintf/manifest.xml is the corresponding device side, matching the same HAL names. The framework matrix additionally pins the SELinux sepolicy version (28.0) and kernel sepolicy version (30).

Permissions, identity, and OTA certificates

  • tbox.permission.xml — declares the tbox shared library (/system/framework/tbox.jar) which is used by com.saicmotor.adapterservice, com.yfve.carotherservice, and the engineering-mode service.
  • mediatek_car.permission.xml — exposes the MediaTek car extension features: cant_save_state, location, and location.gps.
  • bt_did.conf — primary Bluetooth Device ID record: productId = 0x1200, version = 0x1436 (decodes to BT DID v20.3.6).
  • wpa_supplicant.conf — Wi-Fi identity advertised to clients: manufacturer = MEDIATEK, model_name = 2712, device_name = NBD. The wpa_supplicant serial_number line is a per-device hardware serial that has been redacted; the device's actual ro.serialno was empty in the captured getprop output.
  • otacerts.zip — the public OTA verification certificate archive; it contains a single testkey.x509.pem. The companion update-payload-key.pub.pem (/system/etc/update_engine/) was not included as a file because the exporter flagged it as sensitive-name-skipped.

Media / audio surface

  • audio_policy_configuration.xml defines the primary 3.0 audio module with these bus routes: bus0_media_out ← tdm_media_out, bus1_mix_out ← tdm_tts_out, bus2_system_out ← tdm_system_out, bus3_phone_out ← tdm_phone_out, bus4_voice_out ← tdm_voice_out, bus5_ring_out ← tdm_ringtone_out, and a Phone Direct Out (HDMI ARC sink) fed by carplay_phone. The microphone inputs are Built-In Mic (default), bus0_mic1_in (bus mic), and carplay_phone Mic (used by CarPlay Siri/phone).
  • audio_policy_volumes.xml defines per-stream attenuation curves for AUDIO_STREAM_VOICE_CALL, AUDIO_STREAM_RING, AUDIO_STREAM_MUSIC, AUDIO_STREAM_ALARM, AUDIO_STREAM_NOTIFICATION, AUDIO_STREAM_BLUETOOTH_SCO, AUDIO_STREAM_ENFORCED_AUDIBLE, AUDIO_STREAM_DTMF, AUDIO_STREAM_TTS, AUDIO_STREAM_ACCESSIBILITY, AUDIO_STREAM_REROUTING, and AUDIO_STREAM_PATCH (the latter two are full-scale).
  • audio_effects.xml lists bundlewrapper, reverbwrapper, visualizer, downmix, loudness_enhancer, and dynproc for the vendor audio effects. The MTK yfve_omx_core.cfg registers a single YFVE APE audio decoder (OMX.YFVE.AUDIO.DECODER.APE, libYfveOmxApeDec.so).
  • media_codecs_performance.xml shows the MTK decoder/encoder performance budget at 1080p; e.g. OMX.MTK.VIDEO.DECODER.HEVC 200–400 fps at 1920x1080, OMX.MTK.VIDEO.DECODER.AVC 50–100 fps at 1920x1080, and OMX.google.h264.decoder 12 fps at 1920x1080.

Services running at capture (live observation)

hardware/service_list.txt (140 entries) confirms:

  • vendor.vehicle-hal-2.0 is up ([email protected]::IVehicle/default)
  • vendor.camera-provider-2-4 is up
  • tbox_service is up
  • yfve_diag is up (restarting at capture)
  • Rl78Service is up (android.hardware.IRl78Service)
  • android.os.UpdateEngineService, update_engine, update_service, yfve_diag, and yfvecodecservice-1-0 are up
  • dumpsys car_service returned Can't find service: car_service for this UID; AOSP CarService is not reachable from a sideloaded app, which is why the SAIC com.saicmotor.service.vehicle AIDL is the binding target.

What still did not change

  • /sys/class/can does not exist (no raw CAN interface exposed to apps); /sys/class/firmware, /sys/bus/iio/devices, and /sys/bus/platform/devices exist but are unreadable.
  • /proc/cmdline, /proc/version, /proc/partitions, /proc/filesystems, and /proc/device-tree/{model,compatible} all returned Permission denied to this UID. Those values are recorded in the existing DEVICE_PROFILE.md from the earlier capture.
  • No firmware/OTA payload bytes were copied; the archive's firmware/ directory only contains a README.txt.