Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / auto / docs / PARITY.md

PARITY.md111.6 KiBRenderedCodeRaw
1# MA Auto parity (look + function) with gearhead 17.5.663214
2
3> Tracked companion to `auto/docs/FINDINGS.md` (teardown) and `auto/docs/HANDOFF.md`
4> (bring-up status). Research-only: every item cites both sides. No estimates —
5> where a value was not read it says `NOT READ`, where a file was absent it says
6> `MISSING`, where a layout token was not found it says `NOT FOUND`.
7> Verdicts: `SUPPORTED` (MA equivalent with file:line), `PARTIAL` (ID/slot without
8> full semantics), `MISSING` (no MA counterpart). §§2–10 cover the car-projected
9> look; §§11–15 cover full-stack function (control plane, channels, transports,
10> services, components, permissions, protobuf coverage).
11
12**Ground truth:** gearhead 17.5.663214 (`versionCode 175663214`, `minSdk 32`,
13`targetSdk 37`), Pixel 7 Pro (`cheetah`) pull: `analysis/maauto/apk/base.apk` +
14splits, dex in `analysis/maauto/dex/`, jadx in `analysis/maauto/jadx-out/sources`,
15layouts/values in `analysis/maauto/manifest-out/resources/res/`, manifest in
16`analysis/maauto/manifest-out/resources/AndroidManifest.xml`.
17
18**MA under test:** `auto/src/main/java/com/vayunmathur/auto/platform/CarDisplay.kt`
19(`CarPresentation` L390–L1075), plus `VideoSinkChannel.kt`, `VideoEncoder.kt`,
20`InputChannel.kt`, card-content providers, `auto/src/main/AndroidManifest.xml`,
21`auto/src/main/res/values/strings.xml`.
22
23**Views-not-Compose note (do not "fix"):** `CarDisplay.kt` builds the car surface
24with framework `View`s because a `Presentation` on a private virtual display has
25no lifecycle owner. A later implementer must not Compose-ify it.
26
27---
28
29## 1. Scope (user-decided)
30
31**In scope — car projected look (pixel-for-pixel on the head unit), §§2–10:**
32
33- Coolwalk rail / facet bar, status bar fragment, hotseat dock, ongoing widget,
34 assistant slot, resize control, voice plate slot.
35- Dash media card + button row, nav card (map surface + banner), app drawer +
36 launcher grid, empty/loading/lockout states, assistant scrim.
37- Touch targets, focus rings, dpad/rotary behavior, night mode, densities that
38 change HU pixels.
39- Behavior that gates pixels: drawer open/close, tap routing, scroll, keys,
40 invalidation cadence, theme switch, rotation/config, display lifecycle.
41- System requirements gating car pixels: `SYSTEM_AUTOMOTIVE_PROJECTION` role pin,
42 privapp allowlist, RROs (requirements, not implementation).
43- GAL channels only where they paint HU pixels: video config, focus highlight,
44 ch8 tap mapping, nav banner text, media metadata/art.
45
46**In scope — full-stack function (§§11–15, added for functional parity):**
47
48- GAL control plane: every control message ID (1–26/255/65535), frame layout,
49 fragmentation, TLS posture, crypto/KDF posture, version negotiation, discovery
50 content, channel-open order, ping/byebye/focus handling.
51- Every service-channel family: media sink `jdk`, video `jem`, mic `jdi`,
52 input `jar`, sensor `rvb` (all 26 `xny` types), plus BT/radio/nav/phone/
53 browser/vendor/wifi/car-control/local-media/buffered/INST/diag/latency/sync.
54- Transports: USB AOAP, wireless (BT/RFCOMM/CDM/`ebe` flags), TCP loopback,
55 selector priority, framing/queue/ack/backoff infra.
56- App services/components/permissions/role grants vs gearhead manifest truth.
57- Protobuf coverage: MA `gal/*.proto` vs gearhead `x*` families + decompiler
58 traps.
59
60**Out of scope (one line each, no deep dive):**
61
62- Phone screens `ui/AutoScreen.kt`, `ui/PairingScreen.kt`, `ui/SessionCard.kt`,
63 `ui/AudioRow.kt`, gate cards — except §7 gating notes.
64- Any implementation, asset creation, RRO/permission/role edits.
65
66---
67
68## 2. Gearhead projected-surface inventory
69
70### 2.1 Layout files (all under `analysis/maauto/manifest-out/resources/res/layout/`)
71
7212 HU-relevant layouts read fully. Base `layout/` has **751 files** (most are
73`abc_*`, phone setup, carsetup, settings — explicitly out of scope and not
74enumerated here; see §9 for the coverage obligation).
75
76| Layout file | Root / owner | HU surface |
77|---|---|---|
78| `gh_coolwalk_facet_bar.xml` | `FrameLayout` → `ConstraintLayout @id/rail` → `RailStatusBarFragment`, `RailHotseatItemView`, `RailWidgetView`, `ResizeButton` | Coolwalk rail |
79| `sys_ui_rail_hotseat.xml` | `LinearLayout @id/rail_hotseat_container` → 4× `RailHotseatItemView` | Rail dock |
80| `frag_dash_media.xml` | `DashboardCardView @id/dash_media_card` → `MediaPlaybackView`, `TappableRegion`, `PlayPauseStopCoolwalkButton` | Dash media card |
81| `frag_dash_media_button_row.xml` | `LinearLayout @id/media_button_row` → `CoolwalkButton`, `PlayPauseStopCoolwalkButton` | Media controls |
82| `drawer_layout.xml` | `CarDrawerLayout @id/drawer_container` → stubs `drawer_contents`, `alpha_jump_layout` | Drawer container |
83| `drawer_contents.xml` | `FrameLayout` → `UnlimitedBrowsePagedListView` (class MISSING; `sdk/ui/PagedListView.java` is truth) | Drawer body (SDK template path) |
84| `adu_drawer.xml` | `merge` → `PagedListView @id/menu_list`, `AlphaJumpFab`, `AlphaJumpKeyboard` | Drawer body (AppDecor path) |
85| `adu_status_bar_view.xml` | `merge` → header icon/title, search box, drawer/mic/search buttons | AppDecor header |
86| `app_bar.xml` | `TouchStealingFrameLayout @id/app_bar_container` → title, tabs, aux buttons | App bar |
87| `alpha_jump_layout.xml` | `FrameLayout` → `AlphaJumpFab`, `AlphaJumpKeyboard` | Alpha jump |
88| `app_launcher_item.xml` | `ConstraintLayout` → `CardView @id/icon_circular_crop_container`, badges, `@id/label` | Launcher cell |
89| `assistant_scrim.xml` | `FrameLayout @id/assistant_scrim` | Assistant overlay |
90
91Probed but **NOT FOUND** (no such file in `res/layout/`): `car_drawer.xml`,
92`status_bar.xml`, `rail_status_bar.xml`, `sys_ui_status_bar.xml`,
93`car_status_bar.xml`, `appbar.xml`, `car_app_bar.xml`, `app_decor.xml`,
94`facet_bar.xml`, `coolwalk_facet_bar.xml`, `app_drawer.xml`, `media_card.xml`,
95`media_playback.xml`, `now_playing.xml`, `now_playing_card.xml`,
96`frag_dash_navigation.xml`, `frag_dash_nav.xml`, `frag_dash_map.xml`,
97`nav_card.xml`, `navigation_card.xml`, `launcher_item.xml`, `launcher_row.xml`,
98`launcher_grid.xml`, `car_launcher.xml`, `bottom_sheet.xml`. Rail status-bar
99*content* layouts (`rail_statusbar`, `vertical_rail_statusbar`,
100`hero_vertical_rail_statusbar`, `rail_statusbar_rhd` — referenced by
101`RailStatusBarFragment.java:218-231`) were **NOT READ** (existence not probed
102file-by-file; see §9.1 open item).
103
104### 2.2 Layout details (exact attributes)
105
106#### `gh_coolwalk_facet_bar.xml`
107
108- Root `FrameLayout` `match_parent`/`match_parent`.
109- `ConstraintLayout @id/rail` `match_parent`/`match_parent`,
110 `background="?android:attr/windowBackground"`, `fitsSystemWindows="true"`.
111- `FocusInterceptor @id/launcher_and_dashboard_icon_container`
112 `wrap_content`/`wrap_content`,
113 `layout_marginStart="@dimen/coolwalk_launcher_dashboard_margin"` (= **10dp**,
114 `values/dimens.xml:560`) → `CoolwalkButton @id/launcher_and_dashboard_icon`
115 **68dp**×**68dp** (`@dimen/facet_bar_touch_target_size`, `dimens.xml:846`),
116 `checkable="false"`, `app:icon="@drawable/ic_dashboard_icon_lhd"`,
117 `style="@style/Widget.Gearhead.Coolwalk.Rail.Button"`.
118- `FrameLayout @id/assistant_icon_container` 68dp×68dp, `clipChildren="false"`,
119 `clipToPadding="false"` →
120 `FragmentContainerView @id/live_fragment`
121 56dp×56dp (`@dimen/coolwalk_rail_hotseat_button_icon_size`, `dimens.xml:581`),
122 `visibility="gone"`, `focusable="false"`, `clickable="false"`,
123 `descendantFocusability="blocksDescendants"`;
124 `CircleOverlayView @id/circle_overlay` same 56dp, `gone`;
125 `FocusInterceptor` (no id) `wrap_content`/`wrap_content` →
126 `CoolwalkButton @id/assistant_icon` 68dp×68dp, `gone`, `checkable="false"`,
127 `app:icon="@drawable/gs_mic_fill1_vd_theme_24"`, same Rail.Button style.
128- `FrameLayout @id/ongoing_widget_container` `0dp`/`wrap_content`,
129 `layout_marginStart/End="@dimen/rail_coolwalk_rail_margin"` (= **6dp**,
130 `dimens.xml:2998`),
131 `app:layout_constraintWidth_max="@dimen/rail_widget_max_width"` (= **750dp**,
132 `dimens.xml:3032`) → `RailWidgetView @id/ongoing_widget`
133 `match_parent`/`wrap_content`, `gone`.
134- `ImageView @id/etc_icon` `wrap_content`/`wrap_content`, `gone`,
135 `layout_marginLeft="@dimen/etc_icon_margin"` (= `@dimen/gearhead_baseline_grid_1x`
136 = **8dp**, `dimens.xml:831,893`), `src="@drawable/ic_gearhead_etc_rail_icon"`,
137 `tint="?attr/colorOnSurface"`, `alpha="@dimen/coolwalk_etc_icon_opacity"`
138 (= **0.6**, `dimens.xml:545`), `importantForAccessibility="no"`.
139- `FrameLayout @id/dock_container` `0dp`/`wrap_content`, `gravity="center"`,
140 margins 6dp, maxWidth 750dp → `include layout="@layout/sys_ui_rail_hotseat"`
141 `visibility="invisible"` (no id);
142 `RailWidgetView @id/rail_ongoing_widget` `wrap_content`/`match_parent`,
143 `gone`, `maxWidth 750dp`, `gravity/layout_gravity="center"`.
144- `Guideline @id/hotseat_start` / `@id/hotseat_end`,
145 `guide_begin`/`guide_end="@dimen/coolwalk_rail_hotseat_guideline"`
146 (= **145dp**, `dimens.xml:584`).
147- `View @id/rail_invisible_scrim` `0dp`/`match_parent`,
148 `background="@android:color/transparent"`.
149- `FragmentContainerView @id/status_bar` `wrap_content`/`match_parent`,
150 `android:name="com.google.android.apps.auto.components.system.statusbar.RailStatusBarFragment"`.
151- `Barrier @id/edge_barrier`, `barrierDirection="start"`,
152 `barrierAllowsGoneWidgets="false"`,
153 `constraint_referenced_ids="resize_button_ghost, edge_spacer"`.
154- `Space @id/resize_button_ghost` `gone`,
155 36dp×56dp (`resize_button_short_side_size` `dimens.xml:3046`,
156 `resize_button_long_side_size` `dimens.xml:3045`),
157 `layout_marginEnd="@dimen/coolwalk_gutter_padding"` (= **10dp**,
158 `dimens.xml:553`).
159- `Space @id/edge_spacer` `@dimen/rail_edge_margin` (= **2dp**,
160 `dimens.xml:3010`) / `match_parent`.
161- `ConstraintLayout @id/resize_button_tap_target` `gone`, `clickable="true"`,
162 `@dimen/resize_tap_target_size` (= **64dp**, `dimens.xml:3047`) /
163 `match_parent` → `ResizeButton @id/resize_button` `gone`,
164 `wrap_content`/`wrap_content`, marginEnd 10dp, `app:orientation="vertical"`.
165- `ConstraintLayout @id/native_rail` `match_parent`/`match_parent`, `gone`,
166 `windowBackground`, `fitsSystemWindows="true"` →
167 `CoolwalkButton @id/native_app_back_icon` 68dp, marginStart 10dp,
168 `app:icon="@drawable/gs_arrow_back_vd_theme_48"`;
169 `CoolwalkButton @id/native_app_exit_icon` 68dp, `app:icon="0x7f08093a"`;
170 both `checkable="false"`, Rail.Button style.
171- `FragmentContainerView @id/voice_plate` `match_parent`/`match_parent`,
172 `gone`, `layout_gravity="bottom"`, `windowBackground`.
173- No `textSize` in this file.
174
175#### `sys_ui_rail_hotseat.xml`
176
177- Root `LinearLayout @id/rail_hotseat_container` horizontal
178 `wrap_content`/`match_parent`, `gravity/layout_gravity="center"`.
179- `RailHotseatItemView @id/hotseat_one|two|three|four`, each
180 68dp×68dp (`@dimen/coolwalk_rail_dock_icon_touch_target_size`,
181 `dimens.xml:580`), `checkable="false"`, `app:iconTint="@null"`.
182- Sibling tokens (not used by this layout but adjacent):
183 `coolwalk_rail_hotseat_icon_touch_target_size` = 74dp (`dimens.xml:585`),
184 `coolwalk_rail_dock_button_icon_size` = 52dp (`dimens.xml:572`).
185
186#### `frag_dash_media.xml` + `frag_dash_media_button_row.xml`
187
188- Root `DashboardCardView @id/dash_media_card` `match_parent`/`match_parent`,
189 `theme="?attr/coolwalk_darkThemeOverlay"`, `swipeToDismissEnabled="false"`.
190- `Guideline @id/pager_start_guideline` vertical,
191 `guide_end="@dimen/dashboard_pager_indicator_width"` (= **52dp**,
192 `dimens.xml:671`).
193- `ImageView @id/album_art` `0dp`/`0dp`, `scaleType="centerCrop"`, constrained
194 parent all sides.
195- `ImageView @id/album_art_scrim` `0dp`/`0dp`, `gone`,
196 `src="@drawable/dashboard_media_album_art_scrim"`, `scaleType="fitXY"`.
197- `ShapeableImageView @id/source_badge` 24dp×24dp
198 (`@dimen/dashboard_media_badge_size` → `gearhead_baseline_grid_3x` = 24dp,
199 `dimens.xml:636,900`), `style="@style/Widget.Dashboard.Badge"`
200 (`styles.xml:18142-18144`, parent empty:
201 `shapeAppearance="@style/CircleShapeAppearance"` = rounded 50%,
202 `styles.xml:6596-6599`).
203- `FocusInterceptor` (no id) `0dp`/`0dp`,
204 `layout_marginStart="@dimen/dashboard_media_text_padding"` (= **5dp**,
205 `dimens.xml:666`), `app:focusRingInset="0dp"`,
206 `nextFocusForward="@+id/text_container_wrapper_next_focus_forward"` →
207 `TappableRegion @id/text_container_wrapper` `match_parent`/`match_parent`,
208 `focusRingInset 0dp`,
209 `shapeAppearanceOverlay="@style/DashPrimaryTappableRegionAlbumArtMatchingShapeAppearance"`,
210 `style="@style/Widget.Dashboard.PrimaryTarget"`
211 (`styles.xml:18167-18169`, parent `Widget.Gearhead.Coolwalk.TappableRegion`
212 `styles.xml:18488-18493`: `focusable true`,
213 `rippleColor="@color/coolwalk_tappable_region_ripple_color_selector"`,
214 `shapeAppearance="?attr/shapeAppearanceMediumComponent"`).
215- `LinearLayout @id/text_container` vertical `0dp`/`wrap_content`,
216 `gravity="start"`,
217 `layout_marginTop="@dimen/dashboard_media_text_container_margin_top"`
218 (= `@dimen/gearhead_padding_0` = **4dp**, `dimens.xml:665,1029`),
219 `layout_marginBottom="@dimen/dashboard_media_text_container_margin_bottom"`
220 (= **7dp**, `dimens.xml:664`), `vertical_bias` fraction →
221 `TextView @id/title` `wrap_content`/`wrap_content`,
222 `layout_marginTop="5dp"`, `maxLines="@integer/dashboard_media_title_max_lines"`
223 (= **1**, `values/integers.xml:37`),
224 `includeFontPadding="@bool/dashboard_media_include_font_padding"`
225 (= **true**, `values/bools.xml:27`),
226 `style="@style/Widget.Gearhead.Coolwalk.TextView.Title"`
227 (`styles.xml:18514-18519` → `TextAppearance.Gearhead.Coolwalk.Body2.Title`
228 `styles.xml:9584-9587`: `textColor ?textColorPrimary`,
229 `fontFamily ?attr/titleFontFamily`, parent Body2
230 `textSize @dimen/coolwalk_body2_text_size` = **28dp**; `ellipsize 3`,
231 `maxLines 1`, `includeFontPadding false`);
232 `TextView @id/subtitle` `wrap_content`/`wrap_content`,
233 `layout_marginBottom="5dp"`,
234 `style="@style/Widget.Dashboard.TextView.Subtitle"`
235 (`styles.xml:18170-18172` → Body3.Dashboard `styles.xml:9595-9597`:
236 Body3 `textSize @dimen/coolwalk_body3_text_size` = **24dp**,
237 `fontFamily ?attr/bodyLegacySansSerifFontFamily`).
238- `LinearProgressIndicator @id/progress` `0dp` /
239 `@dimen/dashboard_media_progress_height` (= **4dp**, `dimens.xml:651`),
240 `indicatorColor="?attr/dashProgressColor"`,
241 `trackColor="?attr/dashProgressSurface"`,
242 `trackCornerRadius="@fraction/dashboard_media_progress_radius_fraction"`
243 (value NOT READ), `trackThickness="4dp"`.
244- `include @layout/frag_dash_media_button_row` `0dp`/`wrap_content`,
245 `layout_marginBottom="@dimen/dashboard_media_button_margin_bottom"`
246 (= **4dp**, `dimens.xml:637`).
247- `FocusInterceptor` (no id) `0dp`/`0dp` →
248 `TappableRegion @id/primary_target` `match_parent`/`match_parent`,
249 `focusable="false"`, same overlay + PrimaryTarget style.
250- Button row root `LinearLayout @id/media_button_row`
251 `match_parent`/`match_parent`, horizontal, `center_vertical`:
252 `Space` weight 1; `CoolwalkButton @id/action_left` 88dp×88dp
253 (`@dimen/dashboard_media_action_size` → `gearhead_baseline_grid_11x` = 88dp,
254 `dimens.xml:634,884`), `nextFocusForward="@+id/play_pause"`,
255 `style="@style/Widget.Dashboard.Media.Button.Action"`
256 (`styles.xml:18156-18162`: insets + `focusRingInset`
257 `@dimen/dashboard_media_action_inset` = `gearhead_baseline_grid_1.5x` =
258 **12dp**, `dimens.xml:633,881`);
259 `Space` weight 2; `PlayPauseStopCoolwalkButton @id/play_pause` 88dp,
260 `nextFocusForward="@+id/action_right"`,
261 `app:icon="@drawable/ic_play_pause_stop_solid"`,
262 `style="@style/Widget.Dashboard.Media.Button.Action.Primary"`
263 (`styles.xml:18163-18166`: `backgroundTint
264 @color/dashboard_primary_action_background_color_selector`,
265 `materialThemeOverlay @style/ThemeOverlay.Dashboard.Media.Button.Action.Primary`);
266 `Space` weight 2; `CoolwalkButton @id/action_right` 88dp; `Space` weight 1.
267
268#### `drawer_layout.xml` / `drawer_contents.xml` / `adu_drawer.xml`
269
270- `drawer_layout.xml`: root `CarDrawerLayout @id/drawer_container`
271 `match_parent`/`match_parent` →
272 `FrameLayout @id/container` `match_parent`/`match_parent`;
273 `FrameLayout @id/drawer` `match_parent`/`match_parent`,
274 `layout_gravity="left"`, `background="@color/gearhead_sdk_card"`
275 (day `@color/gearhead_sdk_card_light` → `@color/gearhead_sdk_grey_50` =
276 `#fffafafa`, `colors.xml:801,806,846`;
277 night `@color/gearhead_sdk_card_dark` → `#ff172026`,
278 `values-night/colors.xml:89`, `colors.xml:821`),
279 `layout_marginEnd="96dp"` →
280 `ViewStub @id/drawer_stub` `match_parent`/`match_parent`,
281 `layout="@layout/drawer_contents"`, `inflatedId="@+id/drawer_contents"`;
282 `ViewStub @id/alpha_jump_layout_stub` → `@layout/alpha_jump_layout`.
283- `drawer_contents.xml`: root `FrameLayout` `match_parent`/`match_parent`;
284 `FrameLayout @id/drawer_shadow` `match_parent` /
285 `@dimen/gearhead_sdk_drawer_header_height` (= **96dp**, `dimens.xml:1061`),
286 `background="@color/gearhead_sdk_card_background"`
287 (day `@color/gearhead_sdk_button_background_day` → `#fffafafa`,
288 `colors.xml:802,794`; night `@color/gearhead_sdk_button_background_night` →
289 `#191f27`, `values-night/colors.xml:90`, `colors.xml:795`),
290 `focusable="false"`;
291 `CardView @id/unlimited_browsing_exit_header` `match_parent`/`wrap_content`,
292 `gone`, margins top/start 8dp, end 8dp
293 (`content_browse_notification_margin`/`_margin_end`, `dimens.xml:513-514`),
294 `cardBackgroundColor="@color/gearhead_sdk_blue_grey_800"` (= `#ff37474f`,
295 `colors.xml:789`),
296 `cardCornerRadius="@dimen/gearhead_sdk_card_view_corner_radius"` (= **2dp**,
297 `dimens.xml:1057`),
298 `cardElevation="@dimen/gearhead_sdk_card_view_elevation"` (= **8dp**,
299 `dimens.xml:1058`) →
300 `LinearLayout` `match_parent` /
301 `@dimen/content_browse_notification_height` (= **88dp**, `dimens.xml:512`),
302 horizontal →
303 `TextView @id/unlimited_browsing_exit_text` `0dp`/`match_parent`, weight 1,
304 `text="@string/content_browse_park_to_continue"` (exact string NOT READ),
305 `paddingStart="@dimen/content_browse_notification_text_padding"` (= **22dp**,
306 `dimens.xml:515`), `gravity="center_vertical"`,
307 `style="@style/GearheadSdkContentBrowseNotification"`
308 (`styles.xml:7058-7063`: `textSize @dimen/gearhead_sdk_body_2_size` = **26dp**,
309 `dimens.xml:1051`; `textColor @color/gearhead_sdk_grey_100` = `#fff5f5f5`,
310 `colors.xml:841`; `fontFamily sans-serif-condensed`);
311 `TextView @id/unlimited_browsing_exit_button` `wrap_content`/`wrap_content`,
312 `text="@string/content_browse_unlimited_browsing_exit"` = `Exit`
313 (`values/strings.xml:1121`), `textColor="@color/unlimited_browsing_exit_text"`
314 (value NOT READ), `background="?attr/gearheadLockoutExitButtonBackground"`,
315 paddings vert **8dp** (`dimens.xml:3560`), horiz **16dp** (`dimens.xml:3557`),
316 margins start **24dp** (`dimens.xml:3559`), end **16dp** (`dimens.xml:3558`),
317 `textAllCaps="true"`, `center_vertical`, same style;
318 `FrameLayout` `match_parent`/`match_parent`,
319 `layout_marginTop="96dp"` →
320 `UnlimitedBrowsePagedListView @id/drawer_list_view` (class **MISSING**;
321 `sdk/ui/PagedListView.java` is the readable truth)
322 `match_parent`/`match_parent`, `paddingEnd="32dp"`;
323 `ProgressBar @id/progress` 48dp×48dp, center, indeterminate;
324 `CardView @id/truncated_list_card` `match_parent`/`88dp`, `gone`, bottom,
325 margins L/R/B 8dp, same card colors/radius/elevation →
326 `TextView @id/truncated_list_text` `match_parent`/`match_parent`,
327 `center_vertical`, paddings 22dp, same style. No explicit `textSize`.
328- `adu_drawer.xml`: root `merge` →
329 `CardView @id/truncated_list_card` same 88dp/`gone`/margins/card →
330 `TextView @id/truncated_list_text` same;
331 `LinearLayout` vertical `match_parent`/`match_parent`, `elevation="7dp"` →
332 `View @id/top_focus_dummy` 0dp/0dp elev 7dp;
333 `View @id/lockout_scrim` `match_parent`/`match_parent`, `gone`,
334 `background="@color/speedbump_drawer_scrim"`
335 (day `@color/speedbump_drawer_scrim_day` → `#e6fafafa`, `colors.xml:3687-3688`;
336 night → `#e6172026`, `values-night/colors.xml:364`, `colors.xml:3689`),
337 `paddingEnd="32dp"`, elev 7dp;
338 `View @id/bottom_focus_dummy` 0dp/0dp elev 7dp;
339 `PagedListView @id/menu_list` `match_parent`/`match_parent`,
340 `layout_marginTop="96dp"`, `paddingEnd="32dp"`, `app:listMaxWidth="0dp"`;
341 `TextView @id/empty_view` `match_parent`/`match_parent`, `gone`,
342 `text="@string/appdecor_menu_empty"` (exact string NOT READ), `gravity="center"`,
343 `style="@style/GearheadSdkBody1"` (`styles.xml:6975-6981`:
344 `textSize @dimen/gearhead_sdk_body_1_size` = **32dp**, `dimens.xml:1050`;
345 `textColor @color/gearhead_sdk_body1` (value NOT READ);
346 `fontFamily sans-serif-condensed`, `duplicateParentState true`);
347 `ProgressBar @id/progress` 48dp, `gone`, center, indeterminate;
348 `FrameLayout @id/drawer_shadow` `match_parent`/`96dp`, same card_background,
349 `focusable="false"`, `clickable="true"`;
350 `AlphaJumpFab @id/alpha_jump_fab` 96dp×96dp
351 (`@dimen/alpha_jump_fab_width_height`, `dimens.xml:134`), `gone`,
352 `end|top`, `marginTop @dimen/alpha_jump_fab_margin_top` = **48dp**
353 (`dimens.xml:132`), `marginEnd @dimen/alpha_jump_fab_margin_end` = **22dp**
354 (`dimens.xml:131`), `elevation="@dimen/fab_elevation"` = **8dp**
355 (`dimens.xml:834`);
356 `AlphaJumpKeyboard @id/alpha_jump_keyboard` `match_parent`/`match_parent`,
357 `gone`, `background="@color/gearhead_sdk_card"`,
358 `layout_marginTop="@dimen/alpha_jump_keyboard_margin_top"` = **96dp**
359 (`dimens.xml:138`), `app:mode="fixed"`,
360 `app:use_appdecor_drawer_keyboard="true"`;
361 `RelativeLayout @id/fundip_container` `match_parent`/`match_parent`, `gone`,
362 bottom, `elevation="1500dp"` →
363 `ImageView @id/fundip_drawable` `wrap_content`/`96dp`, `marginBottom 8dp`,
364 `src="@drawable/speedbump_animation_big_day"`, bottom/center;
365 `TextView @id/lockout_text` `wrap_content`/`wrap_content`,
366 `text="@string/speedbump_lockout_message"` = `Safety pause. Back soon.`
367 (`values/strings.xml:2581`), **`textSize="26dp"`** (only explicit textSize in
368 drawer set), `gravity="center"`, aligned to fundip drawable,
369 `style GearheadSdkBody1`.
370
371#### `adu_status_bar_view.xml` / `app_bar.xml` / `alpha_jump_layout.xml`
372
373- `adu_status_bar_view.xml` root `merge` →
374 `LinearLayout @id/car_mic_underlay` horizontal `match_parent`/`96dp`,
375 `paddingStart="96dp"` (`gearhead_sdk_drawer_header_menu_button_size`,
376 `dimens.xml:1062`), `elevation="@dimen/appdecor_status_bar_elevation"`
377 (= **8dp**, `dimens.xml:187`), `animateLayoutChanges="true"`,
378 `clipToPadding="false"` →
379 `LinearLayout @id/car_drawer_title_container` horizontal `0dp`/`match_parent`,
380 weight 1 →
381 `ImageView @id/header_app_icon_view` `@dimen/gearhead_sdk_body_1_size`
382 (= **32dp**) / `match_parent`, `gone`, `fitCenter`,
383 `layout_marginEnd="@dimen/gearhead_sdk_standard_margin"` (= **16dp**,
384 `dimens.xml:1102`), elev 8dp, `right`;
385 `TextView @id/car_drawer_title` `wrap_content`/`match_parent`,
386 `singleLine`, `ellipsize end`, `center_vertical`, `focusable false`,
387 `style="@style/GearheadSdkTitle"` (`styles.xml:7145-7151`:
388 `textSize @dimen/gearhead_sdk_title_size` = **26dp**, `dimens.xml:1107`;
389 day `@color/gearhead_sdk_title_dark` → `grey_900 #ff212121`,
390 `colors.xml:902-903,851`; night `#fff5f5f5`, `colors.xml:904,841`;
391 `sans-serif-condensed`, `includeFontPadding false`);
392 `CardView @id/car_search_box`
393 `@dimen/gearhead_sdk_app_layout_search_box_small_width` (= **320dp**,
394 `dimens.xml:1049`) / `match_parent`, margins top/bottom `16dp`, weight 0,
395 `focusable false`, `center_vertical`,
396 `cardBackgroundColor="@color/search_box_card"`
397 (day `#fffafafa`, `colors.xml:3589-3590`; night `#ff172026`,
398 `values-night/colors.xml:316`, `colors.xml:3591`) → …hint
399 `TextView @id/car_search_box_hint` `text="@string/appdecor_search_box_hint"`
400 (exact string NOT READ), `textColor="@color/search_box_text_secondary"`
401 (day `#8a000000`, `colors.xml:3598-3599`; night `#66ffffff`,
402 `values-night/colors.xml:319`, `colors.xml:3600`), same Title style;
403 edit container `gone` → `ImageView @id/car_search_box_icon`
404 `@dimen/appdecor_icon_size` (= **44dp**, `dimens.xml:185`) marginStart 12dp;
405 `CarRestrictedEditText @id/car_search_box_edit_text` `0dp`/`match_parent`,
406 weight 1, hint same string, primary `#de000000` day / `#a6ffffff` night
407 (`colors.xml:3595-3597`), `background="@null"`, paddings 16dp,
408 `singleLine`, `imeOptions actionSearch`, same Title style;
409 `FrameLayout @id/car_drawer_button_frame` 96dp×96dp,
410 `background="?attr/gearheadHeaderButtonBackground"`, `addStatesFromChildren`
411 → `ImageView @id/car_drawer_button` 96dp / 96dp-height, `gone`,
412 `scaleType center`, elev 8dp, `focusable false`, center;
413 `ImageView @id/search_exit_button` 96dp/96dp-height, `gone`, same bg,
414 `src="0x7f080505"`, center, elev 8dp, `focusable true`;
415 `ImageView @id/car_mic_button` 96dp/96dp-height, same bg,
416 `src="@drawable/ic_mic_enabled_white"`, center, elev 8dp, `focusable false`,
417 `end`.
418- `app_bar.xml` root `TouchStealingFrameLayout @id/app_bar_container`
419 `match_parent`/`wrap_content`, top,
420 `foreground="@drawable/app_bar_container_foreground"` →
421 `FrameLayout @id/background_app_bar` `match_parent`/`match_parent`,
422 `alpha="0"`; `FrameLayout @id/app_bar_inset` `match_parent`/`match_parent`,
423 margins start/end `@dimen/app_bar_horizontal_margin`
424 (→ `gearhead_edge_column_margin` → `gearhead_width_keyline_1` = **8dp**,
425 `dimens.xml:144,928,1163`) →
426 `ImageView @id/transition_view` `gone`;
427 `LinearLayout @id/widget_container` horizontal `match_parent` /
428 `@dimen/app_bar_height` (= **72dp**, `dimens.xml:143`),
429 `baselineAligned="false"` →
430 `FrameLayout @id/header_button_frame` `@dimen/gearhead_edge_column_width`
431 (= `@dimen/gearhead_touch_target_minimum_size` = **68dp**, `dimens.xml:929,1156`)
432 / `match_parent`, `gone` →
433 `FrameLayout @id/header_button_tap_target`
434 `@dimen/app_bar_header_button_size` (= 68dp minimum, `dimens.xml:141`) square,
435 center, `background="@drawable/gearhead_oval_focus_background"`,
436 `focusable/clickable true` → `ImageView @id/header_button_image`
437 `match_parent`/`match_parent`, center;
438 `FrameLayout @id/header_icon_container` 68dp/`match_parent`, `gone` →
439 `ImageView @id/header_icon_image` `@dimen/app_bar_header_icon_size`
440 (= **44dp**, `dimens.xml:142`) square, center, `fitCenter`;
441 `FrameLayout` (no id) `0dp`/`match_parent`, weight 1 →
442 `TextView @id/app_bar_title` `match_parent`/`match_parent`, `gone`,
443 `singleLine`, `ellipsize end`, `center_vertical`, `focusable false`,
444 margins `@dimen/app_bar_title_horizontal_margin` (→ `gearhead_padding_1` =
445 **8dp**, `dimens.xml:151,1030`),
446 `style="@style/TextAppearance.Boardwalk.Body3"`
447 (`styles.xml:9288-9291`, parent `TextAppearance.Boardwalk`
448 `styles.xml:9267-9271`: `textSize @dimen/boardwalk_body3_text_size` = **24dp**,
449 `dimens.xml:221`; `fontFamily ?attr/bodyLegacySansSerifFontFamily`;
450 color `@color/boardwalk_default_text_color` → `@color/boardwalk_white` =
451 `#ffffff`, `styles/colors 231,292`);
452 `LinearLayout @id/tab_strip` `gone`; `LinearLayout @id/auxiliary_buttons_strip`
453 `wrap_content`/`match_parent`, `gone`.
454- `alpha_jump_layout.xml` root `FrameLayout` →
455 `AlphaJumpFab @id/alpha_jump_fab` 96dp, `gone`, `end|top`, margins top 48dp /
456 end 22dp, elev 8dp;
457 `AlphaJumpKeyboard @id/alpha_jump_keyboard` `match_parent`/`match_parent`,
458 `gone`, `background gearhead_sdk_card`, marginTop 96dp, `mode fixed`,
459 `use_appdecor_drawer_keyboard true`.
460
461#### `app_launcher_item.xml` / `assistant_scrim.xml`
462
463- `app_launcher_item.xml` root support-`ConstraintLayout` `0dp` /
464 `@dimen/gearhead_launcher_app_height` (= **156dp**, `dimens.xml:980`),
465 weight 1,
466 `background="@drawable/gearhead_rectangle_round_corner_focus_background"`,
467 paddings L/R `@dimen/gearhead_launcher_app_left_right_paddding`
468 (triple-d in file) = **10dp** (`dimens.xml:981`),
469 T/B `@dimen/gearhead_launcher_app_top_bottom_paddding` = **14dp**
470 (`dimens.xml:984`), `focusable true`, `visibility="invisible"` →
471 `CardView @id/icon_circular_crop_container`
472 `@dimen/gearhead_launcher_icon_diameter` (= **84dp**, `dimens.xml:989`) square,
473 center, `cardBackgroundColor @android:color/transparent`,
474 `cardCornerRadius @dimen/gearhead_launcher_icon_radius` (= **42dp**,
475 `dimens.xml:990`), `cardElevation 0dp` →
476 `ImageView @id/icon` `match_parent`/`match_parent`;
477 `ImageView @id/notification_badge`
478 `@dimen/gearhead_launcher_notification_badge_diameter` (= **22dp**,
479 `dimens.xml:995`) square,
480 `background="@drawable/launcher_notification_badge"`,
481 margins top **2dp** (`dimens.xml:997`), right **3dp** (`dimens.xml:996`);
482 `ImageView @id/badge_background`
483 `@dimen/gearhead_launcher_badge_background_diameter` (= **34dp**,
484 `dimens.xml:985`), margins left **53dp** (`dimens.xml:987`), top NOT READ
485 (second margin attribute value NOT READ — same element also carries top margin;
486 exact second value not captured, see §9.1);
487 `ImageView @id/badge` `@dimen/gearhead_launcher_badge_diameter` (= **28dp**,
488 `dimens.xml:986`);
489 `TextView @id/label` `match_parent` /
490 `@dimen/gearhead_launcher_label_height` (= **28dp**, `dimens.xml:991`),
491 `layout_marginTop="@dimen/gearhead_launcher_label_margin"`
492 (→ `gearhead_baseline_grid_2x` = **16dp**, `dimens.xml:992,898`),
493 `maxLines 1`, `center_horizontal`,
494 `style="@style/AppLauncherItemText"` (`styles.xml:188-194`, parent
495 `GearheadSdkBody2`: `textSize @dimen/gearhead_launcher_label_text_size` =
496 **24dp**, `dimens.xml:993`; `textColor @color/boardwalk_white` = `#ffffff`,
497 `colors.xml:292`; `alpha @dimen/boardwalk_launcher_text_opacity` =
498 **1** day (`dimens.xml:234`) / **0.88** night
499 (`values-night/dimens.xml`); `fontFamily
500 ?attr/bodyLegacyRobotoRegularFontFamily`; `ellipsize 3`).
501- `assistant_scrim.xml` root `FrameLayout @id/assistant_scrim`
502 `match_parent`/`match_parent`,
503 `background="@color/assistant_scrim_background_color"` (= `#151616`,
504 `colors.xml:41`), `focusable="true"`, `alpha="0.24"`. No children.
505
506### 2.3 Night deltas (exact)
507
508`values-night/dimens.xml` (15 lines): **none of the requested dimen tokens
509differ** — only opacities (`boardwalk_assistant_mic_icon_unavailable_opacity`
5100.46→0.4, `boardwalk_launcher_text_opacity` 1→0.88, `boardwalk_opacity1` 1→0.88,
511`opacity2` 0.72→0.6, `opacity3` 0.56→0.5, `opacity4` 0.24→0.2, hun/notification
512opacities, `media_image_scrim_alpha` 0.6→0.8, `rail_icon_alpha_normal` 0.7→0.6).
513`values-night/colors.xml`: `gearhead_sdk_card` → dark `#ff172026`;
514`gearhead_sdk_card_background` → `#191f27`; `search_box_card` → `#ff172026`;
515`search_box_text_primary` → `#a6ffffff`; `search_box_text_secondary` →
516`#66ffffff`; `speedbump_drawer_scrim` → `#e6172026`.
517`values-night/integers.xml`: only `gearhead_rail_icon_alpha` 255→224.
518`values-night/styles.xml`: only survey/DayNight aliases — **none of the
519requested Widget/GearheadSdk styles overridden**. No `values-night-v*` dir.
520
521### 2.4 Behavior classes (all paths under
522`analysis/maauto/jadx-out/sources/`)
523
524- `com/google/android/apps/auto/components/system/statusbar/RailStatusBarFragment.java`:
525 `onCreateView:218-231` picks `hero_vertical_rail_statusbar` if `nso.F()&&D()`,
526 `vertical_rail_statusbar` if `F()`, `rail_statusbar_rhd` if `J()`, else
527 `rail_statusbar`; `onGetLayoutInflater:234-245` clones
528 `ThemeOverlay_Gearhead_Coolwalk_Dark` vs `DayNight` on `leg.a().b()` if
529 `acxa.aJ()`; `onViewCreated:248-497`; hero `z2:454-456` →
530 card+frame `setFocusable(false)/setClickable(false):458-459,471-472`, else
531 `true/true` + `OnClickListener nmp:463` + `OnLongClickListener jzr:464`,
532 wrapper focus foreground `kwi` with
533 `rail_coolwalk_status_bar_focus_drawable_inset:478-483`; badge
534 `e(count,verticalRail):166-211` `ValueAnimator.ofInt` width/height +
535 alpha/translationY, `duration 200`, listener `nzi`. No dpad/rotary/touch-target
536 code in file.
537- `.../system/facetbar/hotseat/RailHotseatItemView.java`: ctor `73-103`
538 inflates `rail_hotseat_item_view_dynamic_icon_shape:79`, padding
539 `coolwalk_rail_dock_icon_padding_gm3:93-95`, foreground `nmn:101`;
540 `a(nmj):125-190` defers via `ols.a+kok:140` if `!isLaidOut:134`, badge
541 `VISIBLE/GONE:153-159`, `setOnTouch(jzt)+setOnClick(nmp):161-162,188-189`;
542 icon change → shrink `scale 0.85, alpha 0.75, Accelerate, 83ms:174`;
543 pressed `e(view,event):244-254` `ACTION_DOWN scale 0.95 50ms`,
544 `ACTION_UP setBackground(null) scale 1.0`; disabled `g(view,disabled):113-123`
545 `saturation 0 + alpha 178` else `clear + 255`; `c(color):222-227` outline.
546- `.../system/facetbar/widget/RailWidgetView.java`: init `106-186` inflates
547 `sys_ui_coolwalk_rail_widget[_right]` on `nsr.J()` RHD; focus ring `kwi` on
548 `background_pill:157-163`; transition `coolwalk_rail_widget:164-166`;
549 `b(nnl):321-371` queue, hide `a(0.5,0,b,k):333` or exit
550 `beginDelayedTransition(m,E)+alpha/scale:338-342`, mini enter `345-351`,
551 `e():353-355,367-368`; `e(nnl):419-526` always `beginDelayedTransition:428`,
552 bg focus vs ripple `430-436`, `setFocusable(!z):468-469`, focus restore
553 `516-525`; `m(nnl):281-294` shrink `0.85/0.75 Accelerate:292`;
554 `o():300-315` fade `alpha 0 67ms`; `k():244-274` badge `alpha 0→1`;
555 `g():188-210` `colorSurface:192`, pill ripple gm3:204;
556 `d():384-414` `colorSurface/OnSurface:401-402`.
557- `.../system/dashboard/design/DashboardCardView.java`: `onAttached:125-128`
558 `addOnGlobalFocusChangeListener(f:hle)`, `onDetached:131-134` remove;
559 `addView:75-117` forwards to `b:ConstraintLayout`;
560 `onInterceptTouchEvent:137-143` swipe via `e.e(motion)` if `d` (attr
561 `mwm.a:61-62`, `d=true:45`); `onTouchEvent:158-178` handles 1/2/3 via `mwu`;
562 `c:close_button_inner` click `mli:60`. Base
563 `.../coolwalk/card/CoolwalkCardView.java:57-91` draws `kwi` in
564 `onDrawForeground`, `drawableStateChanged:64-70`.
565- `com/google/android/projection/gearhead/sdk/CarDrawerLayout.java:33-88`:
566 ctor `h(1):39`; scrim `k(color):57-59` `super.k((rgb)|(alpha*0.8)<<24)`;
567 `dispatchGenericMotionEvent:43-48` + `dispatchKeyEvent:51-54` call `s()`;
568 `onLayout:62-88` resets `l.e(0)`, drawer children `alpha=fE`. No
569 back/scrim-click/focus code in file.
570- `.../components/drawer/MotionFilteringDrawerLayout.java:25-84`: `y(1.0)`,
571 `setFocusable(0)`, scrim transparent:30; `y(f):82-84` `touchSlop*f`;
572 `k(i):35-37` dim `*0.8`; `onInterceptTouchEvent:41-80` tracks X axis vs
573 `lbb.a` slop, DOWN/UP/CANCEL reset, in-slop MOVE returns false.
574- `.../coolwalk/button/CoolwalkButton.java`: `b=kwi:32`,
575 `LayerDrawable[foreground,kwi]:48-50`; `hasFocus:74-76` /
576 `requestFocus:85-87` delegate to parent `FocusInterceptor`;
577 `onAttached:79-82` auto-wrap; setters sync `FocusInterceptor.a:90-111`;
578 `setVisibility:136-141` forwards to parent; `setLayoutParams:128-133`
579 throws if parent is `FocusInterceptor` (touch target lives on parent).
580- `.../ui/media/PlayPauseStopCoolwalkButton.java:30-62`: merges
581 `R.attr.state_play` if `c in 1,2`, `state_stop` if `c in 3-6,8-11 && d!=1`,
582 else `state_pause`; unknown logs `n.h():39`; `c=-1,d=1:25-26`.
583- `.../coolwalk/focusring/TappableRegion.java:30-135`: style
584 `Widget_Gearhead_Coolwalk_TappableRegion`, `kwi:34` foreground:36,
585 `RippleDrawable(coolwalk_tappable_region_ripple_color_selector):41-43`;
586 same focus delegation + `setBackground` guard `c:84-95`.
587- `.../coolwalk/focusring/FocusInterceptor.java:35-180`: `focusable+clickable`,
588 `descendantFocusability 393216`; `a(view):47-64` sync;
589 `b(view):66-91` throws if parent Constraint/Relative, else wraps + `fww.u`;
590 dpad `getNextFocusDown/Up/Left/Right/Forward:121-163`;
591 `dispatchSetPressed:116-118`, `performClick:178-180`,
592 `onFocusChanged:166-175` + `setActivated(z)`.
593- `.../sdk/ui/PagedListView.java`: rotary `onGenericMotionEvent:361-435`
594 ignores if `gearhead_sdk_true_for_touch||f():365-367`, 50px steps
595 `requestFocus:398-404`, ≥15px drag consumes:385; dpad
596 `dispatchKeyEvent:238-252`, `onKeyUp:446-455` (22→66, 21→l()),
597 `onRequestFocusInDescendants:491-498`, `onLayout:458-488` autofocus;
598 `d(show):217-235` scrollbar; `n(colorIdx):339-342`;
599 `PagedScrollBarView.b():167-196` thumb vs night; `setClickable(true),
600 focusable(false):151-152`.
601- `.../drawer/AlphaJumpFab.java:17-42`: `ic_alpha_jump_fab` +
602 `alpha_jump_fab_background`, `setFocusable(false):29`, click forces
603 unfocusable. `.../drawer/AlphaJumpKeyboard.java:70-152`: `a(list)` sets
604 text/enabled/focusable/click; `onConfigurationChanged:104-152`
605 re-inflates, re-applies visibility/enabled/focusable, drawer bg if `j:108`.
606 `AlphaJumpKey.java:27-30` square `onMeasure(size,size)`.
607- Scrims are visibility bits, not windows:
608 `.../ui/actionpanel/ExpandingActionPanel.java:206,209-278,325-327,368-370`
609 (`R.id.action_panel_scrim`, `ChangeBounds+Fade`, `requestFocus`);
610 `.../ui/media/MediaPlaybackView.java:221-234,733-748`
611 (`R.id.playback_scrim`, `playback_scrim_coolwalk`, auto-hide when
612 `i==0 && o VISIBLE && driving (nrd)`).
613- `.../system/facetbar/ResizeButton.java:44-123`: Compose `kmd`;
614 type Exit/Smaller/Larger from `nit.a[1]:56-66`; orientation V/H from `[0]`;
615 `a=true GM3:54`; click `njg:111`.
616- `.../ui/media/MediaPlaybackView.java`: `onRequestFocusInDescendants:808-810`
617 / `setVisibility:813-818` via `n()`; `i(state):544-662`
618 (`k.c=Q():562`, corners `play_button_rounded_corners` vs `width/2:565,568`,
619 spring `emp:577-581`, skips/queue `omu.m:619-650`, `l():206-219`);
620 `d(colors):284-316` (bg `i3`, gradient `dvd.e`, button filter `i6:298-304`,
621 progress `f/j` + thumb `i4:306-314`); touch targets `un_ar_icon_size:692-714`;
622 progress focus `krj:753`.
623- `.../ui/listview/GhListView.java:26-46`: `n=nrd.a().c():29` rotary cap,
624 `q(omg:30)`, focus listener `krj:31`, `setPaddingRelative` no-op:45-46.
625 `UnListView.java:56-80` key 22/21 routing.
626- `.../ui/telecom/UnCallView.java` (+ `MaterialUnCallView.java`):
627 `b(one):94-204` incoming (`k==2`) vs active (`3`) via `ncp e/f/g/h/i/j`;
628 disabled `f(view,z):74-77` + alpha; hold disables `h/k/f:151,171-172`;
629 `onRequestFocusInDescendants:319-321`; `onFinishInflate:257-316` 4
630 `ImageButton` `un_ar_icon_size:262`, `end_call_fab focusable:285`,
631 `PHONE_FACET:299-300`; duration `postDelayed(l,1000):201`.
632- `.../ui/widget/navigation/DetailedNavigationStepView.java:34-78`
633 (`turn_symbol/distance/description/lanes_image/turn_container/lanes_container`,
634 GONE-if-empty) +
635 `.../ui/widget/navigation/NavigationTravelEstimateView.java:31-59`
636 (`arrival_time_text/time_and_distance_text`, GONE-if-empty). No
637 focus/dpad/rotary/night/touch code in either file.
638- **MISSING classes:** `RailHotspot` (facetbar has only `CircleOverlayView`,
639 `ResizeButton`, `hotseat/`, `widget/`); `UnlimitedBrowsePagedListView`
640 (sdk/ui has `PagedListView`, `CarRecyclerView`, `AutoTunedRecyclerView`,
641 `PagedScrollBarView`, `FocusClusterLayout`, `MaxWidthLayout`,
642 `CarLayoutManager`, `FloatingActionButton`); standalone assistant-scrim class;
643 `*Voice*Plate*` class for `@id/voice_plate`.
644
645### 2.5 `layout-car/` + `values-car/`
646
647- `layout-car/`: 1 file — `common_switch_bar_toggle_widget.xml` (Switch,
648 `?attr/switchStyle`). No HU surface file.
649- `values-car/`: `dimens.xml` (28 `bubble_*`+`survey_*` entries, e.g.
650 `bubble_size` 64dp vs 56dp base — no requested tokens), `drawables.xml` (6
651 survey icons + `survey_close_button_icon=?unknown_ref: 7f0809f6`),
652 `strings.xml` (3 survey fonts: `google-sans[-medium|-regular]`),
653 `styles.xml` (11 survey styles). No requested Widget styles.
654
655---
656
657## 3. MA `CarDisplay.kt` inventory (exact lines)
658
659Path prefix: `auto/src/main/java/com/vayunmathur/auto/platform/CarDisplay.kt`.
660No `Typeface` set anywhere, no `elevation` anywhere, no icon tint (hotseat
661explicitly untinted, L728 comment). Constants: `MATCH` L1049, `WRAP` L1050,
662`COLUMNS=3` L1051, `MAX_DOCK_APPS=3` L1056, `MAPS_PACKAGE/LABEL` L1059-1060,
663`MAX_INVALIDATE_FPS=60` L1067, `dp()` L1045-1046.
664
665- `onCreate` L463-492: `root` L470-474 + `content` FrameLayout L476-480 +
666 `facetBar(apps)` L482 + `setContentView` L483 + `pendingNowPlaying` L485-486 +
667 clock start L488-491.
668- `root` LinearLayout L470-474: VERTICAL L471, bg `#101418` L472,
669 `ViewGroup(MATCH,MATCH)` L473.
670- `content` FrameLayout L476-480: `LinearLayout(MATCH,0,1f)` L477; children
671 `splitCards(apps)` L478, `appDrawer(apps).also{drawerView=it}` L479.
672- `facetBar` LinearLayout L681-686: HORIZONTAL L682, CENTER_VERTICAL L683,
673 bg `#161C24` L684, `LinearLayout(MATCH,WRAP)` L685,
674 padding `dp(10),dp(6),dp(6),dp(6)` L686.
675 Home `facetButton` L687-691 (glyph `R.string.car_home_glyph` L688 =
676 `⌂`, `strings.xml:279`; tap `drawerView=GONE` L689).
677 Hotseat container LinearLayout L693-696: HORIZONTAL, CENTER,
678 `LinearLayout(0,WRAP,1f)` L696; fills `apps.take(MAX_DOCK_APPS)` L697 +
679 `hotseatCell(app)` L698 + drawer cell L701-704 (`drawerView=VISIBLE` L702).
680 Status `facetStatus()` L707.
681- `facetButton` TextView L712-724: text glyph L714, desc L715, WHITE L716,
682 **28sp** L717, CENTER L718, `LinearLayout(dp(68),dp(68))` L719,
683 clickable/focusable L720-721, click L722.
684- `hotseatCell` FrameLayout L732-760: `LinearLayout(dp(68),dp(68))` L734,
685 clickable/focusable L735-736. App ImageView L739-744: drawable L740, desc
686 label L741, padding `dp(8)` all L742,
687 `FrameLayout(dp(56),dp(56),CENTER)` L743; tap `startActivity(app.launch)`
688 L746. Drawer-glyph TextView L749-755 (null app): text `car_drawer_glyph`
689 L750 = `▦` (`strings.xml:277`), WHITE, 28sp, CENTER,
690 `FrameLayout(dp(56),dp(56),CENTER)` L754; tap `onDrawerTap` L757.
691- `facetStatus` TextView (`clockView` L774) L767-775: WHITE L769, **24sp** L770,
692 `END|CENTER_VERTICAL` L771, `LinearLayout(WRAP,dp(68))` L772,
693 padding `dp(6),0,dp(6),0` L773.
694- `splitCards` LinearLayout L783-789: HORIZONTAL L784, `ViewGroup(MATCH,MATCH)`
695 L788 (comment L785-787), padding `dp(16),dp(8),dp(16),dp(8)` L789. Children:
696 `navCard` `LinearLayout(0,MATCH,1f)+marginEnd=dp(8)` L791-795,
697 `nowPlayingCard` `LinearLayout(0,MATCH,1f)+marginStart=dp(8)` L797-803.
698- `navCard` LinearLayout L819-823: VERTICAL L820, CENTER L821, bg `#1B2430`
699 L822, padding `dp(8)` all L823. Clickable/focusable only if maps!=null
700 L864-865, `startActivity(maps.launch)` L866 (pick L815-818).
701 Banner TextView (`navBanner` L829) L825-834: **18sp** L826, WHITE L827,
702 CENTER L828, `GONE` L830, `LinearLayout(MATCH,WRAP)+bottomMargin=dp(8)`
703 L831-833.
704 TextureView L837-861: `LinearLayout(MATCH,0,1f)` L838, listener L839-860 →
705 `mapSurfaceListener(Surface,w,h)` L845 / `(null,0,0)` L855 / `true` L856.
706- `nowPlayingCard` LinearLayout L562-572: VERTICAL L563, bg `#1B2430` L564,
707 padding `dp(24),dp(16),dp(24),dp(16)` L565, `LinearLayout(MATCH,WRAP)` L566
708 (caller overrides to `LinearLayout(0,MATCH,1f)+marginStart=dp(8)` L798-802),
709 clickable L567, focusable L568, `GONE` L571, click `onMediaTap` L617.
710 Header TextView L574-579: `car_now_playing` L575 (`strings.xml:263`),
711 `#8AB4F8` L576, **14sp** L577. Title (`mediaTitle` L585) L581-586: **28sp**,
712 maxLines 1, WHITE. Subtitle (`mediaSubtitle` L592) L589-593: **24sp**,
713 `#C7CFD9`. State (`mediaState` L599) L596-600: 14sp, `#8AB4F8`. Track View
714 L602-607: bg `#2A3138`, `LinearLayout(MATCH,dp(4))+topMargin=dp(12)`.
715 Fill (`mediaProgress` L614) L609-615: bg `#8AB4F8`,
716 `LinearLayout(0,dp(4))+topMargin=dp(-4)` (negative overlap). Width mutated
717 L546-548. Bounds L619-627 (`OnGlobalLayoutListener` L620,
718 `getLocationOnScreen` L623, `onCardBounds` L624).
719- `appDrawer` LinearLayout L895-900: VERTICAL L896, bg `#101418` L897,
720 `ViewGroup(MATCH,MATCH)` L898, `GONE` L899, padding `dp(16)` all L900.
721 Heading TextView L902-907: `car_drawer_apps` L903 (`strings.xml:275` =
722 `Apps`), WHITE, **28sp**, padding `0,0,0,dp(16)` L906.
723 Empty TextView L911-917 (if `apps.isEmpty()` L909): `car_no_apps` L912
724 (`strings.xml:273`), `#8AB4F8`, **24sp**, CENTER,
725 `LinearLayout(MATCH,0,1f)` L916.
726 GridLayout L921-924: `columnCount=COLUMNS` L922,
727 `LinearLayout(MATCH,0,1f)` L923. Item wrapper
728 `GridLayout.LayoutParams(width=0,height=dp(156),columnSpec=spec(UNDEFINED,1,FILL,1f))`
729 L927-935, tap `startActivity`+`drawerView=GONE` L937-940.
730- `launcherItem` LinearLayout L956-961: VERTICAL L957, CENTER_HORIZONTAL L958,
731 padding `dp(8)` all L959, clickable/focusable L960-961.
732 Icon ImageView L963-973: drawable L964, desc L965,
733 `LinearLayout(dp(84),dp(84))` L966, `clipToOutline=true` L967,
734 `outlineProvider=setOval(0,0,w,h)` L968-972 (circular, no CardView L952-953).
735 Label TextView L976-985: label L977, WHITE L978, **24sp** L979, CENTER L980,
736 maxLines 1 L981, `LinearLayout(MATCH,dp(28))+topMargin=dp(16)` L982-984.
737- Dead code (no callers): `statusBar()` L632-665, `divider()` L667-670,
738 `appGrid()` L990-1006, `appCell()` L1008-1033 (72dp icon L1019, 16sp label
739 L1026), `emptyState()` L1035-1043 (20sp L1039).
740- Touch/key/scroll: `TapBounds` L1082-1085 (inclusive contains);
741 `mediaCardBounds` volatile L96, `onCardBounds` L136-138 (ctor param L395);
742 `handleCarTap(x,y)` L218-223 (null→false, miss→false, hit→post onMediaTap);
743 `injectTouch` L236-240; `dispatchTouch` L285-335 (decor L290,
744 ACTION_DOWN+1-pointer card-intercept L295-298, downTime L300-305,
745 POINTER_DOWN/UP shift L306-312, id L313-315, x/y/pressure=1 L316-322,
746 `SOURCE_TOUCHSCREEN` L323-327, dispatch L328, recycle L329, reset on UP/CANCEL
747 L330-334); `injectKey` L246-256 (`KeyEvent` DOWN/UP L249-252,
748 `decorView.dispatchKeyEvent` L253); `injectScroll` L262-282
749 (`AXIS_VSCROLL=delta` L266-268, `ACTION_SCROLL` + `SOURCE_MOUSE` L269-277,
750 `decorView.dispatchTouchEvent` L278).
751- Invalidation: `startFrameInvalidation(fps)` L199-201 →
752 `CarPresentation.startFrameInvalidation` L441-454 (`stop` L442, decor L443,
753 `intervalMs=(1000/fps.coerceIn(1,60)).coerceAtLeast(0)` L444 cap
754 `MAX_INVALIDATE_FPS` L1067, `tick{invalidate; postDelayed}` L446-451);
755 `stopFrameInvalidation` L456-461; doc L433-437, L191-198; `onStop` stops L501;
756 1Hz clock `ticker` L425-431 started L488-491.
757- Content updates: `updateNowPlaying` GONE-when-idle L525-527, texts L531-536,
758 progress fraction L543-551 (`progressFraction` L1069-1073: 0.5 if no
759 duration); `updateNavSnapshot` L876-885 (VISIBLE iff `guidanceActive &&
760 bannerText()!=null` L879-881 else GONE); `bannerText()` L37-46
761 (`"$turn · $road"` L41); `onStop` nulls views/listeners L499-512.
762- Trusted route: `trusted:Boolean=false` L63-69, `PRESENTATION` else
763 `|trustedDisplayFlag()` L115-129, reflective `VIRTUAL_DISPLAY_FLAG_TRUSTED`
764 else 0 L1091-1101, KDoc L117-119/51-56.
765
766---
767
768## 4. Per-surface diffs (checklists — `[ ]` = open gap)
769
770### 4.1 Status bar / clock
771
772- [x] Signal/battery/phone-status content. Gearhead rail carries a
773 `RailStatusBarFragment` (`gh_coolwalk_facet_bar.xml: @id/status_bar`,
774 `RailStatusBarFragment.java:218-245` layout/theme pick + `248-497` clock,
775 icon row, notification badge count with 200ms width/height/alpha/translationY
776 animator `166-211`). MA now builds the same vertical packed chain in
777 `CarDisplay.kt:facetStatus/iconRowView` — icon row (36dp signal overlay +
778 24dp cell bars + 24dp battery with 6dp sides/2dp verticals + 24dp DND gone +
779 8dp badge with 12/4dp margins, all `colorOnSurface` day / 224 night)
780 constrained above the 24sp clock, fed by `PhoneStatusMonitor`
781 (TelephonyManager bars 0-4, sticky battery level + charging, interruption
782 filter DND, listener badge count) on the 1Hz ticker. Absent sources stay
783 gone (never faked); the 200ms badge animator is not reproduced (instant
784 visibility). DHU shots: `dhu_ma_statusbar_*` vs `dhu_gearhead_statusbar_*`.
785- [x] Status-bar fragment layouts compared. `rail_statusbar`,
786 `hero_vertical_rail_statusbar` read fully (vertical packed chain, icon row
787 margins, badge/DND slots, autosize single-line clock `h:mm`/`HH:mm` Body3
788 `colorOnSurface`, card `windowBackground` radius 18dp elev 0). Remaining
789 variants (`vertical_rail_statusbar`, `rail_statusbar_rhd`) share the same
790 slot geometry mirrored; see §9.1. MA equivalent: `facetStatus()` cluster.
791- [x] Day/night theme pick. Gearhead clones
792 `ThemeOverlay_Gearhead_Coolwalk_Dark` vs `DayNight`
793 (`RailStatusBarFragment.java:234-245`). MA `setNight` recolors the full
794 palette per §2.3 night deltas (cards `#ff172026`, shadow `#191f27`, hint
795 `#66ffffff`, labels 0.88, icons/clock 224, scrim `#e6172026`) and tints the
796 status icons; the service drives it from `NavSnapshot.isNight` (HU truth,
797 phone seed fallback) via `VideoSinkChannel.setNightDark`.
798- [x] Hero (minimized-widget) focus suppression. Gearhead sets
799 card+frame unfocusable/unclickable when `z2` (`RailStatusBarFragment.java:
800 454-459,471-472`), else clickable + focus foreground `kwi` with
801 `rail_coolwalk_status_bar_focus_drawable_inset` (`:463-464,478-483`).
802 MA maps hero to badge-visible (`updatePhoneStatus`): badge on means
803 unfocusable/unclickable, badge off means clickable with the focus ring.
804
805### 4.2 Facet / rail bar
806
807- [x] Assistant slot absent. Gearhead: 68dp `assistant_icon_container` with
808 56dp `live_fragment` (gone) + `circle_overlay` (gone) + 68dp `assistant_icon`
809 (gone, `gs_mic_fill1_vd_theme_24`) (`gh_coolwalk_facet_bar.xml`). MA: no
810 assistant view anywhere in `CarDisplay.kt` (deliberate — no backend).
811- [x] Dashboard icon differs. Gearhead `CoolwalkButton
812 @id/launcher_and_dashboard_icon` 68dp, marginStart 10dp,
813 `ic_dashboard_icon_lhd`, Rail.Button style (padding 8dp, inset 6dp, icon 40dp;
814 `styles.xml:18421-18432`). MA home `facetButton` TextView 68dp
815 (`CarDisplay.kt:712-724`), glyph `⌂` (`strings.xml:279`), 28sp WHITE, no
816 padding/inset/icon semantics (`:719` LP only).
817- [x] Ongoing-widget slots absent. Gearhead `ongoing_widget_container` +
818 `RailWidgetView @id/ongoing_widget` (gone) + `dock_container` +
819 `rail_ongoing_widget` (gone), margins 6dp, maxWidth 750dp, with
820 show/hide/transition/focus/ripple behavior
821 (`RailWidgetView.java:106-526`). MA: no widget container or pill.
822- [x] `etc` affordance absent. Gearhead `etc_icon` (gone, marginLeft 8dp,
823 `ic_gearhead_etc_rail_icon`, `?attr/colorOnSurface`, alpha 0.6)
824 (`gh_coolwalk_facet_bar.xml`). MA: none.
825- [x] Hotseat include visibility differs. Gearhead includes
826 `sys_ui_rail_hotseat` with `visibility="invisible"`. MA hotseat container is
827 always VISIBLE when built (`CarDisplay.kt:693-706`).
828- [x] Hotseat supports 4 slots; MA caps at 3. Gearhead
829 `hotseat_one..four` (`sys_ui_rail_hotseat.xml`), each 68dp
830 (`coolwalk_rail_dock_icon_touch_target_size`), `iconTint @null`, with
831 defer-if-`!isLaidOut`, badge show/hide, touch+click, icon-change shrink
832 (0.85/0.75, 83ms Accelerate), press scale 0.95/50ms, disabled
833 saturation-0/alpha-178 (`RailHotseatItemView.java:73-254`). MA
834 `MAX_DOCK_APPS=3` (`CarDisplay.kt:1056`), `apps.take(3)` (`:697`), 68dp cells
835 (`:734`), 56dp untinted icons with 8dp padding (`:739-744`), no badge, no
836 press/disabled animation, no defer.
837- [x] Dock icon geometry close but padding differs. Gearhead dock touch 68dp,
838 icon 52–56dp family (`dock_icon_touch 68dp :580`, `dock_button_icon 52dp
839 :572`, `hotseat_button_icon 56dp :581`, `hotseat_icon_touch 74dp :585`).
840 MA: 68dp cell + 56dp icon + 8dp padding (`CarDisplay.kt:734,742-743`) —
841 arithmetically 56+2×8=72 ≠ 68, so MA icons overflow the nominal cell by 4dp
842 (ImageView is 56dp with 8dp internal padding → 40dp visible; record exact
843 follow-up: measure drawn bounds on DHU shot).
844- [x] Hotseat guidelines absent. Gearhead `hotseat_start/end` 145dp + edge
845 `2dp` spacer + `edge_barrier` (`gh_coolwalk_facet_bar.xml`). MA: none.
846- [x] `rail_invisible_scrim` absent. Gearhead transparent `0dp/match_parent`
847 view. MA: none.
848- [x] Resize control absent. Gearhead `resize_button_ghost` 36×56dp gone +
849 `resize_button_tap_target` 64dp gone/clickable +
850 `ResizeButton` gone/vertical (`gh_coolwalk_facet_bar.xml`,
851 `ResizeButton.java:44-123` Compose Exit/Smaller/Larger). MA: none.
852- [x] Native-rail (back/exit) mode absent. Gearhead `native_rail` gone with
853 68dp back (`gs_arrow_back_vd_theme_48`) + exit (`0x7f08093a`) buttons. MA:
854 none.
855- [x] Voice-plate slot absent. Gearhead `voice_plate` gone match/match bottom
856 windowBackground; no `*Voice*Plate*` class found (MISSING). MA: none.
857- [x] Rail padding differs. MA rail padding `10,6,6,6dp`
858 (`CarDisplay.kt:686`) vs gearhead per-slot margins (dashboard 10dp start,
859 rail margins 6dp, gutter 10dp end) — reconciling requires the DHU shot
860 (§9.3).
861
862### 4.3 Media card
863
864- [x] Album art absent. Gearhead `album_art` 0dp centerCrop full-bleed +
865 `album_art_scrim` (gone, `dashboard_media_album_art_scrim`, fitXY) +
866 `source_badge` 24dp circle (`frag_dash_media.xml`). MA card
867 (`CarDisplay.kt:561-630`) has no ImageView at all (header/title/subtitle/
868 state/track/fill only) — admitted at `CarDisplay.kt:554-560`; `NowPlayingInfo`
869 carries title/artist/playing/position/duration only
870 (`MediaNowPlaying.kt:12-23`).
871- [x] Prev/next + play/pause row absent. Gearhead `media_button_row`: 88dp
872 `action_left`, 88dp `play_pause` (`ic_play_pause_stop_solid`,
873 state_play/state_stop/state_pause merge in
874 `PlayPauseStopCoolwalkButton.java:30-62`), 88dp `action_right`, Space
875 weights 1/2/2/1, insets 12dp, `nextFocusForward` chains, Primary
876 backgroundTint+overlay (`frag_dash_media_button_row.xml`,
877 `styles.xml:18156-18166`). MA: whole card is one tap target → `onMediaTap`
878 toggle (`CarDisplay.kt:567-568,617,221-222`; `MediaPlaybackMonitor.toggle()
879 :67-72` via `VideoSinkChannel.kt:328`); no prev/next, no queue
880 (`MediaPlaybackMonitor.kt:18-23` GAL 11/12 replacement, never speaks media
881 channels).
882- [x] Text specs differ. Gearhead title Body2 28dp `?attr/titleFontFamily`
883 primary, maxLines 1 (`integers.xml:37`), `includeFontPadding true`
884 (`bools.xml:27`) + style-level false, ellipsize 3, marginTop 5dp; subtitle
885 Body3 24dp `bodyLegacySansSerifFontFamily`, marginBottom 5dp; container
886 margins top 4dp / bottom 7dp + bias fraction; text padding 5dp
887 (`frag_dash_media.xml`, `styles.xml:18514-18519,18170-18172,9595-9597`).
888 MA: header 14sp `#8AB4F8` (`:574-579`), title 28sp WHITE maxLines 1
889 (`:581-586`), subtitle 24sp `#C7CFD9` (`:589-593`), state 14sp `#8AB4F8`
890 (`:596-600`); card padding 24/16 (`:565`); no fontFamily, no bias, no
891 includeFontPadding control.
892- [x] Progress bar differs. Gearhead `LinearProgressIndicator` 0dp×4dp,
893 `?attr/dashProgressColor` / `?attr/dashProgressSurface`, corner-radius
894 fraction (value NOT READ), thickness 4dp, marginBottom 4dp
895 (`frag_dash_media.xml`). MA: track View `MATCH×4dp` `#2A3138` topMargin 12dp
896 (`:602-607`) + fill `0×4dp` `#8AB4F8` topMargin **-4dp** overlap (`:609-615`),
897 width mutated post-layout (`:546-548`, fraction `:1069-1073`, 0.5 default);
898 no theme colors, no rounded corners.
899- [x] Card container differs. Gearhead `DashboardCardView` match/match,
900 `?attr/coolwalk_darkThemeOverlay`, `swipeToDismissEnabled false`, pager
901 guideline 52dp, `TappableRegion` wrappers with `kwi` + ripple +
902 `DashPrimaryTappableRegionAlbumArtMatchingShapeAppearance`, focusable primary
903 target false, `nextFocusForward` chain, focus-driven `onDrawForeground`
904 (`DashboardCardView.java:45-178`, `CoolwalkCardView.java:57-91`,
905 `TappableRegion.java:30-135`). MA: LinearLayout card, bg `#1B2430`,
906 padding 24/16, clickable+focusable, GONE-when-idle (`:525-527`), no swipe
907 config, no focus ring (`kwi` absent), no pager guideline.
908- [x] Driving-restriction auto-hide absent. Gearhead `MediaPlaybackView.n():
909 221-234` hides action panel when `i==0 && o VISIBLE && driving (nrd)` +
910 `playback_scrim` handling `:733-748`. MA: no `nrd` equivalent; card stays.
911- [x] Source badge absent (see art item): 24dp circle, bias fraction
912 (`frag_dash_media.xml`). MA: none.
913
914### 4.4 Nav card
915
916- [x] Nav template stack absent — mirror only. Gearhead owns
917 `ui/widget/navigation/DetailedNavigationStepView` (turn/distance/description/
918 lanes, GONE-if-empty, `:34-78`) +
919 `NavigationTravelEstimateView` (arrival/time-distance, GONE-if-empty, `:31-59`)
920 inside `CarAppLayout` nav templates. MA `navCard`
921 (`CarDisplay.kt:814-869`): VERTICAL CENTER bg `#1B2430` padding 8dp, banner
922 18sp WHITE CENTER GONE (`:825-834`, `LinearLayout(MATCH,WRAP)+bottom 8dp`),
923 `TextureView` weight-1 (`:837-861`) fed by `CarMapsMirror`
924 (`SurfaceMapRenderer`, `CAR_LAYERS poi=true transit=false`,
925 `CarMapsMirror.kt:67-70,102-129,178`, zoom 17.0 nav / 15.0 idle `:181-182`,
926 E7→deg + puck + identity-gated route `:131-149`); host
927 (`CarAppProjectedService`, `MapsCarAppService`) only probed
928 (`GearheadHostProbe.kt:37-49,56-73`), session default mirror
929 (HANDOFF §10). Text format `"$turn · $road"` (`CarDisplay.kt:37-46`) vs
930 gearhead step/lanes/ETA views — no field mapping exists.
931 - [x] RESOLVED (host rework): the mirror is deleted. `CarAppHost`
932 binds `MapsCarAppService`, implements the host binders
933 (`ICarHost`/`IAppHost`/`INavigationHost`/`IConstraintHost` per the
934 `app-1.4.0` contract), hands Maps the nav card's `TextureView` surface
935 as a `SurfaceContainer` (Maps draws its own map, same renderer/archive/
936 tile cache as the phone), and renders the real `NavigationTemplate`
937 into the step header: cue/road, distance, lane arrows from
938 `Step.lanes`/`LaneDirection`, remaining-time ETA, and the app's own
939 action strip through its `OnClickDelegate`. Ch8 map touches forward
940 into the app's `SurfaceCallback` (tap = click, drag = scroll). Empty
941 launch tile only when maps is missing or the bind fails.
942- [x] Nav banner typography is MA-invented. 18sp WHITE CENTER
943 (`CarDisplay.kt:826-828`) — no gearhead token matches (gearhead nav text
944 lives in unread `CarAppLayout`/template styles; see §9.1).
945- [x] Map surface lifecycle differs. MA surface callbacks
946 (`CarDisplay.kt:839-860`) forward to `mapSurfaceListener`; composition is the
947 bring-up owner's work (`CarMapsMirror.kt:18-30` KDoc). Gearhead binds nav
948 into `CarAppLayout`/`CarDrawerLayout` decor with focus + driving-restriction
949 handling — not compared (template layouts NOT READ).
950
951### 4.5 Drawer + launcher grid
952
953- [x] Container differs. Gearhead `CarDrawerLayout` (`sdk/CarDrawerLayout.java:
954 33-88`): scrim `*0.8` (`k(color):57-59`), generic-motion/key `s()`
955 (`:43-54`), `onLayout` alpha reset (`:62-88`); motion filtering variant
956 (`MotionFilteringDrawerLayout.java:25-84`): unfocusable, transparent scrim,
957 touchSlop-scaled X-axis intercept. Drawer pane `match/match`,
958 `layout_gravity left`, bg `gearhead_sdk_card`, **`layout_marginEnd="96dp"`**
959 (`drawer_layout.xml`) with `drawer_contents` + `alpha_jump` stubs. MA
960 `appDrawer` (`CarDisplay.kt:894-948`): plain VERTICAL LinearLayout bg
961 `#101418` `ViewGroup(MATCH,MATCH)` GONE padding 16dp — full-screen overlay,
962 no scrim factor, no motion filter, no 96dp end margin, no stub inflation.
963- [x] Open/close triggers gutted. MA drawer opens ONLY via hotseat drawer cell
964 (`CarDisplay.kt:702` VISIBLE) and closes via Home (`:689`), launcher tap
965 (`:939`), or initial GONE (`:899`) — 4 lines total, no scrim-tap, no back,
966 no focus-loss, no park auto-close. Gearhead: drawer-layout gesture/key
967 dispatch + `PagedListView` dpad/rotary + focus-restore paths (§2.4) — exact
968 back/scrim mapping lives in unread `CarDrawerLayout` base/`DrawerLayout`
969 behavior (see §9.1).
970- [x] List substrate differs. Gearhead `PagedListView` (`sdk/ui/PagedListView.
971 java`): rotary 50px-step focus / 15px-drag consume (`:361-435`), dpad
972 22/21/283/282 routing (`:238-252,446-455,491-525`), scrollbar show
973 (`:217-235`), night recolor (`:339-342`), `clickable true / focusable false`
974 (`:151-152`); `GhListView` adds rotary cap + `krj` focus (`:26-46`);
975 alpha-jump FAB unfocusable + keyboard with config-change re-inflate
976 (`AlphaJump*.java`). MA: static 3-col `GridLayout`
977 (`CarDisplay.kt:921-935`), no scroll, no rotary, no dpad routing, no
978 scrollbar, no alpha jump.
979- [x] Launcher cell metrics close but not identical. Gearhead cell
980 (`app_launcher_item.xml`): 0dp-weight × **156dp**, focusable, `invisible` by
981 default, focus bg `gearhead_rectangle_round_corner_focus_background`,
982 paddings 10dp L/R + 14dp T/B; icon `CardView` **84dp** transparent radius
983 **42dp** elev 0dp + `ImageView` match; notification badge **22dp**
984 (`launcher_notification_badge`, margins top 2dp / right 3dp); badge bg
985 **34dp** (left margin **53dp**, top margin NOT READ); badge **28dp**; label
986 `match × 28dp`, top margin **16dp**, maxLines 1, center, 24sp
987 `boardwalk_white` alpha 1 day / 0.88 night, RobotoRegular, ellipsize 3.
988 MA `launcherItem` (`CarDisplay.kt:956-985`): VERTICAL CENTER_HORIZONTAL pad
989 8dp, clickable+focusable; icon ImageView **84dp** circular via
990 `clipToOutline`+oval provider (`:963-973`, no CardView); label WHITE **24sp**
991 CENTER maxLines 1 `MATCH×28dp` topMargin **16dp** (`:976-984`); wrapper
992 `width=0,height=156dp,FILL/1f` (`:927-935`); heading `Apps` 28sp WHITE
993 padding-bottom 16dp (`:902-907`). Deltas: MA wrapper height 156dp matches
994 gearhead cell height exactly; icon 84dp matches exactly; label 24sp/28dp/
995 16dp-top matches exactly; MA lacks focus bg, `invisible`-until-bound, badges
996 (all three), RobotoRegular/alpha, 10dp/14dp cell paddings (MA uses 8dp).
997- [x] Empty/loading/lockout states differ. Gearhead: `empty_view` GONE
998 `appdecor_menu_empty` centered Body1 32sp (`adu_drawer.xml`); `progress`
999 48dp GONE center indeterminate; `truncated_list_card` 88dp GONE bottom +
1000 26sp notification text; `lockout_scrim` GONE `#e6fafafa` day / `#e6172026`
1001 night + 96dp `fundip_drawable` + 26sp `Safety pause. Back soon.`
1002 (`strings.xml:2581`). MA: single empty TextView `car_no_apps` 24sp
1003 `#8AB4F8` CENTER weight-1 (`CarDisplay.kt:909-917`); no progress, no
1004 truncated card, no lockout scrim/animation/text.
1005- [x] Parked-browsing (unlimited-browse exit) header absent. Gearhead
1006 `unlimited_browsing_exit_header` CardView GONE, 88dp row, `#ff37474f`, radius
1007 2dp, elev 8dp, `park_to_continue` 22dp-padded text + `Exit` allCaps button
1008 with 8/16/24/16 paddings/margins (`drawer_contents.xml`). MA: none.
1009- [x] Drawer header/shadow differs. Gearhead `drawer_shadow` match×96dp
1010 card_background, AppDecor variant clickable (`adu_drawer.xml`); MA heading is
1011 a 28sp TextView, no 96dp header, no shadow surface, no elev (MA sets no
1012 elevation anywhere).
1013
1014### 4.6 AppDecor header / app bar (no MA equivalent — all open)
1015
1016- [x] `adu_status_bar_view` entire header absent in MA: 96dp `car_mic_underlay`
1017 (paddingStart 96dp, elev 8dp) with 32dp app icon (gone) + 26sp condensed
1018 title + 320dp search card (16dp vert margins, day `#fffafafa` / night
1019 `#ff172026`, hint secondary `#8a000000`/`#66ffffff`, primary `#de000000`/
1020 `#a6ffffff`) + 96dp drawer/mic/search buttons (elev 8dp), search-exit
1021 `0x7f080505`, mic `ic_mic_enabled_white`. MA car surface has no title,
1022 no search, no mic button.
1023- [x] `app_bar` entire bar absent in MA: `TouchStealingFrameLayout`
1024 match/wrap top + foreground, 0-alpha background, 8dp side margins, 72dp
1025 `widget_container`, 68dp header button + tap target
1026 (`gearhead_oval_focus_background`) + 44dp header icon + 8dp-margined 24sp
1027 Boardwalk title (gone) + tab/aux strips (gone). MA: none.
1028- [x] Alpha-jump absent in MA: 96dp FAB (gone, end/top, margins 48/22dp, elev
1029 8dp, unfocusable) + full-bleed keyboard (gone, card bg, marginTop 96dp,
1030 fixed mode), square keys, config-change re-inflate. MA: none.
1031
1032### 4.7 Assistant scrim
1033
1034- [x] Assistant overlay absent. Gearhead `assistant_scrim`: match/match,
1035 `#151616`, focusable, alpha **0.24** (`assistant_scrim.xml`); no standalone
1036 class (MISSING) — sibling scrims are `ExpandingActionPanel.action_panel_scrim`
1037 and `MediaPlaybackView.playback_scrim` visibility bits tied to driving
1038 restriction `nrd`. MA: no scrim view, no assistant slot (§4.2), no `nrd`
1039 equivalent.
1040
1041### 4.8 Touch targets (48dp audit)
1042
1043- [x] Gearhead minima: rail buttons 68dp (`facet_bar_touch_target_size`),
1044 dock 68dp (`coolwalk_rail_dock_icon_touch_target_size`), hotseat-icon alt
1045 74dp, app-bar header 68dp (`gearhead_touch_target_minimum_size`),
1046 `FocusInterceptor` owns the target (child LP throws). MA: home/drawer cells
1047 68dp, icons reconciled to the 52–56dp family (68/56/8 overflow fixed),
1048 drawer grid tiles 156dp tall, launcher icons 84dp, call actions 44dp
1049 (`un_ar_icon_size`) with 44dp minWidth/minHeight — all ≥48dp.
1050 **Audit passes structurally; exact drawn-bounds proof needs the DHU shot
1051 (§9.3).** Media-card tap uses screen-space `TapBounds` inclusive contains
1052 from `OnGlobalLayoutListener` — no min-size enforcement on the card itself
1053 (matches gearhead: the card is a `TappableRegion`, not a min-target).
1054
1055### 4.9 Focus states
1056
1057- [x] dpad/rotary highlight system absent. Gearhead single path: `kwi` ring +
1058 `FocusInterceptor` (wrap/delegate/dpad `getNextFocus*`/pressed/click/focused/
1059 activated) + `TappableRegion`/`CoolwalkButton` (ripple selector, shape
1060 overlays) + list rotary/dpad (`PagedListView`, `GhListView`, `UnListView`)
1061 + card focus listener (`DashboardCardView`) + status-bar focus foreground +
1062 `krj` progress/list focus. MA: focusable/clickable flags only, no focus
1063 ring drawable, no `FocusInterceptor`, no dpad overrides, no rotary handling
1064 (scroll is injected as `SOURCE_MOUSE ACTION_SCROLL` in
1065 `CarDisplay.kt:262-282`; volume 24/25 consumed in
1066 `InputChannel.kt:148-149`; tap-select 65541→DPAD_CENTER in
1067 `InputChannel.kt:156-160`).
1068
1069### 4.10 Densities / configurations
1070
1071- [x] Only DHU default verified. DHU defaults 800×480, 160dpi, 30fps, touch
1072 (HANDOFF §6) = `VIDEO_800x480`. Gearhead ships `layout-car/h/sw/w`
1073 buckets + `values-h*/w*/sw*` (dozens), `drawable-*dpi`, `font-v29/31`,
1074 `layout-v29/31/33/36`, `layout-night/television/watch`.
1075 MA `VideoSinkChannel` maps fixed `VideoResolution` incl. portrait
1076 720×1280/1080×1920 etc. (default 800×480, fps 30, density 160,
1077 `MIN_SANE_FPS 15`); the display now rebuilds on negotiated size change
1078 (`CarDisplay.updateConfig` — teardown + re-show on the cached surface,
1079 same-size no-op). Encoder Baseline 4Mbps, I-interval 1, surface input.
1080 Non-DHU densities remain DHU-unverifiable (no real car); the rebuild path
1081 is unit-exercised only.
1082
1083---
1084
1085## 5. Behavior gaps gating pixels
1086
1087- [x] Drawer triggers: MA open ONLY hotseat cell (`CarDisplay.kt:702`),
1088 close ONLY Home (`:689`) / launcher tap (`:939`) / init (`:899`). No
1089 scrim-tap, back, focus-loss, park close. Gearhead
1090 `CarDrawerLayout.dispatchGenericMotionEvent/dispatchKeyEvent→s()`,
1091 `MotionFilteringDrawerLayout` X-slop intercept, `PagedListView` key/rotary
1092 focus — MA has none of these paths.
1093- [x] Tap routing: MA ACTION_DOWN single-pointer inside `mediaCardBounds`
1094 toggles media (`CarDisplay.kt:295-298,218-223`); everything else dispatches
1095 verbatim (`:285-335`, pressure=1). Gearhead routes per-template with focus
1096 rings + driving-restriction gates (`nrd` in `MediaPlaybackView:221-234`,
1097 `GhListView:29`). MA has no driving-restriction gate anywhere on the car
1098 path.
1099- [x] Scroll/fling/edge: MA injects one `ACTION_SCROLL` mouse event per call
1100 (`CarDisplay.kt:262-282`); no fling velocity, no nested/edge handling. MA
1101 drawer grid does not scroll at all (static `GridLayout`).
1102- [x] Keys: MA `injectKey` builds bare `KeyEvent(DOWN/UP)` and dispatches to
1103 decor (`CarDisplay.kt:246-256`); no dpad navigation graph (gearhead
1104 `FocusInterceptor.getNextFocus*:121-163`, `PagedListView` 22/21/283/282).
1105- [x] Invalidation cadence: MA `startFrameInvalidation(fps)` ≤60
1106 keeps the encoder fed; vsync drain in `VideoSinkChannel` (Choreographer
1107 chain at display cadence, each tick draining whatever the encoder
1108 produced, so 30fps configs send every other vsync). Gearhead
1109 vsync/dirty-rect strategy NOT READ (see §9.1) — exact cadence parity
1110 unproven, but the encoder-paced shape matches the observed DHU behavior
1111 (acks at stream rate, no starvation).
1112- [x] Night/theme switch: **absent in MA car UI.** Phone night is read
1113 (`ProjectionService.isNightNow:156-165`, `SensorChannel:21-24,47,66-69,89-96`
1114 HU NIGHT_MODE override, `NavGuidanceMonitor.isNightNow:160,181-192`,
1115 `CarMapsMirror.setDark:88-91`) but nothing calls `CarMapsMirror.setDark`
1116 from a night source (attach hardcodes `false` at `CarMapsMirror.kt:110`),
1117 and `CarDisplay.kt` has zero night/dark/UiMode references (hardcoded
1118 `#101418/#1B2430/#161C24`). Gearhead overlays Dark vs DayNight per surface
1119 (`RailStatusBarFragment:234-245`, night colors §2.3).
1120- [x] Rotation/config: **absent in MA car UI.** Phone `MainActivity` handles
1121 `orientation|screenLayout|screenSize|...|uiMode`
1122 (`AndroidManifest.xml:65`); car path (`VideoSinkChannel`, `CarDisplay`,
1123 `ProjectionService`) has no `orientation/configuration/
1124 onConfigurationChanged`, fixed size at `show()`.
1125- [x] Display lifecycle: MA `onStop` nulls views/listeners and stops
1126 invalidation (`CarDisplay.kt:499-512,501`); teardown order session-scoped
1127 reverse release (`ProjectionService.kt:255-293`); reconnect
1128 full-jitter exponential 500ms→30s (`ReconnectBackoff.kt:28-46`).
1129 Gearhead multi-display/private lifecycle NOT READ (see §9.1).
1130
1131---
1132
1133## 6. System requirements gating car UI (requirements, not implementation)
1134
1135MA manifest (`auto/src/main/AndroidManifest.xml`): **13** `<uses-permission>`
1136(`FOREGROUND_SERVICE:6`, `CONNECTED_DEVICE:7`, `POST_NOTIFICATIONS:8`,
1137`WAKE_LOCK:9`, `INTERNET:12`, `CHANGE_WIFI_STATE:17`, `ACCESS_WIFI_STATE:21`,
1138`CHANGE_NETWORK_STATE:22`, `ACCESS_FINE_LOCATION:23`,
1139`NEARBY_WIFI_DEVICES:24`, `RECEIVE_BOOT_COMPLETED:27`, `RECORD_AUDIO:31`,
1140`MEDIA_PROJECTION:36`); **1** activity (`.MainActivity` exported + MAIN/LAUNCHER
1141+ USB_ATTACHED + filter `:63-82`); **3** services (`ProjectionService`
1142`connectedDevice` `:84-87`, `MusicCaptureService` `mediaProjection` `:93-96`
1143split for API34+, `MessageMirrorService` exported + BIND_NLS `:128-131`);
1144**2** receivers (`UsbReceiver` `:101-108`, `BootReceiver` `:111-117`);
1145**0** providers; queries maps/music/browser/DIAL (`:42-52`).
1146
1147Gearhead manifest (`manifest-out/resources/AndroidManifest.xml`): **81**
1148`<uses-permission>` lines 22-102 (FINDINGS says 78 — file has 81 incl.
1149`START_PROJECTED_ACTIVITY:88`, `DYNAMIC_RECEIVER_NOT_EXPORTED:89`);
1150**56a/87s/42r/11p** per FINDINGS §6 (11 providers verified: DeveloperSettings,
1151SettingsSearch, ProjectionStateProvider `:404-408` exported, Initialization,
1152GhMicrophone, SharedPreferences, Troubleshooter, CoolwalkColors, Bugreport,
1153Proxy, ProcessLifecycleOwner).
1154
1155- [x] Role pin: `android.app.role.SYSTEM_AUTOMOTIVE_PROJECTION`
1156 (exclusive/static/systemOnly/visible=false,
1157 `defaultHolders="config_systemAutomotiveProjection"`, `roles.xml:624` per
1158 FINDINGS §1). MA constants `MaosRole.kt:19-28` (`PROJECTION_ROLE:22`,
1159 `PROJECTION_ROLE_CONFIG:25`, package `com.vayunmathur.auto:28`,
1160 capabilities `TRUSTED_DISPLAY/INPUT_INJECTION/PROJECTION_DATA:34-43`,
1161 `capabilities(false)=empty:49-50`); reader `MaosRoleStatus.kt:1-22`
1162 (`isRoleHeld`, fail-false). RRO must override
1163 `config_systemAutomotiveProjection → com.vayunmathur.auto` exactly like the
1164 five roles in `MaosFrameworkResRRO` (FINDINGS §1); second patch needed for MA
1165 Cast `COMPANION_DEVICE_APP_STREAMING` (no `defaultHolders`, RRO cannot add a
1166 framework name — HANDOFF §8). Without: `DisplayRoutePolicy.routeFor(false)=
1167 PRIVATE_VIRTUAL` (`DisplayRoutePolicy.kt:28-35`), `VideoSinkChannel:321-325`
1168 stays private, `CarDisplay:51-56,117-121` renders MA-only `Presentation` —
1169 real HU shows placeholder/black for hosted surfaces (DHU loopback unaffected).
1170- [x] Trusted display: `ADD_TRUSTED_DISPLAY:94` (+ `ADD_ALWAYS_UNLOCKED_DISPLAY:
1171 90`). MA requests `VIRTUAL_DISPLAY_FLAG_TRUSTED` reflectively only on the
1172 trusted route (`CarDisplay.kt:1091-1101,115-129,63-69`), default off. Without:
1173 other apps' activities cannot launch onto the car display → black surface
1174 where HU expects hosted template.
1175- [x] Input injection: `CREATE_VIRTUAL_DEVICE:91` (`MaosRole.kt:38-39`
1176 INPUT_INJECTION). MA `InputChannel:115-119` drops without `inputAllowed`,
1177 `:120-125` drops with no display, `:80-87` binds only on grant,
1178 `:95-103` pre-bind drops (`DroppedNoFocus`). Without: video flows, **no
1179 touch** (session-card `Input dropped` counter rises).
1180- [x] Projection/system-UI/decor: `TOGGLE_AUTOMOTIVE_PROJECTION:92`,
1181 `CAPTURE_SECURE_VIDEO_OUTPUT:98`, `CarSystemUiControllerService:930-933`
1182 (exported), `AppDecorService:934-937` (exported), `GhostActivity:300-305`,
1183 `CarVirtualDeviceActivity:2006-2015`, `ProjectionRootActivity:1006-1011`,
1184 `ProjectedHomeActivity/Service:1029-1041`, `Template*Service + GhAppLauncher
1185 + Trampoline* (CATEGORY_PROJECTION + GHOST_ACTIVITY):504-548,761-866`. MA has
1186 only `CarDisplay`+`VideoEncoder` (`ProjectionService:512-527,301-358`).
1187 Without: secure content black, HU compositor rejects embedded windows.
1188- [x] Wireless/CDM trigger: `ASSOCIATE_COMPANION_DEVICES:95`,
1189 `REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION:93`,
1190 `CarProcessCompanionDeviceService:2016-2027` (CDM, `:car`),
1191 `WirelessSetupSharedService:1308-1313` + CarService `:1314-1319`,
1192 `WirelessStartupActivity:1301-1307`, `DeveloperHeadUnitNetworkService:925-929`,
1193 `WifiBluetoothReceiver:2467-2481`,
1194 `WirelessStartupReceiver:2507-2515`, `DeepLinkResolver:2491-2506`,
1195 `CarStartupServiceImpl:2051-2062` (BT_START + START_USB_PROJECTION),
1196 `CarChimeraService:2106-2115` (`microphone|connectedDevice|location`,
1197 `car.service.START`), `CarSetupServiceImpl:2045-2050`. MA has only
1198 `WifiDirectConnector/UsbConnector`, no CDM service. Without: wireless
1199 CDM-triggered bring-up never fires → **no wireless projection** on real cars.
1200- [x] USB auto-launch/reset: `MANAGE_USB:74`, `CarUsbReceiver:2129-2141`,
1201 `CarUsbReceiverTPlus:2142-2150`, `FirstActivityImpl:2063-2086`
1202 (USB_ATTACHED + FORCE_START + START_DUPLEX),
1203 `ConnectionResetReceiver:2264-2274` (RESET_USB_PORT/GADGET/ROLES/FUNCTION),
1204 `ConnectivityEventBroadcastReceiver:1050-1096`. MA has `UsbReceiver` +
1205 accessory filter only. Without: no wired auto-launch/role-switch on real
1206 cars (DHU loopback unaffected).
1207- [x] Calls: `InCallService` entries `NonCarInCallServiceImpl:1251-1263`
1208 (disabled) + `CarProjectionInCallServiceImpl:1264-1280` (CAR_MODE_UI),
1209 `CONTROL_INCALL_EXPERIENCE:70`, `CALL_PRIVILEGED:66`, `MODIFY_PHONE_STATE:97`,
1210 runtime `CALL_PHONE:47 READ_PHONE_STATE:48 READ_CALL_LOG:49 READ_CONTACTS:50`.
1211 MA: no `InCallService`. Without: projected call UI dead (UnCallView §2.4 has
1212 no MA counterpart at all).
1213- [x] Messaging/sensitive data: `RECEIVE_SENSITIVE_NOTIFICATIONS:96`,
1214 `GET_INTENT_SENDER_INTENT:99`, `RECEIVE_SMS:54 SEND_SMS:55 READ_CALENDAR:57`,
1215 app-ops `receive_sensitive_notifications/read_restricted_messages`
1216 (FINDINGS §1); gearhead listener
1217 `SharedNotificationListenerManager$ListenerService:992-1005` vs MA single
1218 `MessageMirrorService`. Without role app-ops: messaging/call templates empty,
1219 fail-closed silence.
1220- [x] Audio routing + FGS types: `MODIFY_AUDIO_ROUTING:75`,
1221 `TETHER_PRIVILEGED:82`, `BLUETOOTH_PRIVILEGED:65`, `POWER_SAVER:81`,
1222 `MANAGE_USERS:83`, `READ_PRIVILEGED_PHONE_STATE:77`,
1223 `CHANGE_COMPONENT_ENABLED_STATE:67`, `START_ACTIVITIES_FROM_BACKGROUND:79`,
1224 `ENTER_CAR_MODE_PRIORITIZED:72`, `LOCAL_MAC_ADDRESS:73`,
1225 `COMPANION_APPROVE_WIFI_CONNECTIONS:68`, `REQUEST_COMPANION_SELF_MANAGED:78`.
1226 MA `ProjectionService:84-87` is `connectedDevice`-only (vs triple
1227 `microphone|connectedDevice|location` on `CarChimeraService:2111` and dual on
1228 `WirelessSetup:1313`). Without: background mic/location FGS killed, audio
1229 misroutes to phone speaker, sinks/mic (ch3/4/5/6,
1230 `ProjectionService:596-627`) starve.
1231- [x] Privapp allowlist (exact entries for `com.vayunmathur.auto`, minimum):
1232 `MANAGE_USB, MODIFY_AUDIO_ROUTING, TETHER_PRIVILEGED, CALL_PRIVILEGED,
1233 POWER_SAVER, READ_PRIVILEGED_PHONE_STATE, CHANGE_COMPONENT_ENABLED_STATE,
1234 MANAGE_USERS, CAPTURE_SECURE_VIDEO_OUTPUT, BLUETOOTH_PRIVILEGED,
1235 CONTROL_INCALL_EXPERIENCE, MODIFY_PHONE_STATE` (FINDINGS §1 + `MaosRole.kt:
1236 8-11`). Both role and allowlist halves are boot-fatal if wrong — land one at
1237 a time (HANDOFF §8).
1238
1239---
1240
1241## 7. Phone-UI gating of car pixels (out-of-scope except this)
1242
1243Phone `AutoSessionState`/`AutoViewModel` **never gate** car pixels — they only
1244mirror: `onFocusChanged:353-361`, `resetFocus:364-368`, `onVideoEvent:396-434`
1245(counts/surface), `onInputEvent:458-468` (counts), `AutoViewModel.kt:15-17`
1246KDoc never-writes + `stateIn` mirrors (`:33-34,45-46,85-87`).
1247Streaming/input decisions read `session.focus` directly
1248(`ProjectionService:555,601`, `VideoSinkChannel:400`, `InputChannel:115`).
1249Bring-up is sequential HU-wire-order one-in-flight (`pendingChannels`,
1250`ProjectionService:304-383,503-527`); per-grant triggers video→messaging→
1251input→sensors→guidance→nav→audio→mic (`:329-381`); focus mirror re-binds input
1252(`:222-231`); TTS/maps/music start at session-start (`:237-253`,
1253`MediaPlaybackMonitor.start:48-64` outlives session at `:71-74`).
1254
1255---
1256
1257## 8. GAL channels — pixel-affecting notes only
1258
1259- Video (paints all HU pixels): `SETUP media_type=3` (`VideoSinkChannel:202-208,
1260 524`); accept-index pick (`:232-250`, `firstOrNull?:0 :234`); focus request
1261 `PROJECTED` (`:252-261`); indication → arbitration + keyframe on PROJECTED
1262 (`:264-281`, absent-mode ignore `:271-274`); start resolution/density/fps →
1263 encoder+display (`:301-358`, `dimensions :303`, `negotiateFrameRate :307`,
1264 `density?:160 :309`, `VideoEncoder :316`, `CarDisplay trusted :326`,
1265 `show :335`, `invalidate :336`, `START sessionId=0 :349-357`); stream gate
1266 `shouldStreamVideo` (`:400`, `FocusArbitration:90 PROJECTED`); vsync drain
1267 (`:368-373,438-445`); resolution table/defaults (`:507-518,525-526,533`);
1268 encoder H264 Baseline surface-input 4Mbps I-1 (`VideoEncoder:33-56,104-105`),
1269 `drain→onFrame :63-84`, keyframe `:87-91`. Gaps: DHU-1fps forced to 30
1270 (`VideoSinkChannel:471-490`, sibling-30 `:479-484`); transient focus not
1271 distinguished (`FocusArbitration:52-53`); unknown-enum absent ignored
1272 (`FocusArbitration:108-113` + `VideoSinkChannel:271-274`); input derived
1273 from video (`FocusArbitration:63-65,67-69,112-126`).
1274- Input ch8 (HU→display pixels): HU size from `touchscreenList` else 800×480
1275 (`InputChannel:61-63`); binding echo on grant (`:80-87`); gating + scaling
1276 (`:90-142`, `InputCodec.scalePointer:159-174`, defaults 800/480 `:86-87`);
1277 vol consumed (`:148-149`), 65541→DPAD_CENTER (`:156-160`), scroll
1278 (`:164-166`); inject fan-out `VideoSinkChannel:186-199`.
1279- ch10 NavStatus (HU-native render, not ch2): inactive stub on grant
1280 (`NavStatusChannel:32-38`, bytes `NavStatusCodec:31-35`), live
1281 `encodeStatus :54-69` (`NavStatusCodec:45-56`, sender-defined `0x8001`),
1282 inbound ignored (`:41-47`, stub note `:17-21`); live `postStatus` unwired —
1283 monitor seam only (`NavGuidanceMonitor:64-69,143-171`, banner
1284 `CarDisplay:876-885`).
1285- Media metadata (ch2 card text): `NowPlayingInfo` title/artist/playing/pos/dur
1286 (`MediaNowPlaying:12-23`), visible iff playing or titled (`:29`); resolved
1287 via MA music `PlaybackService :127-128` or generic browser `:120-122`
1288 (`MediaPlaybackMonitor:48-64,93-105`); **no artwork/queue/prev-next**
1289 (`CarDisplay:554-560`, `MediaGalGapTest:10-13` GAL 11/12 opaque).
1290- Maps (ch2 nav pixels): mirror path only (§4.4); ch7 stub subs
1291 LOCATION/NIGHT/SPEED/DRIVING_STATUS (`SensorCodec` + `SensorChannel`
1292 `:66-69`, live seam `onValues`); ch7 values via `MapsGuidance:130-156`,
1293 ch10 args `:159-173`; `GuidanceChannel` ch3 claims-then-idles, no pixels
1294 (`GuidanceChannel:46-68,81-99`).
1295- Non-pixel internals (one line each): audio sinks/mic/TTS/music-capture,
1296 sensors batch/error, messaging ch14 threads/message/dismiss/action +
1297 reply/mark-read/voice-reply — see FINDINGS/HANDOFF, no HU pixel effect
1298 except the card/banner text noted above.
1299
1300---
1301
1302## 9. Verification appendix (zero-estimate completeness proof)
1303
1304### 9.1 Layout coverage — OPEN
1305
1306Every HU `res/layout/*.xml` must appear once as covered or explicitly
1307out-of-scope with reason; counts reconciled against 751. **Not complete in
1308this revision:** 12 HU layouts read fully (§2.1–2.2); ~739 remaining
1309unenumerated (spot-checked families: `abc_*` appcompat, phone setup). The
1310following HU-adjacent items are explicitly NOT READ and must be closed before
1311any "parity complete" claim:
1312
1313- [x] `rail_statusbar*.xml` content layouts — `rail_statusbar.xml` and
1314 `hero_vertical_rail_statusbar.xml` read fully (vertical packed chain,
1315 icon row, badge/DND slots, autosize clock, card metrics); remaining
1316 variants (`vertical_rail_statusbar`, `rail_statusbar_rhd`) share the slot
1317 geometry mirrored. `sys_ui_coolwalk_rail_widget*.xml` still NOT READ
1318 (widget backend stubbed gone).
1319- [ ] `CarAppLayout` / nav-template / media-browse / telecom layouts backing
1320 §4.4/§4.6 gaps (filenames NOT FOUND under guessed names — enumerate via
1321 `R.layout` references in `CarAppLayout.java`, `MediaPlaybackView.java`,
1322 `UnCallView.java` instead of guessing).
1323- [ ] `badge_background` top margin second attribute
1324 (`app_launcher_item.xml` — one of the two margin values not captured).
1325- [ ] `@fraction/dashboard_media_progress_radius_fraction`,
1326 `@color/unlimited_browsing_exit_text`, `@color/gearhead_sdk_body1`,
1327 `@string/content_browse_park_to_continue`, `@string/appdecor_search_box_hint`,
1328 `@string/appdecor_menu_empty` exact values.
1329- [ ] `CarDrawerLayout` base/`DrawerLayout` back/scrim behavior, gearhead
1330 vsync/dirty-rect strategy, multi-display lifecycle, `nrd` truth table
1331 (`defpackage`, needs `disasm.py` — jadx must not be trusted there per
1332 FINDINGS §3-4 traps: `roc.aQ` loop cache, `abpe:501` inversion, `wub.o`
1333 +1, descriptor `\b\f\r` escapes).
1334
1335### 9.2 R.java ID cross-check — OPEN
1336
1337- [ ] Every HU-referenced `R.layout/R.id/R.dimen/R.color/R.drawable`
1338 traced to a MA equivalent (`CarDisplay.kt:NNN`) or an item in §4–§6.
1339 Spot-covered: rail/drawer/media/launcher IDs in §2.2; full trace not done.
1340
1341### 9.3 DHU screenshot comparison procedure (documented, not run)
1342
1343- [ ] Matrix: DHU 2.0 (`desktop-head-unit.exe`), configs 800×480/160dpi/30fps
1344 touch (default `config/default.ini` = `VIDEO_800x480`) × {day, night} ×
1345 {idle, nav-active, media-playing, drawer-open, call-incoming (gearhead
1346 only)}; relay via `adb forward tcp:5277` + `analysis/maauto/dhu_relay.py`
1347 per HANDOFF §6; capture with `Start-Process` (DHU exits if stdout piped).
1348- [ ] Launch (mandatory): the config file MUST be passed with `-c` —
1349 `Start-Process ... -ArgumentList "-c", "config\default.ini"`. A bare
1350 launch prints `[W]: No configuration specified - using default values`
1351 and runs on compiled defaults, which silently disables touch input and
1352 the `[sensors]` section (location/night/driving_status): ch8 verification
1353 is invalid on such a run, and ch7 `0xff` rejections cannot be attributed
1354 to unimplemented sensors. A positional ini path is ignored — only `-c`
1355 (or `--config=`) loads it. Use `-i touch|rotary|hybrid` to force the
1356 input mode under test independently of the ini.
1357- [ ] Naming: `dhu_gearhead_<surface>_<config>.png` vs
1358 `dhu_ma_<surface>_<config>.png` (`surface ∈ {rail, statusbar, media, nav,
1359 drawer, launcher, scrim, empty, lockout}`).
1360- [ ] Pixel-diff tool + acceptance bar: **documented as required, not
1361 implemented** (no threshold asserted — asserting one would be an estimate).
1362- [ ] Render path itself unconfirmed (HANDOFF §2: frames acked, display on DHU
1363 surface not yet confirmed) — screenshot leg is blocked on that first.
1364
1365### 9.4 Read-only smoke checks (recorded, not run here)
1366
1367- [ ] `./gradlew :auto:assembleDebug` — must pass (doc adds no code, so this
1368 is a no-op guard for the tree).
1369- [ ] `./gradlew lint` — must pass (`Toast` ban, app-module icon rules per
1370 repo conventions).
1371- [ ] Any failure filed as follow-up, never fixed in a parity-doc task.
1372
1373Explicitly out of verification: phone screenshots, GAL conformance tests,
1374audio quality tests.
1375
1376---
1377
1378## 11. Control-plane functional parity
1379
1380Truth: `auto/docs/FINDINGS.md` §2 control table + §3 crypto. MA session:
1381`auto/protocol/src/main/java/com/vayunmathur/auto/protocol/GalControlSession.kt`,
1382wire IDs `GalMessage.kt`, handshake `VersionNegotiation.kt`, TLS `TlsCodec.kt`,
1383credential `GalCredential.kt`, connection `GalConnection.kt`, protos
1384`auto/protocol/src/main/proto/gal/control.proto` + `services.proto`.
1385
1386### 11.1 Control message IDs
1387
1388- SUPPORTED — 1 `VersionRequest` recv (raw uint16 major/minor, HU asks first):
1389 dispatch `GalControlSession.kt:134` → `onVersionRequest :248-275`, raw
1390 `ByteBuffer.short &0xFFFF` `VersionNegotiation.kt:43-52`, KDoc HU-asks
1391 `VersionNegotiation.kt:22-24`.
1392- SUPPORTED — 2 `VersionResponse` send (major/minor/status, -1 as `0xFFFF`):
1393 `GalControlSession.kt:257-261` (`encrypted=false`), shorts
1394 `VersionNegotiation.kt:61-66`, `-1→0xFFFF` comment `:57-59`, sign-extended
1395 parse `:69-80`.
1396- SUPPORTED — 3 SSL handshake both dirs (cleartext, `rvg` wrap/unwrap):
1397 `GalControlSession.kt:135,277-283,445-492` (`NEED_UNWRAP/NEED_WRAP/FINISHED`),
1398 out `encrypted=false :476-480`; per-frame `TlsCodec.kt:21-38,47-66`;
1399 `FrameReader.kt:72` decrypt-iff-ENCRYPTED.
1400- SUPPORTED — 4 `AuthComplete` recv (`SUCCESS/CERT_EXPIRED/CERT_NOT_YET_VALID`):
1401 `GalControlSession.kt:136,285-289` (non-0 → fail, no per-code branch),
1402 `control.proto:183-185` status field, `:23-58` incl. `-23/-24` values.
1403- SUPPORTED — 5 `ServiceDiscoveryRequest` send (`xoa`, ≥1.6 only, field-5-only,
1404 `0x0B` CONTROL-clear): floor `GalControlSession.kt:290-298`
1405 (`MINIMUM_FOR_DISCOVERY`), field 5 `composeDiscoveryLabel :310-313,508-509`
1406 (`MANUFACTURER + " " + MODEL`), flags `:306-309`, shape
1407 `control.proto:110-117,98-109`.
1408- SUPPORTED — 6 `ServiceDiscoveryResponse` recv (`xob`, HU advertises/phone
1409 consumes): `GalControlSession.kt:137,319-323` (`state=ACTIVE`),
1410 `control.proto:120-137` (repeated Service + HU fields 2-11,13-15,17).
1411- SUPPORTED — 7 `ChannelOpenRequest` send (`{priority,service_id}` order,
1412 target-channel `0x0F`): `GalControlSession.kt:195-208` via
1413 `control.proto:169-172` (`sint32 priority=1; int32 service_id=2`,
1414 priority-first comment), `-128` control self-open, `isControl=true,
1415 channelId=service.id, encrypted=true → 0x0F :185-193`; enqueue
1416 target-channel `GalConnection.kt:238-250`.
1417- SUPPORTED — 8 `ChannelOpenResponse` recv (any channel, `xir/status`):
1418 `GalControlSession.kt:138,355-365` (non-SUCCESS → `drainPendedToRefused`,
1419 else pending→open), `control.proto:178-180`; routed on ANY channel
1420 `GalConnection.kt:170-172` (`izd.b via izl.g(b)`); ch0-framed `0x7` refused
1421 `-5` (`GalControlSession.kt:191-193`, `GalConnection.kt:163-169`).
1422- SUPPORTED — 11/12 ping: request parsed, response echoes timestamp encrypted
1423 (`GalControlSession.kt:139,409-418`, `control.proto:188-192,195-198`);
1424 inbound 12 ignored (`GalControlSession.kt:148-150`).
1425- SUPPORTED — 14 nav-focus / 19 audio-focus recv (observed, never answered):
1426 `GalControlSession.kt:157,400-403` → `focus.onNavigationFocus`
1427 (`FocusArbitration.kt:137-143`), `control.proto:220-222,89-92`;
1428 `GalControlSession.kt:156,391-394` → `focus.onAudioFocus`
1429 (`FocusArbitration.kt:129-134`), `control.proto:214-217,78-87`.
1430- SUPPORTED both dirs — 15/16 byebye (`USER_SELECTION` + 7 more reasons):
1431 recv 15 → CLOSED + encrypted empty 16 (`:140,420-429`); recv 16 → CLOSED
1432 (`:141-144`); send `disconnect(USER_SELECTION) :211-216`;
1433 `control.proto:201-203,206,60-69`.
1434- SUPPORTED — 18 `AudioFocusRequest` send (fire-and-forget):
1435 `GalControlSession.kt:240-244`, `control.proto:209-211,71-76` (4 types).
1436- SUPPORTED — 26 `ServiceDiscoveryUpdate` recv (hot-add): same-id replace,
1437 serviceless ignore (`GalControlSession.kt:155,333-339`, comment `:151-154`
1438 wire-order loop picks up without reconnect), `control.proto:163-165`.
1439- [x] PARTIAL — 24 `CallAvailabilityStatus` recv: routed but never parsed
1440 (`GalControlSession.kt:148-150` groups with `PING_RESPONSE → emptyList`,
1441 comment `:145-147`: higher layers observe); `control.proto:225-227` defines
1442 `optional bool call_available=1` but no `parseFrom` call in session.
1443- [x] PARTIAL — 255 `MessageError`: recv SUPPORTED
1444 (`GalControlSession.kt:171,376-379` → `drainPendedToRefused`, rationale
1445 `:159-170` bare-`0xff` = refused open; trace `GalConnection.kt:181-186`);
1446 send MISSING — no `send(255)` path in
1447 `GalControlSession.kt:133-174` or `GalConnection.kt:211-266`.
1448- [x] MISSING — 65535 `FramingError` (defined only): constant
1449 `GalMessage.kt:51`, unsigned-safe codec `MessageCodec.kt:23-25,47`, but no
1450 `onMessage` branch (`GalControlSession.kt:133-174`), no `rtr`-style `0xFFFF`
1451 reply/teardown (`FrameReader.kt:57-89` waits/compacts only).
1452
1453### 11.2 Service table `xnz` fields 1–14 + `rro` 1–22
1454
1455MA `Service` `control.proto:141-160`, descriptors `services.proto`, IDs
1456`GalMessage.kt:158-180`.
1457
1458- SUPPORTED descriptor — f1 id==channel (`control.proto:142`,
1459 `GalMessage.kt:159` CONTROL); f2 SensorSource (`:143`,
1460 `services.proto:101-106,97-99`, ch7 IDs `GalMessage.kt:89-93`); f3 MediaSink
1461 (`:144`, `services.proto:65-75,44-62,20-40`, codecs 1-7 + resolutions 1-9
1462 matching FINDINGS §2, IDs `GalMessage.kt:160-163`); f4 InputSource (`:145`,
1463 `services.proto:89-95`, IDs `GalMessage.kt:82-86`); f5 MediaSource mic
1464 (`:146`, `services.proto:78-81`, semantic `GalMessage.kt:76-79`); f6
1465 Bluetooth (`:147`, `services.proto:108-111`); f8 NavigationStatus (`:149`,
1466 `services.proto:113-117` — channel `0x8001` is MA-defined stub,
1467 `GalMessage.kt:115-118,102-114`); f12 VendorExtension (`:153`,
1468 `services.proto:119-123`); f14 WifiProjection (`:155`,
1469 `services.proto:125-127`).
1470- [x] PARTIAL (opaque/slot) — f7 Radio (`control.proto:148` `bytes radio=7`,
1471 ID `GalMessage.kt:173`); f9 MediaPlaybackStatus (`:150` bytes + explicit
1472 NOT_SUPPORTED `GalMessage.kt:191-199`, gap `services.proto:4-8`, ID `:169`);
1473 f10 PhoneStatus (`:151` bytes, ID `:171`); f11 MediaBrowser (`:152` bytes,
1474 same NOT_SUPPORTED); f13 Notification (`:154` bytes — real `xjm` never
1475 recovered, MA channel `0x8001-0x8004` sender-defined `GalMessage.kt:120-142`,
1476 `notification.proto:3-13`); `rro` 18–22 (IDs `GalMessage.kt:176-180`, payloads
1477 only generic `control.proto:156-159` bytes f15–18 for 5 services, no typed
1478 decode).
1479
1480### 11.3 Frame / fragmentation / TLS / KDF rules
1481
1482- SUPPORTED — frame `[ch/fl/len16/total32-iff-FIRST&&!LAST]`
1483 (`FrameHeader.kt:25-30`), flags `0x01/0x02/0x04/0x08` (`:11-20`), BE reads
1484 (`:84-102`), `[u16 type][protobuf]` unsigned (`MessageCodec.kt:23-25,31-51`).
1485- SUPPORTED — fragment 16128 (`FrameHeader.kt:73-76` `rto.a()`),
1486 `Fragmenter.kt:44-46,55-58` header math, 256B TLS headroom below 16384
1487 staging (`:23-25`, `FrameWriter.kt:33-34`).
1488- SUPPORTED — control never fragments (`Fragmenter.kt:30-33,48-51`
1489 `require(!isControl)`, `FrameWriter.kt:28-34`).
1490- SUPPORTED — CONTROL-bit scoping (only `0x7` sets it):
1491 `GalControlSession.kt:40-47,185-189` (`0x7` → `0x0F`),
1492 `:306-309` (`0x5` → `0x0B`); service sends never CONTROL
1493 (`GalConnection.kt:221-231,257-266`, classifier must not drive bit
1494 `:22-33`, per-message `isControl :243-247`).
1495- SUPPORTED — per-frame TLS order: decrypt per-frame before reassembly
1496 (length=ciphertext, `totalLength` untrusted hint,
1497 `FrameReader.kt:20-22,72,78-80`); encrypt per-fragment after split
1498 (`FrameWriter.kt:8-11,37,43-48`).
1499- SUPPORTED — TLS posture phone-server + client-auth, GAL-only anchor, 1.2:
1500 `GalCredential.kt:100-103` (`useClientMode=false, needClientAuth=true`,
1501 matching `rth:180-209`), `:84-86` `TLSv1.2`, `:42,75-82` keystore `GAL` sole
1502 anchor (`:27-32` KDoc). Cipher not pinned (FINDINGS verify
1503 `ECDHE-RSA-AES256-GCM-SHA384` not enforced in code).
1504- SUPPORTED — version 1.7 + 1.6 discovery floor:
1505 `VersionNegotiation.kt:34,37`, enforced `GalControlSession.kt:290-293`,
1506 `requested>supported→null` (`VersionNegotiation.kt:89-90`).
1507- SUPPORTED (accounted) — `wub.o` off-by-one: `GalMessage.kt:9-14` documents
1508 `jdk/jdi id+1` vs `k()` raw; raw wire values throughout `:55-93`,
1509 agreeing with aasdk/openauto (`:12-14`).
1510- MISSING by design — `roc.aQ` KDF + crosswise `rvd/rvg` + phenotype rotation:
1511 no KDF/AES-CBC/PKCS5/strip/PKCS8 path in `GalCredential.kt:53-87,125-133`
1512 (expects plaintext PEMs `assets/gal/`, `:36-39,90-94`, expiry 2026-12-09
1513 `:21-23`, surfacing only `:111-123`); no remote `adbo.gu a-f` path.
1514 Consequence: credential cannot be renewed in code — must re-extract per
1515 HANDOFF §7 runbook before expiry.
1516- Channel-open order: no auto-sort; caller order = `pendingChannels` order
1517 (`GalControlSession.kt:113-115,195-196`); wait SUCCESS before media
1518 (`:341-347`); refusal recorded non-fatal (`:349-353,357-359`); bare `0xff`
1519 drains head (`:368-379,381-385`); ch0-first + round-robin drain
1520 (`GalConnection.kt:50-55,268-285`).
1521
1522---
1523
1524## 12. Channel + transport functional parity
1525
1526Bring-up: sequential HU-wire-order one-in-flight (`pendingChannels`),
1527per-grant video→msg→input→sensors→guidance→nav→audio→mic
1528(`ProjectionService.kt:329-381`), owners in `openNext` (`:512-627`), focus
1529mirror + ch8 rebind (`:222-231`), session-scoped TTS/maps/music (`:237-253`),
1530reverse-release teardown (`:257-293`), clean/failed backoff (`:99-122`,
1531`ReconnectBackoff.kt:28-46` 500ms→30s full-jitter).
1532
1533### 12.1 Media sink `jdk` (shared ch2/3/4/5)
1534
1535- SUPPORTED — `0x0000` DATA_WITH_TIMESTAMP send video
1536 (`VideoSinkChannel.kt:425`) + audio (`AudioSinkChannel.kt:227`), recv mic
1537 (`AudioCodec.kt:232-239`, `TIMESTAMP_BYTES=8 :121`); `0x8000/0x8001` setup/
1538 start (`AudioCodec.kt:128-140`, guidance `:48-49,81-90` idle-by-default,
1539 `AudioSinkChannel.kt:94-95,193-194`, video `:202-208,349-357 sessionId=0`);
1540 `0x8003` config recv (`AudioCodec.kt:211-215`,
1541 `AudioSinkChannel.kt:179-204`, guidance `:61-68`, video `:225,232-262`
1542 `firstOrNull?:0 :234`); `0x8004` ack (sink decode `AudioCodec.kt:216-219` +
1543 `AckTracker.kt:30-49,MOD=256:57`, video `:283-299`, audio `:116-119`; mic
1544 send `:151-155` + `MicSourceChannel.kt:136-140`).
1545- [x] PARTIAL — `0x0001` bare data: video/audio send `0x0000` only, never
1546 `0x0001`; mic recv SUPPORTED (`AudioCodec.kt:240`, `-1` ts, empty→null).
1547- [x] PARTIAL — `0x8002` stop: audio + guidance send (`AudioCodec.kt:143-144`,
1548 `AudioSinkChannel.kt:166-169`, `GuidanceChannel.kt:93-99`); video releases
1549 codec/display but never sends STOP (`VideoSinkChannel.kt:452-463`) — ch2
1550 MISSING.
1551- [x] PARTIAL (observed only, correctly unanswered) — `0x800B` sync
1552 (`GalMessage.Audio.SYNC:150`, `AudioCodec.kt:220→InboundAudio.Sync:56`,
1553 `AudioSinkChannel.kt:120`, `GuidanceChannel.kt:70`); `0x8013 xkq`
1554 (`AudioCodec.kt:59-62→Observed:62`, `AudioSinkChannel.kt:121`, video `:228`
1555 log, never parsed).
1556- PCM-only by design (`AudioCodec.kt:168-179,383-400`; non-PCM → UNSUPPORTED
1557 parked `AudioSinkChannel.kt:84-89`). Gearhead `xkj` AAC/VP9/AV1/H265 =
1558 MISSING, never negotiated.
1559
1560### 12.2 Video `jem` / mic `jdi` / input `jar` / sensor `rvb`
1561
1562- SUPPORTED — `0x8007` focus request PROJECTED + `0x8008` indication →
1563 arbitration + keyframe (`VideoSinkChannel.kt:226,253-281`,
1564 `GalControlSession.kt:229-232`, `FocusArbitration.kt:112-126`; absent-mode
1565 ignore `:271-274` + `:108-113`; transient folds to NATIVE `:52-53,114-120`;
1566 `NO_INPUT` streams without input `:63-69,89-90`).
1567- [x] MISSING — `0x800A` UpdateUiConfigRequest: constant
1568 (`GalMessage.kt:73`), never sent/handled (`VideoSinkChannel.kt:219-230`).
1569- SUPPORTED — mic `0x0000` recv + `0x8004` send + `0x8006` request
1570 (`AudioCodec.kt:232-240,151-155`, `MicSourceChannel.kt:63-86,136-140`,
1571 session 0 `:118`); acks-from-first-chunk, retention gated by `MicPermission`
1572 (`MicSourceChannel.kt:11-17,50-55,79,94-107,378-381`).
1573- SUPPORTED — input `0x8001` report (`InputCodec.kt:110-132`,
1574 `InputChannel.kt:110-167`: scroll 65536 zero-drop `:70`, tap-select
1575 65541→DPAD_CENTER `:76,79,156-160`, vol 24/25 consumed `:148-149`, scaling
1576 `scalePointer :159-174`, DHU 800×480 `:86-87,61-63`); `0x8002` binding echo
1577 on grant + focus-flap rebind (`InputCodec.kt:90-94`,
1578 `InputChannel.kt:80-87`, `ProjectionService.kt:229-231`); `0x8003` response
1579 logged, never gates (`InputCodec.kt:97-98`, `InputChannel.kt:104-109`).
1580- [x] MISSING — input `0x8004` feedback (`xjs` DTO in `input.proto:125-130`
1581 defined, no encoder/send in `InputCodec.kt`/`InputChannel.kt`).
1582- Sensor: `0x8001` request SUPPORTED (`SensorCodec.kt:144-148`,
1583 `SensorChannel.kt:70-75`, fields 1-2 exact, rest sender-defined
1584 `sensors.proto:14-19`); `-1` unsubscribe SUPPORTED
1585 (`GalMessage.Sensor.UNSUBSCRIBE_PERIOD=-1:96`, `SensorCodec.kt:151-152`,
1586 `SensorChannel.kt:113-118`); phone-night seed SUPPORTED
1587 (`SensorChannel.kt:21-24,66-69`, `ProjectionService.kt:156-165`).
1588- [x] PARTIAL — `0x8002/0x8003/0x8004` decoded (`SensorCodec.kt:171-186`,
1589 `sensors.proto:74-94,122-125` MA-defined layouts per caveat `:14-19`) but
1590 only logged/folded for 4 types (`SensorChannel.kt:85-102`, alias scoped by
1591 ch-id `:36-39`); no 2s-timeout enforcement (documented
1592 `GalMessage.kt:88`, `sensors.proto:4-7`, no timer in `SensorChannel.kt`).
1593- Sensor types (26 `xny`, `sensors.proto:35-62` dumper order): SUPPORTED
1594 (subscribed + folded) — LOCATION(1), SPEED(3), NIGHT_MODE(10),
1595 DRIVING_STATUS_DATA(13) (`SensorCodec.kt:133-138,191-241`,
1596 `MapsGuidance.kt:130-156`); PARTIAL — COMPASS(2) (proto `:103-105`
1597 decodable, dropped in `withEvents else :49-81`); MISSING (no payload,
1598 dropped) — RPM(4), ODOMETER(5), FUEL(6), PARKING_BRAKE(7), GEAR(8),
1599 OBDII(9), ENVIRONMENT(11), HVAC(12), DEAD_RECKONING(14), PASSENGER(15),
1600 DOOR(16), LIGHT(17), TIRE_PRESSURE(18), ACCELEROMETER(19), GYROSCOPE(20),
1601 GPS_SATELLITE(21), TOLL_CARD(22), VEHICLE_ENERGY(23), TRAILER(24),
1602 RAW_VEHICLE_ENERGY(25), RAW_EV_TRIP(26).
1603
1604### 12.3 Other services
1605
1606- SUPPORTED — svc 1 CONTROL (IDs above, svc-1 opened first
1607 `ProjectionService.kt:495-501`); svc 2 VIDEO (§12.2); svc 4/5 SYSTEM/MEDIA
1608 audio (`AudioSinkChannel.kt:82-200`, TTS→ch4 `CarTts.kt:58-63,111-121`,
1609 music→ch5 `MusicCapture.kt:60-86,125-150`, focus `AudioCodec.kt:256-284` +
1610 `FocusArbitration.kt:96-105`); svc 6 MIC; svc 8 INPUT (minus feedback).
1611- PARTIAL — svc 3 GUIDANCE (claim-then-idle stub,
1612 `GuidanceChannel.kt:46-99`, `startStream/stopStream` unwired to TTS); svc 7
1613 SENSOR (4/26, §12.2); svc 10 NAV_STATUS (sender-defined `0x8001` inactive
1614 stub `NavStatusCodec.kt:31-35` + `NavStatusChannel.kt:32-38`, live
1615 `encodeStatus :45-56` / `postStatus :54-69` + `MapsGuidance.kt:159-173`
1616 built but unwired, inbound ignored `:41-47`); svc 14 NOTIFICATION
1617 (sender-defined stub `MessagingCodec.kt:44-94`, owner
1618 `ProjectionService.kt:534-548` — real `xjm` IDs never recovered,
1619 `notification.proto:3-13`).
1620- MISSING by design — svc 11/12 media playback/browser (ignored
1621 `GalMessage.kt:198-199`, `ProjectionService.kt:177-181`; replaced by
1622 `MediaPlaybackMonitor.kt:29-64` + `MediaNowPlaying.kt:12-30` into ch2 — no
1623 artwork/queue/prev-next).
1624- MISSING — svc 9 BLUETOOTH (enum `GalService.kt:167` only, no owner;
1625 wireless is WiFi-Direct only); svc 13 PHONE_STATUS (control-24 observed
1626 only, no `InCallService`); svc 15 RADIO (opaque bytes); svc 16
1627 VENDOR_EXTENSION (DTO `services.proto:119-123` only); svc 17/18
1628 WIFI_PROJECTION/DISCOVERY (DTO only — wireless never speaks 17/18); svc
1629 19–22 CAR_CONTROL/LOCAL_MEDIA/BUFFERED/INTENT (enum only
1630 `GalService.kt:177-181`); INST cluster / DIAGNOSTICS / LATENCY / SYNC /
1631 SNOOP / SECURITY subsystems (no ID/codec/owner; closest is local
1632 encode-to-send `VideoEvent.FrameSent.latencyUs`,
1633 `VideoSinkChannel.kt:409-416`).
1634
1635### 12.4 Transports
1636
1637Infra SUPPORTED: ch0-prio + round-robin (`ChannelSendQueue.kt:39-68,94`);
1638full-jitter backoff (`ReconnectBackoff.kt:28-46`); `AckTracker`;
1639`FocusArbitration`; target-channel CONTROL-only-0x7 opens; sequential
1640wire-order opens.
1641
1642- USB AOAP: fd-as-stream PARTIAL (consumes ATTACHED as `StreamTransport.kt:
1643 13-16` + `GalTransport.kt:8-11`, opened `UsbConnector.kt:127-130` — HU puts
1644 phone in accessory mode, MA never drives the switch); receiver PARTIAL
1645 (`UsbReceiver.kt:17-29`, `UsbConnector.kt:44-82`, `MainActivity` filter —
1646 no `FORCE_START`, no TPlus, no `MANAGE_USB`); permission/retry/detach/fail
1647 SUPPORTED (`UsbSession.kt:55-109`, `UsbConnector.kt:92-141`,
1648 `TransportState.kt:44-48`).
1649- Wireless: shape PARTIAL (`WirelessSession.kt:41-52`
1650 IDLE→NEGOTIATING→READY→CONNECTED; pairing-screen tap stands in for BT,
1651 `WifiDirectConnector.kt:30-34,58-64` `onBluetoothAssociated` with no BT);
1652 socket→intake + state mirror SUPPORTED (`:167-199,226-234`,
1653 `TransportIntake.kt:29-34`, `TransportState.kt:51-54`,
1654 `WirelessSession.kt:70-110`); fixed `GAL_PORT=5277 :264`,
1655 `CONNECT_TIMEOUT=10s :266`, `tcpNoDelay :174`, best-effort WiFi bind
1656 `:206-224`.
1657- [x] MISSING wireless — `BT_START`, BT ACL/HFP per-stage timeouts, RFCOMM
1658 handshake + `fallback_to_rfcomm_on_t_minus`, CDM association trigger (no
1659 `CarProcessCompanionDeviceService`), hidden-SSID / dual-STA /
1660 local-only-network (`ebe` flags).
1661- SUPPORTED — selector USB > wireless > loopback-dev-only
1662 (`TransportSelector.kt:22-28`, `TransportKind.kt:13-23`,
1663 `TransportState.kt:61-67`); loopback listener (`HeadUnitServer.kt:25-45,58`
1664 IPv4 + `tcpNoDelay :42`). Note: `ProjectionService.kt:167-168` currently
1665 `accept()`s TCP directly — USB/wireless `TransportIntake` parking is built
1666 but not drained in this `serve()` leg.
1667
1668---
1669
1670## 13. Services / components / permissions / role
1671
1672MA manifest (`auto/src/main/AndroidManifest.xml:1-135`): **13** perms, **1**
1673activity (`.MainActivity` exported + MAIN/LAUNCHER + USB_ATTACHED + filter
1674`:63-82`), **3** services (`ProjectionService` `connectedDevice` `:84-87`,
1675`MusicCaptureService` `mediaProjection` `:93-96` API34+ split,
1676`MessageMirrorService` exported + BIND_NLS `:124-132`), **2** receivers
1677(`UsbReceiver` `:101-108`, `BootReceiver` `:111-117`), **0** providers,
1678queries maps/music/browser/DIAL (`:42-52`). Gearhead manifest-out (2702
1679lines): **81** `<uses-permission>` (`:22-102`), 56a/87s/42r/11p (11 providers
1680verified: DeveloperSettings, SettingsSearch, ProjectionState `:404-408`
1681exported, Initialization, GhMicrophone, SharedPreferences, Troubleshooter,
1682CoolwalkColors, Bugreport, Proxy, ProcessLifecycleOwner).
1683
1684- EQUIVALENT string — `WAKE_LOCK:22→MA:9`, `INTERNET:23→:12`,
1685 `ACCESS_WIFI_STATE:26→:21`, `CHANGE_NETWORK_STATE:27→:22`,
1686 `CONNECTED_DEVICE:29→:7`, `CHANGE_WIFI_STATE:37→:17`,
1687 `FOREGROUND_SERVICE:38→:6`, `BOOT_COMPLETED:39→:27`, `FINE_LOCATION:51→:23`,
1688 `RECORD_AUDIO:56→:31`, `NEARBY_WIFI_DEVICES:60→:24`,
1689 `POST_NOTIFICATIONS:62→:8`. PARTIAL — `COARSE_LOCATION:52` (MA FINE only);
1690 `QUERY_ALL_PACKAGES:32` (MA `<queries>` + `CarApps.kt:60-94` instead).
1691- [x] MISSING + breakage — FGS LOCATION/MICROPHONE (MA `MEDIA_PROJECTION:36`
1692 only; `ProjectionService` connectedDevice-only vs `CarChimeraService:2111`
1693 triple `microphone|connectedDevice|location`): API34+ bg mic/location FGS
1694 killed, ch6/ch7 starve. BT family (`BLUETOOTH:35/_ADMIN:36/_SCAN:58/
1695 _CONNECT:59/_PRIVILEGED:65`, `LOCAL_MAC_ADDRESS:73` — MA zero BT perms):
1696 `BT_START→RFCOMM→TCP` never fires, wireless discovery dead. Telephony/
1697 sensitive (`CALL_PHONE:47`, `READ_PHONE_STATE:48`, `READ_CALL_LOG:49`,
1698 `READ_CONTACTS:50`, `RECEIVE_SMS:54`, `SEND_SMS:55`, `READ_CALENDAR:57`,
1699 `RECEIVE_SENSITIVE_NOTIFICATIONS:96`, `GET_INTENT_SENDER_INTENT:99` +
1700 app-ops): call/message templates empty, fail-closed silence
1701 (`MessagingCarAppService.kt:98-140` fires app intents but cannot read
1702 restricted data). `MANAGE_USB:74`: no wired auto-launch/role-switch.
1703 Audio/priv (`MODIFY_AUDIO_ROUTING:75`, `TETHER_PRIVILEGED:82`,
1704 `POWER_SAVER:81`, `MANAGE_USERS:83`, `READ_PRIVILEGED_PHONE_STATE:77`,
1705 `CHANGE_COMPONENT_ENABLED_STATE:67`, `MODIFY_PHONE_STATE:97`,
1706 `CONTROL_INCALL_EXPERIENCE:70`, `CALL_PRIVILEGED:66`): sinks misroute to
1707 phone speaker, InCall dead. Trusted/projection (`ADD_TRUSTED_DISPLAY:94`,
1708 `ADD_ALWAYS_UNLOCKED_DISPLAY:90`, `CREATE_VIRTUAL_DEVICE:91`,
1709 `TOGGLE_AUTOMOTIVE_PROJECTION:92`, `CAPTURE_SECURE_VIDEO_OUTPUT:98`):
1710 private-only, secure black. CDM (`ASSOCIATE_COMPANION_DEVICES:95`,
1711 `REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION:93`,
1712 `REQUEST_COMPANION_SELF_MANAGED:78`,
1713 `COMPANION_APPROVE_WIFI_CONNECTIONS:68`,
1714 `REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE:44`): wireless CDM trigger
1715 absent. Launch (`START_ACTIVITIES_FROM_BACKGROUND:79`,
1716 `ENTER_CAR_MODE_PRIORITIZED:72`, `SYSTEM_ALERT_WINDOW:34`,
1717 `ACTIVITY_EMBEDDING:64`, `INTERACT_ACROSS_PROFILES:101`): background/trusted
1718 launch denied. Host/GMS (`NAVIGATION_TEMPLATES:42`, `ACCESS_SURFACE:43`,
1719 `READ_GSERVICES:33`, `GEARHEAD_SERVICE:41`, `START_PROJECTED_ACTIVITY:88`,
1720 telemetry/persona/appwidget/dump/location-hardware/day-night/app-ops/wifi-coex/
1721 vibrate/biometric/storage): host/template/GMS paths absent (NAV/
1722 ACCESS_SURFACE blocks CarApp host — `GearheadHostProbe.kt:70-73`
1723 `Class.forName` only).
1724- Components: PARTIAL — `CarChimeraService:2107-2115` (MA covers
1725 connectedDevice FGS + accept/pump/openNext `ProjectionService.kt:57-77,
1726 304-628`; missing mic/location types, START action, GAL replacement:
1727 GMS-compat clients cannot bind); wireless setup (`WirelessSetupSharedService:
1728 1309-1313` + CarService + StartupActivity/Receivers + `WifiBluetoothReceiver:
1729 2468-2481` + `DeepLinkResolver:2492-2506` + `CarStartupServiceImpl:2052-2062`
1730 — MA has `WifiDirectConnector/UsbConnector/WirelessSession/
1731 TransportSelector` only: no real-car wireless, DHU TCP only); NLS
1732 (`SharedNotificationListener:993-1005` — MA structure-equivalent
1733 `MessageMirrorService.kt:22-31` + dual-gate `MessagingPrefs`, missing
1734 singleUser/meta, sensitive perm, app-ops, intent-sender: sensitive threads
1735 invisible); USB (`CarUsbReceiver:2130-2141` + TPlus `:2143-2150` +
1736 `FirstActivityImpl:2067-2086` + reset/connectivity receivers — MA
1737 `UsbReceiver` + filter + `UsbConnector/UsbSession` only: no STATE/HANDSHAKE/
1738 FORCE_START/DUPLEX/RESET); boot (`ComponentInitReceiver:2152-2160` BOOT +
1739 REPLACED exported `:car` — MA `BootReceiver.kt:17-21` non-exported BOOT
1740 restart + role republish only).
1741- [x] MISSING components — `GearheadCarStartupService:2174-2177`
1742 (`CAR_STARTUP_NOTIFICATION`: HU startup notification unconsumed, MA manual/
1743 boot start only); `CarSetupServiceImpl:2045-2050` (`CAR_SETUP_SERVICE`
1744 handshake absent); `CarProcessCompanionDeviceService:2017-2027` (CDM:
1745 wireless association never triggers); `CarProjectionInCallServiceImpl:
1746 1266-1280` (+ disabled NonCar `:1252-1263` — no `InCallService` in MA
1747 manifest: projected calls dead); `CarSystemUiControllerService:931-933` +
1748 `AppDecorService:935-937` (HU compositor/decor bind rejected, embedded
1749 windows fail).
1750- MA-only (sender-specific, no gearhead counterpart):
1751 `MusicCaptureService.kt:31-106` (mediaProjection split),
1752 `MessagingCarAppService.kt:31-170` (plain class owned by
1753 `ProjectionService.kt:534-548`), `CarMessagingAudio.kt:28-75` (TTS-ch4 +
1754 mic-turn-ch6 seam, `transcribe` no-op), `CarApps.kt:25-99` (3-slot launcher),
1755 `HostVsMirror.kt:19-67` (MIRROR default) + `GearheadHostProbe.kt:37-116`
1756 (on-demand probe, never watched).
1757- Role: PARTIAL — constants `MaosRole.kt:22,25,28` + reader
1758 `MaosRoleStatus.kt:18-21` (fail-false) + `DisplayRoutePolicy.kt:34-35`
1759 (`false→PRIVATE_VIRTUAL`) + probe `:40` + boot republish
1760 (`BootReceiver.kt:19`); RRO pin + privapp allowlist MISSING (acknowledged
1761 `MaosRole.kt:8-11`, both boot-fatal — land one at a time).
1762
1763---
1764
1765## 14. Protobuf coverage (MA `gal/*.proto` vs gearhead `x*`)
1766
1767Provenance notes live in `control.proto:1-9`, `services.proto:10-11`.
1768
1769- EQUIVALENT (numbers/wire/cardinality exact): `xoa→control.proto:110-117`,
1770 `xob→:120-137`, `xnz/Service→:141-160`, `xko→services.proto:65-75`,
1771 `xhf→:44-48`, `xpd→:50-62`, `xkj→:20-28`, `xpc→:30-40`,
1772 `xof/MediaSetupRequest→media.proto:36-38`, `xoh→:49-54`, `xoi→:57`,
1773 `xgz/MediaAck→:60-64`, `xph→:67-70`, `xpf→:73-76`, `xjt→input.proto:103-111`,
1774 `xom→:62-66`, `xkf→:97-99`, `xkc→:121-123`, `xnu→sensors.proto:67-70`,
1775 `xny→:35-62` (26 types, dumper order).
1776- PARTIAL (wire ID in `GalMessage.kt`, layout MA-defined): `xiu/0x8003` vs
1777 `MediaSetupResponse:42-46` (name/layout not pinned); `xnv/0x8002→
1778 sensors.proto:74-77`, `xnr/0x8003→:80-94`, `xns/0x8004→:122-125` (explicit
1779 caveat `sensors.proto:14-19`); `xoa` sender shape field-5-only
1780 (`control.proto:96-109`).
1781- [x] MISSING (no MA DTO; HU answers `0xff`, tolerated per
1782 `ProjectionService.kt:177-182,211-213` + `GalMessage.kt:190-199`):
1783 `xow/0x800A`, `xkt/0x8006` (ID `GalMessage.kt:77-79` only),
1784 `xkq/0x8013`, `0x800B` sync (no-payload, counted `GalMessage.kt:144-151`),
1785 `xkn`/svc-11 + `xki`/svc-12 channel messages (gap `services.proto:4-8`,
1786 `media.proto:4-9` — now-playing rendered into ch2 instead), `xjm`/svc-14
1787 real IDs (MA `notification.proto:1-13` + `GalMessage.kt:120-142`
1788 MA-defined), nav-status real IDs (MA `navigation.proto:1-17` +
1789 `GalMessage.kt:99-118` MA-defined), `xjw/xnx/xht/xlo/xoz/xpl` channel
1790 payloads beyond descriptor slots (`services.proto:89-127`),
1791 `xnb/xmf/xkp` descriptor bytes (`control.proto:147-155` placeholders).
1792- Traps (FINDINGS §4, must re-check with `disasm.py` before trusting
1793 `defpackage` logic): `abpe.java:501` inverted (`0x1000` = has-hasbit,
1794 `xhf 0x150B` proof); descriptor escapes `\b\f\r` = fields 8/12/13
1795 (single-scan unescaper required); `wub.o` +1 on `jdk/jdi` recv
1796 (documented `GalMessage.kt:9-14`; `jem/jar` raw).
1797
1798---
1799
1800## 15. Functional verification appendix (open)
1801
1802- [ ] Control-plane interop: full DHU handshake per HANDOFF §6 with every ID
1803 in §11 exercised (send 24-parse + 255-send + 0xFFFF-teardown probes need a
1804 DHU + Pixel run; JVM leg is `:auto:protocol:testDebugUnitTest` — GREEN,
1805 281 tests, incl. the red-from-birth `GalConnectionIoThreadTest` concurrency
1806 case fixed via an explicit `encrypted` seam on the service-channel
1807 send/enqueue overloads).
1808- [ ] Channel interop: video STOP on ch2, `0x800A` round-trip, input-feedback
1809 `0x8004`, sensor 2s-timeout + remaining 22 types, BT/CDM/RFCOMM + `ebe`
1810 flags — each needs DHU/real-HU capture via `dhu_relay.py`. Call card +
1811 status cluster + night/parked wiring are DHU-verifiable (loopback shows
1812 them); real-car wireless/CDM/InCall stay deferred-blind.
1813- [ ] Missing-proto recovery: `xkt` typed, `xow` envelope stub, 22 sensor
1814 readings typed, `xnv/xnr/xns` MA-defined layouts documented; `xjm/xkn/xki`
1815 still empty-descriptor (stubbed, never invented). Re-prove with
1816 `verify_tls.sh`-style mutual-auth + DHU run before shipping any new bytes.
1817- [ ] Component/permission leg: RRO pin → `cmd role get-role-holders`,
1818 allowlist → boot + `SecurityException`-free projection, FGS types → bg
1819 mic/location alive, CDM → wireless trigger, InCall → HU call UI — MAOS
1820 side done (RRO repoint + Cast streaming migration + allowlist + privapp
1821 wiring, single flash at end); device leg needs the flash + Pixel run.
1822- [ ] Credential rotation before 2026-12-09 per HANDOFF §7 runbook
1823 (`extract_key.py` re-pin + `verify_tls.sh` + PEM swap + DHU handshake).
1824
1825---
1826
1827## 16. Critical files
1828
1829- `auto/src/main/java/com/vayunmathur/auto/platform/CarDisplay.kt` — MA
1830 surface under test (`CarPresentation` 390–1075).
1831- `auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.kt`,
1832 `platform/VideoEncoder.kt` — frame feed / cadence.
1833- `auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.kt` —
1834 touch/key/scroll routing.
1835- `auto/src/main/java/com/vayunmathur/auto/platform/CarApps.kt`,
1836 `platform/CarMapsMirror.kt`, `platform/MediaNowPlaying.kt`,
1837 `platform/MediaPlaybackMonitor.kt`, `platform/NavGuidanceMonitor.kt`,
1838 `platform/NavStatusChannel.kt`, `platform/GuidanceChannel.kt`,
1839 `platform/SensorChannel.kt` — card content.
1840- `auto/protocol/.../NavStatusCodec.kt`, `FocusArbitration.kt`,
1841 `InputCodec.kt`, `DisplayRoutePolicy.kt`, `MaosRole.kt` — pixel-path codec,
1842 focus, scale, route, role.
1843- `auto/src/main/AndroidManifest.xml`, `auto/src/main/res/values/strings.xml`
1844 (`car_*` 260–279), `res/xml/usb_accessory_filter.xml` — manifest/strings.
1845- `analysis/maauto/jadx-out/sources/com/google/android/apps/auto/components/ui/*`
1846 (media, listview, telecom, touch, widget/navigation, actionpanel),
1847 `.../system/statusbar/RailStatusBarFragment.java`,
1848 `.../system/facetbar/` (hotseat, widget, `ResizeButton.java`),
1849 `.../system/dashboard/design/DashboardCardView.java`,
1850 `.../coolwalk/` (button, focusring, card),
1851 `.../drawer/` (alpha jump, motion filtering), `.../sdk/ui/PagedListView.java`.
1852- `analysis/maauto/jadx-out/sources/.../projection/gearhead/sdk/CarDrawerLayout.java`,
1853 `sdk/CarAppLayout.java`, `sdk/CarDrawerLayout.java` (latter two: existence
1854 assumed from plan — verify before citing).
1855- `analysis/maauto/jadx-out/sources/.../gearhead/appdecor/` (`AppContentLayout`,
1856 `DrawerContentLayout`, `StatusBarView`), `.../gearhead/service/`
1857 (`GearheadService`, `CarSystemUiControllerService`), `.../gearhead/rail/ui/`
1858 (`SlidableLinearLayout`, `ImageButtonWithAlphaFade`).
1859- `analysis/maauto/jadx-out/sources/.../projection/gearhead/R.java` — ID
1860 authority (verify exact package path before citing — `R.java` location
1861 assumed from plan).
1862- `analysis/maauto/manifest-out/resources/res/layout/*` (751 files),
1863 `res/values*/` (dimens/colors/styles/strings/integers/bools + night/car),
1864 `res/drawable-*/`, `res/font*/`, `assets/*`,
1865 `manifest-out/resources/AndroidManifest.xml` (2702 lines, 81 perms, 11
1866 providers).
1867- `analysis/maauto/disasm.py` (+ `disasm_*.py` / `disasm*.txt`) — mandatory
1868 cross-check for load-bearing `defpackage` logic.
1869- `auto/docs/FINDINGS.md` (§1 role, §2 GAL, §6 components 56a/87s/42r/11p),
1870 `auto/docs/HANDOFF.md` (§2 bring-up, §6 test loop, §7 credential/expiry,
1871 §8 MAOS, §10 mirror decision).