Android 1.6-Kompatibilitätsdefinition

Android-Kompatibilitätsdefinition: Android 1.6
Android 1.6 r2
Google Inc.
kompatibilität@android.com

Inhaltsverzeichnis
1. Einleitung ............................................... .................................................... ................... 4
2. Ressourcen .......................................... .................................................... ...................... 4
3. Software .................................................... .................................................... ......................... 5
3.1. Verwaltete API-Kompatibilität ................................................... ................................... 5
3.2. Soft-API-Kompatibilität .................................................. ......................................... 6
3.2.1. Berechtigungen................................................ .................................................... ... 6
3.2.2. Build-Parameter .................................................. ......................................... 6
3.2.3. Absichtskompatibilität .................................................. ......................................... 8
3.2.3.1. Kernanwendungszwecke .................................................. ......................... 8
3.2.3.2. Absichtsüberschreibungen .......................................... ......................................... 8
3.2.3.3. Intent-Namespaces................................................ ................................... 8
3.2.3.4. Sendeabsichten .................................................. ...................................... 9
3.3. Native API-Kompatibilität .................................................. ......................................... 9
3.4. Web-API-Kompatibilität .................................................. ......................................... 9
3.5. API-Verhaltenskompatibilität................................................. ................................ 10
3.6. API-Namespaces................................................ .................................................... 10
3.7. Kompatibilität mit virtuellen Maschinen .................................... ................................ 11
3.8. Kompatibilität der Benutzeroberfläche .................................... ................................... 11

3.8.1. Widgets .................................................... .................................................... ......... 11
3.8.2. Benachrichtigungen .................................................... .................................................... 12
3.8.3. Suche ................................................. .................................................... .......... 12
3.8.4. Toasts................................................ .................................................... ........... 12

4. Kompatibilität der Referenzsoftware .................................... ................................ 12
5. Kompatibilität der Anwendungspaketierung .................................. ......................... 13
6. Multimedia-Kompatibilität....................................................... ................................................... 13
7. Entwicklertool-Kompatibilität............................................. ......................................... 14
8. Hardware-Kompatibilität .................................................... ................................................ fünfzehn
8.1. Anzeige ................................................. .................................................... ................ fünfzehn
8.1.1. Standard-Display-Konfigurationen .................................................. .................. fünfzehn
8.1.2. Nicht standardmäßige Anzeigekonfigurationen .......................................... ............ 16
8.1.3. Metriken anzeigen................................................ ......................................... 16

8.2. Klaviatur ................................................. .................................................... ............ 16
8.3. Non-Touch-Navigation .................................................. ......................................... 16
8.4. Bildschirmausrichtung................................................ ................................................... 17
8.5. Touchscreen-Eingabe................................................ ................................................... 17
8.6. USB ................................................. .................................................... ...................... 17
8.7. Navigationstasten .................................................... .................................................... .. 17
8.8. W-lan ................................................. .................................................... ...................... 17
8.9. Kamera .................................................... .................................................... ......... 18
8.9.1. Kameras ohne Autofokus .......................................... ................................... 18
8.10. Beschleunigungsmesser................................................ .................................................... .. 18
8.11. Kompass ................................................. .................................................... .......... 19
8.12. GPS ................................................. .................................................... ................... 19
8.13. Telefonie .................................................... .................................................... ......... 19
8.14. Lautstärkeregler................................................ .................................................... 19

9. Leistungskompatibilität....................................................... ......................................... 19
10. Kompatibilität des Sicherheitsmodells .................................... ...................................... 20
10.1. Berechtigungen .................................................... .................................................... ..... 20
10.2. Benutzer- und Prozessisolierung .................................................. ................................... 20
10.3. Dateisystemberechtigungen................................................ ..................................... 21
11. Kompatibilitätstest-Suite .................................................. ................................................... 21

12. Kontaktieren Sie uns ...................................... .................................................... ................. 21
Anhang A: Erforderliche Bewerbungsabsichten .................................... ......................... 22
Anhang B: Erforderliche Broadcast-Intents .................................... ......................... 0
Anhang C: Zukünftige Überlegungen....................................... ................................... 0

1. Nicht-Telefongeräte .................................................. ......................................... 30
2. Bluetooth-Kompatibilität ................................................... ......................................... 30
3. Erforderliche Hardwarekomponenten................................................. ................................ 30
4. Anwendungsbeispiele .................................................. ................................................... 30
5. Touchscreens ...................................................... .................................................... ......... 30
6. Leistung....................................................... .................................................... ............ 31

1. Einleitung
Dieses Dokument zählt die Anforderungen auf, die erfüllt sein müssen, damit Mobiltelefone sein können
kompatibel mit Android 1.6. Diese Definition setzt Vertrautheit mit dem Android-Kompatibilitätsprogramm voraus
[Ressourcen, 1].
Die Verwendung von „muss“, „darf nicht“, „erforderlich“, „soll“, „darf nicht“, „sollte“, „sollte nicht“, „empfohlen“,
„kann“ und „optional“ entspricht dem IETF-Standard, der in RFC2119 [ Ressourcen , 2] definiert ist.
Wie in diesem Dokument verwendet, ist ein „Geräteimplementierer“ oder „Implementierer“ eine Person oder Organisation, die entwickelt
eine Hardware/Software-Lösung mit Android 1.6. Eine "Geräteimplementierung" oder "Implementierung" ist die
so entwickelte Hardware/Software-Lösung.
Um mit Android 1.6 kompatibel zu sein, Geräteimplementierungen:
1. MUSS die in dieser Kompatibilitätsdefinition aufgeführten Anforderungen erfüllen, einschließlich aller Dokumente
per Verweis aufgenommen.
2. MUSS die Android Compatibility Test Suite (CTS) bestehen, die als Teil des Android Open verfügbar ist
Quellprojekt [ Ressourcen , 3]. Das CTS testet die meisten, aber nicht alle der hier beschriebenen Komponenten
dokumentieren.
Wenn diese Definition oder der CTS schweigt, mehrdeutig oder unvollständig ist, liegt dies in der Verantwortung des Geräts
Implementierer, um die Kompatibilität mit bestehenden Implementierungen sicherzustellen. Aus diesem Grund ist die Android Open
Source Project [ Ressourcen , 4] ist sowohl die Referenz als auch die bevorzugte Implementierung von Android. Gerät
Implementierern wird dringend empfohlen, ihre Implementierungen auf dem "Upstream"-Quellcode zu basieren
verfügbar vom Android Open Source Project. Während einige Komponenten hypothetisch ersetzt werden können
Bei alternativen Implementierungen wird von dieser Praxis dringend abgeraten, da das Bestehen der CTS-Tests zu einer Verschlechterung führt
wesentlich schwieriger. Es liegt in der Verantwortung des Implementierers, die vollständige Verhaltenskompatibilität mit sicherzustellen
die standardmäßige Android-Implementierung, einschließlich und über die Compatibility Test Suite hinaus.
2. Ressourcen
Diese Kompatibilitätsdefinition verweist auf eine Reihe von Ressourcen, die hier erhältlich sind.
1. Überblick über das Android-Kompatibilitätsprogramm: https://sites.google.com/a/android.com/compatibility/
wie es funktioniert
2. IETF RFC2119 Anforderungsstufen: http://www.ietf.org/rfc/rfc2119.txt
3. Kompatibilitätstest-Suite: http://sites.google.com/a/android.com/compatibility/compatibility-test-
Suite - cts
4. Android-Open-Source-Projekt: http://source.android.com/
5. API-Definitionen und Dokumentation: http://developer.android.com/reference/packages.html
6. Inhaltsanbieter: http://code.google.com/android/reference/android/provider/package-
zusammenfassung.html
7. Verfügbare Ressourcen: http://code.google.com/android/reference/available-resources.html
8. Android-Manifestdateien: http://code.google.com/android/devel/bblocks-manifest.html
9. Referenz zu Android-Berechtigungen: http://developer.android.com/reference/android/
Manifest.permission.html
10. Build-Konstanten: http://developer.android.com/reference/android/os/Build.html
11. WebView: http://developer.android.com/reference/android/webkit/WebView.html
12. Gears-Browsererweiterungen: http://code.google.com/apis/gears/

13. Dalvik Virtual Machine-Spezifikation, zu finden im Verzeichnis dalvik/docs eines Quellcodes
Auschecken; auch verfügbar unter http://android.git.kernel.org/?p=platform/
dalvik.git;a=tree;f=docs;h=3e2ddbcaf7f370246246f9f03620a7caccbfcb12;hb=HEAD

14. App-Widgets: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
15. Benachrichtigungen: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
16. Styleguide für Statusleistensymbole: http://developer.android.com/guide/practices/ui_guideline
/icon_design.html#statusbarstructure
17. Suchmanager: http://developer.android.com/reference/android/app/SearchManager.html
18. Toast: http://developer.android.com/reference/android/widget/Toast.html
19. Apps für Android: http://code.google.com/p/apps-for-android
20. Beschreibung der Android-APK-Datei: http://developer.android.com/guide/topics/fundamentals.html
21. Android Debug Bridge (adb): http://code.google.com/android/reference/adb.html
22. Dalvik Debug Monitor Service (ddms): http://code.google.com/android/reference/ddms.html
23. Affe: http://developer.android.com/guide/developing/tools/monkey.html
24. Dokumentation zur Display-Unabhängigkeit:
25. Konfigurationskonstanten: http://developer.android.com/reference/android/content/res/
Konfiguration.html
26. Anzeigemetriken: http://developer.android.com/reference/android/util/DisplayMetrics.html
27. Kamera: http://developer.android.com/reference/android/hardware/Camera.html
28. Sensorkoordinatenraum: http://developer.android.com/reference/android/hardware/
SensorEvent.html
29. Referenz zu Android-Sicherheit und Berechtigungen: http://developer.android.com/guide/topics/security/
Sicherheit.html
Viele dieser Ressourcen werden direkt oder indirekt vom Android 1.6 SDK abgeleitet und werden es sein
funktional identisch mit den Informationen in der SDK-Dokumentation. In allen Fällen, in denen dies
Kompatibilitätsdefinition stimmt nicht mit der SDK-Dokumentation überein, die SDK-Dokumentation wird berücksichtigt
maßgeblich. Alle technischen Details, die in den oben aufgeführten Referenzen angegeben sind, werden durch Einbeziehung berücksichtigt
Teil dieser Kompatibilitätsdefinition sein.
3. Software
Die Android-Plattform umfasst sowohl eine Reihe verwalteter ("harter") APIs als auch eine Reihe sogenannter "weicher" APIs
B. das Intent-System, native Code-APIs und Webanwendungs-APIs. Dieser Abschnitt beschreibt die harten und
Software-APIs, die für die Kompatibilität von wesentlicher Bedeutung sind, sowie bestimmte andere relevante technische und Benutzerschnittstellen
Verhaltensweisen. Geräteimplementierungen MÜSSEN alle Anforderungen in diesem Abschnitt erfüllen.
3.1. Verwaltete API-Kompatibilität
Die verwaltete (Dalvik-basierte) Ausführungsumgebung ist das primäre Vehikel für Android-Anwendungen. Die
Die Android Application Programming Interface (API) ist der Satz von Android-Plattformschnittstellen, denen sie ausgesetzt sind
Anwendungen, die in der verwalteten VM-Umgebung ausgeführt werden. Geräteimplementierungen MÜSSEN vollständig sein
Implementierungen, einschließlich aller dokumentierten Verhaltensweisen, aller dokumentierten APIs, die von Android bereitgestellt werden
1.6 SDK, wie zum Beispiel:
1. Kern-Android-APIs in Java-Sprache [Ressourcen, 5].
2. Inhaltsanbieter [Ressourcen , 6].
3. Ressourcen [Ressourcen, 7].
4. AndroidManifest.xml-Attribute und -Elemente [Ressourcen, 8].

Geräteimplementierungen DÜRFEN KEINE verwalteten APIs auslassen, API-Schnittstellen oder -Signaturen ändern oder abweichen
aus dem dokumentierten Verhalten oder beinhalten No-Ops, sofern nicht ausdrücklich durch diese Kompatibilität erlaubt
Definition.
3.2. Soft-API-Kompatibilität
Zusätzlich zu den verwalteten APIs aus Abschnitt 3.1 enthält Android auch eine signifikante, nur zur Laufzeit verfügbare "weiche"
API in Form von Dingen wie Absichten, Berechtigungen und ähnlichen Aspekten von Android-Anwendungen
die zur Kompilierzeit der Anwendung nicht erzwungen werden kann. Dieser Abschnitt beschreibt die "weichen" APIs und das System
Verhaltensweisen, die für die Kompatibilität mit Android 1.6 erforderlich sind. Geräteimplementierungen MÜSSEN alle erfüllen
Anforderungen, die in diesem Abschnitt vorgestellt werden.
3.2.1. Berechtigungen
Geräteimplementierer MÜSSEN alle Berechtigungskonstanten unterstützen und durchsetzen, wie von dokumentiert
Berechtigungsreferenzseite [ Ressourcen , 9]. Beachten Sie, dass in Abschnitt 10 zusätzliche Anforderungen aufgeführt sind
das Android-Sicherheitsmodell.
3.2.2. Build-Parameter
Die Android-APIs enthalten eine Reihe von Konstanten in der android.os.Build-Klasse [Resources, 10].
soll das aktuelle Gerät beschreiben. Bereitstellung konsistenter, aussagekräftiger Werte auf allen Geräten
Implementierungen enthält die folgende Tabelle zusätzliche Einschränkungen für die Formate dieser Werte
Geräteimplementierungen MÜSSEN konform sein.
Parameter
Bemerkungen
Die Version des derzeit ausgeführten Android-Systems, in Human-
android.os.Build.VERSION.RELEASE
lesbares Format. Für Android 1.6 MUSS dieses Feld den String-Wert haben
"1.6".
Die Version des derzeit ausgeführten Android-Systems in einem Format
android.os.Build.VERSION.SDK
zugänglich für Anwendungscode von Drittanbietern. Für Android 1.6 dieses Feld
MUSS den ganzzahligen Wert 4 haben.
Ein vom Geräteimplementierer gewählter Wert, der den spezifischen Build bezeichnet
des derzeit ausgeführten Android-Systems in einem für Menschen lesbaren Format.
Dieser Wert DARF NICHT für verschiedene Builds wiederverwendet werden, die bis zum Ende ausgeliefert werden
android.os.Build.VERSION.INCREMENTAL Benutzer. Eine typische Verwendung dieses Felds besteht darin, anzugeben, welche Build-Nummer bzw
Änderungsbezeichner der Quellcodeverwaltung wurde zum Generieren des Builds verwendet. Dort
Es gibt keine Anforderungen an das spezifische Format dieses Feldes, außer dass es
DARF NICHT null oder die leere Zeichenfolge ("") sein.
Ein vom Geräteimplementierer gewählter Wert, der das spezifische Interne identifiziert
Hardware, die vom Gerät verwendet wird, in einem für Menschen lesbaren Format. Ein möglicher Einsatz
android.os.Build.BOARD
dieses Feldes soll die spezifische Version der Platine angeben, die den antreibt
Gerät. Es gibt keine Anforderungen an das spezifische Format dieses Felds,
außer dass es NICHT null oder die leere Zeichenkette ("") sein darf.
Ein vom Geräteimplementierer ausgewählter Wert, der den Namen des identifiziert
android.os.Build.BRAND
Firma, Organisation, Person usw., die das Gerät hergestellt hat, in
menschenlesbares Format. Eine mögliche Verwendung dieses Feldes ist die Angabe des OEM

und/oder Spediteur, der das Gerät verkauft hat. Es bestehen keine Anforderungen an die
bestimmtes Format dieses Felds, außer dass es NICHT null oder leer sein darf
Zeichenkette ("").
Ein vom Geräteimplementierer gewählter Wert, der das Spezifische identifiziert
Konfiguration oder Überarbeitung des Körpers (manchmal auch als "Industrial
android.os.Build.DEVICE
Design") des Geräts. Es gibt keine Anforderungen an das spezifische Format
dieses Felds, außer dass es NICHT null oder die leere Zeichenfolge ("") sein darf.
Eine Zeichenfolge, die diesen Build eindeutig identifiziert. Es sollte angemessen sein
für Menschen lesbar. Es MUSS dieser Vorlage folgen:
$(PRODUCT_BRAND)/$(PRODUCT_NAME)/$(PRODUCT_DEVICE)/
$(TARGET_BOOTLOADER_BOARD_NAME):$(PLATFORM_VERSION)/
$(BUILD_ID)/$(BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/
android.os.Build.FINGERPRINT
$(BUILD_VERSION_TAGS)
Zum Beispiel: acme/mydevicel/generic/generic:Donut/ERC77/
3359:userdebug/test-keys
Der Fingerabdruck DARF KEINE Leerzeichen enthalten. Wenn andere Felder in der enthalten sind
Die obige Vorlage enthält Leerzeichen, sie SOLLTEN durch ASCII ersetzt werden
Unterstrich ("_") im Fingerabdruck.
Eine Zeichenfolge, die den Host, auf dem der Build erstellt wurde, in menschlicher Sprache eindeutig identifiziert
android.os.Build.HOST
lesbares Format. Es gibt keine Anforderungen an das spezifische Format dafür
Feld, außer dass es NICHT null oder die leere Zeichenkette ("") sein darf.
Eine vom Geräteimplementierer gewählte Kennung, um auf eine bestimmte zu verweisen
Freigabe, in menschenlesbarem Format. Dieses Feld kann dasselbe sein wie
android.os.Build.VERSION.INCREMENTAL, aber SOLLTE ein Wert sein
android.os.Build.ID
soll für Endbenutzer etwas aussagekräftig sein. Es gibt keine
Anforderungen an das spezifische Format dieses Felds, außer dass es NICHT MUSS
null oder die leere Zeichenfolge ("") sein.
Ein vom Geräteimplementierer ausgewählter Wert, der den Namen der enthält
Gerät, wie es dem Endbenutzer bekannt ist. Dies SOLLTE derselbe Name sein
android.os.Build.MODEL
unter denen das Gerät vermarktet und an Endverbraucher verkauft wird. Es gibt keine
Anforderungen an das spezifische Format dieses Felds, außer dass es NICHT MUSS
null oder die leere Zeichenfolge ("") sein.
Ein vom Geräteimplementierer ausgewählter Wert, der die Entwicklung enthält
Name oder Codename des Geräts. MUSS menschenlesbar sein, ist es aber nicht
android.os.Build.PRODUCT
unbedingt zur Ansicht durch Endbenutzer bestimmt. Es gibt keine Anforderungen
auf das spezifische Format dieses Feldes, außer dass es NICHT null oder die sein darf
leerer String ("").
Eine durch Kommas getrennte Liste von Tags, die vom Geräteimplementierer ausgewählt wurden
den Aufbau weiter unterscheiden. Beispiel: „unsigned,debug“. Dieses Feld
android.os.Build.TAGS
DARF NICHT null oder die leere Zeichenfolge ("") sein, sondern ein einzelnes Tag (z
"freigeben") ist in Ordnung.
android.os.Build.TIME
Ein Wert, der den Zeitstempel des Builds darstellt.
Ein vom Geräteimplementierer ausgewählter Wert, der die Laufzeit angibt
Konfiguration des Builds. Dieses Feld SOLLTE einen der Werte haben
android.os.Build.TYPE
entsprechend den drei typischen Android-Laufzeitkonfigurationen: "Benutzer",
"userdebug" oder "eng".
Ein Name oder eine Benutzer-ID des Benutzers (oder automatisierten Benutzers), der die generiert hat
android.os.Build.USER
bauen. Es gibt keine Anforderungen an das spezifische Format dieses Felds,
außer dass es NICHT null oder die leere Zeichenkette ("") sein darf.

3.2.3. Absichtskompatibilität
Android verwendet Intents, um eine lose gekoppelte Integration zwischen Anwendungen zu erreichen. Dieser Abschnitt beschreibt
Anforderungen in Bezug auf die Intent-Muster, die von Geräteimplementierungen berücksichtigt werden MÜSSEN. Von
„Honoriert“ bedeutet, dass der Geräteimplementierer eine Android-Aktivität, einen Dienst oder etwas anderes bereitstellen MUSS
Komponente, die einen passenden Intent-Filter angibt und sich an jeden bindet und das richtige Verhalten implementiert
angegebene Absichtsmuster.
3.2.3.1. Kernanwendungsabsichten
Das Android-Upstream-Projekt definiert eine Reihe von Kernanwendungen, wie Telefonwähler, Kalender,
Kontaktbuch, Musik-Player und so weiter. Geräteimplementierer KÖNNEN diese Anwendungen durch ersetzen
alternative Versionen.
Allerdings MÜSSEN solche alternativen Versionen die gleichen Intent-Muster berücksichtigen, die vom Upstream bereitgestellt werden
Projekt. (Wenn ein Gerät beispielsweise einen alternativen Musikplayer enthält, muss es dennoch das Intent-Muster berücksichtigen
ausgegeben von Anwendungen von Drittanbietern, um einen Song auszuwählen.) Geräteimplementierungen MÜSSEN alle Intent-Muster unterstützen
in Anhang A aufgeführt.
3.2.3.2. Absichtsüberschreibungen
Da Android eine erweiterbare Plattform ist, MÜSSEN Geräteimplementierer jedes in beschriebene Intent-Muster zulassen
Anhang A, der von Anwendungen von Drittanbietern überschrieben werden soll. Das Upstream-Android-Open-Source-Projekt
erlaubt dies standardmäßig; Geräteimplementierer DÜRFEN Systemanwendungen KEINE besonderen Privilegien zuweisen.
Verwendung dieser Intent-Muster oder verhindern, dass Anwendungen von Drittanbietern sich an sie binden und die Kontrolle über sie übernehmen
diese Muster. Dieses Verbot umfasst insbesondere das Deaktivieren der „Chooser“-Benutzeroberfläche, die es ermöglicht
dem Benutzer die Auswahl zwischen mehreren Anwendungen, die alle dasselbe Intent-Muster verarbeiten.
3.2.3.3. Intent-Namespaces
Geräteimplementierer DÜRFEN KEINE Android-Komponente enthalten, die eine neue Absicht oder
Übertragen Sie Intent-Muster mithilfe einer AKTION, KATEGORIE oder einer anderen Schlüsselzeichenfolge im android.*-Namespace.
Geräteimplementierer DÜRFEN KEINE Android-Komponenten enthalten, die eine neue Absicht berücksichtigen oder
Senden Sie Absichtsmuster mithilfe einer AKTION, KATEGORIE oder einer anderen Schlüsselzeichenfolge in einem Paketraum
Zugehörigkeit zu einer anderen Organisation. Geräteimplementierer DÜRFEN die Absicht NICHT ändern oder erweitern
Muster, die in den Anhängen A oder B aufgeführt sind.
Dieses Verbot ist analog zu dem für Java-Sprachklassen in Abschnitt 3.6.

3.2.3.4. Broadcast-Absichten
Anwendungen von Drittanbietern verlassen sich auf die Plattform, um bestimmte Absichten zu übertragen, um sie über Änderungen in der zu benachrichtigen
Hardware- oder Softwareumgebung. Android-kompatible Geräte MÜSSEN die öffentliche Übertragung übertragen
Absichten als Reaktion auf entsprechende Systemereignisse. Eine Liste der erforderlichen Broadcast-Intents finden Sie in
Anhang B; Beachten Sie jedoch, dass das SDK möglicherweise zusätzliche Übertragungsabsichten definiert, die ebenfalls MUSS sein müssen
geehrt.
3.3. Native API-Kompatibilität
Verwalteter Code, der in Dalvik ausgeführt wird, kann nativen Code aufrufen, der in der apk-Datei der Anwendung als ELF bereitgestellt wird
.so-Datei, die für die entsprechende Gerätehardwarearchitektur kompiliert wurde. Geräteimplementierungen MÜSSEN enthalten
Unterstützung für Code, der in der verwalteten Umgebung ausgeführt wird, zum Aufrufen von nativem Code unter Verwendung von Standard-Java
Native Interface (JNI)-Semantik. Die folgenden APIs müssen für nativen Code verfügbar sein:
libc (C-Bibliothek)
libm (Mathematikbibliothek)
JNI-Schnittstelle
libz (Zlib-Komprimierung)
liblog (Android-Protokollierung)
Minimale Unterstützung für C++
OpenGL ES 1.1
Diese Bibliotheken MÜSSEN source-kompatibel (dh header-kompatibel) und binär-kompatibel (für eine gegebene
Prozessorarchitektur) mit den Versionen, die in Bionic vom Android Open Source-Projekt bereitgestellt werden. Seit
Die Bionic-Implementierungen sind nicht vollständig kompatibel mit anderen Implementierungen wie GNU C
Bibliothek sollten Geräteimplementierer die Android-Implementierung verwenden. Wenn Geräteimplementierer a
unterschiedliche Implementierung dieser Bibliotheken, müssen sie Header- und Binärkompatibilität gewährleisten.
Die Kompatibilität mit nativem Code ist eine Herausforderung. Aus diesem Grund möchten wir wiederholen, dass Geräteimplementierer sind
SEHR dringend ermutigt, die Upstream-Implementierungen der oben aufgeführten Bibliotheken zu verwenden, um zu helfen
Kompatibilität sicherstellen.
3.4. Web-API-Kompatibilität
Viele Entwickler und Anwendungen verlassen sich auf das Verhalten der Klasse android.webkit.WebView [ Ressourcen ,
11] für ihre Benutzeroberflächen, daher muss die WebView-Implementierung mit Android kompatibel sein
Implementierungen. Die Android-Open-Source-Implementierung verwendet die Version der WebKit-Rendering-Engine
Implementieren Sie die WebView.
Da es nicht machbar ist, eine umfassende Testsuite für einen Webbrowser zu entwickeln, haben Geräteimplementierer
MUSS den spezifischen Upstream-Build von WebKit in der WebView-Implementierung verwenden. Speziell:
• WebView MUSS den 528.5+ WebKit-Build aus dem Upstream-Android-Open-Source-Baum verwenden
Android 1.6. Dieser Build enthält einen bestimmten Satz an Funktionen und Sicherheitsfixes für die WebView.
• Die von WebView gemeldete Zeichenfolge des Benutzeragenten MUSS in diesem Format vorliegen:
Mozilla/5.0 (Linux; U; Android 1.6; <Sprache>-<Land>; <Gerät
Name>; Build/<Build-ID>) AppleWebKit/528.5+ (KHTML, wie Gecko)
Version/3.1.2 Mobile Safari/525.20.1

◦ Die Zeichenfolge „<Gerätename>“ MUSS mit dem Wert für identisch sein
android.os.Build.MODEL
◦ Die Zeichenfolge „<Build-ID>“ MUSS mit dem Wert für android.os.Build.ID identisch sein.
◦ Die Zeichenfolgen „<Sprache>“ und „<Land>“ SOLLTEN den üblichen Konventionen für folgen
Ländercode und Sprache, und SOLLTE sich auf das aktuelle Gebietsschema des Geräts unter beziehen
Zeitpunkt der Anfrage.
Implementierungen KÖNNEN eine benutzerdefinierte Benutzeragentenzeichenfolge in der eigenständigen Browseranwendung liefern. Was ist
Darüber hinaus KANN der eigenständige Browser auf einer alternativen Browsertechnologie basieren (z. B. Firefox,
Opera usw.) Aber selbst wenn eine alternative Browseranwendung ausgeliefert wird, ist die WebView-Komponente
Anwendungen von Drittanbietern bereitgestellt MÜSSEN wie oben auf WebKit basieren.
Die eigenständige Browseranwendung SOLLTE Unterstützung für Gears [ Ressourcen, 12] und MAI enthalten
enthalten Unterstützung für einige oder alle HTML5.
3.5. API-Verhaltenskompatibilität
Das Verhalten der einzelnen API-Typen (verwaltet, weich, nativ und Web) muss mit dem konsistent sein
bevorzugte Implementierung von Android, verfügbar im Android Open Source Project.
Einige spezifische Kompatibilitätsbereiche sind:
• Geräte DÜRFEN NICHT das Verhalten oder die Bedeutung einer Standardabsicht ändern
• Geräte DÜRFEN den Lebenszyklus oder die Lebenszyklussemantik eines bestimmten Systemtyps NICHT verändern
Komponente (wie Dienst, Aktivität, ContentProvider usw.)
• Geräte DÜRFEN die Semantik einer bestimmten Berechtigung NICHT ändern
Die obige Liste ist nicht vollständig, und die Verantwortung liegt bei den Geräteimplementierern, das Verhalten sicherzustellen
Kompatibilität. Aus diesem Grund SOLLTEN Geräteimplementierer den Quellcode verwenden, der über verfügbar ist
Android Open Source Project, wo immer möglich, anstatt wesentliche Teile des Systems neu zu implementieren.
Die Compatibility Test Suite (CTS) testet wesentliche Teile der Plattform auf Verhaltenskompatibilität,
aber nicht alles. Es liegt in der Verantwortung des Implementierers, die Verhaltenskompatibilität mit dem Android sicherzustellen
Open-Source-Projekt.
3.6. API-Namespaces
Android folgt den Paket- und Klassen-Namespace-Konventionen, die von der Java-Programmierung definiert werden
Sprache. Um die Kompatibilität mit Anwendungen von Drittanbietern sicherzustellen, DÜRFEN Geräteimplementierer NICHT
alle verbotenen Änderungen (siehe unten) an diesen Paketnamensräumen:
• Java.*
• javax.*
• Sonne.*
• Android.*
• com.android.*
Zu den verbotenen Modifikationen gehören:
• Geräteimplementierungen DÜRFEN die öffentlich zugänglichen APIs auf der Android-Plattform NICHT ändern
durch Ändern von Methoden- oder Klassensignaturen oder durch Entfernen von Klassen oder Klassenfeldern.

• Geräteimplementierer KÖNNEN die zugrunde liegende Implementierung der APIs ändern, aber z
Modifikationen DÜRFEN sich NICHT auf das angegebene Verhalten und die Java-Sprachsignatur auswirken
öffentlich zugängliche APIs.
• Geräteimplementierer DÜRFEN KEINE öffentlich zugänglich gemachten Elemente (wie Klassen oder
Schnittstellen oder Felder oder Methoden zu bestehenden Klassen oder Schnittstellen) zu den oben genannten APIs.
Ein "öffentlich zugängliches Element" ist jedes Konstrukt, das nicht mit dem "@hide"-Marker in der dekoriert ist
Upstream-Android-Quellcode. Mit anderen Worten, Geräteimplementierer DÜRFEN KEINE neuen APIs verfügbar machen oder
Ändern Sie vorhandene APIs in den oben genannten Namespaces. Geräteimplementierer KÖNNEN nur intern machen
Modifikationen, aber diese Modifikationen DÜRFEN Entwicklern NICHT beworben oder anderweitig zugänglich gemacht werden.
Geräteimplementierer KÖNNEN benutzerdefinierte APIs hinzufügen, aber solche APIs DÜRFEN NICHT in einem eigenen Namensraum sein
von oder Verweis auf eine andere Organisation. Beispielsweise DÜRFEN Geräteimplementierer KEINE APIs zum hinzufügen
com.google.* oder ähnlicher Namespace; nur Google kann dies tun. Ebenso DARF Google KEINE APIs hinzufügen
Namensräume anderer Unternehmen.
Wenn ein Geräteimplementierer vorschlägt, einen der oben genannten Paketnamensräume zu verbessern (z. B. durch Hinzufügen von
nützliche neue Funktionalität zu einer bestehenden API oder das Hinzufügen einer neuen API), SOLLTE der Implementierer besuchen
source.android.com und beginnen Sie mit dem Prozess zum Beitragen von Änderungen und Code gemäß der
Informationen auf dieser Website.
Beachten Sie, dass die obigen Einschränkungen den Standardkonventionen für die Benennung von APIs in Java entsprechen
Programmiersprache; Dieser Abschnitt zielt lediglich darauf ab, diese Konventionen zu stärken und sie verbindlich zu machen
durch Aufnahme in diese Kompatibilitätsdefinition.
3.7. Kompatibilität mit virtuellen Maschinen
Ein kompatibles Android-Gerät muss die vollständige Dalvik Executable (DEX)-Bytecode-Spezifikation unterstützen und
Semantik der virtuellen Maschine von Dalvik [Resources, 13].
3.8. Kompatibilität der Benutzeroberfläche
Die Android-Plattform enthält einige Entwickler-APIs, die es Entwicklern ermöglichen, sich in den Systembenutzer einzuklinken
Schnittstelle. Geräteimplementierungen MÜSSEN diese standardmäßigen UI-APIs in benutzerdefinierte Benutzeroberflächen integrieren
sie entwickeln sich, wie unten erklärt.
3.8.1. Widgets
Android definiert einen Komponententyp und die entsprechende API und den entsprechenden Lebenszyklus, die es Anwendungen ermöglichen, verfügbar zu machen
ein "AppWidget" an den Endbenutzer [Ressourcen , 14] . Die Android Open Source-Referenzversion enthält a
Launcher-Anwendung, die Elemente der Benutzeroberfläche enthält, die es dem Benutzer ermöglichen, Elemente hinzuzufügen, anzuzeigen und zu entfernen
AppWidgets auf dem Startbildschirm.
Geräteimplementierer KÖNNEN eine Alternative zum Referenz-Launcher (dh Startbildschirm) ersetzen.
Alternative Launcher SOLLTEN integrierte Unterstützung für AppWidgets enthalten und die Benutzeroberfläche offenlegen
Elemente zum Hinzufügen, Anzeigen und Entfernen von AppWidgets direkt im Launcher. Alternative Trägerraketen KÖNNEN
diese Elemente der Benutzeroberfläche weglassen; Wenn sie jedoch weggelassen werden, MUSS der Geräteimplementierer Folgendes bereitstellen:
separate Anwendung, auf die über den Launcher zugegriffen werden kann und mit der Benutzer hinzufügen, anzeigen und entfernen können
App-Widgets.

3.8.2. Benachrichtigungen
Android enthält APIs, die es Entwicklern ermöglichen, Benutzer über wichtige Ereignisse zu benachrichtigen [Resources, 15]. Gerät
Implementierer MÜSSEN Unterstützung für jede so definierte Benachrichtigungsklasse bereitstellen; speziell: Klänge,
Vibration, Licht und Statusleiste.
Darüber hinaus MUSS die Implementierung korrekt gerendert werden und alle Ressourcen (Icons, Sounddateien usw.)
bereitgestellt in den APIs [Ressourcen, 7] oder im Styleguide für Statusleistensymbole [Ressourcen , 16]. Gerät
Implementierer KÖNNEN eine alternative Benutzererfahrung für Benachrichtigungen bereitstellen als die, die von bereitgestellt wird
Verweis auf die Android-Open-Source-Implementierung; solche alternativen Benachrichtigungssysteme MÜSSEN jedoch
vorhandene Benachrichtigungsressourcen wie oben unterstützen.
3.8.3. Suche
Android enthält APIs [Ressourcen, 17], mit denen Entwickler die Suche in ihre Anwendungen integrieren können.
und die Daten ihrer Anwendung der globalen Systemsuche zugänglich machen. Im Allgemeinen ist diese Funktionalität
besteht aus einer einzigen, systemweiten Benutzeroberfläche, die Benutzern die Eingabe von Abfragen ermöglicht und Vorschläge anzeigt
as users type, and displays results. The Android APIs allow developers to reuse this interface to provide
search within their own apps, and allow developers to supply results to the common global search user
interface.
Device implementations MUST include a single, shared, system-wide search user interface capable of
real-time suggestions in response to user input. Device implementations MUST implement the APIs that
allow developers to reuse this user interface to provide search within their own applications.
Device implementations MUST implement the APIs that allow third-party applications to add suggestions
to the search box when it is run in global search mode. If no third-party applications are installed that
make use of this functionality, the default behavior SHOULD be to display web search engine results and
suggestions.
Device implementations MAY ship alternate search user interfaces, but SHOULD include a hard or soft
dedicated search button, that can be used at any time within any app to invoke the search framework,
with the behavior provided for in the API documentation.
3.8.4. Toasts
Applications can use the "Toast" API (defined in [ Resources, 18]) to display short non-modal strings to the
end user, that disappear after a brief period of time. Device implementations MUST display Toasts from
applications to end users in some high-visibility manner.
4. Reference Software Compatibility
Device implementers MUST test implementation compatibility using the following open-source
applications:
• Calculator (included in SDK)
• Lunar Lander (included in SDK)
• ApiDemos (included in SDK)
• The "Apps for Android" applications [ Resources, 19]
Each app above MUST launch and behave correctly on the implementation, for the implementation to be

considered compatible.
5. Application Packaging Compatibility
Device implementations MUST install and run Android ".apk" files as generated by the "aapt" tool
included in the official Android SDK [ Resources , 20].
Devices implementations MUST NOT extend either the .apk, Android Manifest, or Dalvik bytecode
formats in such a way that would prevent those files from installing and running correctly on other
compatible devices. Device implementers SHOULD use the reference upstream implementation of Dalvik,
and the reference implementation's package management system.
6. Multimedia Compatibility
A compatible Android device must support the following multimedia codecs. All of these codecs are
provided as software implementations in the preferred Android implementation from the Android Open
Source Project [ Resources , 4].
Please note that neither Google nor the Open Handset Alliance make any representation that these
codecs are unencumbered by third-party patents. Those intending to use this source code in hardware or
software products are advised that implementations of this code, including in open source software or
shareware, may require patent licenses from the relevant patent holders.
Audio
Name

Encoder Decoder Details
Files Supported
Mono/Stereo content in any
3GPP (.3gp) and
combination of standard bit rates
MPEG-4 (.mp4, .m4a)
AAC LC/LTP
X
up to 160 kbps and sampling rates files. No support for raw
between 8 to 48kHz
AAC (.aac)
Mono/Stereo content in any
3GPP (.3gp) and
HE-AACv1
combination of standard bit rates
MPEG-4 (.mp4, .m4a)
X
(AAC+)
up to 96 kbps and sampling rates files. No support for raw
between 8 to 48kHz
AAC (.aac)
Mono/Stereo content in any
HE-AACv2
3GPP (.3gp) and
combination of standard bit rates
(enhanced
MPEG-4 (.mp4, .m4a)
X
up to 96 kbps and sampling rates
AAC+)
files. No support for raw
between 8 to 48kHz
AAC (.aac)
AMR-NB
4.75 to 12.2 kbps sampled @
3GPP (.3gp) files
X
X
8kHz
AMR-WB
9 rates from 6.60 kbit/s to 23.85
-3GPP (.3gp) files
X
kbit/s sampled @ 16kHz
MP3
Mono/Stereo 8-320Kbps constant MP3 (.mp3) files
X
(CBR) or variable bit-rate (VBR)
Type 0 and 1 (.mid, .xmf,
MIDI Type 0 and 1. DLS Version 1
MIDI
X
.mxmf). Also RTTTL/RTX
and 2. XMF and Mobile XMF.
(.rtttl, .rtx), OTA (.ota),

Support for ringtone formats
and iMelody (.imy)
RTTTL/RTX, OTA, and iMelody
Ogg Vorbis
.ogg
X
8- and 16-bit linear PCM (rates up
PCM
X
WAVE
to limit of hardware)
Image
Files
Name
Encoder Decoder Details
Supported
JPEG
X
X
base+progressive
GIF
X
PNG
X
X
BMP
X
Video
Files
Name
Encoder Decoder Details
Supported
3GPP (.3gp)
H.263
X
X
files
3GPP (.3gp)
H.264
X
and MPEG-4
(.mp4) files
MPEG4
X
3GPP (.3gp) file
SP
7. Developer Tool Compatibility
Device implementations MUST support the Android Developer Tools provided in the Android SDK.
Specifically, Android-compatible devices MUST be compatible with:
Android Debug Bridge or adb [Resources , 21]
Device implementations MUST support all adb functions as documented in the Android
SDK. The device-side adb daemon SHOULD be inactive by default, but there MUST be a user-
accessible mechanism to turn on the Android Debug Bridge.
Dalvik Debug Monitor Service or ddms [Resources , 22]
Device implementations MUST support all ddms features as documented in the Android SDK.
As ddms uses adb, support for ddms SHOULD be inactive by default, but MUST be supported
whenever the user has activated the Android Debug Bridge, as above.

Monkey [Resources, 23]
Device implementations MUST include the Monkey framework, and make it available for
applications to use.
8. Hardware Compatibility
Android is intended to support device implementers creating innovative form factors and configurations.
At the same time Android developers expect certain hardware, sensors and APIs across all Android
device. This section lists the hardware features that all Android 1.6 compatible devices must support. In
Android 1.6, the majority of hardware features (such as WiFi, compass, and accelerometer) are required.
If a device includes a particular hardware component that has a corresponding API for third-party
developers, the device implementation MUST implement that API as defined in the Android SDK
documentation.
8.1. Display
Android 1.6 includes facilities that perform certain automatic scaling and transformation operations under
some circumstances, to ensure that third-party applications run reasonably well on hardware
configurations for which they were not necessarily explicitly designed [Resources, 24] . Devices MUST
properly implement these behaviors, as detailed in this section.
8.1.1. Standard Display Configurations
This table lists the standard screen configurations considered compatible with Android:
Diagonal
Screen Size
Screen Density
Screen Type
Width (Pixels)
Height (Pixels)
Length Range
Group
Group
(inches)
QVGA
240
320
2.6 - 3.0
Small
Low
WQVGA
240
400
3.2 - 3.5
Normal
Low
FWQVGA
240
432
3.5 - 3.8
Normal
Low
HVGA
320
480
3.0 - 3.5
Normal
Medium
WVGA
480
800
3.3 - 4.0
Normal
High
FWVGA
480
854
3.5 - 4.0
Normal
High
WVGA
480
800
4.8 - 5.5
Large
Medium
FWVGA
480
854
5.0 - 5.8
Large
Medium
Device implementations corresponding to one of the standard configurations above MUST be configured
to report the indicated screen size to applications via the android.content.res.Configuration [ Resources,
25] class.
Some .apk packages have manifests that do not identify them as supporting a specific density range.
When running such applications, the following constraints apply:

• Device implementations MUST interpret any resources that are present as defaulting to
"medium" (known as "mdpi" in the SDK documentation.)
• When operating on a "low" density screen, device implementations MUST scale down medium/
mdpi assets by a factor of 0.75.
• When operating on a "high" density screen, device implementations MUST scale up medium/
mdpi assets by a factor of 1.5.
• Device implementations MUST NOT scale assets within a density range, and MUST scale
assets by exactly these factors between density ranges.
8.1.2. Non-Standard Display Configurations
Display configurations that do not match one of the standard configurations listed in Section 8.2.1 require
additional consideration and work to be compatible. Device implementers MUST contact Android
Compatibility Team as provided for in Section 12 to obtain classifications for screen-size bucket, density,
and scaling factor. When provided with this information, device implementations MUST implement them
as specified.
Note that some display configurations (such as very large or very small screens, and some aspect ratios)
are fundamentally incompatible with Android 1.6; therefore device implementers are encouraged to
contact Android Compatibility Team as early as possible in the development process.
8.1.3. Display Metrics
Device implementations MUST report correct values for all display metrics defined in
android.util.DisplayMetrics [Resources , 26].
8.2. Keyboard
Device implementations:
• MUST include support for the Input Management Framework (which allows third party
developers to create Input Management Engines -- ie soft keyboard) as detailed at
developer.android.com
• MUST provide at least one soft keyboard implementation (regardless of whether a hard
keyboard is present)
• MAY include additional soft keyboard implementations
• MAY include a hardware keyboard
• MUST NOT include a hardware keyboard that does not match one of the formats specified
in android.content.res.Configuration [ Resources, 25] (that is, QWERTY, or 12-key)
8.3. Non-touch Navigation
Device implementations:
• MAY omit non-touch navigation options (that is, may omit a trackball, 5-way directional pad, or
wheel)
• MUST report via android.content.res.Configuration [Resources , 25] the correct value for the
device's hardware

8.4. Screen Orientation
Compatible devices MUST support dynamic orientation by applications to either portrait or landscape
screen orientation. That is, the device must respect the application's request for a specific screen
orientation. Device implementations MAY select either portrait or landscape orientation as the default.
Devices MUST report the correct value for the device's current orientation, whenever queried via the
android.content.res.Configuration.orientation, android.view.Display.getOrientation(), or other APIs.
8.5. Touchscreen input
Device implementations:
• MUST have a touchscreen
• MAY have either capacative or resistive touchscreen
• MUST report the value of android.content.res.Configuration [ Resources, 25] reflecting
corresponding to the type of the specific touchscreen on the device
8.6. USB
Device implementations:
• MUST implement a USB client, connectable to a USB host with a standard USB-A port
• MUST implement the Android Debug Bridge over USB (as described in Section 7)
• MUST implement a USB mass storage client for the removable/media storage is present in the
device
• SHOULD use the micro USB form factor on the device side
• SHOULD implement support for the USB Mass Storage specification (so that either removable
or fixed storage on the device can be accessed from a host PC)
• MAY include a non-standard port on the device side, but if so MUST ship with a cable capable of
connecting the custom pinout to standard USB-A port
8.7. Navigation keys
The Home, Menu and Back functions are essential to the Android navigation paradigm. Device
implementations MUST make these functions available to the user at all times, regardless of application
state. These functions SHOULD be implemented via dedicated buttons. They MAY be implemented
using software, gestures, touch panel, etc., but if so they MUST be always accessible and not obscure or
interfere with the available application display area.
Device implementers SHOULD also provide a dedicated search key. Device implementers MAY also
provide send and end keys for phone calls.
8.8. WiFi
Device implementations MUST support 802.11b and 802.11g, and MAY support 802.11a.

8.9. Camera
Device implementations MUST include a camera. The included camera:
• MUST have a resolution of at least 2 megapixels
• SHOULD have either hardware auto-focus, or software auto-focus implemented in the camera
driver (transparent to application software)
• MAY have fixed-focus or EDOF (extended depth of field) hardware
• MAY include a flash. If the Camera includes a flash, the flash lamp MUST NOT be lit while an
android.hardware.Camera.PreviewCallback instance has been registered on a Camera preview
surface.
Device implementations MUST implement the following behaviors for the camera-related APIs
[Resources, 27] :
1. If an application has never called android.hardware.Camera.Parameters.setPreviewFormat(int),
then the device MUST use android.hardware.PixelFormat.YCbCr_420_SP for preview data
provided to application callbacks.
2. If an application registers an android.hardware.Camera.PreviewCallback instance and the
system calls the onPreviewFrame() method when the preview format is YCbCr_420_SP, the
data in the byte[] passed into onPreviewFrame() must further be in the NV21 encoding format.
(This is the format used natively by the 7k hardware family.) That is, NV21 MUST be the default.
8.9.1. Non-Autofocus Cameras
If a device lacks an autofocus camera, the device implementer MUST meet the additional requirements in
this section. Device implementations MUST implement the full Camera API included in the Android 1.6
SDK documentation in some reasonable way, regardless of actual camera hardware's capabilities.
For Android 1.6, if the camera lacks auto-focus, the device implementation MUST adhere to the following:
1. The system MUST include a read-only system property named "ro.workaround.noautofocus"
with the value of "1". This value is intended to be used by applications such as Android Market to
selectively identify device capabilities, and will be replaced in a future version of Android with a
robust API.
2. If an application calls android.hardware.Camera.autoFocus(), the system MUST call the
onAutoFocus() callback method on any registered
android.hardware.Camera.AutoFocusCallback instances, even though no focusing actually
happened. This is to avoid having existing applications break by waiting forever for an autofocus
callback that will never come.
3. The call to the AutoFocusCallback.onAutoFocus() method MUST be triggered by the driver or
framework in a new event on the main framework Looper thread. That is, Camera.autoFocus()
MUST NOT directly call AutoFocusCallback.onAutoFocus() since this violates the Android
framework threading model and will break apps.
8.10. Accelerometer
Device implementations MUST include a 3-axis accelerometer and MUST be able to deliver events at at
least 50 Hz. The coordinate system used by the accelerometer MUST comply with the Android sensor
coordinate system as detailed in the Android API s [Resources , 28].

8.11. Compass
Device implementations MUST include a 3-axis compass and MUST be able to deliver events at at least
10 Hz. The coordinate system used by the compass MUST comply with the Android sensor coordinate
system as defined in the Android API [Resources , 28].
8.12. GPS
Device implementations MUST include a GPS, and SHOULD include some form of "assisted GPS"
technique to minimize GPS lock-on time.
8.13. Telephony
Device implementations:
• MUST include either GSM or CDMA telephony
• MUST implement the appropriate APIs as detailed in the Android SDK documentation at
developer.android.com
Note that this requirement implies that non-phone devices are not compatible with Android 1.6; Android
1.6 devices MUST include telephony hardware. Please see Appendix C for information on non-phone
devices.
8.14. Volume controls
Android-compatible devices MUST include a mechanism to allow the user to increase and decrease the
audio volume. Device implementations MUST make these functions available to the user at all times,
regardless of application state. These functions MAY be implemented using physical hardware keys,
software, gestures, touch panel, etc., but they MUST be always accessible and not obscure or interfere
with the available application display area (see Display above).
When these buttons are used, the corresponding key events MUST be generated and sent to the
foreground application. If the event is not intercepted and sunk by the application then device
implementation MUST handle the event as a system volume control.
9. Performance Compatibility
One of the goals of the Android Compatibility Program is to ensure a consistent application experience for
consumers. Compatible implementations must ensure not only that applications simply run correctly on
the device, but that they do so with reasonable performance and overall good user experience.
Device implementations MUST meet the key performance metrics of an Android 1.6 compatible device,
as in the table below:
Metric
Performance Threshold
Comments

This is tested by CTS.
The following applications
The launch time is measured as the total time to
should launch within the
complete loading the default activity for the
Application
specified time.
application, including the time it takes to start the
Launch Time
Browser: less than 1300ms
Linux process, load the Android package into the
MMS/SMS: less than 700ms
Dalvik VM, and call onCreate.
AlarmClock: less than 650ms
Multiple applications will be
This is tested by CTS.
launched. Re-launching the
Simultaneous first application should
Applications
complete taking less than the
original launch time.
10. Security Model Compatibility
Device implementations MUST implement a security model consistent with the Android platform security
model as defined in Security and Permissions reference document in the APIs [Resources, 29] in the
Android developer documentation. Device implementations MUST support installation of self-signed
applications without requiring any additional permissions/certificates from any third parties/authorities.
Specifically, compatible devices MUST support the following security mechanisms:
10.1. Permissions
Device implementations MUST support the Android permissions model as defined in the Android
developer documentation [ Resources , 9]. Specifically, implementations MUST enforce each permission
defined as described in the SDK documentation; no permissions may be omitted, altered, or ignored.
Implementations MAY add additional permissions, provided the new permission ID strings are not in the
android.* namespace.
10.2. User and Process Isolation
Device implementations MUST support the Android application sandbox model, in which each application
runs as a unique Unix-style UID and in a separate process.
Device implementations MUST support running multiple applications as the same Linux user ID, provided
that the applications are properly signed and constructed, as defined in the Security and Permissions
reference [ Resources , 29].

10.3. Filesystem Permissions
Device implementations MUST support the Android file access permissions model as defined in as
defined in the Security and Permissions reference [Resources , 29].
11. Compatibility Test Suite
Device implementations MUST pass the Android Compatibility Test Suite (CTS) [ Resources, 3] available
from the Android Open Source Project, using the final shipping software on the device. Additionally,
device implementers SHOULD use the reference implementation in the Android Open Source tree as
much as possible, and MUST ensure compatibility in cases of ambiguity in CTS and for any
reimplementations of parts of the reference source code.
The CTS is designed to be run on an actual device. Like any software, the CTS may itself contain bugs.
The CTS will be versioned independently of this Compatibility Definition, and multiple revisions of the
CTS may be released for Android 1.6. However, such releases will only fix behavioral bugs in the CTS
tests and will not impose any new tests, behaviors or APIs for a given platform release.
12. Contact Us
You can contact the Android Compatibility Team at compatibility@android.com for clarifications related to
this Compatibiltiy Definition and to provide feedback on this Definition.

Appendix A: Required Application Intents
NOTE: this list is provisional, and will be updated in the future.
Application Actions
Schemes MIME Types
(none)
text/plain

http
text/html
Browser
android.intent.action.VIEW
https
application/xhtml+xml
application/
vnd.wap.xhtml+xml

(none)
android.intent.action.WEB_SEARCH
http
(none)
https
android.media.action.IMAGE_CAPTURE
android.media.action.STILL_IMAGE_CAMERA

Camera
android.media.action.VIDEO_CAMERA
android.media.action.VIDEO_CAPTURE

vnd.android.cursor.dir/
android.intent.action.VIEW
image
android.intent.action.GET_CONTENT
vnd.android.cursor.dir/
android.intent.action.PICK
video
android.intent.action.ATTACH_DATA
image/*
video/*

android.intent.action.VIEW
rtsp
video/mp4
video/3gp

android.intent.action.VIEW
http
video/3gpp
video/3gpp2

android.intent.action.DIAL
Phone /
android.intent.action.VIEW
tel
Contacts
android.intent.action.CALL
android.intent.action.DIAL
vnd.android.cursor.dir/
android.intent.action.VIEW
person

vnd.android.cursor.dir/
person
vnd.android.cursor.dir/

android.intent.action.PICK
phone
vnd.android.cursor.dir/
postal-address

vnd.android.cursor.item/
person
vnd.android.cursor.item/

android.intent.action.GET_CONTENT
phone
vnd.android.cursor.item/
postal-address

text/plain
Email
android.intent.action.SEND
image/*
video/*

android.intent.action.VIEW
mailto
android.intent.action.SENDTO
sms
android.intent.action.VIEW
smsto
SMS / MMS android.intent.action.SENDTO
mms
mmsto

audio/*
application/ogg

Music
android.intent.action.VIEW
file
application/x-ogg
application/itunes

audio/mp3
audio/x-mp3

android.intent.action.VIEW
http
audio/mpeg
audio/mp4
audio/mp4a-latm

vnd.android.cursor.dir/
artistalbum
vnd.android.cursor.dir/
album
vnd.android.cursor.dir/

android.intent.action.PICK
nowplaying
vnd.android.cursor.dir/
track
nd.android.cursor.dir/
playlist
vnd.android.cursor.dir/
video

media/*
audio/*

android.intent.action.GET_CONTENT
application/ogg
application/x-ogg
video/*


content
Package
android.intent.action.VIEW
file
Installer
package
file
android.intent.action.PACKAGE_INSTALL
http
https

android.intent.action.ALL_APPS
android.settings.SETTINGS
android.settings.WIRELESS_SETTINGS
android.settings.AIRPLANE_MODE_SETTINGS
android.settings.WIFI_SETTINGS
android.settings.APN_SETTINGS
android.settings.BLUETOOTH_SETTINGS
android.settings.DATE_SETTINGS
android.settings.LOCALE_SETTINGS

Settings
android.settings.INPUT_METHOD_SETTINGS
com.android.settings.SOUND_SETTINGS
com.android.settings.DISPLAY_SETTINGS
android.settings.SECURITY_SETTING
android.settings.LOCATION_SOURCE_SETTINGS
android.settings.INTERNAL_STORAGE_SETTINGS
android.settings.MEMORY_CARD_SETTINGS
android.intent.action.SET_WALLPAPER

Search
android.intent.action.SEARCH
query
android.intent.action.SEARCH_LONG_PRESS
Voice
android.intent.action.VOICE_COMMAND
Contacts Management
Intent Action
Description
Starts an Activity that lets the user pick
ATTACH_IMAGE
a contact to attach an image to.
Used
EXTRA_CREATE_DESCRIPTION
with SHOW_OR_CREATE_CONTACT to
specify an exact description to be


shown when prompting user about
creating a new contact.

Used
with SHOW_OR_CREATE_CONTACT
to
EXTRA_FORCE_CREATE
force creating a new contact if no
matching contact found.

This is the intent that is fired when a
SEARCH_SUGGESTION_CLICKED
search suggestion is clicked on.
This is the intent that is fired when a
SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED search suggestion for creating a
contact is clicked on.
This is the intent that is fired when a
SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED
search suggestion for dialing a number
is clicked on.

Takes as input a data URI with a mailto:
SHOW_OR_CREATE_CONTACT
or tel: scheme.

Appendix B: Required Broadcast Intents NOTE: this list is provisional, and will be
updated in the future.

Intent Action
Description
Broadcast Action: This is broadcast once, after the
ACTION_BOOT_COMPLETED
system has finished booting.
Broadcast Action: This is broadcast once, when a
ACTION_CALL_BUTTON
call is received.
Broadcast Action: The "Camera Button" was
ACTION_CAMERA_BUTTON
pressed.
Broadcast Action: The current
ACTION_CONFIGURATION_CHANGED
device Configuration (orientation, locale, etc) has
changed.
ACTION_DATE_CHANGED
Broadcast Action: The date has changed.
Broadcast Action: Indicates low memory condition
ACTION_DEVICE_STORAGE_LOW
on the device
Broadcast Action: Indicates low memory condition
ACTION_DEVICE_STORAGE_OK
on the device no longer exists
Broadcast Action: Wired Headset plugged in or
ACTION_HEADSET_PLUG
unplugged.
Broadcast Action: An input method has been
ACTION_INPUT_METHOD_CHANGED
changed.
Broadcast Action: External media was removed
ACTION_MEDIA_BAD_REMOVAL
from SD card slot, but mount point was not
unmounted.
Broadcast Action: The "Media Button" was
ACTION_MEDIA_BUTTON
pressed.
Broadcast Action: External media is present, and
being disk-checked The path to the mount point for
ACTION_MEDIA_CHECKING
the checking media is contained in the
Intent.mData field.
Broadcast Action: User has expressed the desire to
ACTION_MEDIA_EJECT
remove the external storage media.
Broadcast Action: External media is present and
ACTION_MEDIA_MOUNTED
mounted at its mount point.
Broadcast Action: External media is present, but is
using an incompatible fs (or is blank) The path to
ACTION_MEDIA_NOFS
the mount point for the checking media is
contained in the Intent.mData field.
Broadcast Action: External media has been
ACTION_MEDIA_REMOVED
removed.
Broadcast Action: The media scanner has finished
ACTION_MEDIA_SCANNER_FINISHED
scanning a directory.
Broadcast Action: Request the media scanner to
ACTION_MEDIA_SCANNER_SCAN_FILE
scan a file and add it to the media database.

Broadcast Action: The media scanner has started
ACTION_MEDIA_SCANNER_STARTED
scanning a directory.
Broadcast Action: External media is unmounted
ACTION_MEDIA_SHARED
because it is being shared via USB mass storage.
Broadcast Action: External media is present but
ACTION_MEDIA_UNMOUNTABLE
cannot be mounted.
Broadcast Action: External media is present, but
ACTION_MEDIA_UNMOUNTED
not mounted at its mount point.
Broadcast Action: An outgoing call is about to be
ACTION_NEW_OUTGOING_CALL
placed.
Broadcast Action: A new application package has
ACTION_PACKAGE_ADDED
been installed on the device.
Broadcast Action: An existing application package
ACTION_PACKAGE_CHANGED
has been changed (eg a component has been
enabled or disabled.
Broadcast Action: The user has cleared the data of
a package. This should be preceded
by ACTION_PACKAGE_RESTARTED, after which
ACTION_PACKAGE_DATA_CLEARED
all of its persistent data is erased and this
broadcast sent. Note that the cleared package
does not receive this broadcast. The data contains
the name of the package.
Broadcast Action: An existing application package
has been removed from the device. The data
ACTION_PACKAGE_REMOVED
contains the name of the package. The package
that is being installed does not receive this Intent.
Broadcast Action: A new version of an application
ACTION_PACKAGE_REPLACED
package has been installed, replacing an existing
version that was previously installed.
Broadcast Action: The user has restarted a
package, and all of its processes have been killed.
All runtime state associated with it (processes,
ACTION_PACKAGE_RESTARTED
alarms, notifications, etc) should be removed. Note
that the restarted package does not receive this
broadcast. The data contains the name of the
package.
Broadcast Action: Some content providers have
parts of their namespace where they publish new
ACTION_PROVIDER_CHANGED
events or items that the user may be especially
interested in.
ACTION_SCREEN_OFF
Broadcast Action: Sent after the screen turns off.
ACTION_SCREEN_ON
Broadcast Action: Sent after the screen turns on.
Broadcast Action: A user ID has been removed
ACTION_UID_REMOVED
from the system.
Broadcast Action: The device has entered USB
ACTION_UMS_CONNECTED
Mass Storage mode.

Broadcast Action: The device has exited USB
ACTION_UMS_DISCONNECTED
Mass Storage mode.
Broadcast Action: Sent when the user is present
ACTION_USER_PRESENT
after device wakes up (eg when the keyguard is
gone).
Broadcast Action: The current system wallpaper
ACTION_WALLPAPER_CHANGED
has changed.
ACTION_TIME_CHANGED
Broadcast Action: The time was set.
ACTION_TIME_TICK
Broadcast Action: The current time has changed.
ACTION_TIMEZONE_CHANGED
Broadcast Action: The timezone has changed.
Broadcast Action: The charging state, or charge
ACTION_BATTERY_CHANGED
level of the battery has changed.
Broadcast Action: Indicates low battery condition
ACTION_BATTERY_LOW
on the device. This broadcast corresponds to the
"Low battery warning" system dialog.
Broadcast Action: Indicates the battery is now okay
after being low. This will be sent
ACTION_BATTERY_OKAY
after ACTION_BATTERY_LOW once the battery
has gone back up to an okay state.
Network State
Intent Action
Description
Broadcast intent action indicating that the
NETWORK_STATE_CHANGED_ACTION
state of Wi-Fi connectivity has changed.
Broadcast intent action indicating that the
RSSI_CHANGED_ACTION
RSSI (signal strength) has changed.
Broadcast intent action indicating that a
SUPPLICANT_STATE_CHANGED_ACTION
connection to the supplicant has been
established or lost.
Broadcast intent action indicating that Wi-Fi
WIFI_STATE_CHANGED_ACTION
has been enabled, disabled, enabling,
disabling, or unknown.
The network IDs of the configured networks
NETWORK_IDS_CHANGED_ACTION
could have changed.
Broadcast intent action indicating that the
ACTION_BACKGROUND_DATA_SETTING_CHANGED setting for background data usage has
changed values.
Broadcast intent indicating that a change in
CONNECTIVITY_ACTION
network connectivity has occurred.
Broadcast Action: The user has switched the
ACTION_AIRPLANE_MODE_CHANGED
phone into or out of Airplane Mode.


Appendix C: Future Considerations This appendix clarifies certain portions of this Android
1.6 Compatibility Definition, and in some cases discusses anticipated or planned changes intended for a
future version of the Android platform. This appendix is for informational and planning purposes only, and
is not part of the Compatibility Definition for Android 1.6.
1. Non-telephone Devices
Android 1.6 is intended exclusively for telephones; telephony functionality is not optional. Future versions
of the Android platform are expected to make telephony optional (and thus allow for non-phone Android
devices), but only phones are compatible with Android 1.6.
2. Bluetooth Compatibility
The Android 1.6 release of Android does not support Bluetooth APIs, so from a compatibility perspective
Bluetooth does not impose any considerations for this version of the platform. However, a future version
of Android will introduce Bluetooth APIs. At that point, supporting Bluetooth will become mandatory for
compatibility.
Consequently, we strongly recommend that Android 1.6 devices include Bluetooth, so that they will be
compatible with future versions of Android that require Bluetooth.
3. Required Hardware Components
All hardware components in Section 8 (including WiFi, magnetometer/compass, accelerometer, etc.) are
required and may not be omitted. Future versions of Android are expected to make some (but not all) of
these components optional, in tandem with corresponding tools for third-party developers to handle these
changes.
4. Sample Applications
The Compatibility Definition Document for a future version of Android will include a more extensive and
representative list of applications than the ones listed in Section 4, above. For Android 1.6, the
applications listed in Section 4 must be tested.
5. Touch Screens
Future versions of the Compatibility Definition may or may not allow for devices to omit touchscreens.
However, currently much of the Android framework implementation assumes the existence of a
touchscreen; omitting a touchscreen would break substantially all current third-party Android applications,
so in Android 1.6 a touchscreen is required for compatibility.

6. Performance
Future versions of CTS will also measure the CPU utilization and performance of the following
components of an implementation:
• 2D graphics
• 3D graphics
• Video playback
• Audio playback
• Bluetooth A2DP playback

Document Outline