Project

General

Profile

CompatibilityTestSuite » History » Version 6

Loic Dachary, 11/13/2016 09:50 PM
Developer options is set by default, not need to tap

1 1 Loic Dachary
Instructions to run and collect results of the android "Compatibility Test Suite":https://source.android.com/compatibility/cts/setup.html for "Replicant 4.2":https://redmine.replicant.us/projects/replicant/wiki/ReplicantStatus#Replicant-42
2
3
h1. Installation
4
5
* On a newly installed Ubuntu 14.04
6 3 Loic Dachary
* Install the dependencies
7
** apt-get update
8 4 Loic Dachary
** apt-get install -y android-tools-adb openjdk-6-jdk wget unzip
9 1 Loic Dachary
* Install the "pre-built CTS":https://source.android.com/compatibility/cts/downloads.html (or "build it from source":https://source.android.com/compatibility/cts/development.html#building-and-running-cts)
10
** wget https://dl.google.com/dl/android/cts/android-cts-4.2_r4-linux_x86-arm.zip ; unzip android-cts-4.2_r4-linux_x86-arm.zip
11
** wget https://dl.google.com/dl/android/cts/android-cts-verifier-4.2_r5-linux_x86-arm.zip ; unzip android-cts-verifier-4.2_r5-linux_x86-arm.zip
12
** wget https://dl.google.com/dl/android/cts/android-cts-media-1.2.zip ; unzip android-cts-media-1.2.zip
13 3 Loic Dachary
14 1 Loic Dachary
15
h1. Device preparation
16
17
* Connect the Replicant 4.2 device to USB and verify *adb* sees it
18
   <pre>
19
# adb devices
20
List of devices attached
21
00090ad763a48f  device
22
4df1066d14d15fbd        device
23
   </pre>
24
* Configure the device (adapted from https://source.android.com/compatibility/cts/setup.html#config_device, not including Wifi, GPS, bluetooth since they are not supported)
25
** Factory data reset the device: *Settings > Backup & reset > Factory data reset*
26
** Set your device's language to English (United States) from: *Settings > Language & input > Language*
27
** Make sure no lock pattern or password is set on the device: *Settings > Security > Screen lock > None*
28 5 Loic Dachary
** Make sure no PIN lock is set on the device: *Settings > Security > Set up SIM card lock > Lock SIM card > unset* (only shows if there is a SIM card in the phone)
29 1 Loic Dachary
** Enable USB debugging on your device: *Settings > Developer options > USB debugging*
30
** Select: *Settings > Developer options > Stay Awake > On*
31
** Select: *Settings > Developer options > Verify apps over USB > Off*
32
** Connect the desktop machine that will be used to test the device with a USB cable. The system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. Select Allow USB debugging.
33
** Install and configure helper apps on the device:
34
*** adb install -r android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
35
*** On the device, enable: *Settings > Accessibility > Accessibility > Delegating Accessibility Service*
36
** Copy the CTS media files to the device as follows:
37
   <pre>
38
# adb devices
39
List of devices attached
40
00090ad763a48f  device
41
4df1066d14d15fbd        device
42
# cd android-cts-media-1.2
43
# ./copy_media.sh all -s 00090ad763a48f
44
   </pre>
45
46
47
h1. Running CTS
48
49
It runs in the background and takes about 8 hours. It will display results as they become available. See "the usage documentation":https://source.android.com/compatibility/cts/run.html#using-cts-v1 for more information.
50
51
<pre>
52
# ./android-cts/tools/cts-tradefed
53
cts-tf > run cts --plan CTS
54
</pre>
55 2 Loic Dachary
56
The test results are in *./android-cts/repository/results/* and the logs in *./android-cts/repository/logs/*