Skip to content

Remove server-cached Android APK downloads - #4566

Merged
ymichael merged 1 commit into
mainfrom
bb/remove-android-server-cache
Sep 30, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/remove-android-server-cache

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

#4513 made Settings → Mobile and bb settings mobile-app link straight to the public GitHub android-testing release, so APK downloads no longer go through the bb server or the bb connect tunnel. It kept the old server-cache path as a CLI/SDK escape hatch: bb settings android-app-prepare downloaded or locally built an APK into the server data directory, and /install/bb-android.apk served it through the server. That's the same proxied ~147 MB transfer that coincided with tunnel disconnects. #4513 also removed the androidTesting flag that gated this path, so any server with a cached APK now served it without opting in. Nothing in the app calls this path.

What changed

  • Server: delete GET /system/android-app, GET /system/android-app/preparation, POST /system/android-app/prepare, GET /install/bb-android.apk, and the preparation, artifact and local-build (BB_ANDROID_SOURCE_DIR) services, with their tests.
  • Contract/SDK: remove SystemAndroidAppResponse, AndroidAppPreparation, AndroidAppPrepareRequest / androidAppPrepareRequestSchema, and the SDK methods system.androidApp(), system.androidAppPreparation() and system.prepareAndroidApp().
  • CLI: remove bb settings android-app and bb settings android-app-prepare. bb settings mobile-app [--details] [--json] is the supported way to get download links and metadata.
  • Docs: remove the server-caching and local-build text from docs/configuration.md, the mobile README, the bb guide customization template, and the bb-cli skill's app-settings reference and command index.
  • Kept: androidAppArtifactSchema, which /system/mobile-app-releases uses to parse latest.json; the EAS publish workflow and publish-android-apk.mjs; and build-android-local.sh, which the Android e2e workflow and pnpm build:android:local use.

Breaking: the two CLI commands, three SDK methods and four routes are gone; the routes now return 404. Servers that already prepared an APK keep the orphaned <dataDir>/android-testing/ directory, which nothing reads anymore. No daemon wire change. The Plugin SDK surface is unchanged (check-plugin-sdk-version.mjs).

How you verified

  • pnpm exec turbo run typecheck lint for @bb/server, @bb/cli, @bb/sdk, @bb/server-contract, @get-bb/plugin-sdk and @bb/app passes.
  • pnpm exec turbo run test for @bb/sdk (114), @bb/cli (863) and @bb/server-contract (78) passes.
  • The server's test/app and test/system suites (32 files, 349 tests) pass, including mobile-app-releases.test.ts.
  • node .github/workflows/check-plugin-sdk-version.mjs reports "Plugin SDK surface unchanged".
  • git grep finds no remaining references to the removed routes, commands, SDK methods, types or BB_ANDROID_SOURCE_DIR.

AGENT GENERATED

🤖 Generated with Claude Code

Settings → Mobile and bb settings mobile-app link directly to the public
GitHub release, so the server copy only kept a CLI/SDK path that proxied
the APK through the server and bb connect tunnel. Delete the preparation
and local-build services, the /system/android-app routes, the
/install/bb-android.apk route, the android-app and android-app-prepare
CLI commands, their SDK methods, contract types, tests, and docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 426ac96 into main Sep 30, 2026
20 checks passed
@ymichael
ymichael deleted the bb/remove-android-server-cache branch September 30, 2026 16:33
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