[Memo] Record how to setup and run the Android Device environment and Host
0. Download the Android CTS (ARM) version from its official website.
1. apt install -y openjdk-8-jre aapt
2. Insert the external SD card if needs
3. Restore the factory data
4. Enable Development mode
5. Install the CtsAdminApp.apk via adb connection
# adb install -r -g android-cts/testcases/CtsAdminApp.apk
6. Activate all of android.deviceadmin.cts.CtsDeviceAdmin from Android Devices\ Settings\ Security\ Select device administrators.
7. Enable Stake awake/ USB debugging/ in the Developer Options.
8. Disable Verify App over USB in the Developer Options
9. Change to Android CTS working directory. android-cts/tools/
10. ./cts-tradefed
Notice:
Don't download android-media-files and copy media files to Android Device manually.
If you do it, CTS will show error message as 'Not all target preparation steps completed '
## run cts -plan everything
## help
沒有留言:
張貼留言