Project

General

Profile

CompatibilityTestSuite » History » Version 1

Loic Dachary, 11/13/2016 11:43 AM

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
* 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)
7
** 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
8
** 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
9
** wget https://dl.google.com/dl/android/cts/android-cts-media-1.2.zip ; unzip android-cts-media-1.2.zip
10
* Install the dependencies
11
** apt-get update
12
** apt-get install -y android-tools-adb openjdk-6-jdk
13
14
h1. Device preparation
15
16
* Connect the Replicant 4.2 device to USB and verify *adb* sees it
17
   <pre>
18
# adb devices
19
List of devices attached
20
00090ad763a48f  device
21
4df1066d14d15fbd        device
22
   </pre>
23
* 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)
24
** Factory data reset the device: *Settings > Backup & reset > Factory data reset*
25
** Set your device's language to English (United States) from: *Settings > Language & input > Language*
26
** Make sure no lock pattern or password is set on the device: *Settings > Security > Screen lock > None*
27
** Make sure no PIN lock is set on the device: *Settings > Security > PIN lock > None*
28
** Enable developer options: go to *Settings > About phone* and tap Build number seven times.
29
** 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>