Project

General

Profile

CompatibilityTestSuite » History » Version 5

Loic Dachary, 11/13/2016 09:45 PM
Fix the Lock SIM card menu location

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 developer options: go to *Settings > About phone* and tap Build number seven times.
30
** Enable USB debugging on your device: *Settings > Developer options > USB debugging*
31
** Select: *Settings > Developer options > Stay Awake > On*
32
** Select: *Settings > Developer options > Verify apps over USB > Off*
33
** 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.
34
** Install and configure helper apps on the device:
35
*** adb install -r android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
36
*** On the device, enable: *Settings > Accessibility > Accessibility > Delegating Accessibility Service*
37
** Copy the CTS media files to the device as follows:
38
   <pre>
39
# adb devices
40
List of devices attached
41
00090ad763a48f  device
42
4df1066d14d15fbd        device
43
# cd android-cts-media-1.2
44
# ./copy_media.sh all -s 00090ad763a48f
45
   </pre>
46
47
48
h1. Running CTS
49
50
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.
51
52
<pre>
53
# ./android-cts/tools/cts-tradefed
54
cts-tf > run cts --plan CTS
55
</pre>
56 2 Loic Dachary
57
The test results are in *./android-cts/repository/results/* and the logs in *./android-cts/repository/logs/*