aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorLena <lena@omega>2026-07-01 00:00:00 +0000
committerLena <lena@omega>2026-07-01 00:00:00 +0000
commitf6668454daaa0b5b559723b3bb685c244456247b (patch)
tree174280a1542fa4d1f5c9427b00f853458ca32022 /README
parent30ee8be82e44d1a8250d1f6e27e71f7d5f24aec5 (diff)
downloadscrcpy-android-f6668454daaa0b5b559723b3bb685c244456247b.tar.gz
test: add a screenshot capture tier
The store screenshots were made by hand, so nothing kept them in step with the UI. Add ./test screenshots, which boots a pixel_6 AVD on the same image the e2e tier uses and overwrites the tracked PNGs. The AVD is its own so a capture run cannot disturb the device state e2e asserts against, and the panel comes from the device profile: forcing geometry with wm size on a booted software-GPU emulator ANRs SystemUI and the ANR dialog lands in the capture. SystemUI demo mode does the same, so the status bar is left live. Each shot is rejected unless the app owns the focused window and the PNG has the expected geometry.
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index b6618cf..11de229 100644
--- a/README
+++ b/README
@@ -82,6 +82,15 @@ use and cached.
# taps/keys, and stitches a screen recording into
# ./output.mp4. Needs /dev/kvm.
+ ./test screenshots
+ # Boots a pixel_6 AVD (natively 1080x2400), captures
+ # Main and Settings, and overwrites the tracked PNGs
+ # under fastlane/metadata/android/en-US/images/
+ # phoneScreenshots. Refuses to write a shot unless the
+ # app owns the focused window and the PNG has the
+ # expected geometry. Review the diff before
+ # committing. Needs /dev/kvm.
+
./test apk # Smoke build: generates a throwaway PKCS12 keystore
# under .tools/, runs scripts/build-apk against it,
# verifies the resulting APK is signed. No KVM.