Definición de compatibilidad con Android 1.6

Definición de compatibilidad con Android: Android 1.6
Android 1.6 r2
Corporación Google.
compatibilidad@android.com

Tabla de contenido
1. Introducción ............................................... .................................................... .................... 4
2. Recursos ............................................... .................................................... ..................... 4
3. Software ............................................... .................................................... ........................ 5
3.1. Compatibilidad de API administrada ............................................... .................................... 5
3.2. Compatibilidad con API suave .................................................. ............................................. 6
3.2.1. Permisos.................................................. .................................................... ... 6
3.2.2. Parámetros de construcción .................................................. ............................................. 6
3.2.3. Compatibilidad de intenciones .................................................. .......................................... 8
3.2.3.1. Intenciones principales de la aplicación ............................................... ............................. 8
3.2.3.2. Anulaciones de intenciones .................................................. ....................................... 8
3.2.3.3. Espacios de nombres de intenciones................................................. .................................... 8
3.2.3.4. Intentos de transmisión ................................................ ...................................... 9
3.3. Compatibilidad con la API nativa .............................................. ....................................... 9
3.4. Compatibilidad con la API web .............................................. ............................................. 9
3.5. Compatibilidad de comportamiento de API.................................................. ............................. 10
3.6. Espacios de nombres de la API................................................. .................................................... .10
3.7. Compatibilidad de máquinas virtuales .............................................. ............................. 11
3.8. Compatibilidad de la interfaz de usuario ............................................... ............................... 11

3.8.1. Widgets .................................................. .................................................... ........ 11
3.8.2. Notificaciones .................................................. .................................................... 12
3.8.3. Buscar ................................................. .................................................... .......... 12
3.8.4. tostadas.................................................. .................................................... .......... 12

4. Compatibilidad del software de referencia ............................................. ............................. 12
5. Compatibilidad del paquete de aplicaciones ............................................... .......................... 13
6. Compatibilidad multimedia.................................................... ............................................. 13
7. Compatibilidad con la herramienta de desarrollador.................................... .......................................... 14
8. Compatibilidad de hardware ............................................. ................................................ 15
8.1. Mostrar ................................................. .................................................... ................ 15
8.1.1. Configuraciones de pantalla estándar ............................................... .................. 15
8.1.2. Configuraciones de pantalla no estándar ............................................. ............ dieciséis
8.1.3. Métricas de visualización.................................................. ............................................... dieciséis

8.2. Teclado ................................................. .................................................... ............ dieciséis
8.3. Navegación no táctil .............................................. ............................................ dieciséis
8.4. Orientación de la pantalla................................................ .......................................... 17
8.5. Entrada de pantalla táctil................................................. .......................................... 17
8.6. USB ................................................. .................................................... ..................... 17
8.7. Teclas de navegación .................................................. .................................................... .. 17
8.8. Wifi ................................................. .................................................... ..................... 17
8.9. Cámara .................................................. .................................................... ............... 18
8.9.1. Cámaras sin enfoque automático .............................................. ............................... 18
8.10. Acelerómetro.................................................. .................................................... .. 18
8.11. Brújula ................................................. .................................................... .......... 19
8.12. GPS ................................................. .................................................... ................... 19
8.13. Telefonía................................................. .................................................... ........ 19
8.14. Controles de volumen.................................................. .................................................... 19

9. Compatibilidad de rendimiento ............................................... .......................................... 19
10. Compatibilidad del modelo de seguridad ............................................. ...................................... 20
10.1. Permisos .................................................. .................................................... ..... 20
10.2. Aislamiento de usuarios y procesos .............................................. ............................... 20
10.3. Permisos del sistema de archivos .................................................. ..................................... 21
11. Conjunto de pruebas de compatibilidad ............................................. ............................................. 21

12. Contáctenos .............................................. .................................................... .......... 21
Apéndice A: Intenciones de aplicación requeridas ........................................... ....................... 22
Apéndice B: Intentos de transmisión requeridos ........................................... .......................... 0
Apéndice C: Consideraciones futuras.................................................. .................................... 0

1. Dispositivos no telefónicos ............................................. ............................................... 30
2. Compatibilidad Bluetooth .............................................. ............................................. 30
3. Componentes de hardware requeridos ............................................... ............................. 30
4. Ejemplos de aplicaciones .............................................. ............................................... 30
5. Pantallas táctiles .............................................. .................................................... ......... 30
6. Rendimiento................................................... .................................................... ............. 31

1. Introducción
Este documento enumera los requisitos que se deben cumplir para que los teléfonos móviles sean
compatible con Android 1.6. Esta definición asume familiaridad con el Programa de compatibilidad de Android
[Recursos, 1].
El uso de "debe", "no debe", "requerido", "deberá", "no deberá", "debería", "no debería", "recomendado",
"puede" y "opcional" son según el estándar IETF definido en RFC2119 [ Recursos , 2].
Tal como se utiliza en este documento, un "implementador de dispositivos" o "implementador" es una persona u organización que desarrolla
una solución de hardware/software con Android 1.6. Una "implementación de dispositivo" o "implementación" es la
solución de hardware/software así desarrollada.
Para ser considerado compatible con Android 1.6, implementaciones de dispositivos:
1. DEBE cumplir con los requisitos presentados en esta Definición de compatibilidad, incluidos los documentos
incorporado por referencia.
2. DEBE aprobar el conjunto de pruebas de compatibilidad de Android (CTS) disponible como parte de Android Open
Proyecto Fuente [ Recursos , 3]. El CTS prueba la mayoría, pero no todos , los componentes descritos en este
documento.
Cuando esta definición o el CTS sea silencioso, ambiguo o incompleto, es responsabilidad del dispositivo
implementador para garantizar la compatibilidad con las implementaciones existentes. Por esta razón, Android Open
Source Project [ Resources , 4] es tanto la referencia como la implementación preferida de Android. Dispositivo
Se recomienda encarecidamente a los implementadores que basen sus implementaciones en el código fuente "upstream"
disponible en el proyecto de código abierto de Android. Mientras que algunos componentes hipotéticamente pueden ser reemplazados
con implementaciones alternativas, se desaconseja encarecidamente esta práctica, ya que pasar las pruebas CTS se volverá
sustancialmente más difícil. Es responsabilidad del implementador garantizar la total compatibilidad de comportamiento con
la implementación estándar de Android, incluida y más allá de la suite de prueba de compatibilidad.
2. Recursos
Esta definición de compatibilidad hace referencia a una serie de recursos que se pueden obtener aquí.
1. Descripción general del programa de compatibilidad de Android: https://sites.google.com/a/android.com/compatibility/
cómo funciona
2. Niveles de requisitos de IETF RFC2119: http://www.ietf.org/rfc/rfc2119.txt
3. Conjunto de pruebas de compatibilidad: http://sites.google.com/a/android.com/compatibility/compatibility-test-
suite--cts
4. Proyecto de código abierto de Android: http://source.android.com/
5. Definiciones y documentación de la API: http://developer.android.com/reference/packages.html
6. Proveedores de contenido: http://code.google.com/android/reference/android/provider/package-
resumen.html
7. Recursos disponibles: http://code.google.com/android/reference/disponible-resources.html
8. Archivos de manifiesto de Android: http://code.google.com/android/devel/bblocks-manifest.html
9. Referencia de permisos de Android: http://developer.android.com/reference/android/
Manifiesto.permiso.html
10. Constantes de compilación: http://developer.android.com/reference/android/os/Build.html
11. WebView: http://developer.android.com/reference/android/webkit/WebView.html
12. Extensiones del navegador Gears: http://code.google.com/apis/gears/

13. Especificación de la máquina virtual Dalvik, que se encuentra en el directorio dalvik/docs de un código fuente
verificar; también disponible en http://android.git.kernel.org/?p=platform/
dalvik.git;a=árbol;f=docs;h=3e2ddbcaf7f370246246f9f03620a7caccbfcb12;hb=CABEZA

14. AppWidgets: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
15. Notificaciones: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
16. Guía de estilo de iconos de la barra de estado: http://developer.android.com/guide/practices/ui_guideline
/icon_design.html#statusbarestructura
17. Administrador de búsqueda: http://developer.android.com/reference/android/app/SearchManager.html
18. Brindis: http://developer.android.com/reference/android/widget/Toast.html
19. Aplicaciones para Android: http://code.google.com/p/apps-for-android
20. Descripción del archivo apk de Android: http://developer.android.com/guide/topics/fundamentals.html
21. Puente de depuración de Android (adb): http://code.google.com/android/reference/adb.html
22. Servicio de monitoreo de depuración de Dalvik (ddms): http://code.google.com/android/reference/ddms.html
23. Mono: http://developer.android.com/guide/developing/tools/monkey.html
24. Documentación de independencia de pantalla:
25. Constantes de configuración: http://developer.android.com/reference/android/content/res/
Configuración.html
26. Métricas de visualización: http://developer.android.com/reference/android/util/DisplayMetrics.html
27. Cámara: http://developer.android.com/reference/android/hardware/Camera.html
28. Espacio de coordenadas del sensor: http://developer.android.com/reference/android/hardware/
SensorEvent.html
29. Referencia de seguridad y permisos de Android: http://developer.android.com/guide/topics/security/
seguridad.html
Muchos de estos recursos se derivan directa o indirectamente del SDK de Android 1.6 y serán
funcionalmente idéntico a la información en la documentación de ese SDK. En todos los casos en que esto
La definición de compatibilidad no está de acuerdo con la documentación del SDK, se considera la documentación del SDK
autoritario. Todos los detalles técnicos proporcionados en las referencias incluidas anteriormente se consideran por inclusión
ser parte de esta Definición de Compatibilidad.
3. Software
La plataforma Android incluye un conjunto de API administradas ("duras") y un cuerpo de las denominadas API "suaves".
como el sistema Intent, las API de código nativo y las API de aplicaciones web. Esta sección detalla las duras y
API blandas que son parte integral de la compatibilidad, así como otras interfaces técnicas y de usuario relevantes
comportamientos Las implementaciones de dispositivos DEBEN cumplir con todos los requisitos de esta sección.
3.1. Compatibilidad de API administrada
El entorno de ejecución administrado (basado en Dalvik) es el vehículo principal para las aplicaciones de Android. Él
La interfaz de programación de aplicaciones (API) de Android es el conjunto de interfaces de la plataforma Android expuestas a
aplicaciones que se ejecutan en el entorno de VM administrado. Las implementaciones de dispositivos DEBEN proporcionar
implementaciones, incluidos todos los comportamientos documentados, de cualquier API documentada expuesta por Android
1.6 SDK, como:
1. API básicas de Android en lenguaje Java [Recursos, 5].
2. Proveedores de contenido [Recursos , 6].
3. Recursos [Recursos, 7].
4. Atributos y elementos de AndroidManifest.xml [Recursos, 8].

Las implementaciones de dispositivos NO DEBEN omitir ninguna API administrada, alterar interfaces o firmas de API, desviarse
del comportamiento documentado, o incluir no-ops, excepto donde lo permita específicamente esta Compatibilidad
Definición.
3.2. Compatibilidad con API suave
Además de las API administradas de la Sección 3.1, Android también incluye un importante "soft" solo en tiempo de ejecución
API, en forma de cosas tales como Intents, permisos y aspectos similares de las aplicaciones de Android
que no se puede aplicar en el momento de la compilación de la aplicación. Esta sección detalla las API y el sistema "suaves"
comportamientos necesarios para la compatibilidad con Android 1.6. Las implementaciones de dispositivos DEBEN cumplir con todos los
requisitos presentados en esta sección.
3.2.1. permisos
Los implementadores de dispositivos DEBEN respaldar y hacer cumplir todas las constantes de permisos según lo documentado por el
Página de referencia de permisos [ Recursos , 9]. Tenga en cuenta que la Sección 10 enumera los requisitos adicionales relacionados con
el modelo de seguridad de Android.
3.2.2. Parámetros de construcción
Las API de Android incluyen una serie de constantes en la clase android.os.Build [Resources, 10] que son
destinado a describir el dispositivo actual. Para proporcionar valores coherentes y significativos en todos los dispositivos
implementaciones, la siguiente tabla incluye restricciones adicionales sobre los formatos de estos valores a los que
las implementaciones del dispositivo DEBEN cumplir.
Parámetro
Comentarios
La versión del sistema Android actualmente en ejecución, en human-
android.os.Build.VERSIÓN.RELEASE
formato legible. Para Android 1.6, este campo DEBE tener el valor de cadena
"1.6".
La versión del sistema Android que se está ejecutando actualmente, en un formato
android.os.Build.VERSIÓN.SDK
accesible al código de aplicación de terceros. Para Android 1.6, este campo
DEBE tener el valor entero 4.
Un valor elegido por el implementador del dispositivo que designa la compilación específica
del sistema Android actualmente en ejecución, en formato legible por humanos.
Este valor NO DEBE reutilizarse para diferentes compilaciones enviadas al final
Usuarios de android.os.Build.VERSION.INCREMENTAL. Un uso típico de este campo es indicar qué número de compilación o
El identificador de cambio de control de fuente se usó para generar la compilación. Allí
no hay requisitos sobre el formato específico de este campo, excepto que
NO DEBE ser nulo o la cadena vacía ("").
Un valor elegido por el implementador del dispositivo que identifica el interno específico
hardware utilizado por el dispositivo, en formato legible por humanos. Un posible uso
android.os.Build.BOARD
de este campo es para indicar la revisión específica de la placa que alimenta el
dispositivo. No hay requisitos sobre el formato específico de este campo,
excepto que NO DEBE ser nulo o la cadena vacía ("").
Un valor elegido por el implementador del dispositivo que identifica el nombre del
android.os.Build.MARCA
empresa, organización, individuo, etc. que produjo el dispositivo, en
formato legible por humanos. Un posible uso de este campo es indicar el OEM

y/o el proveedor que vendió el dispositivo. No hay requisitos en el
formato específico de este campo, excepto que NO DEBE ser nulo o el vacío
cuerda ("").
Un valor elegido por el implementador del dispositivo que identifica el
configuración o revisión del cuerpo (a veces llamado "industrial
android.os.Build.DISPOSITIVO
diseño") del dispositivo. No hay requisitos sobre el formato específico
de este campo, excepto que NO DEBE ser nulo o la cadena vacía ("").
Una cadena que identifica de forma única esta compilación. DEBE ser razonablemente
legible por humanos. DEBE seguir esta plantilla:
$(PRODUCTO_MARCA)/$(PRODUCTO_NOMBRE)/$(PRODUCTO_DISPOSITIVO)/
$(TARGET_BOOTLOADER_BOARD_NAME):$(PLATFORM_VERSION)/
$(BUILD_ID)/$(BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/
android.os.Build.FINGERPRINT
$(BUILD_VERSION_TAGS)
Por ejemplo: acme/mydevicel/generic/generic:Donut/ERC77/
3359: depuración de usuario/teclas de prueba
La huella digital NO DEBE incluir espacios. Si otros campos incluidos en el
la plantilla anterior tiene espacios, DEBERÍAN ser reemplazados con el ASCII
carácter de subrayado ("_") en la huella digital.
Una cadena que identifica de forma única el host en el que se creó la compilación, en humanos
android.os.Build.HOST
formato legible. No hay requisitos sobre el formato específico de este
campo, excepto que NO DEBE ser nulo o la cadena vacía ("").
Un identificador elegido por el implementador del dispositivo para referirse a un
lanzamiento, en formato legible por humanos. Este campo puede por lo mismo que
android.os.Build.VERSION.INCREMENTAL, pero DEBERÍA ser un valor
android.os.Build.ID
destinado a ser algo significativo para los usuarios finales. No existen
requisitos sobre el formato específico de este campo, excepto que NO DEBE
ser nulo o la cadena vacía ("").
Un valor elegido por el implementador del dispositivo que contiene el nombre del
dispositivo tal como lo conoce el usuario final. Este DEBE ser el mismo nombre
android.os.Build.MODELO
bajo el cual el dispositivo se comercializa y vende a los usuarios finales. No existen
requisitos sobre el formato específico de este campo, excepto que NO DEBE
ser nulo o la cadena vacía ("").
Un valor elegido por el implementador del dispositivo que contiene el desarrollo.
nombre o nombre en clave del dispositivo. DEBE ser legible por humanos, pero no es
android.os.Build.PRODUCTO
necesariamente destinado a ser visto por los usuarios finales. No hay requisitos
en el formato específico de este campo, excepto que NO DEBE ser nulo o el
cuerda vacía ("").
Una lista separada por comas de etiquetas elegidas por el implementador del dispositivo que
distinguir aún más la construcción. Por ejemplo, "sin firmar, depurar". Este campo
android.os.Build.ETIQUETAS
NO DEBE ser nulo o la cadena vacía (""), sino una sola etiqueta (como
"liberar") está bien.
android.os.Build.TIEMPO
Un valor que representa la marca de tiempo de cuando se produjo la compilación.
Un valor elegido por el implementador del dispositivo que especifica el tiempo de ejecución
configuración de la construcción. Este campo DEBE tener uno de los valores
android.os.Build.TYPE
correspondiente a las tres configuraciones típicas de tiempo de ejecución de Android: "usuario",
"depuración de usuario" o "eng".
Un nombre o ID de usuario del usuario (o usuario automatizado) que generó el
android.os.Build.USUARIO
construir. No hay requisitos sobre el formato específico de este campo,
excepto que NO DEBE ser nulo o la cadena vacía ("").

3.2.3. Compatibilidad de intención
Android usa Intents para lograr una integración débilmente acoplada entre aplicaciones. Esta sección describe
requisitos relacionados con los patrones de intención que DEBEN ser respetados por las implementaciones de dispositivos. Por
"honrado", significa que el implementador del dispositivo DEBE proporcionar una Actividad, Servicio u otra actividad de Android
componente que especifica un filtro de intención coincidente y se vincula e implementa el comportamiento correcto para cada
patrón de intención especificado.
3.2.3.1. Intenciones de aplicaciones principales
El proyecto ascendente de Android define una serie de aplicaciones básicas, como un marcador de teléfono, calendario,
libreta de contactos, reproductor de música, etc. Los implementadores de dispositivos PUEDEN reemplazar estas aplicaciones con
versiones alternativas.
Sin embargo, cualquier versión alternativa DEBE respetar los mismos patrones de intención proporcionados por el upstream
proyecto. (Por ejemplo, si un dispositivo contiene un reproductor de música alternativo, aún debe respetar el patrón de intención
emitido por aplicaciones de terceros para elegir una canción). Las implementaciones de dispositivos DEBEN admitir todos los patrones de intención
enumerados en el Apéndice A.
3.2.3.2. Anulaciones de intención
Como Android es una plataforma extensible, los implementadores de dispositivos DEBEN permitir cada patrón de intención descrito en
Apéndice A para ser anulado por aplicaciones de terceros. El proyecto upstream de código abierto de Android
permite esto por defecto; los implementadores de dispositivos NO DEBEN otorgar privilegios especiales a las aplicaciones del sistema.
el uso de estos patrones de intención, o evitar que las aplicaciones de terceros se vinculen y asuman el control de
estos patrones. Esta prohibición incluye específicamente deshabilitar la interfaz de usuario "Selector" que permite
el usuario puede seleccionar entre varias aplicaciones que manejan el mismo patrón de intención.
3.2.3.3. Espacios de nombres de intenciones
Los implementadores de dispositivos NO DEBEN incluir ningún componente de Android que respete cualquier intención nueva o
Patrones de intención de transmisión mediante una ACCIÓN, CATEGORÍA u otra cadena clave en el espacio de nombres android.*.
Los implementadores de dispositivos NO DEBEN incluir ningún componente de Android que respete cualquier intención nueva o
Patrones de intención de transmisión usando una ACCIÓN, CATEGORÍA u otra cadena clave en un espacio de paquete
perteneciente a otra organización. Los implementadores de dispositivos NO DEBEN alterar ni ampliar ninguna de las Intenciones
patrones listados en los Apéndices A o B.
Esta prohibición es análoga a la especificada para las clases de lenguaje Java en la Sección 3.6.

3.2.3.4. Intentos de difusión
Las aplicaciones de terceros dependen de la plataforma para transmitir ciertos Intents para notificarles los cambios en el
entorno de hardware o software. Los dispositivos compatibles con Android DEBEN transmitir la transmisión pública
Intentos en respuesta a los eventos del sistema apropiados. Se proporciona una lista de intenciones de transmisión requeridas en
Apéndice B; sin embargo, tenga en cuenta que el SDK puede definir intenciones de transmisión adicionales, que también DEBEN ser
honrado.
3.3. Compatibilidad de API nativa
El código administrado que se ejecuta en Dalvik puede llamar al código nativo proporcionado en el archivo .apk de la aplicación como un ELF
.so archivo compilado para la arquitectura de hardware del dispositivo adecuada. Las implementaciones de dispositivos DEBEN incluir
soporte para el código que se ejecuta en el entorno administrado para llamar al código nativo, utilizando el estándar Java
Semántica de interfaz nativa (JNI). Las siguientes API deben estar disponibles para el código nativo:
libc (biblioteca C)
libm (biblioteca matemática)
Interfaz JNI
libz (compresión Zlib)
liblog (registro de Android)
Soporte mínimo para C++
OpenGL ES 1.1
Estas bibliotecas DEBEN ser compatibles con la fuente (es decir, compatibles con encabezados) y compatibles con binarios (para un determinado
arquitectura del procesador) con las versiones proporcionadas en Bionic por el proyecto Android Open Source. Ya que
las implementaciones de Bionic no son totalmente compatibles con otras implementaciones como GNU C
biblioteca, los implementadores de dispositivos DEBERÍAN usar la implementación de Android. Si los implementadores de dispositivos utilizan un
implementación diferente de estas bibliotecas, deben garantizar la compatibilidad binaria y de encabezado.
La compatibilidad del código nativo es un desafío. Por esta razón, deseamos reiterar que los implementadores de dispositivos son
Se recomienda MUY encarecidamente utilizar las implementaciones anteriores de las bibliotecas enumeradas anteriormente, para ayudar
garantizar la compatibilidad.
3.4. Compatibilidad con API web
Muchos desarrolladores y aplicaciones confían en el comportamiento de la clase android.webkit.WebView [ Recursos ,
11] para sus interfaces de usuario, por lo que la implementación de WebView debe ser compatible con Android
implementaciones. La implementación de código abierto de Android utiliza la versión del motor de renderizado WebKit para
implementar el WebView.
Debido a que no es factible desarrollar un conjunto de pruebas completo para un navegador web, los implementadores de dispositivos
DEBE usar la compilación ascendente específica de WebKit en la implementación de WebView. Específicamente:
• WebView DEBE usar la compilación 528.5+ WebKit del árbol de código abierto de Android ascendente para
Android 1.6. Esta compilación incluye un conjunto específico de funciones y correcciones de seguridad para WebView.
• La cadena de agente de usuario informada por WebView DEBE estar en este formato:
Mozilla/5.0 (Linux; U; Android 1.6; <idioma>-<país>; <dispositivo
nombre>; Compilación/<ID de compilación>) AppleWebKit/528.5+ (KHTML, como Gecko)
Versión/3.1.2 Móvil Safari/525.20.1

◦ La cadena "<nombre del dispositivo>" DEBE ser el mismo que el valor para
android.os.Build.MODELO
◦ La cadena "<build ID>" DEBE ser igual al valor de android.os.Build.ID.
◦ Las cadenas "<idioma>" y "<país>" DEBEN seguir las convenciones habituales para
código de país e idioma, y ​​DEBERÍA hacer referencia a la configuración regional actual del dispositivo en el
momento de la solicitud.
Las implementaciones PUEDEN enviar una cadena de agente de usuario personalizada en la aplicación de navegador independiente. Qué
Además, el navegador independiente PUEDE estar basado en una tecnología de navegador alternativa (como Firefox,
Opera, etc.) Sin embargo, incluso si se envía una aplicación de navegador alternativa, el componente WebView
proporcionada a aplicaciones de terceros DEBE basarse en WebKit, como se indicó anteriormente.
La aplicación de navegador independiente DEBE incluir soporte para Gears [ Recursos, 12] y PUEDE
incluir soporte para parte o la totalidad de HTML5.
3.5. Compatibilidad de comportamiento de API
Los comportamientos de cada uno de los tipos de API (administrada, suave, nativa y web) deben ser coherentes con el
implementación preferida de Android disponible en el Proyecto de código abierto de Android.
Algunas áreas específicas de compatibilidad son:
• Los dispositivos NO DEBEN cambiar el comportamiento o el significado de un Intent estándar
• Los dispositivos NO DEBEN alterar el ciclo de vida o la semántica del ciclo de vida de un tipo particular de sistema
componente (como servicio, actividad, proveedor de contenido, etc.)
• Los dispositivos NO DEBEN cambiar la semántica de un permiso en particular
La lista anterior no es exhaustiva, y la responsabilidad recae en los implementadores de dispositivos para garantizar el comportamiento.
compatibilidad. Por esta razón, los implementadores de dispositivos DEBERÍAN utilizar el código fuente disponible a través del
Proyecto de código abierto de Android siempre que sea posible, en lugar de volver a implementar partes significativas del sistema.
Compatibility Test Suite (CTS) prueba partes significativas de la plataforma para compatibilidad de comportamiento,
pero no todos. Es responsabilidad del implementador garantizar la compatibilidad de comportamiento con Android.
Proyecto de código abierto.
3.6. Espacios de nombres de API
Android sigue las convenciones de espacio de nombres de paquetes y clases definidas por la programación de Java
idioma. Para garantizar la compatibilidad con aplicaciones de terceros, los implementadores de dispositivos NO DEBEN realizar
cualquier modificación prohibida (ver más abajo) a estos espacios de nombres de paquetes:
• java.*
• javax.*
• sol.*
• androide.*
• com.android.*
Las modificaciones prohibidas incluyen:
• Las implementaciones de dispositivos NO DEBEN modificar las API expuestas públicamente en la plataforma Android
cambiando cualquier método o firma de clase, o eliminando clases o campos de clase.

• Los implementadores de dispositivos PUEDEN modificar la implementación subyacente de las API, pero tal
las modificaciones NO DEBEN afectar el comportamiento declarado y la firma en lenguaje Java de cualquier
API expuestas públicamente.
• Los implementadores de dispositivos NO DEBEN agregar ningún elemento expuesto públicamente (como clases o
interfaces, campos o métodos a clases o interfaces existentes) a las API anteriores.
Un "elemento expuesto públicamente" es cualquier construcción que no esté decorada con el marcador "@hide" en el
código fuente de Android aguas arriba. En otras palabras, los implementadores de dispositivos NO DEBEN exponer nuevas API o
modificar las API existentes en los espacios de nombres mencionados anteriormente. Los implementadores de dispositivos PUEDEN hacer solo internos
modificaciones, pero esas modificaciones NO DEBEN publicitarse ni exponerse a los desarrolladores.
Los implementadores de dispositivos PUEDEN agregar API personalizadas, pero dichas API NO DEBEN estar en un espacio de nombres propiedad de
por o refiriéndose a otra organización. Por ejemplo, los implementadores de dispositivos NO DEBEN agregar API al
com.google.* o espacio de nombres similar; solo Google puede hacerlo. Del mismo modo, Google NO DEBE agregar API a
espacios de nombres de otras empresas.
Si un implementador de dispositivos propone mejorar uno de los espacios de nombres de paquetes anteriores (por ejemplo, agregando
nueva funcionalidad útil para una API existente, o agregando una nueva API), el implementador DEBE visitar
source.android.com y comenzar el proceso de contribución de cambios y código, de acuerdo con el
información en ese sitio.
Tenga en cuenta que las restricciones anteriores corresponden a las convenciones estándar para nombrar las API en Java.
lenguaje de programación; esta sección simplemente tiene como objetivo reforzar esas convenciones y hacerlas vinculantes
a través de la inclusión en esta definición de compatibilidad.
3.7. Compatibilidad de máquinas virtuales
Un dispositivo Android compatible debe admitir la especificación de código de bytes Dalvik Executable (DEX) completa y
Semántica de la máquina virtual de Dalvik [Recursos, 13].
3.8. Compatibilidad de la interfaz de usuario
La plataforma Android incluye algunas API de desarrollador que permiten a los desarrolladores conectarse con el usuario del sistema.
interfaz. Las implementaciones de dispositivos DEBEN incorporar estas API de interfaz de usuario estándar en interfaces de usuario personalizadas
se desarrollan, como se explica a continuación.
3.8.1. Widgets
Android define un tipo de componente y la API y el ciclo de vida correspondientes que permiten que las aplicaciones expongan
un "AppWidget" para el usuario final [Recursos , 14] . La versión de referencia de código abierto de Android incluye una
Aplicación de inicio que incluye elementos de la interfaz de usuario que permiten al usuario agregar, ver y eliminar
AppWidgets desde la pantalla de inicio.
Los implementadores de dispositivos PUEDEN sustituir una alternativa al lanzador de referencia (es decir, la pantalla de inicio).
Los lanzadores alternativos DEBERÍAN incluir soporte integrado para AppWidgets y exponer la interfaz de usuario
elementos para agregar, ver y eliminar AppWidgets directamente dentro del Iniciador. Lanzadores alternativos MAYO
omita estos elementos de la interfaz de usuario; sin embargo, si se omiten, el implementador del dispositivo DEBE proporcionar una
aplicación separada accesible desde el Lanzador que permite a los usuarios agregar, ver y eliminar
Widgets de aplicaciones.

3.8.2. Notificaciones
Android incluye API que permiten a los desarrolladores notificar a los usuarios sobre eventos notables [Recursos, 15]. Dispositivo
los implementadores DEBEN proporcionar soporte para cada clase de notificación así definida; específicamente: sonidos,
vibración, luz y barra de estado.
Además, la implementación DEBE representar correctamente y todos los recursos (iconos, archivos de sonido, etc.)
previsto en las API [Recursos, 7], o en la guía de estilo del icono de la barra de estado [Recursos , 16]. Dispositivo
Los implementadores PUEDEN proporcionar una experiencia de usuario alternativa para las notificaciones que la proporcionada por el
referencia a la implementación de código abierto de Android; sin embargo, dichos sistemas de notificación alternativos DEBEN
admitir los recursos de notificación existentes, como se indicó anteriormente.
3.8.3. Buscar
Android incluye API [Recursos, 17] que permiten a los desarrolladores incorporar la búsqueda en sus aplicaciones,
y exponer los datos de su aplicación en la búsqueda del sistema global. En términos generales, esta funcionalidad
consiste en una única interfaz de usuario para todo el sistema que permite a los usuarios ingresar consultas, mostrar sugerencias
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