Skip to content

Android: always Big Picture, made for touch - #616

Draft
elripalda wants to merge 6 commits into
mainfrom
claude/project-thread-xs9fyw
Draft

elripalda wants to merge 6 commits into
mainfrom
claude/project-thread-xs9fyw

Conversation

@elripalda

Copy link
Copy Markdown
Owner

Requested by Ruben · project thread

What this changes

The Android test app's screen: Big Picture mode, made for a touch screen as well as a controller. Nothing changes on PC.

  • On Android the launcher opens straight into Big Picture mode, held sideways (sensorLandscape), and skips the desktop's first-time setup. There's no desktop view to leave for, so Leave Big Picture is gone and Back on Home offers Quit.
  • Settings leaves out what only a PC has: Monitor, Start in Big Picture, Start with your PC, Close to tray, Discord status, Controller as a Mouse.
  • Touch: a finger drags a page up and down or a row of games sideways, a tap picks and opens, and a drag never counts as a tap.
  • Android's Back (gesture or button) is B (onBackButtonPress, with the core:app listener permissions).
  • On a phone, Auto size draws the stage a little bigger (1600×900) so words stay readable.
  • assets::os_now() says android on Android, so the launcher never picks a Linux build there.
  • The Android workflow builds an x86_64 APK too, opens it on an emulator, and prints two small screenshots and the app's log into the job log (.github/scripts/android-smoke.sh).

How you tested it

  • node --test tests/*.test.cjs: all pass, with a new tests/android-tv.test.cjs (PC-only settings hidden on Android, kept on PC; Android always starts in Big Picture).

  • cargo check --all-targets (Linux) and cargo check --lib --target aarch64-linux-android pass.

  • Emulator screenshots from the Android workflow on this PR.

  • npm test passes

  • node --test tests/*.test.cjs passes

  • Tried it in the launcher (npm run dev)

Checklist

  • One change per pull request
  • Not a fix for one recomp's own quirks
  • No version bump or patch notes
  • Doesn't change what developers can write in recomplauncher.json

Generated by Claude Code

On Android the launcher opens straight into Big Picture mode, held sideways,
skips the desktop's first-time setup, and leaves out the PC-only settings.
A finger drags pages and rows, a tap opens, Android's Back is B. Phones get
a slightly bigger stage so words stay readable. The Android workflow now
also opens the APK on an emulator and prints screenshots into its log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elripalda elripalda self-assigned this Nov 27, 2026
The emulator check showed the app stopping at start: unrar's C++ needs libc++,
which isn't on the phone. It's linked in statically now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ification permission

The first emulator run started the app, but Android killed it when Google Play
services crashed on the emulator. The plain Android image has no Google apps to
take it down. The notification plugin also needs its default permission.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants