Android 1.6 r2
Google Inc.
compatibilité@android.com
Table des matières
1. Introduction ............................................... .................................................. ................ 4
2. Ressources ....................................................... .................................................. ..................... 4
3. Logiciel ................................................................. .................................................. ....................... 5
3.1. Compatibilité de l'API gérée .................................................. ....................................... 5
3.2. Compatibilité de l'API logicielle .................................................. ............................................. 6
3.2.1. Autorisations.................................................. .................................................. ... 6
3.2.2. Paramètres de construction .................................................. ............................................. 6
3.2.3. Compatibilité de l'intention .................................................. ....................................... 8
3.2.3.1. Intentions d'application de base .................................................. ................................ 8
3.2.3.2. Remplacements d'intention .................................................. ....................................... 8
3.2.3.3. Espaces de noms d'intention .................................................. ....................................... 8
3.2.3.4. Intentions de diffusion .................................................. ....................................... 9
3.3. Compatibilité API native .................................................. ....................................... 9
3.4. Compatibilité des API Web .................................................. .................................................. 9
3.5. Compatibilité comportementale de l'API.................................................. ................................ dix
3.6. Espaces de noms d'API.................................................. .................................................. . dix
3.7. Compatibilité des machines virtuelles .................................................. .............................. 11
3.8. Compatibilité de l'interface utilisateur .................................................. .................................. 11
3.8.1. Widget .................................................................. .................................................. ....... 11
3.8.2. Notifications .................................................................. .................................................. 12
3.8.3. Rechercher ................................................. .................................................. .......... 12
3.8.4. Toasts................................................. .................................................. ........... 12
4. Compatibilité du logiciel de référence .................................................. .................................. 12
5. Compatibilité de l'emballage de l'application ................................................. ....................... 13
6. Compatibilité multimédia.................................................. ............................................... 13
7. Compatibilité de l'outil de développement.................................................. ............................................. 14
8. Compatibilité matérielle ....................................................... .................................................. 15
8.1. Afficher ................................................. .................................................. ................ 15
8.1.1. Configurations d'affichage standard .................................................. .................. 15
8.1.2. Configurations d'affichage non standard .................................................. ............ 16
8.1.3. Mesures d'affichage .................................................. ............................................... 16
8.2. Clavier ................................................. .................................................. ............ 16
8.3. Navigation non tactile ....................................................... .................................................. 16
8.4. Orientation de l'écran................................................ .................................................. 17
8.5. Saisie tactile ................................................................ .................................................. 17
8.6. USB ................................................. .................................................. ..................... 17
8.7. Touches de navigation ....................................................... .................................................. .. 17
8.8. Wifi ................................................. .................................................. ..................... 17
8.9. Appareil photo ................................................. .................................................. ............... 18
8.9.1. Appareils photo sans mise au point automatique .................................................. .................................. 18
8.10. Accéléromètre ................................................................ .................................................. .. 18
8.11. Boussole ................................................. .................................................. .......... 19
8.12. GPS ................................................. .................................................. .................... 19
8.13. Téléphonie................................................. .................................................. ......... 19
8.14. Commandes de volume .................................................. .................................................. 19
9. Compatibilité des performances.................................................. .................................................. 19
10. Compatibilité du modèle de sécurité ................................................ ....................................... 20
10.1. Autorisations .................................................. .................................................. ..... 20
10.2. Isolement des utilisateurs et des processus .................................................. .................................. 20
10.3. Autorisations du système de fichiers.............................................. ..................................... 21
11. Suite de tests de compatibilité ............................................. ............................................... 21
12. Contactez-nous ....................................................... .................................................. .................. 21
Annexe A : Intentions d'application requises .................................................. ....................... 22
Annexe B : Intentions de diffusion requises ................................................ ................................ 0
Annexe C : Considérations futures.................................................. .................................... 0
1. Appareils non téléphoniques .................................................. ............................................... 30
2. Compatibilité Bluetooth ....................................................... .................................................. 30
3. Composants matériels requis.............................................................. .............................. 30
4. Exemples d'applications .................................................. .................................................. 30
5. Écrans tactiles ....................................................... .................................................. ......... 30
6. Performances.................................................. .................................................. ............ 31
1. Introduction
Ce document énumère les exigences qui doivent être remplies pour que les téléphones portables soient
compatible avec Androïd 1.6. Cette définition suppose une connaissance du programme de compatibilité Android
[Ressources, 1].
L'utilisation de "doit", "ne doit pas", "obligatoire", "doit", "ne doit pas", "devrait", "ne devrait pas", "recommandé",
"peut" et "facultatif" sont conformes à la norme IETF définie dans RFC2119 [ Ressources , 2].
Tel qu'utilisé dans ce document, un « implémenteur de dispositif » ou « implémenteur » est une personne ou une organisation développant
une solution matérielle/logicielle exécutant Android 1.6. Une "implémentation de périphérique" ou "implémentation" est la
solution matérielle/logicielle ainsi développée.
Pour être considérés comme compatibles avec Android 1.6, les implémentations d'appareils :
1. DOIT répondre aux exigences présentées dans cette définition de compatibilité, y compris tous les documents
incorporé par référence.
2. DOIT réussir la suite de tests de compatibilité Android (CTS) disponible dans le cadre de l'Open Android
Projet source [ Ressources , 3]. Le CTS teste la plupart des composants décrits dans ce document, mais pas tous .
document.
Lorsque cette définition ou le CTS est muet, ambigu ou incomplet, il est de la responsabilité de l'appareil
exécutant pour assurer la compatibilité avec les implémentations existantes. Pour cette raison, l'Android Open
Source Project [ Ressources , 4] est à la fois la référence et l'implémentation préférée d'Android. Appareil
les implémenteurs sont fortement encouragés à baser leurs implémentations sur le code source "en amont"
disponible sur le projet Android Open Source. Alors que certains composants peuvent hypothétiquement être remplacés
avec des implémentations alternatives, cette pratique est fortement déconseillée, car la réussite des tests CTS deviendra
nettement plus difficile. Il est de la responsabilité de l'exécutant d'assurer une compatibilité comportementale totale avec
l'implémentation Android standard, y compris et au-delà de la suite de tests de compatibilité.
2. Ressources
Cette définition de compatibilité fait référence à un certain nombre de ressources qui peuvent être obtenues ici.
1. Présentation du programme de compatibilité Android : https://sites.google.com/a/android.com/compatibility/
Comment ça fonctionne
2. Niveaux d'exigence IETF RFC2119 : http://www.ietf.org/rfc/rfc2119.txt
3. Suite de tests de compatibilité : http://sites.google.com/a/android.com/compatibility/compatibility-test-
suite--cts
4. Projet Open Source Android : http://source.android.com/
5. Définitions et documentation de l'API : http://developer.android.com/reference/packages.html
6. Fournisseurs de contenu : http://code.google.com/android/reference/android/provider/package-
résumé.html
7. Ressources disponibles : http://code.google.com/android/reference/available-resources.html
8. Fichiers manifestes Android : http://code.google.com/android/devel/bblocks-manifest.html
9. Référence des autorisations Android : http://developer.android.com/reference/android/
Manifest.permission.html
10. Constantes de construction : http://developer.android.com/reference/android/os/Build.html
11. WebView : http://developer.android.com/reference/android/webkit/WebView.html
12. Extensions du navigateur Gears : http://code.google.com/apis/gears/
13. Spécification Dalvik Virtual Machine, trouvée dans le répertoire dalvik/docs d'un code source
vérifier; également disponible sur http://android.git.kernel.org/?p=platform/
dalvik.git;a=tree;f=docs;h=3e2ddbcaf7f370246246f9f03620a7caccbfcb12;hb=HEAD
14. AppWidgets : http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
15. Notifications : http://developer.android.com/guide/topics/ui/notifiers/notifications.html
16. Guide de style des icônes de la barre d'état : http://developer.android.com/guide/practices/ui_guideline
/icon_design.html#statusbarstructure
17. Gestionnaire de recherche : http://developer.android.com/reference/android/app/SearchManager.html
18. Toast : http://developer.android.com/reference/android/widget/Toast.html
19. Applications pour Android : http://code.google.com/p/apps-for-android
20. Description du fichier apk Android : http://developer.android.com/guide/topics/fundamentals.html
21. Pont de débogage Android (adb) : http://code.google.com/android/reference/adb.html
22. Service de surveillance de débogage Dalvik (ddms) : http://code.google.com/android/reference/ddms.html
23. Singe : http://developer.android.com/guide/developing/tools/monkey.html
24. Documentation sur l'indépendance de l'affichage :
25. Constantes de configuration : http://developer.android.com/reference/android/content/res/
Configuration.html
26. Métriques d'affichage : http://developer.android.com/reference/android/util/DisplayMetrics.html
27. Appareil photo : http://developer.android.com/reference/android/hardware/Camera.html
28. Espace de coordonnées du capteur : http://developer.android.com/reference/android/hardware/
SensorEvent.html
29. Référence sur la sécurité et les autorisations d'Android : http://developer.android.com/guide/topics/security/
security.html
Beaucoup de ces ressources sont dérivées directement ou indirectement du SDK Android 1.6, et seront
fonctionnellement identique aux informations contenues dans la documentation de ce SDK. Dans tous les cas où cela
La définition de compatibilité n'est pas d'accord avec la documentation du SDK, la documentation du SDK est considérée
faisant autorité. Tous les détails techniques fournis dans les références incluses ci-dessus sont pris en compte par inclusion
faire partie de cette définition de compatibilité.
3. Logiciel
La plate-forme Android comprend à la fois un ensemble d'API gérées ("hard") et un corps d'API dites "soft".
tels que le système d'intention, les API de code natif et les API d'application Web. Cette section détaille le dur et le
API logicielles qui font partie intégrante de la compatibilité, ainsi que certaines autres interfaces techniques et utilisateur pertinentes
comportements. Les implémentations de dispositifs DOIVENT être conformes à toutes les exigences de cette section.
3.1. Compatibilité des API gérées
L'environnement d'exécution géré (basé sur Dalvik) est le principal véhicule des applications Android. Les
L'interface de programmation d'applications Android (API) est l'ensemble des interfaces de plate-forme Android exposées à
applications s'exécutant dans l'environnement de machine virtuelle gérée. Les implémentations d'appareils DOIVENT fournir des
implémentations, y compris tous les comportements documentés, de toute API documentée exposée par Android
1.6 SDK, tels que :
1. API de base du langage Java Android [Ressources, 5].
2. Fournisseurs de contenu [Ressources , 6].
3. Ressources [Ressources, 7].
4. Attributs et éléments AndroidManifest.xml [Ressources, 8].
Les implémentations d'appareils NE DOIVENT PAS omettre d'API gérées, modifier les interfaces ou les signatures d'API, dévier
à partir du comportement documenté, ou inclure des no-ops, sauf lorsque cela est spécifiquement autorisé par cette compatibilité
Définition.
3.2. Compatibilité de l'API logicielle
En plus des API gérées de la section 3.1, Android inclut également un important "logiciel" d'exécution uniquement
API, sous la forme d'éléments tels que les intentions, les autorisations et les aspects similaires des applications Android
qui ne peuvent pas être appliqués au moment de la compilation de l'application. Cette section détaille les API "soft" et le système
comportements requis pour la compatibilité avec Android 1.6. Les implémentations d'appareils DOIVENT répondre à toutes les
exigences présentées dans cette section.
3.2.1. Autorisations
Les implémenteurs d'appareils DOIVENT prendre en charge et appliquer toutes les constantes d'autorisation comme documenté par le
Page de référence des autorisations [ Ressources , 9]. Notez que la section 10 énumère les exigences supplémentaires liées à
le modèle de sécurité Android.
3.2.2. Paramètres de construction
Les API Android incluent un certain nombre de constantes sur la classe android.os.Build [Resources, 10] qui sont
destiné à décrire l'appareil actuel. Pour fournir des valeurs cohérentes et significatives sur tous les appareils
implémentations, le tableau ci-dessous inclut des restrictions supplémentaires sur les formats de ces valeurs auxquelles
les implémentations d'appareil DOIVENT être conformes.
Paramètre
commentaires
La version du système Android en cours d'exécution, en version humaine
android.os.Build.VERSION.RELEASE
format lisible. Pour Android 1.6, ce champ DOIT avoir la valeur de chaîne
"1.6".
La version du système Android en cours d'exécution, dans un format
android.os.Build.VERSION.SDK
accessible au code d'application tiers. Pour Android 1.6, ce champ
DOIT avoir la valeur entière 4.
Une valeur choisie par l'implémenteur de l'appareil désignant la version spécifique
du système Android en cours d'exécution, dans un format lisible par l'homme.
Cette valeur NE DOIT PAS être réutilisée pour différentes versions expédiées jusqu'à la fin
utilisateurs android.os.Build.VERSION.INCREMENTAL. Une utilisation typique de ce champ est d'indiquer quel numéro de build ou
l'identifiant de changement de contrôle de source a été utilisé pour générer la construction. Là
n'y a pas d'exigences sur le format spécifique de ce champ, sauf qu'il
NE DOIT PAS être nul ou la chaîne vide ("").
Une valeur choisie par l'implémenteur de l'appareil identifiant le
matériel utilisé par l'appareil, dans un format lisible par l'homme. Une utilisation possible
android.os.Build.BOARD
de ce champ est d'indiquer la révision spécifique de la carte alimentant le
appareil. Il n'y a pas d'exigences sur le format spécifique de ce champ,
sauf qu'il NE DOIT PAS être nul ou la chaîne vide ("").
Une valeur choisie par l'implémenteur de l'appareil identifiant le nom du
android.os.Build.MARQUE
entreprise, organisation, individu, etc. qui a produit l'appareil, en
format lisible par l'homme. Une utilisation possible de ce champ est d'indiquer l'OEM
et/ou le transporteur qui a vendu l'appareil. Il n'y a pas d'exigences sur le
format spécifique de ce champ, sauf qu'il NE DOIT PAS être nul ou vide
chaîne ("").
Une valeur choisie par l'implémenteur de l'appareil identifiant le
configuration ou révision de la carrosserie (parfois appelée "industriel
android.os.Build.DEVICE
design") de l'appareil. Il n'y a pas d'exigences sur le format spécifique
de ce champ, sauf qu'il NE DOIT PAS être nul ou la chaîne vide ("").
Une chaîne qui identifie de manière unique cette version. Cela DEVRAIT être raisonnable
lisible par l'homme. Il DOIT suivre ce modèle :
$(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)
Par exemple : acme/mydevicel/generic/generic:Donut/ERC77/
3359: userdebug/test-keys
L'empreinte digitale NE DOIT PAS inclure d'espaces. Si d'autres champs inclus dans le
modèle ci-dessus ont des espaces, ils DEVRAIENT être remplacés par l'ASCII
trait de soulignement ("_") dans l'empreinte digitale.
Une chaîne qui identifie de manière unique l'hôte sur lequel la construction a été construite, en humain
android.os.Build.HOST
format lisible. Il n'y a pas d'exigences sur le format spécifique de ce
, sauf qu'il NE DOIT PAS être nul ou la chaîne vide ("").
Un identifiant choisi par l'implémenteur de l'appareil pour faire référence à un
version, dans un format lisible par l'homme. Ce champ peut être identique à
android.os.Build.VERSION.INCREMENTAL, mais DEVRAIT être une valeur
android.os.Build.ID
destiné à être quelque peu significatif pour les utilisateurs finaux. Il n'y a pas
exigences sur le format spécifique de ce champ, sauf qu'il NE DOIT PAS
être null ou la chaîne vide ("").
Une valeur choisie par l'implémenteur de l'appareil contenant le nom du
appareil connu de l'utilisateur final. Cela DEVRAIT être le même nom
android.os.Build.MODEL
sous lequel le dispositif est commercialisé et vendu aux utilisateurs finaux. Il n'y a pas
exigences sur le format spécifique de ce champ, sauf qu'il NE DOIT PAS
être null ou la chaîne vide ("").
Une valeur choisie par l'implémenteur de l'appareil contenant le développement
nom ou nom de code de l'appareil. DOIT être lisible par l'homme, mais n'est pas
android.os.Build.PRODUCT
nécessairement destinés à être vus par les utilisateurs finaux. Il n'y a pas d'exigences
sur le format spécifique de ce champ, sauf qu'il NE DOIT PAS être nul ou le
chaîne vide ("").
Une liste de balises séparées par des virgules choisies par l'implémenteur de l'appareil qui
distinguer davantage la construction. Par exemple, "non signé, débogage". Ce champ
android.os.Build.TAGS
NE DOIT PAS être nul ou la chaîne vide (""), mais une seule balise (telle que
"release") est bien.
android.os.Build.TIME
Une valeur représentant l'horodatage du moment où la génération s'est produite.
Une valeur choisie par l'implémenteur de l'appareil spécifiant le temps d'exécution
configuration de la construction. Ce champ DEVRAIT avoir l'une des valeurs
android.os.Build.TYPE
correspondant aux trois configurations typiques d'exécution d'Android : "utilisateur",
"userdebug" ou "eng".
Un nom ou ID utilisateur de l'utilisateur (ou de l'utilisateur automatisé) qui a généré le
android.os.Build.USER
construire. Il n'y a pas d'exigences sur le format spécifique de ce champ,
sauf qu'il NE DOIT PAS être nul ou la chaîne vide ("").
3.2.3. Compatibilité d'intention
Android utilise Intents pour réaliser une intégration faiblement couplée entre les applications. Cette rubrique décrit
exigences liées aux modèles d'intention qui DOIVENT être respectées par les implémentations de dispositifs. Par
"honoré", cela signifie que l'implémenteur de l'appareil DOIT fournir une activité Android, un service ou autre
composant qui spécifie un filtre d'intention correspondant et se lie à et implémente le comportement correct pour chaque
modèle d'intention spécifié.
3.2.3.1. Intentions d'application de base
Le projet Android en amont définit un certain nombre d'applications principales, telles qu'un numéroteur téléphonique, un calendrier,
carnet de contacts, lecteur de musique, etc. Les implémenteurs d'appareils PEUVENT remplacer ces applications par
versions alternatives.
Cependant, toutes ces versions alternatives DOIVENT respecter les mêmes modèles d'intention fournis par l'amont
projet. (Par exemple, si un appareil contient un lecteur de musique alternatif, il doit toujours respecter le modèle d'intention
émis par des applications tierces pour choisir une chanson.) Les implémentations de périphériques DOIVENT prendre en charge tous les modèles d'intention
énumérés à l'annexe A.
3.2.3.2. Remplacements d'intention
Comme Android est une plate-forme extensible, les implémenteurs d'appareils DOIVENT autoriser chaque modèle d'intention décrit dans
L'annexe A doit être remplacée par des applications tierces. Le projet open source Android en amont
permet cela par défaut ; les implémenteurs d'appareils NE DOIVENT PAS attacher de privilèges spéciaux aux applications système.
l'utilisation de ces modèles d'intention, ou empêcher les applications tierces de se lier à et de prendre le contrôle de
ces patrons. Cette interdiction comprend notamment la désactivation de l'interface utilisateur "Chooser" qui permet
à l'utilisateur de choisir entre plusieurs applications qui gèrent toutes le même modèle d'intention.
3.2.3.3. Espaces de noms d'intention
Les implémenteurs d'appareils NE DOIVENT PAS inclure de composant Android qui respecte une nouvelle intention ou
Diffusez des modèles d'intention à l'aide d'une ACTION, d'une CATÉGORIE ou d'une autre chaîne de clé dans l'espace de noms android.*.
Les implémenteurs d'appareils NE DOIVENT PAS inclure de composants Android qui respectent une nouvelle intention ou
Modèles d'intention de diffusion à l'aide d'une ACTION, d'une CATÉGORIE ou d'une autre chaîne de clé dans un espace de package
appartenant à une autre organisation. Les implémenteurs d'appareils NE DOIVENT PAS modifier ou étendre l'une des intentions
modèles répertoriés dans les annexes A ou B.
Cette interdiction est analogue à celle spécifiée pour les classes de langage Java dans la section 3.6.
3.2.3.4. Intentions de diffusion
Les applications tierces s'appuient sur la plate-forme pour diffuser certaines intentions afin de les informer des changements dans le
environnement matériel ou logiciel. Les appareils compatibles Android DOIVENT diffuser la diffusion publique
Intentions en réponse aux événements système appropriés. Une liste des intentions de diffusion requises est fournie dans
Appendice B; cependant, notez que le SDK peut définir des intentions de diffusion supplémentaires, qui DOIVENT également être
honoré.
3.3. Compatibilité API native
Le code géré exécuté dans Dalvik peut appeler le code natif fourni dans le fichier .apk de l'application en tant que fichier ELF
.so compilé pour l'architecture matérielle du périphérique approprié. Les implémentations d'appareils DOIVENT inclure
prise en charge du code s'exécutant dans l'environnement géré pour appeler le code natif, à l'aide de la norme Java
Sémantique de l'interface native (JNI). Les API suivantes doivent être disponibles pour le code natif :
• libc (bibliothèque C)
• libm (bibliothèque mathématique)
• Interface JNI
• libz (compression Zlib)
• liblog (journalisation Android)
• Prise en charge minimale de C++
• OpenGL ES 1.1
Ces bibliothèques DOIVENT être compatibles avec la source (c'est-à-dire compatibles avec l'en-tête) et compatibles avec le binaire (pour un
architecture de processeur) avec les versions fournies dans Bionic par le projet Android Open Source. Depuis
les implémentations Bionic ne sont pas entièrement compatibles avec d'autres implémentations telles que GNU C
bibliothèque, les implémenteurs d'appareils DEVRAIENT utiliser l'implémentation Android. Si les implémenteurs d'appareils utilisent un
implémentation différente de ces bibliothèques, elles doivent assurer la compatibilité des en-têtes et des binaires.
La compatibilité du code natif est difficile. Pour cette raison, nous souhaitons répéter que les implémenteurs d'appareils sont
TRÈS vivement encouragé à utiliser les implémentations en amont des bibliothèques répertoriées ci-dessus, pour aider
assurer la compatibilité.
3.4. Compatibilité API Web
De nombreux développeurs et applications s'appuient sur le comportement de la classe android.webkit.WebView [ Resources ,
11] pour leurs interfaces utilisateur, l'implémentation de WebView doit donc être compatible sur Android
implémentations. L'implémentation Android Open Source utilise la version du moteur de rendu WebKit pour
mettre en œuvre le WebView.
Parce qu'il n'est pas possible de développer une suite de tests complète pour un navigateur Web, les implémenteurs d'appareils
DOIT utiliser la version amont spécifique de WebKit dans l'implémentation de WebView. Spécifiquement:
• WebView DOIT utiliser la version 528.5+ WebKit de l'arborescence Open Source Android en amont pour
Android 1.6. Cette version inclut un ensemble spécifique de fonctionnalités et de correctifs de sécurité pour WebView.
• La chaîne de l'agent utilisateur signalée par WebView DOIT être au format suivant :
Mozilla/5.0 (Linux ; U ; Android 1.6 ; <langue>-<pays> ; <appareil
nom> ; Build/<build ID>) AppleWebKit/528.5+ (KHTML, comme Gecko)
Version/3.1.2 Mobile Safari/525.20.1
◦ La chaîne "<nom de l'appareil>" DOIT être identique à la valeur de
android.os.Build.MODEL
◦ La chaîne "<build ID>" DOIT être la même que la valeur pour android.os.Build.ID.
◦ Les chaînes "<langue>" et "<pays>" DEVRAIENT suivre les conventions habituelles
le code de pays et la langue, et DOIVENT faire référence aux paramètres régionaux actuels de l'appareil au
moment de la demande.
Les mises en œuvre PEUVENT expédier une chaîne d'agent utilisateur personnalisée dans l'application de navigateur autonome. Qu'est-ce que
De plus, le navigateur autonome PEUT être basé sur une autre technologie de navigateur (telle que Firefox,
Opera, etc.) Cependant, même si une autre application de navigateur est livrée, le composant WebView
fourni aux applications tierces DOIT être basé sur WebKit, comme ci-dessus.
L'application de navigateur autonome DEVRAIT inclure la prise en charge de Gears [ Ressources, 12] et PEUT
inclure la prise en charge de tout ou partie de HTML5.
3.5. Compatibilité comportementale de l'API
Les comportements de chacun des types d'API (gérées, logicielles, natives et Web) doivent être cohérents avec les
implémentation préférée d'Android disponible à partir du projet Open Source Android.
Certains domaines de compatibilité spécifiques sont :
• Les appareils NE DOIVENT PAS modifier le comportement ou la signification d'une intention standard
• Les appareils NE DOIVENT PAS modifier le cycle de vie ou la sémantique du cycle de vie d'un type particulier de système
composant (tel que Service, Activity, ContentProvider, etc.)
• Les appareils NE DOIVENT PAS modifier la sémantique d'une autorisation particulière
La liste ci-dessus n'est pas exhaustive et il incombe aux implémenteurs d'appareils de garantir le comportement
compatibilité. Pour cette raison, les implémenteurs d'appareils DEVRAIENT utiliser le code source disponible via le
Projet Open Source Android dans la mesure du possible, plutôt que de réimplémenter des parties importantes du système.
La suite de tests de compatibilité (CTS) teste des parties importantes de la plate-forme pour la compatibilité comportementale,
mais pas tout. Il est de la responsabilité de l'implémenteur d'assurer la compatibilité comportementale avec l'Android
Projet OpenSource.
3.6. Espaces de noms d'API
Android suit les conventions d'espace de noms de package et de classe définies par la programmation Java
Langue. Pour assurer la compatibilité avec les applications tierces, les implémenteurs d'appareils NE DOIVENT PAS
toute modification interdite (voir ci-dessous) de ces espaces de noms de package :
• java.*
• javax.*
• Soleil.*
• Android.*
• com.android.*
Les modifications interdites incluent :
• Les implémentations d'appareils NE DOIVENT PAS modifier les API exposées publiquement sur la plate-forme Android.
en modifiant les signatures de méthode ou de classe, ou en supprimant des classes ou des champs de classe.
• Les implémenteurs d'appareils PEUVENT modifier l'implémentation sous-jacente des API, mais de telles
les modifications NE DOIVENT PAS affecter le comportement déclaré et la signature en langage Java de tout
API exposées publiquement.
• Les implémenteurs d'appareils NE DOIVENT PAS ajouter d'éléments exposés publiquement (tels que des classes ou
interfaces, champs ou méthodes aux classes ou interfaces existantes) aux API ci-dessus.
Un "élément publiquement exposé" est toute construction qui n'est pas décorée du marqueur "@hide" dans le
code source Android en amont. En d'autres termes, les implémenteurs d'appareils NE DOIVENT PAS exposer de nouvelles API ou
modifier les API existantes dans les espaces de noms indiqués ci-dessus. Les implémenteurs d'appareils PEUVENT faire des
modifications, mais ces modifications NE DOIVENT PAS être annoncées ou autrement exposées aux développeurs.
Les implémenteurs d'appareils PEUVENT ajouter des API personnalisées, mais ces API NE DOIVENT PAS appartenir à un espace de noms
par ou se référant à une autre organisation. Par exemple, les implémenteurs d'appareils NE DOIVENT PAS ajouter d'API au
com.google.* ou espace de noms similaire ; seul Google peut le faire. De même, Google NE DOIT PAS ajouter d'API à
les espaces de noms d'autres sociétés.
Si un implémenteur de périphérique propose d'améliorer l'un des espaces de noms de package ci-dessus (par exemple en ajoutant
une nouvelle fonctionnalité utile à une API existante ou l'ajout d'une nouvelle API), l'implémenteur DEVRAIT visiter
source.android.com et commencez le processus de contribution aux modifications et au code, conformément à la
informations sur ce site.
Notez que les restrictions ci-dessus correspondent aux conventions standard pour nommer les API dans Java
langage de programmation; cette section vise simplement à renforcer ces conventions et à les rendre contraignantes
par inclusion dans cette définition de compatibilité.
3.7. Compatibilité des machines virtuelles
Un appareil Android compatible doit prendre en charge la spécification complète du bytecode Dalvik Executable (DEX) et
Sémantique de la machine virtuelle Dalvik [Ressources, 13].
3.8. Compatibilité de l'interface utilisateur
La plate-forme Android comprend certaines API de développeur qui permettent aux développeurs de se connecter à l'utilisateur du système
interface. Les implémentations d'appareils DOIVENT incorporer ces API d'interface utilisateur standard dans des interfaces utilisateur personnalisées
ils se développent, comme expliqué ci-dessous.
3.8.1. Widget
Android définit un type de composant et l'API et le cycle de vie correspondants qui permettent aux applications d'exposer
un "AppWidget" à l'utilisateur final [Ressources , 14] . La version de référence Android Open Source inclut une
Application de lancement comprenant des éléments d'interface utilisateur permettant à l'utilisateur d'ajouter, d'afficher et de supprimer
AppWidgets depuis l'écran d'accueil.
Les implémenteurs d'appareils PEUVENT substituer une alternative au lanceur de référence (c'est-à-dire l'écran d'accueil).
Les lanceurs alternatifs DEVRAIENT inclure la prise en charge intégrée des AppWidgets et exposer l'interface utilisateur
éléments pour ajouter, afficher et supprimer des AppWidgets directement dans le lanceur. Lanceurs alternatifs MAI
omettre ces éléments d'interface utilisateur ; cependant, s'ils sont omis, l'implémenteur de l'appareil DOIT fournir un
application distincte accessible depuis le lanceur qui permet aux utilisateurs d'ajouter, d'afficher et de supprimer
Widgets d'application.
3.8.2. Avis
Android inclut des API qui permettent aux développeurs d'informer les utilisateurs d'événements notables [Ressources, 15]. Appareil
les implémenteurs DOIVENT fournir la prise en charge de chaque classe de notification ainsi définie ; spécifiquement : les sons,
vibration, lumière et barre d'état.
De plus, l'implémentation DOIT rendre correctement et toutes les ressources (icônes, fichiers audio, etc.)
fournies dans les API [Ressources, 7], ou dans le guide de style d'icône de la barre d'état [Ressources , 16]. Appareil
les implémenteurs PEUVENT fournir une expérience utilisateur alternative pour les notifications que celle fournie par le
référencer l'implémentation Android Open Source ; cependant, ces systèmes de notification alternatifs DOIVENT
prendre en charge les ressources de notification existantes, comme ci-dessus.
3.8.3. Rechercher
Android inclut des API [Ressources, 17] qui permettent aux développeurs d'intégrer la recherche dans leurs applications,
et exposent les données de leur application dans la recherche globale du système. De manière générale, cette fonctionnalité
se compose d'une interface utilisateur unique à l'échelle du système qui permet aux utilisateurs d'entrer des requêtes, affiche des suggestions
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
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
- 1. Introduction
- 2. Resources
- 3. Software
- 4. Reference Software Compatibility
- 5. Application Packaging Compatibility
- 6. Multimedia Compatibility
- 7. Developer Tool Compatibility
- 8. Hardware Compatibility
- 9. Performance Compatibility
- 10. Security Model Compatibility
- 11. Compatibility Test Suite
- 12. Contact Us
- Appendix A: Required Application Intents