Head unit is 1920x720, not 1920x1080
FIRMWARE.md, the mise emulator profile and SPECS.md said 1920x1080. The MG4's display is 1920x720 at 160 dpi (an app window has been seen at 1778x720, the car's sidebar taking the rest). The floating button's geometry test now uses 1920x720. The app itself assumed no height: checked on an Android 9 emulator at 1920x720, all tabs render (longer ones scroll), the sidebar holds all seven tabs, and the floating button starts at 1840,312. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
+3
-2
@@ -11,7 +11,8 @@ development. It must not be treated as a vendor specification.
|
||||
| Android | 9 (Pie) — **API 28** |
|
||||
| Chipset | MediaTek **MT2712** |
|
||||
| Device | `mt2712_saic_eh32` (eh32 = MG4) |
|
||||
| Emulator display profile | **1920×1080 @ 160 dpi** |
|
||||
| Display | **1920×720 @ 160 dpi** (the car's sidebar takes part of the width; an app window has been reported at 1778×720) |
|
||||
| Emulator display profile | **1920×720 @ 160 dpi** |
|
||||
|
||||
## Signing caveat
|
||||
|
||||
@@ -42,5 +43,5 @@ follow the same path. See `AGENTS.md` for the full per-signal split.
|
||||
## Emulator fidelity
|
||||
|
||||
The `mise` emulator tasks use an API 33 automotive AVD for the car service and an API 28
|
||||
AVD at **1920×1080 @ 160 dpi** for the screen. Neither exposes the SAIC vendor properties,
|
||||
AVD at **1920×720 @ 160 dpi** for the screen. Neither exposes the SAIC vendor properties,
|
||||
so vehicle-specific behaviour still requires on-vehicle validation.
|
||||
|
||||
@@ -117,7 +117,8 @@ tyre pressures, GPS (lat, lon, elevation, heading) and the is_* flags. It does *
|
||||
- 2026-10-17 — App 2.6.0: floating button to open the app, because the MG4 launcher does not list
|
||||
it. Drawn over other apps (needs the overlay permission, which the car build has through the
|
||||
system UID), draggable, hidden while the app is open, switch in the Upload tab. Tested on an
|
||||
Android 9 AOSP emulator at 1920x1080/160 dpi with the car APK (installs as UID 1000 there too).
|
||||
Android 9 AOSP emulator with the car APK (installs as UID 1000 there too), at 1920x1080 and at the
|
||||
head unit's real 1920x720 / 160 dpi, where all tabs and the button were checked as well.
|
||||
- 2026-10-17 — App 2.5.0: range estimates at current and 5-minute average power (Vehicle tab).
|
||||
- 2026-10-17 — Live dashboard reworked around the signals the car sends: Climate setpoint, Last
|
||||
update and a computed Energy in pack replace the empty temperature tiles; Battery voltage and
|
||||
|
||||
@@ -12,8 +12,8 @@ public class FloatingButtonGeometryTest {
|
||||
|
||||
@Test
|
||||
public void startsAtTheRightEdgeAboutFortyPercentDown() {
|
||||
// 1920 x 1080 head unit, 64 px button, 16 px margin.
|
||||
assertArrayEquals(new int[]{1840, 432}, FloatingButtonGeometry.defaultPosition(1920, 1080, 64, 16));
|
||||
// The MG4 head unit is 1920 x 720; 64 px button, 16 px margin.
|
||||
assertArrayEquals(new int[]{1840, 288}, FloatingButtonGeometry.defaultPosition(1920, 720, 64, 16));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -53,20 +53,20 @@ BUILD_TOOLS = "36.0.0"
|
||||
# d'OS. Pour tester le cycle de vie du service et le chemin voiture.
|
||||
# Les propriétés VENDEUR SAIC (0x216xxxxx : SOC, autonomie) n'existent
|
||||
# pas dans l'émulateur : ces lectures échoueront, c'est normal.
|
||||
# emulator-screen API 28 tablette — bonne version d'OS et bon écran (1920x1080 @ 160dpi,
|
||||
# emulator-screen API 28 tablette — bonne version d'OS et bon écran (1920x720 @ 160dpi,
|
||||
# 12,8" HD comme le MG4), mais AUCUN service voiture.
|
||||
# Pour l'UI, les layouts et la densité.
|
||||
#
|
||||
# Rien de tout cela ne remplace un essai sur le véhicule.
|
||||
# Densité cible du projet : 160 dpi.
|
||||
# Écran 12,8" 1920x1080. Firmware de référence : SWI68-29958-1300R69.
|
||||
# Écran 12,8" 1920x720. Firmware de référence : SWI68-29958-1300R69.
|
||||
|
||||
EMU_CAR_AVD = "evabrp-car"
|
||||
EMU_CAR_IMAGE = "system-images;android-33;android-automotive;x86_64"
|
||||
EMU_SCREEN_AVD = "evabrp-screen"
|
||||
EMU_SCREEN_IMAGE = "system-images;android-28;google_apis;x86_64"
|
||||
EMU_WIDTH = "1920"
|
||||
EMU_HEIGHT = "1080"
|
||||
EMU_HEIGHT = "720"
|
||||
EMU_DENSITY = "160"
|
||||
|
||||
[tasks.bootstrap]
|
||||
@@ -189,7 +189,7 @@ echo "Émulateur voiture prêt."
|
||||
'''
|
||||
|
||||
[tasks.emulator-screen]
|
||||
description = "Lance l'émulateur écran MG4 (API 28, 1920x1080 @ 160dpi — pas de service voiture)"
|
||||
description = "Lance l'émulateur écran MG4 (API 28, 1920x720 @ 160dpi — pas de service voiture)"
|
||||
run = '''
|
||||
set -e
|
||||
"$ANDROID_HOME/emulator/emulator" -avd "$EMU_SCREEN_AVD" \
|
||||
|
||||
Reference in New Issue
Block a user