launcher: GrapheneOS Launcher3 phone gap audit
- Commit
df47c20320a5c5d9a505987d3444814910df43bd- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 16:30 UTC (1 hour ago)
- Parents
d6e1034
Pulled Launcher3QuickStep 17 (code 37) from the owner's Pixel 9 Pro XL (HOME com.android.launcher3/.uioverrides.QuickstepLauncher) and audited our phone home against that build via aapt2 badging, launcher_preferences.xml, device_profiles.xml and paddings. Doc enumerates MATCHES / MISSING / DIFFERENT DETAIL / OUT OF SCOPE-IMPOSSIBLE per behaviour, GrapheneOS-vs-AOSP deltas (no Discover/QSB/GMS predictions; only notification dots, add-icon, two-line labels and fixed-landscape in Home settings), and the two gaps implemented next: two-line drawer labels and add-apps-to-home. Verified by reading the pulled APK resources; no code change in this commit.
Diff
analysis/launcher3-phone-gap.md
diff --git a/analysis/launcher3-phone-gap.md b/analysis/launcher3-phone-gap.mdnew file mode 100644index 0000000000..c19233dca0--- /dev/null+++ b/analysis/launcher3-phone-gap.md@@ -0,0 +1,97 @@+# Launcher3 phone gap audit — GrapheneOS fork vs our :launcher phone home++Scope: `launcher/` phone experience only. Watch/TV untouched.+Base: worktree `agent-launcher3-phone` at origin/main c69a6c364.++## Ground truth pulled from the owner's phone (2026-12-06)++- Device: Pixel 9 Pro XL (komodo), Android 17. HOME resolves to+ `com.android.launcher3/.uioverrides.QuickstepLauncher`, role holder+ `com.android.launcher3`.+- APK pulled (analysis only, gitignored):+ `/system_ext/priv-app/Launcher3QuickStep/Launcher3QuickStep.apk`+ 19,393,468 B, sha256+ `1161d8fdc274200ecd42833d29ff635f0e10b3a4986d3c9e1be2f6abfe2b2a35`,+ `versionName=17 versionCode=37 min/target/compileSdk=37`.+- Evidence used: `aapt2 dump badging/xmltree/resources` (apktool 2.2.2+ cannot decode Android 17 `resources.arsc`; `--no-res` smali path also+ fails, so no smali claims are made). Key files:+ `res/xml/launcher_preferences.xml`, `res/xml/device_profiles.xml`,+ `res/xml/paddings_5_col.xml`, `resources.txt` (57,737 lines).++### GrapheneOS vs AOSP Launcher3 (deliberate deltas)++GrapheneOS ships an AOSP Launcher3QuickStep fork, not Pixel Launcher:+1. No Google Discover feed (left-of-home), no Google QSB/Assistant bar,+ no Play/GMS predictions. Search/predictions must be local only.+2. `launcher_preferences.xml` in this build exposes only:+ `pref_icon_badging` (Notification dots), `pref_add_icon_to_home`+ (default `bool/pref_add_icon_to_home_default=true`),+ `app_list_settings/pref_enable_two_line_toggle`+ (`bool/apps_list_pref_two_lines_toggle=false`),+ `pref_fixed_landscape_mode` (default false), plus Developer Options.+ AOSP/Pixel surfaces (icon shape picker, themed-icon beta, suggestions,+ rotation as a user toggle, At-a-Glance settings) are NOT in this+ build's preference screen — copying "exactly" means not inventing+ them as Graphene features.+3. Recents/Overview, taskbar/bubble-bar resources exist in the APK+ (`dimen/bubblebar_*`, Overview perms) but are QuickStep/system+ behaviours of a privileged priv-app; a third-party launcher cannot+ draw them (see Out of scope).+4. Device profiles include 2x2..6x5/5x8/7x3/8x3, foldable and+ split-display profiles; phone-relevant default is 5 columns+ (`paddings_5_col.xml`: workspace top padding grows with+ `maxEmptySpace` 23dp→0dp, 45dp→8dp, 64dp→16dp, 115dp→36dp,+ 139dp→48dp; `dynamic_grid_edge_margin=10.77dp`,+ `dynamic_grid_cell_border_spacing=16dp`,+ `dynamic_grid_cell_padding_x=8dp`, `page_indicator_dot_size=6dp`,+ `page_indicator_gap_width=4dp`, `workspace_page_indicator_height=24dp`,+ `dynamic_grid_drop_target_size=56dp`).++## Gap table (phone home)++| # | Behaviour (Graphene Launcher3) | Ours before | Verdict |+|---|---|---|---|+| 1 | Paged workspace grid, 5x5 default, hotseat = columns | 5x5, hotseat slots configurable | MATCHES |+| 2 | Swipe-up All Apps, 1:1 track, fling/commit 0.5, workspace scales 0.92 behind | Same constants in HomeConstants/LauncherTuning | MATCHES |+| 3 | All Apps search (local), predictions row + divider, Personal/Work tabs, pause-work (privileged) | Same; predictions local launch counts | MATCHES |+| 4 | Fast-scroll letter strip overlaid on right edge | FastScrollStrip present | MATCHES |+| 5 | Long-press item: shortcuts (staggered), App info, Uninstall; drag shortcut to home | ItemMenuContent, 216dp popup (`bg_popup_item_width`) | MATCHES |+| 6 | Long-press empty: Wallpaper & style / Widgets / Apps list / Home settings popup | WorkspaceOptionsContent same 4 rows | MATCHES |+| 7 | Drag reorder with dwell, reorder preview pulse, cross-page edge dwell (page-edge zone), drop bar Remove/Uninstall/App-info, folder-merge ring | Domain GridReorder/ReorderDwell/PageEdgeDwell/FolderMerge present | MATCHES |+| 8 | Folders: create by drop, 4-preview circular icon, rename in place, drag child out, reorder inside | FolderContent/FolderIcon same | MATCHES |+| 9 | Widgets: picker grouped by app + search, bind/configure flow, resize frame with displaced neighbours | WidgetPickerContent/WidgetResizeFrame present | MATCHES |+|10 | Hotseat: no labels, drag in/out, folder in hotseat | HotseatBar same | MATCHES |+|11 | Icon labels: single-line, key shadow 0.5dp/#89000000 on wallpaper | LauncherAppIcon same (ambient second shadow impossible in one Compose Shadow) | MATCHES (detail noted) |+|12 | **Two-line app-list labels toggle** (`pref_enable_two_line_toggle`, default off) | Drawer labels always 1 line; no toggle | **MISSING → implemented** |+|13 | **Add apps to Home screen toggle** (`pref_add_icon_to_home`, default on): newly installed apps appear on home | No auto-add; new apps only in drawer | **MISSING → implemented** |+|14 | Notification dots (`pref_icon_badging`, opens notification-listener settings) | No dots, no listener service | MISSING (named, not implemented: needs a NotificationListenerService + runtime grant flow; a settings switch without it would be a dead toggle) |+|15 | Fixed landscape mode (`pref_fixed_landscape_mode`, default off) | No such setting; phone home is portrait | MISSING (named: Graphene default is off, so portrait-only matches the shipped default; implementing landscape workspace re-layout is a separate change) |+|16 | Grid size choice | Columns/Rows/Hotseat selectors (3-6 / 4-7) | MATCHES (wider than Graphene's profile-driven grid) |+|17 | Wallpaper picker via Wallpaper & style | Settings + options popup call system picker | MATCHES |+|18 | Work-profile badged icons | System-badged bitmap + BadgedBox fallback | MATCHES |+|19 | Themed (monochrome) icons / icon-shape picker | Not in Graphene preference screen; adaptive icons drawn as supplied | OUT OF SCOPE for Graphene parity (Pixel/AOSP-flag feature, not in pulled build's settings) |+|20 | At-a-Glance / Discover / Google search bar | Absent (Graphene delta) | MATCHES BY DELTA — must not be added |+|21 | Suggestions (GMS/App Prediction Manager) | Local launch-count predictions only | MATCHES BY DELTA |+|22 | App pairs, taskbar on foldables/tablets, bubble bar | Resources exist for system/foldable; phone third-party cannot host taskbar | OUT OF SCOPE-IMPOSSIBLE on phone (system) / not phone scope |+|23 | Recents/Overview UI, clear-all, predictive back into recents | Priv-app QuickStep only (`START_TASKS_FROM_RECENTS` etc.) | OUT OF SCOPE-IMPOSSIBLE: system draws recents; we only integrate via HOME role |+|24 | Edit/overview mode: workspace shrinks to page previews on long-press empty | Long-press empty opens options popup, no overview zoom | DIFFERENT DETAIL (named; Graphene long-press opens options, overview is via Recents gesture — system) |+|25 | Page snap/fling: no overshoot bounce | `Motion.pageSnap()` (PagedView curve) | MATCHES |+|26 | Spring-loaded (edit) drag between pages while holding | Edge-dwell page turn while dragging | MATCHES in effect |++## Implemented in this change++- #12 Two-line drawer labels: `Settings > App drawer > Two-line labels`+ (default off, as `apps_list_pref_two_lines_toggle=false`), persisted,+ applies to the drawer grid only (workspace/hotseat stay one line).+- #13 Add apps to Home: `Settings > Home screen > Add apps to Home screen`+ (default on, as `pref_add_icon_to_home_default=true`). Newly installed+ activities (not previously seen, not already anywhere in the layout)+ are placed at the first vacant desktop cell; the seen-set is persisted+ so enabling the toggle later does not dump the whole drawer onto home.++## Remaining named gaps++- #14 Notification dots (needs listener service + grant UX).+- #15 Fixed-landscape workspace (Graphene default off).+- #24 Overview/edit-mode zoom (system Recents owns overview on Graphene).