Playbridge android

From playbridgeapp/playbridge · View interactive version

Playbridge android is an AI agent skill from the GitHub repository playbridgeapp/playbridge. Work across PlayBridge's Android phone, Android TV, and shared Kotlin projects. Use for Kotlin, Compose, GeckoView, Android playback, Gradle, shared KMP, root version-catalog, or Android-specific protocol consumer changes under mobile/android/, tv/android/, shared/, gradle/, or prebuilt/media3/.

How to use this skill

Skill file

PlayBridge Android

Establish ownership

Work safely

  1. Follow the root AGENTS.md, including adaptive Serena/graph exploration.
  2. Run every Gradle command from the project that owns the change.
  3. Preserve TV cleartext stream support and the scoped TLS behavior in ContentSniffer.kt.
  4. Keep GeckoView and Media3 versions compatible with both Android roots and prebuilt/media3/.
  5. Never log tokens, pairing credentials, signing material, or authenticated stream URLs.
  6. Preserve Google Cast's physical local-network binding around VPNs, application-ready handshake, fresh-session behavior after receiver exit, and distinction between stopping media and ending the receiver.
  7. For phone media detection / cast-sheet expectations (SPA soft-nav keeps rows, hard load clears, site patterns), see docs/video-detection.md. The phone detector is generated from extension/src/core/ and extension/src/geckoview/; change source and run pnpm build from extension/, then inspect the Kotlin consumer and generated assets together.
  8. For device/emulator control, load android-adb. Reuse an authorized target selected by the user; check existing ADB devices and wireless-debugging mDNS before a LAN scan. Use the device's advertised connection port, then the FOSS debug rebuild/install/launch workflow and verify the actual interaction.
  9. For phone adb logcat recipes (detection, cast, proxy, TV, downloads), see mobile/android/docs/logging.md.

Website playback

Retired content data

The Android sender has no built-in content catalog, provider resolver or provider-script engine.

Room v25 drops retired content tables; RetiredContentCleanup removes their settings and caches

once at startup on IO. Preserve browser preferences, receiver credentials, downloads, collections,

IPTV and user-added bridged apps. Older backups ignore retired sections.

Verify

On macOS, invoke Gradle through zsh after sourcing ~/.zshrc.

From mobile/android/, select the narrowest relevant checks:

zsh -c "source ~/.zshrc && ./gradlew :app:testFossDebugUnitTest"
zsh -c "source ~/.zshrc && ./gradlew :app:assembleFossDebug"
zsh -c "source ~/.zshrc && ./gradlew :app:lintFossDebug"

From tv/android/, select the narrowest relevant checks:

zsh -c "source ~/.zshrc && ./gradlew test"
zsh -c "source ~/.zshrc && ./gradlew :player:app:assembleFossDebug"
zsh -c "source ~/.zshrc && ./gradlew lint"

Validate shared/ changes through both roots when both consume the affected code.

For flavor-specific plugin or shared phone changes that could affect store builds,

also assemble :app:assemblePlayDebug; passing the FOSS build does not verify the

Play source set. For installed-app startup or editing changes, include

BridgedAppStartupTest, BridgedAppStoreTest, BrowserTabSelectionTest and

RemoteReturnTargetTest; model tests do not verify physical long-press/rotation UI.

When Cast Core JNI, sender services, proxy callbacks, or their ABI changes, run

sh cast/build-android.sh from the repository root before the phone checks and

verify both armeabi-v7a and arm64-v8a outputs were replaced.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.