aboutsummaryrefslogtreecommitdiff
path: root/en/compatibility/cts
diff options
context:
space:
mode:
Diffstat (limited to 'en/compatibility/cts')
-rw-r--r--en/compatibility/cts/downloads.html116
-rw-r--r--en/compatibility/cts/index.html54
-rw-r--r--en/compatibility/cts/pkcs15-commands.txt2
-rw-r--r--en/compatibility/cts/secure-element.md68
4 files changed, 149 insertions, 91 deletions
diff --git a/en/compatibility/cts/downloads.html b/en/compatibility/cts/downloads.html
index b5dc66cb..ebc2265a 100644
--- a/en/compatibility/cts/downloads.html
+++ b/en/compatibility/cts/downloads.html
@@ -31,121 +31,121 @@ R&lt;number&gt; in the link name.</p>
<h2 id="android-90">Android 9</h2>
<p>Android 9 is the release of the development milestone code-named P.
The source code for the following tests, including tests for instant apps, can be synced with the
-'android-cts-9.0_r1' tag in the open-source tree.</p>
+'android-cts-9.0_r2' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-9.0_r1-linux_x86-arm.zip">Android
-9.0 R1 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-9.0_r2-linux_x86-arm.zip">Android
+9.0 R2 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-9.0_r1-linux_x86-x86.zip">Android
-9.0 R1 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-9.0_r2-linux_x86-x86.zip">Android
+9.0 R2 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-9.0_r1-linux_x86-arm.zip">Android
-9.0 R1 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-9.0_r2-linux_x86-arm.zip">Android
+9.0 R2 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-9.0_r1-linux_x86-x86.zip">Android
-9.0 R1 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-9.0_r2-linux_x86-x86.zip">Android
+9.0 R2 CTS Verifier - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts_instant-9.0_r1-linux_x86-arm.zip">Android
-9.0 R1 CTS for Instant Apps - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts_instant-9.0_r2-linux_x86-arm.zip">Android
+9.0 R2 CTS for Instant Apps - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts_instant-9.0_r1-linux_x86-x86.zip">Android
-9.0 R1 CTS for Instant Apps - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts_instant-9.0_r2-linux_x86-x86.zip">Android
+9.0 R2 CTS for Instant Apps - x86</a></li>
</ul>
<h2 id="android-81">Android 8.1</h2>
<p>Android 8.1 is the release of the development milestone code-named Oreo-MR1.
The source code for the following tests can be synced with the
-'android-cts-8.1_r8' tag in the open-source tree.</p>
+'android-cts-8.1_r9' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-8.1_r8-linux_x86-arm.zip">Android
-8.1 R8 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-8.1_r9-linux_x86-arm.zip">Android
+8.1 R9 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-8.1_r8-linux_x86-x86.zip">Android
-8.1 R8 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-8.1_r9-linux_x86-x86.zip">Android
+8.1 R9 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.1_r8-linux_x86-arm.zip">Android
-8.1 R8 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.1_r9-linux_x86-arm.zip">Android
+8.1 R9 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.1_r8-linux_x86-x86.zip">Android
-8.1 R8 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.1_r9-linux_x86-x86.zip">Android
+8.1 R9 CTS Verifier - x86</a></li>
</ul>
<h2 id="android-80">Android 8.0</h2>
<p>Android 8.0 is the release of the development milestone code-named Oreo.
The source code for the following tests can be synced with the
-'android-cts-8.0_r12' tag in the open-source tree.</p>
+'android-cts-8.0_r13' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-8.0_r12-linux_x86-arm.zip">Android
-8.0 R12 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-8.0_r13-linux_x86-arm.zip">Android
+8.0 R13 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-8.0_r12-linux_x86-x86.zip">Android
-8.0 R12 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-8.0_r13-linux_x86-x86.zip">Android
+8.0 R13 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.0_r12-linux_x86-arm.zip">Android
-8.0 R12 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.0_r13-linux_x86-arm.zip">Android
+8.0 R13 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.0_r12-linux_x86-x86.zip">Android
-8.0 R12 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-8.0_r13-linux_x86-x86.zip">Android
+8.0 R13 CTS Verifier - x86</a></li>
</ul>
<h2 id="android-71">Android 7.1</h2>
<p>Android 7.1 is the release of the development milestone code-named Nougat-MR1.
The source code for the following tests can be synced with the
-'android-cts-7.1_r20' tag in the open-source tree.</p>
+'android-cts-7.1_r21' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-7.1_r20-linux_x86-arm.zip">Android
-7.1 R20 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-7.1_r21-linux_x86-arm.zip">Android
+7.1 R21 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-7.1_r20-linux_x86-x86.zip">Android
-7.1 R20 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-7.1_r21-linux_x86-x86.zip">Android
+7.1 R21 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.1_r20-linux_x86-arm.zip">Android
-7.1 R20 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.1_r21-linux_x86-arm.zip">Android
+7.1 R21 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.1_r20-linux_x86-x86.zip">Android
-7.1 R20 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.1_r21-linux_x86-x86.zip">Android
+7.1 R21 CTS Verifier - x86</a></li>
</ul>
<h2 id="android-70">Android 7.0</h2>
<p>Android 7.0 is the release of the development milestone code-named Nougat.
The source code for the following tests can be synced with the
-'android-cts-7.0_r24' tag in the open-source tree.</p>
+'android-cts-7.0_r25' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-7.0_r24-linux_x86-arm.zip">Android
-7.0 R24 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-7.0_r25-linux_x86-arm.zip">Android
+7.0 R25 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-7.0_r24-linux_x86-x86.zip">Android
-7.0 R24 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-7.0_r25-linux_x86-x86.zip">Android
+7.0 R25 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.0_r24-linux_x86-arm.zip">Android
-7.0 R24 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.0_r25-linux_x86-arm.zip">Android
+7.0 R25 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.0_r24-linux_x86-x86.zip">Android
-7.0 R24 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-7.0_r25-linux_x86-x86.zip">Android
+7.0 R25 CTS Verifier - x86</a></li>
</ul>
<h2 id="android-60">Android 6.0</h2>
<p>Android 6.0 is the release of the development milestone code-named Marshmallow.
The source code for the following tests can be synced with the
-'android-cts-6.0_r31' tag in the open-source tree.</p>
+'android-cts-6.0_r32' tag in the open-source tree.</p>
<ul>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-6.0_r31-linux_x86-arm.zip">Android
-6.0 R31 Compatibility Test Suite (CTS) - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-6.0_r32-linux_x86-arm.zip">Android
+6.0 R32 Compatibility Test Suite (CTS) - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-6.0_r31-linux_x86-x86.zip">Android
-6.0 R31 Compatibility Test Suite (CTS) - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-6.0_r32-linux_x86-x86.zip">Android
+6.0 R32 Compatibility Test Suite (CTS) - x86</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-6.0_r31-linux_x86-arm.zip">Android
-6.0 R31 CTS Verifier - ARM</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-6.0_r32-linux_x86-arm.zip">Android
+6.0 R32 CTS Verifier - ARM</a></li>
<li><a
-href="https://dl.google.com/dl/android/cts/android-cts-verifier-6.0_r31-linux_x86-x86.zip">Android
-6.0 R31 CTS Verifier - x86</a></li>
+href="https://dl.google.com/dl/android/cts/android-cts-verifier-6.0_r32-linux_x86-x86.zip">Android
+6.0 R32 CTS Verifier - x86</a></li>
</ul>
<h2 id="android-51">Android 5.1</h2>
diff --git a/en/compatibility/cts/index.html b/en/compatibility/cts/index.html
index eda91ff2..52c5c8a0 100644
--- a/en/compatibility/cts/index.html
+++ b/en/compatibility/cts/index.html
@@ -26,7 +26,7 @@
<h2 id="how-does-the-cts-work">How does the CTS work?</h2>
<p>The Compatibility Test Suite (CTS) is a free, commercial-grade test suite,
-available for <a href="downloads.html">download</a>. The CTS represents the
+available for <a href="/compatibility/cts/downloads">download</a>. The CTS represents the
"mechanism" of compatibility.</p>
<p>The CTS runs on a desktop machine and executes test cases directly on
@@ -40,17 +40,17 @@ development process.</p>
<p>The CTS is an automated testing harness that includes two major software components:</p>
<ul>
<li>
-<p>The CTS tradefed test harness runs on your desktop machine and manages test execution.</p>
+The CTS tradefed test harness runs on your desktop machine and manages test execution.
</li>
<li>
-<p>Individual test cases are executed on the Device Under Test (DUT). The test
+Individual test cases are executed on the Device Under Test (DUT). The test
cases are written in Java as JUnit tests and packaged as
-Android .apk files to run on the actual device target.</p>
+Android .apk files to run on the actual device target.
</li>
</ul>
<p>The Compatibility Test Suite Verifier (CTS Verifier) is a supplement to the
-CTS available for <a href="downloads.html">download</a>. CTS Verifier
+CTS available for <a href="/compatibility/cts/downloads">download</a>. CTS Verifier
provides tests for APIs and functions that cannot be tested on a stationary
device without manual input (e.g. audio quality, accelerometer, etc).</p>
@@ -69,33 +69,35 @@ app.</p>
<h2 id="workflow">Workflow</h2>
<div class="attempt-right" style="width:383px">
- <img src="images/cts-0.png" alt="CTS flow" height="340px" id="figure1" />
+ <img src="/compatibility/cts/images/cts-0.png" alt="CTS flow" height="340px" id="figure1" />
<p class="img-caption">
<strong>Figure 1.</strong> How to use CTS
</p>
</div>
<p>This diagram summarizes CTS workflow. Please refer to the subpages of this
-section starting with <a href="setup.html">Setup</a> for detailed
+section starting with <a href="/compatibility/cts/setup">Setup</a> for detailed
instructions.</p>
<h2 id="types-of-test-cases">Types of test cases</h2>
<p>The CTS includes the following types of test cases:</p>
<ul>
<li>
-<p><em>Unit tests</em> test atomic units of code within the Android platform; e.g. a single class, such as java.util.HashMap.</p>
+<em>Unit tests</em> test atomic units of code within the Android platform;
+e.g. a single class, such as java.util.HashMap.
</li>
<li>
<p><em>Functional tests</em> test a combination of APIs together in a higher-level use-case.</p>
</li>
</ul>
-<p>Future versions of the CTS will include the following types of test cases:</p>
+Future versions of the CTS will include the following types of test cases:
<ul>
<li>
-<p><em>Robustness tests</em> test the durability of the system under stress.</p>
+<em>Robustness tests</em> test the durability of the system under stress.
</li>
<li>
-<p><em>Performance tests</em> test the performance of the system against defined benchmarks, for example rendering frames per second.</p>
+<em>Performance tests</em> test the performance of the system against defined benchmarks,
+for example rendering frames per second.
</li>
</ul>
<h2 id="areas-covered">Areas covered</h2>
@@ -110,11 +112,18 @@ instructions.</p>
<tbody>
<tr>
<td>Signature tests</td>
-<td>For each Android release, there are XML files describing the signatures of all public APIs contained in the release. The CTS contains a utility to check those API signatures against the APIs available on the device. The results from signature checking are recorded in the test result XML file.</td>
+<td>For each Android release, there are XML files describing the signatures of all
+public APIs contained in the release. The CTS contains a utility to check those API
+signatures against the APIs available on the device. The results from signature
+checking are recorded in the test result XML file.</td>
</tr>
<tr>
<td>Platform API Tests</td>
-<td>Test the platform (core libraries and Android Application Framework) APIs as documented in the SDK <a href="https://developer.android.com/reference/classes.html">Class Index</a> to ensure API correctness, including correct class, attribute and method signatures, correct method behavior, and negative tests to ensure expected behavior for incorrect parameter handling.</td>
+<td>Test the platform (core libraries and Android Application Framework) APIs as documented
+in the SDK <a href="https://developer.android.com/reference/classes">Class Index</a> to
+ensure API correctness, including correct class, attribute and method signatures,
+correct method behavior, and negative tests to ensure expected behavior for
+incorrect parameter handling.</td>
</tr>
<tr>
<td>Dalvik Tests</td>
@@ -122,19 +131,30 @@ instructions.</p>
</tr>
<tr>
<td>Platform Data Model</td>
-<td>The CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK <a href="https://developer.android.com/reference/android/provider/package-summary.html">android.provider</a> package: contacts, browser, settings, etc.</td>
+<td>The CTS tests the core platform data model as exposed to application developers
+through content providers, as documented in the
+SDK <a href="https://developer.android.com/reference/android/provider/package-summary">
+android.provider</a> package: contacts, browser, settings, etc.</td>
</tr>
<tr>
<td>Platform Intents</td>
-<td>The CTS tests the core platform intents, as documented in the SDK <a href="https://developer.android.com/guide/appendix/g-app-intents.html">Available Intents</a>.</td>
+<td>The CTS tests the core platform intents, as documented in the
+SDK <a href="https://developer.android.com/guide/appendix/g-app-intents">
+Available Intents</a>.</td>
</tr>
<tr>
<td>Platform Permissions</td>
-<td>The CTS tests the core platform permissions, as documented in the SDK <a href="https://developer.android.com/reference/android/Manifest.permission.html">Available Permissions</a>.</td>
+<td>The CTS tests the core platform permissions, as documented in the
+SDK <a href="https://developer.android.com/reference/android/Manifest.permission">
+Available Permissions</a>.</td>
</tr>
<tr>
<td>Platform Resources</td>
-<td>The CTS tests for correct handling of the core platform resource types, as documented in the SDK <a href="https://developer.android.com/guide/topics/resources/available-resources.html">Available Resource Types</a>. This includes tests for: simple values, drawables, nine-patch, animations, layouts, styles and themes, and loading alternate resources.</td>
+<td>The CTS tests for correct handling of the core platform resource types,
+as documented in the
+SDK <a href="https://developer.android.com/guide/topics/resources/available-resources">
+Available Resource Types</a>. This includes tests for: simple values, drawables, nine-patch,
+animations, layouts, styles and themes, and loading alternate resources.</td>
</tr>
</tbody>
</table>
diff --git a/en/compatibility/cts/pkcs15-commands.txt b/en/compatibility/cts/pkcs15-commands.txt
index 1c8f4a3e..881efd5a 100644
--- a/en/compatibility/cts/pkcs15-commands.txt
+++ b/en/compatibility/cts/pkcs15-commands.txt
@@ -40,7 +40,7 @@ Commands for PKCS#15
00 E0 00 00 1D 62 1B 82 02 41 21 83 02 42 00 8A 01 03 8B 03 6F 06 01 80 02 00 12 88 00 A5 03 C0 01 40
#Create ADF File 4300
-00 E0 00 00 1D 62 1B 82 02 41 21 83 02 43 00 8A 01 03 8B 03 6F 06 01 80 02 00 E0 88 00 A5 03 C0 01 40
+00 E0 00 00 1D 62 1B 82 02 41 21 83 02 43 00 8A 01 03 8B 03 6F 06 01 80 02 01 DC 88 00 A5 03 C0 01 40
#Create ADF File 4310
00 E0 00 00 1D 62 1B 82 02 41 21 83 02 43 10 8A 01 03 8B 03 6F 06 01 80 02 00 02 88 00 A5 03 C0 01 40
diff --git a/en/compatibility/cts/secure-element.md b/en/compatibility/cts/secure-element.md
index a5e486e3..86f8d68f 100644
--- a/en/compatibility/cts/secure-element.md
+++ b/en/compatibility/cts/secure-element.md
@@ -100,7 +100,7 @@ applet with the following application identifiers (AIDs):
<thead>
<tr>
<th>Transmit APDU</th>
- <th>Status Word</th>
+ <th>Status word</th>
<th>Data</th>
</tr>
</thead>
@@ -431,21 +431,59 @@ applet with the following application identifiers (AIDs):
that is the same as input APDU,
except the first byte is 0x01 instead of 0x00.</small>
</li>
- <li>The applet should return segmented responses of size 2048 bytes for
- commands a,b,c,d, f and g whereas 32767 bytes for APDU(e), with last
- data byte being 0xFF and success status word <0x9000> for the following
- APDUs:
- <ol>
- <li>0x00C2080000</li>
- <li>0x00C4080002123400</li>
- <li>0x00C6080000</li>
- <li>0x00C8080002123400</li>
- <li>0x00C27FFF00</li>
- <li>0x00CF080000</li>
- <li>0x94C2080000</li>
- </ol>
+ <li>The applet should return segmented responses with <code>0xFF</code>
+ as the last data byte and have the respective status words and response
+ lengths for the following APDUs.
+
+ <table>
+ <thead>
+ <tr>
+ <th>APDU</th>
+ <th>Status word</th>
+ <th>Response length (bytes)</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>0x00C2080000</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ <tr>
+ <td>0x00C4080002123400</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ <tr>
+ <td>0x00C6080000</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ <tr>
+ <td>0x00C8080002123400</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ <tr>
+ <td>0x00C27FFF00</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ <tr>
+ <td>0x00CF080000</td>
+ <td>0x9000</td>
+ <td>32767</td>
+ </tr>
+ <tr>
+ <td>0x94C2080000</td>
+ <td>0x9000</td>
+ <td>2048</td>
+ </tr>
+ </tbody>
+ </table>
</li>
- <li>The applet should return success status word <0x9000> for the given
+ <li>The applet should return success status word <code>0x9000</code> for
+ the given
APDU: 0x00F40000</li>
</ol>
<li>A000000476416E64726F696443545332