1# Jank tests for Live Channels 2 3 4## AOSP instructions 5 6To run the jank tests 7 8```bash 9echo "Compiling" 10m -j LiveTv TVTestInput TVJankTests 11echo "Installing" 12adb install -r ${OUT}/system/priv-app/LiveTv/LiveTv.apk 13adb install -r ${OUT}/system/app/TVTestInput/TVTestInput.apk 14adb install -r ${OUT}/testcases/TVJankTests/TVJankTests.apk 15echo "Setting up test input" 16adb shell am instrument \ 17 -e testSetupMode jank \ 18 -w com.android.tv.testinput/.instrument.TestSetupInstrumentation 19echo "Running the test" 20adb shell am instrument \ 21 -w com.android.tv.tests.jank/android.support.test.runner.AndroidJUnitRunner 22 23``` 24 25If it is your first time installing LiveTv you will need to do 26 27```bash 28adb root 29adb remount 30adb push ${OUT}/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/LiveTv.apk 31adb reboot 32```