1 下载cts测试包 和 sdk 包
http://source.android.com/compatibility/downloads.html ----cts 包
http://developer.android.com/sdk/index.html ----- sdk 包
把这两个包放在同一目录下。
2 camera 测试
运行 android-cts/tools/cts-tradefed
出现如下
cts-tf >
然后
cts-tf > cts run -c android.hardware.cts.CameraTest -m "测试方法"
常用测试
run cts -c android.hardware.cts.Camera_SizeTese
run cts -c android.hardware.cts.CameraTest
run cts -c android.hardware.cts.CameraGLTest
run cts -c android.media.cts.CamcorderProfileTest
run cts -c android.graphics2.cts.TextureViewTest
run cts -c android.mediastress.cts.MediaRecorderStressTest
用源码编译ctsBuild CTS:Firstly, you need download android source code to your linux host PC.Then enter android root directory, and follow below instructions:
1. source build/envsetup.sh
2. mm cts 或 make cts
在android 4.4 上
Please get the CTS 4.4.
Then
For CTS ready:
- Connect charger
- Please set language to English
- In Settings/Developer Options pick
o Stay awake
o Allow mock location
- Adb install –r CtsDeviceAdmin.apk
- In Settings/Security
o Screen Lock –> None
o In Device Administrators pick and activate
§ CtsDeviceAdminReceiver
§ CtsDeviceAdminReceiver
- Connect the device to WiFi
CtsDeviceAdmin.apk 需要安装