Skip to content

feat(android): BigFred on phone - #7

Merged
keskad merged 18 commits into
mainfrom
feat/bigfred-on-phone
Jul 30, 2026
Merged

feat(android): BigFred on phone#7
keskad merged 18 commits into
mainfrom
feat/bigfred-on-phone

Conversation

@keskad

@keskad keskad commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add discovery with a warning dialog for the on-phone server flow.
  • Run the local server in a connectedDevice foreground service.
  • Fetch native Valkey and supervisord binaries from the latest deps-android-valkey and deps-android-supervisord releases, plus loco-server from BigFred.
  • Start unmanaged in stage 1; use supervised operation in stage 2 when supervisord libraries are present.

Test plan

  • Build the Android app.
  • Verify discovery, warning, and local foreground-service startup on a device.

Made with Cursor

keskad and others added 5 commits July 29, 2026 09:18
…isord

Co-authored-by: Cursor <cursoragent@cursor.com>
Failed boot previously reset state to Stopped, so Discovery looked like a no-op.
Preserve Failed, navigate to status while starting, and request notification permission.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace checkout+make android with oras pull from ghcr.io/dcc-bigfred/
loco-server-android-arm64; match branch OCI tag with fallback to main.

Co-authored-by: Cursor <cursoragent@cursor.com>
GHCR publishes only :main from master; optional vars.BIGFRED_OCI_TAG
for release pins (e.g. v1.2.3).

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad force-pushed the feat/bigfred-on-phone branch from eb50f72 to 1e50f9e Compare July 29, 2026 08:47
keskad and others added 13 commits July 29, 2026 12:46
code_cache is noexec on modern Android; pass --supervisord-bin /
--supervisorctl-bin pointing at extracted lib*.so instead of copying
bare names into codeCacheDir/bin.

Co-authored-by: Cursor <cursoragent@cursor.com>
Avoids Go netlink denial on phone; loco-server forwards the env as
dcc-bus scan --lan-prefix.

Co-authored-by: Cursor <cursoragent@cursor.com>
Hide connection status while local hub is active. Move on-phone start
into an expandable section above Manual, with a dedicated intro screen
and confirm/back actions instead of a dialog.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add a resized YaMoRC↔router↔BigFred diagram at the top of the
built-in BigFred intro screen.

Co-authored-by: Cursor <cursoragent@cursor.com>
Open WebView when the foreground notification is tapped, update notification copy, and collapse server logs by default on the status screen.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cancel the boot thread on stop, reject concurrent boots, route notification taps to the status screen until the server is Running, and restore the long-press "Add to my vehicles" action in the model catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use a single foreground-service restart action so cleanup and boot cannot race through stopSelf, and move blocking process shutdown off the service main thread.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wait for DataStore before bootstrap, prefer WebView when a server URL exists, persist the last SPA URL, lock auto-rotate, and expose manual portrait/landscape toggle via the JS bridge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use ../bigfred/bin/loco-server-android-arm64 for native-prebuilt instead of pulling from GHCR OCI when the file exists.

Co-authored-by: Cursor <cursoragent@cursor.com>
Skip bootstrap into WebView for a persisted 127.0.0.1 URL unless LocoServerService is Running, and clear that URL when the local server stops.

Co-authored-by: Cursor <cursoragent@cursor.com>
Warn users not to run several simplified phone hubs on one layout at once.

Co-authored-by: Cursor <cursoragent@cursor.com>
Explain that simplified phone mode is visually distinguished by the orange top bar.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit 846e0f4 into main Jul 30, 2026
1 check passed
@keskad
keskad deleted the feat/bigfred-on-phone branch July 30, 2026 20:07
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.

1 participant