This test verifies secure video playback on an Android device using a host-side script and a Playback Analysis Tool (PAT).
patctl and dependencies Set up patctl according to the README. TODO: b/462781250 - add PAT README here. After creating the venv, please install mobly using pip.
pip install mobly
Environment Setup: Before running the test, you need to ensure that the test videos are accessible. From this directory, run:
source build/envsetup.sh
Proper alignment of the Playback Analysis Tool is crucial for this test.
Connect the Tool: Connect the Playback Analysis Tool to your host machine via USB.
Device setup: Make sure that the device is connected to the internet and that the brightness is set to the maximum value.
Screen Alignment: When the test starts, a pattern of piano keys (bars) will be displayed on the device screen.
Alignment Indicator Light: The tool has an indicator light to confirm alignment:
Once the prerequisites and hardware setup are complete, you can run the test from your terminal.
Navigate to the SecurePlaybackTestApp directory:
cd cts/apps/SecurePlaybackTestApp
Execute the test script:
python3 secure_playback_test.py -c config.yml
The script will communicate with the CTS Verifier app on the device, run the secure playback test, and report the results.