Engineers don’t setup cts/gts environment, we can use am instrument command to debug.
Pls follow below steps to setup the debug environment:
-
Install cts apk: adb install CtsHardwareTestCases.apk
You can build it from source or you can get it from cts package that is downloaded from google server.
-
pm list instrumentation
Get the instrumentation information, below is a sample.
pm list instrumentation
-
Test whole module:
am instrument -w android.hardware.cts/androidx.test.runner.AndroidJUnitRunner
-
Single module or case
am instrument -e class android.hardware.input