diff options
| author | Lena <lena@omega> | 2026-01-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-06-24 22:14:50 +0300 |
| commit | eb0c8951196c637e44daf3c0617b131b997d5d2c (patch) | |
| tree | 2f83b6a41cee745467e53fc401942b82cea286ea /test-rig/build-apk.sh | |
| download | scrcpy-android-0.1.tar.gz | |
scrcpy-android: mirror an Android device over wireless ADB0.1
Native Java app for Android 12+ that mirrors another Android
device over wireless ADB, forwarding video, audio, touch input,
and clipboard. Bundles a pinned scrcpy-server.jar and the
vendored libadb-android stack. Supports h264/h265/av1 video and
raw/opus audio with in-app codec selection. No NDK, no Kotlin.
Includes JVM unit tests and a Docker-based emulator e2e rig.
Diffstat (limited to 'test-rig/build-apk.sh')
| -rwxr-xr-x | test-rig/build-apk.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test-rig/build-apk.sh b/test-rig/build-apk.sh new file mode 100755 index 0000000..18b3969 --- /dev/null +++ b/test-rig/build-apk.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# Smoke test: build a signed release APK from inside the rig using a +# throwaway keystore. Validates that scripts/build-apk + the gradle +# signingConfigs wiring still produces a valid signed apk. +# +# Output: /work/app/build/outputs/apk/release/app-release.apk +# (and the keystore in /work/.tools/release-smoke.jks) + +set -eu + +KS="/work/.tools/release-smoke.p12" +KS_PASS="changeit" +KEY_ALIAS="scrcpy-android-smoke" + +mkdir -p /work/.tools + +if [ ! -f "$KS" ]; then + echo "build-apk.sh: generating throwaway keystore at $KS" + keytool -genkey -noprompt \ + -keystore "$KS" -storetype PKCS12 \ + -storepass "$KS_PASS" -keypass "$KS_PASS" \ + -alias "$KEY_ALIAS" -keyalg RSA -keysize 2048 -validity 365 \ + -dname "CN=scrcpy-android smoke, OU=test, O=local, C=US" \ + >/dev/null +fi + +export KEYSTORE_PATH="$KS" +export KEYSTORE_PASS="$KS_PASS" +export KEY_ALIAS="$KEY_ALIAS" +export KEY_PASS="$KS_PASS" + +exec /work/scripts/build-apk |