Android TV client for Emby (Kotlin, Compose for TV) and the Memby gateway (Go, Postgres, Redis) that fronts it. Client: - Setup, profiles, home rows, Media3 playback, system screensaver (Dream) - Backend chosen at build time: gateway when memby.gatewayUrl is set, otherwise direct to Emby. Both paths stay working. - Server-composed home rows, rendered verbatim so new row types ship without an app release - Full-screen animated maintenance state, row engagement telemetry Gateway: - One request per TV screen; auth, caching, search and row shaping - Library import from Emby into Postgres (manual, then hourly incremental) - Recommendations from viewing history (recency-weighted genre affinity) - Admin page for imports, an offline switch, and per-row analytics - Video always direct-plays from Emby; only metadata passes through Identity is com.ponzischeme89.memby throughout, replacing com.mattcohen.embyclientsname. A changed applicationId installs as a new app: TVs need a fresh sign-in and the old package uninstalled. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
25 lines
908 B
PowerShell
25 lines
908 B
PowerShell
param(
|
|
[string] $Serial
|
|
)
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
$packageName = 'com.ponzischeme89.memby'
|
|
$activityName = "$packageName/$packageName.ui.MainActivity"
|
|
$jdkHome = 'C:\Program Files\Android\Android Studio\jbr'
|
|
$adbPath = Join-Path $env:LOCALAPPDATA 'Android\Sdk\platform-tools\adb.exe'
|
|
|
|
if (Test-Path $jdkHome) { $env:JAVA_HOME = $jdkHome }
|
|
if (-not (Test-Path $adbPath)) { throw "Android Debug Bridge was not found at $adbPath" }
|
|
|
|
$deviceArgs = if ($Serial) { @('-s', $Serial) } else { @() }
|
|
# Stop only Memby before replacing its debug APK.
|
|
& $adbPath @deviceArgs shell am force-stop $packageName
|
|
|
|
& .\gradlew.bat installDebug
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
|
|
# Start the new client's launcher after installation.
|
|
& $adbPath @deviceArgs shell input keyevent KEYCODE_WAKEUP
|
|
& $adbPath @deviceArgs shell am start -W -n $activityName
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|