Skip to content

Prepare experimental Play flavor with bundled runtime - #454

Draft
yuga-hashimoto wants to merge 9 commits into
mainfrom
codex/play-store-readiness
Draft

yuga-hashimoto wants to merge 9 commits into
mainfrom
codex/play-store-readiness

Conversation

@yuga-hashimoto

@yuga-hashimoto yuga-hashimoto commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Scope

This draft advances the experimental Play flavor toward local AI coding on Android. It bundles pinned, SHA-256-verified Alpine and OpenCode archives for arm64 and x86_64; Play updates OpenCode only through a new app bundle. The Play package has its own ID, local server port, signing configuration and no Firebase diagnostics. GitHub and F-Droid retain their existing runtime download and signing paths.

The Play UI includes an explicit AI-content report dialog that submits a user-reviewed excerpt as a public GitHub issue. It requires GitHub authentication and is not an accountless or privacy-preserving reporting solution. The Play workflow uses the repository's OAuth client ID when present and warns when it is absent.

Draft only; not ready for Play submission or merge. Additional Alpine packages, Debian and other CLI binaries still download executable code; Google Play policy treatment is unresolved. Redistribution/source and transitive-license obligations for the bundled artifacts remain open. The 32-bit PRoot loaders have 4 KB ELF LOAD alignment; all-files/foreground permissions, accountless reporting and moderation, provider terms, and end-to-end device coverage require work. Root detekt is currently NO-SOURCE and does not analyze the app. See docs/play-store/REMAINING_TASKS.md.

Validation

  • All six GitHub Actions checks passed for 5824cbb6, including Play validation and the Termux native source build. The Play job still emits the documented 32-bit ELF warnings.
  • After syncing main, Play debug/release APK and unsigned AAB, GitHub/F-Droid debug APKs, Play lint and formatting passed. Each flavor's debug unit suite reported 1,886 tests and no failures or errors.
  • F-Droid release built with andcode.fdroidBuild=true and pinned-mirror native binaries. Source-built native reproducibility remains unverified. This machine lacks AGP's default NDK 27.0.12077973, so its native-library strip task warned and packaged libraries without stripping; this is a local build limitation.
  • Play, GitHub and F-Droid instrumented test APKs compiled; dex inspection confirmed the Play asset test is Play-only. On a 16 KB Android 36 arm64 emulator, all three selected Play instrumented tests passed.
  • With all networks disconnected, both bundled arm64 archives were copied and verified; required extra Alpine package installation failed offline. After reconnection and retry, installation succeeded and PRoot/OpenCode started on port 4107.
  • Bundletool validated the unsigned AAB; debug APK ZIP alignment passed. All inspected 64-bit ELF LOAD segments met 16 KB alignment; both 32-bit loaders remain 4 KB. No x86_64 or 32-bit execution was tested.
  • The Play workflow limits Gradle to one worker after its first hosted run exhausted memory during concurrent Kotlin compilation. Play signing isolation passed three tests with throwaway keys. No production key, Play Console, upload or publishing operation was used.

Pre-PR review

判定: APPROVE

ブロッカー

なし

提案(非ブロッキング)

  • GitHub Actions 上で、ワーカー数の制限後にクリーンビルドが完了することを確認してください。
  • Play 公開前に、GitHub アカウントを持たない利用者向けの報告方法と、報告への対応運用を確立してください。
  • 外部実行コードの取得方式、同梱物のライセンス義務、権限、32-bit loader、x86_64 実行、F-Droid のソースビルド再現性を引き続き検証してください。

チェック済み項目

  • 最終 HEAD 5824cbb6 に対する origin/main...5824cbb6 の差分を確認しました。
  • 前回の承認からの変更は、Play 検証ワークフローで Gradle の並列実行を制限する設定であることを確認しました。
  • Play 専用端末テストの分離、OAuth クライアント ID の受け渡し、同梱アーカイブの検証、Play 専用更新処理、署名設定の分離を確認しました。
  • 公開前に未解決のポリシー、ライセンス、権限、16 KB 対応事項が文書に記載されていることを確認しました。
  • この承認は実験的な変更のレビュー結果であり、Google Play への申請可能性や GitHub Actions の実行成功を承認するものではありません。

@yuga-hashimoto yuga-hashimoto changed the title Investigate Google Play distribution with an experimental flavor Prepare experimental Play flavor with bundled runtime Nov 26, 2026

This branch has not been deployed

No deployments
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