Android 1.6r2
Google inc.
compatibilità@android.com
Sommario
1. Introduzione ............................................... .................................................. .................. 4
2. Risorse ...................................................... .................................................. ..................... 4
3. Software .................................................. .................................................. ........................ 5
3.1. Compatibilità API gestite ................................................ .................................... 5
3.2. Compatibilità dell'API soft ................................................ ............................................. 6
3.2.1. Autorizzazioni................................................. .................................................. ... 6
3.2.2. Parametri di costruzione .................................................. ............................................. 6
3.2.3. Compatibilità degli intenti .................................................. ............................................. 8
3.2.3.1. Principali intenti dell'applicazione .................................................. ............................. 8
3.2.3.2. Sostituzioni di intenti .................................................. ............................................. 8
3.2.3.3. Spazi dei nomi di intenti................................................ .................................... 8
3.2.3.4. Intenti di trasmissione .................................................. ....................................... 9
3.3. Compatibilità API nativa ................................................ ............................................. 9
3.4. Compatibilità dell'API Web ................................................ ............................................. 9
3.5. Compatibilità comportamentale dell'API.............................................. ................................ 10
3.6. Spazi dei nomi API................................................ .................................................. 10
3.7. Compatibilità con le macchine virtuali ................................................ ........................... 11
3.8. Compatibilità dell'interfaccia utente ................................................... .................................. 11
3.8.1. Widget .................................................. .................................................. ........ 11
3.8.2. Notifiche .................................................. .................................................. 12
3.8.3. Ricerca ................................................. .................................................. .......... 12
3.8.4. Toast................................................. .................................................. ........... 12
4. Compatibilità del software di riferimento ............................................. ................................ 12
5. Compatibilità dell'imballaggio dell'applicazione ............................................. .......................... 13
6. Compatibilità multimediale................................................ ............................................. 13
7. Compatibilità dello strumento per sviluppatori................................................ ........................................ 14
8. Compatibilità hardware ................................................... ................................................ 15
8.1. Schermo ................................................. .................................................. ................ 15
8.1.1. Configurazioni display standard ................................................ .................. 15
8.1.2. Configurazioni display non standard ................................................ ............ 16
8.1.3. Metriche di visualizzazione................................................ ............................................. 16
8.2. Tastiera ................................................. .................................................. ............ 16
8.3. Navigazione senza touch .................................................. ............................................. 16
8.4. Orientamento schermo................................................ ................................................ 17
8.5. Ingresso touchscreen................................................ ................................................ 17
8.6. USB ................................................. .................................................. ..................... 17
8.7. Tasti di navigazione ................................................... .................................................. .. 17
8.8. Wi-Fi ................................................. .................................................. ..................... 17
8.9. Telecamera ................................................. .................................................. ............. 18
8.9.1. Fotocamere senza messa a fuoco automatica ...................................... .................................. 18
8.10. Accelerometro................................................. .................................................. .. 18
8.11. Bussola ................................................................ .................................................. .......... 19
8.12. GPS ................................................. .................................................. .................... 19
8.13. Telefonia................................................. .................................................. ......... 19
8.14. Controlli del volume................................................. .................................................. 19
9. Compatibilità delle prestazioni................................................ ............................................. 19
10. Compatibilità del modello di sicurezza ............................................. ....................................... 20
10.1. Autorizzazioni .................................................. .................................................. ..... 20
10.2. Isolamento di utenti e processi ............................................. .................................. 20
10.3. Autorizzazioni del filesystem................................................ ........................................ 21
11. Suite di test di compatibilità ............................................. ............................................. 21
12. Contattaci .................................................. .................................................. ................. 21
Appendice A: Intenti dell'applicazione richiesti ............................................. ....................... 22
Appendice B: Intenti di trasmissione richiesti ............................................. .......................... 0
Appendice C: Considerazioni future................................................ .................................... 0
1. Dispositivi non telefonici ................................................ ............................................. 30
2. Compatibilità Bluetooth ................................................... ............................................. 30
3. Componenti hardware richiesti................................................ ............................. 30
4. Esempi di applicazioni .................................................. .................................................. 30
5. Schermi tattili .................................................. .................................................. ......... 30
6. Prestazioni................................................. .................................................. ............ 31
1. Introduzione
Questo documento enumera i requisiti che devono essere soddisfatti affinché i telefoni cellulari lo siano
compatibile con Android 1.6. Questa definizione presuppone la familiarità con il programma di compatibilità Android
[Risorse, 1].
L'uso di "deve", "non deve", "richiesto", "deve", "non deve", "dovrebbe", "non dovrebbe", "raccomandato",
"may" e "optional" sono conformi allo standard IETF definito in RFC2119 [ Risorse , 2].
Come utilizzato in questo documento, un "implementatore di dispositivi" o "implementatore" è una persona o un'organizzazione in fase di sviluppo
una soluzione hardware/software con Android 1.6. Una "implementazione del dispositivo" o "implementazione" è il
soluzione hardware/software così sviluppata.
Per essere considerato compatibile con Android 1.6, implementazioni del dispositivo:
1. DEVE soddisfare i requisiti presentati nella presente Definizione di compatibilità, inclusi eventuali documenti
incorporato tramite riferimento.
2. DEVE superare l'Android Compatibility Test Suite (CTS) disponibile come parte di Android Open
Fonte Progetto [ Risorse , 3]. Il CTS testa la maggior parte, ma non tutti , i componenti descritti in questo documento
documento.
Dove questa definizione o il CTS è muto, ambiguo o incompleto, è responsabilità del dispositivo
implementatore per garantire la compatibilità con le implementazioni esistenti. Per questo motivo, Android Open
Source Project [ Risorse , 4] è sia il riferimento che l'implementazione preferita di Android. Dispositivo
gli implementatori sono fortemente incoraggiati a basare le loro implementazioni sul codice sorgente "upstream".
disponibile da Android Open Source Project. Mentre alcuni componenti possono essere ipoteticamente sostituiti
con implementazioni alternative questa pratica è fortemente sconsigliata, poiché lo diventerà il superamento dei test CTS
sostanzialmente più difficile. È responsabilità dell'implementatore garantire la piena compatibilità comportamentale con
l'implementazione standard di Android, inclusa e oltre la Compatibility Test Suite.
2. Risorse
Questa definizione di compatibilità fa riferimento a una serie di risorse che possono essere ottenute qui.
1. Panoramica del programma di compatibilità Android: https://sites.google.com/a/android.com/compatibility/
come funziona
2. Livelli dei requisiti IETF RFC2119: http://www.ietf.org/rfc/rfc2119.txt
3. Compatibility Test Suite: http://sites.google.com/a/android.com/compatibility/compatibility-test-
suite-cts
4. Progetto Android Open Source: http://source.android.com/
5. Definizioni API e documentazione: http://developer.android.com/reference/packages.html
6. Fornitori di contenuti: http://code.google.com/android/reference/android/provider/package-
sommario.html
7. Risorse disponibili: http://code.google.com/android/reference/available-resources.html
8. File manifest Android: http://code.google.com/android/devel/bblocks-manifest.html
9. Riferimento per le autorizzazioni Android: http://developer.android.com/reference/android/
Manifest.permesso.html
10. Costruisci costanti: http://developer.android.com/reference/android/os/Build.html
11. Visualizzazione Web: http://developer.android.com/reference/android/webkit/WebView.html
12. Estensioni del browser Gears: http://code.google.com/apis/gears/
13. Specifica Dalvik Virtual Machine, trovata nella directory dalvik/docs di un codice sorgente
guardare; disponibile anche su http://android.git.kernel.org/?p=platform/
dalvik.git;a=tree;f=docs;h=3e2ddbcaf7f370246246f9f03620a7caccbfcb12;hb=HEAD
14. AppWidget: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
15. Notifiche: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
16. Guida allo stile dell'icona della barra di stato: http://developer.android.com/guide/practices/ui_guideline
/icon_design.html#struttura della barra di stato
17. Gestore di ricerca: http://developer.android.com/reference/android/app/SearchManager.html
18. Toast: http://developer.android.com/reference/android/widget/Toast.html
19. App per Android: http://code.google.com/p/apps-for-android
20. Descrizione del file apk di Android: http://developer.android.com/guide/topics/fundamentals.html
21. Android Debug Bridge (adb): http://code.google.com/android/reference/adb.html
22. Servizio Dalvik Debug Monitor (ddms): http://code.google.com/android/reference/ddms.html
23. Scimmia: http://developer.android.com/guide/developing/tools/monkey.html
24. Documentazione sull'indipendenza dalla visualizzazione:
25. Costanti di configurazione: http://developer.android.com/reference/android/content/res/
Configurazione.html
26. Metriche di visualizzazione: http://developer.android.com/reference/android/util/DisplayMetrics.html
27. Fotocamera: http://developer.android.com/reference/android/hardware/Camera.html
28. Spazio delle coordinate del sensore: http://developer.android.com/reference/android/hardware/
SensorEvent.html
29. Riferimento per la sicurezza e le autorizzazioni di Android: http://developer.android.com/guide/topics/security/
security.html
Molte di queste risorse derivano direttamente o indirettamente dall'SDK di Android 1.6 e lo saranno
funzionalmente identico alle informazioni contenute nella documentazione dell'SDK. In tutti i casi in cui questo
La definizione di compatibilità non è d'accordo con la documentazione dell'SDK, la documentazione dell'SDK è considerata
autorevole. Eventuali dettagli tecnici forniti nei riferimenti sopra inclusi sono considerati per inclusione
far parte di questa definizione di compatibilità.
3. Software
La piattaforma Android include sia un insieme di API gestite ("hard"), sia un corpo delle cosiddette API "soft".
come il sistema Intent, le API del codice nativo e le API delle applicazioni web. Questa sezione descrive in dettaglio il duro e
soft API che sono parte integrante della compatibilità, nonché alcune altre interfacce tecniche e utente rilevanti
comportamenti. Le implementazioni dei dispositivi DEVONO soddisfare tutti i requisiti di questa sezione.
3.1. Compatibilità API gestita
L'ambiente di esecuzione gestito (basato su Dalvik) è il veicolo principale per le applicazioni Android. Il
L'API (Application Programming Interface) di Android è l'insieme di interfacce della piattaforma Android a cui è esposta
applicazioni in esecuzione nell'ambiente VM gestito. Le implementazioni del dispositivo DEVONO fornire informazioni complete
implementazioni, inclusi tutti i comportamenti documentati, di qualsiasi API documentata esposta da Android
1.6 SDK, come:
1. API principali del linguaggio Java per Android [Risorse, 5].
2. Fornitori di contenuti [Risorse , 6].
3. Risorse [Risorse, 7].
4. Attributi ed elementi AndroidManifest.xml [Risorse, 8].
Le implementazioni del dispositivo NON DEVONO omettere alcuna API gestita, alterare le interfacce API o le firme, deviare
dal comportamento documentato, o includere no-op, eccetto dove specificamente consentito da questa Compatibilità
Definizione.
3.2. Compatibilità API morbida
Oltre alle API gestite dalla Sezione 3.1, Android include anche un significativo runtime "soft"
API, sotto forma di cose come intenti, autorizzazioni e aspetti simili delle applicazioni Android
che non può essere applicato al momento della compilazione dell'applicazione. Questa sezione descrive in dettaglio le API e il sistema "soft".
comportamenti richiesti per la compatibilità con Android 1.6. Le implementazioni dei dispositivi DEVONO soddisfare tutti i requisiti
requisiti presentati in questa sezione.
3.2.1. Autorizzazioni
Gli implementatori di dispositivi DEVONO supportare e applicare tutte le costanti di autorizzazione come documentato da
Pagina di riferimento dell'autorizzazione [ Risorse , 9]. Si noti che la Sezione 10 elenca requisiti aggiuntivi relativi a
il modello di sicurezza Android.
3.2.2. Costruisci parametri
Le API di Android includono una serie di costanti nella classe android.os.Build [Resources, 10] che sono
destinato a descrivere il dispositivo corrente. Per fornire valori coerenti e significativi su tutti i dispositivi
implementazioni, la tabella seguente include ulteriori restrizioni sui formati di questi valori a cui
le implementazioni dei dispositivi DEVONO essere conformi.
Parametro
Commenti
La versione del sistema Android attualmente in esecuzione, in formato umano
android.os.Build.VERSION.RELEASE
formato leggibile. Per Android 1.6, questo campo DEVE avere il valore stringa
"1.6".
La versione del sistema Android attualmente in esecuzione, in un formato
android.os.Build.VERSION.SDK
accessibile al codice dell'applicazione di terze parti. Per Android 1.6, questo campo
DEVE avere il valore intero 4.
Un valore scelto dall'implementatore del dispositivo che designa la build specifica
del sistema Android attualmente in esecuzione, in formato leggibile.
Questo valore NON DEVE essere riutilizzato per diverse build spedite alla fine
utenti android.os.Build.VERSION.INCREMENTAL. Un uso tipico di questo campo è per indicare quale numero di build o
identificatore di modifica del controllo del codice sorgente è stato utilizzato per generare la build. Là
non ci sono requisiti sul formato specifico di questo campo, tranne che esso
NON DEVE essere null o la stringa vuota ("").
Un valore scelto dall'implementatore del dispositivo che identifica l'interno specifico
hardware utilizzato dal dispositivo, in formato leggibile. Un possibile utilizzo
android.os.Build.BOARD
di questo campo è quello di indicare la revisione specifica della scheda che alimenta il
dispositivo. Non ci sono requisiti sul formato specifico di questo campo,
tranne per il fatto che NON DEVE essere null o la stringa vuota ("").
Un valore scelto dall'implementatore del dispositivo che identifica il nome del
android.os.Build.BRAND
società, organizzazione, individuo, ecc. che ha prodotto il dispositivo, in
formato leggibile dall'uomo. Un possibile utilizzo di questo campo è per indicare l'OEM
e/o l'operatore che ha venduto il dispositivo. Non ci sono requisiti sul
formato specifico di questo campo, tranne che NON DEVE essere nullo o vuoto
corda ("").
Un valore scelto dall'implementatore del dispositivo che identifica lo specifico
configurazione o revisione del corpo (a volte chiamato "industrial
android.os.Build.DEVICE
design") del dispositivo. Non ci sono requisiti sul formato specifico
di questo campo, tranne per il fatto che NON DEVE essere nullo o la stringa vuota ("").
Una stringa che identifica in modo univoco questa build. DOVREBBE essere ragionevolmente
leggibile dagli umani. DEVE seguire questo modello:
$(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)
Ad esempio: acme/mydevicel/generic/generic:Donut/ERC77/
3359:userdebug/test-chiavi
L'impronta digitale NON DEVE includere spazi. Se altri campi inclusi nel file
il modello sopra ha spazi, DOVREBBE essere sostituito con l'ASCII
carattere di sottolineatura ("_") nell'impronta digitale.
Una stringa che identifica in modo univoco l'host su cui è stata creata la build, in human
android.os.Build.HOST
formato leggibile. Non ci sono requisiti sul formato specifico di questo
campo, tranne per il fatto che NON DEVE essere nullo o la stringa vuota ("").
Un identificatore scelto dall'implementatore del dispositivo per fare riferimento a uno specifico
rilascio, in formato leggibile dall'uomo. Questo campo può essere uguale a
android.os.Build.VERSION.INCREMENTAL, ma DOVREBBE essere un valore
android.os.Build.ID
destinato ad essere in qualche modo significativo per gli utenti finali. Non ci sono
requisiti sul formato specifico di questo campo, tranne che NON DEVE
essere null o la stringa vuota ("").
Un valore scelto dall'implementatore del dispositivo contenente il nome del
dispositivo noto all'utente finale. Questo DOVREBBE essere lo stesso nome
android.os.Build.MODEL
in base al quale il dispositivo è commercializzato e venduto agli utenti finali. Non ci sono
requisiti sul formato specifico di questo campo, tranne che NON DEVE
essere null o la stringa vuota ("").
Un valore scelto dall'implementatore del dispositivo che contiene lo sviluppo
nome o nome in codice del dispositivo. DEVE essere leggibile dall'uomo, ma non lo è
android.os.Build.PRODUCT
necessariamente destinati alla visualizzazione da parte degli utenti finali. Non ci sono requisiti
sul formato specifico di questo campo, tranne che NON DEVE essere null o the
stringa vuota ("").
Un elenco di tag separati da virgole scelti dall'implementatore del dispositivo che
distinguere ulteriormente la build. Ad esempio, "unsigned,debug". Questo campo
android.os.Build.TAGS
NON DEVE essere null o la stringa vuota (""), ma un singolo tag (come
"rilascio") va bene.
android.os.Build.TIME
Un valore che rappresenta il timestamp di quando si è verificata la compilazione.
Un valore scelto dall'implementatore del dispositivo che specifica il runtime
configurazione della build. Questo campo DOVREBBE avere uno dei valori
android.os.Build.TYPE
corrispondente alle tre tipiche configurazioni di runtime di Android: "utente",
"userdebug" o "eng".
Un nome o ID utente dell'utente (o utente automatizzato) che ha generato il file
android.os.Build.USER
costruire. Non ci sono requisiti sul formato specifico di questo campo,
tranne per il fatto che NON DEVE essere null o la stringa vuota ("").
3.2.3. Compatibilità degli intenti
Android utilizza Intents per ottenere un'integrazione debolmente accoppiata tra le applicazioni. Questa sezione descrive
requisiti relativi ai modelli di intenti che DEVONO essere rispettati dalle implementazioni del dispositivo. Di
"onorato", si intende che l'implementatore del dispositivo DEVE fornire un'attività, un servizio o altro Android
componente che specifica un filtro Intent corrispondente e si associa e implementa il comportamento corretto per ciascuno
modello di intenti specificato.
3.2.3.1. Principali intenti dell'applicazione
Il progetto Android upstream definisce una serie di applicazioni principali, come un dialer telefonico, un calendario,
rubrica, lettore musicale e così via. Gli implementatori di dispositivi POSSONO sostituire queste applicazioni con
versioni alternative.
Tuttavia, tali versioni alternative DEVONO rispettare gli stessi modelli di intenti forniti dall'upstream
progetto. (Ad esempio, se un dispositivo contiene un lettore musicale alternativo, deve comunque rispettare il modello Intent
rilasciato da applicazioni di terze parti per scegliere un brano.) Le implementazioni del dispositivo DEVONO supportare tutti i modelli di intenti
elencati nell'Appendice A.
3.2.3.2. Sostituzioni di intenti
Poiché Android è una piattaforma estendibile, gli implementatori di dispositivi DEVONO consentire ogni modello di intenti descritto in
L'Appendice A deve essere sovrascritta da applicazioni di terze parti. Il progetto open source Android a monte
lo consente per impostazione predefinita; gli implementatori di dispositivi NON DEVONO attribuire privilegi speciali alle applicazioni di sistema
l'uso di questi schemi di intenti o impedire ad applicazioni di terze parti di associarsi e assumerne il controllo
questi schemi. Questo divieto include specificamente la disabilitazione dell'interfaccia utente "Chooser" che consente
all'utente di scegliere tra più applicazioni che gestiscono tutte lo stesso modello di intenti.
3.2.3.3. Spazi dei nomi di intenti
Gli implementatori di dispositivi NON DEVONO includere alcun componente Android che rispetti qualsiasi nuovo Intento o
Trasmetti modelli di intenti utilizzando un'AZIONE, una CATEGORIA o un'altra stringa chiave nello spazio dei nomi android.*.
Gli implementatori di dispositivi NON DEVONO includere alcun componente Android che rispetti qualsiasi nuovo Intento o
Trasmetti modelli di intenti utilizzando un'AZIONE, una CATEGORIA o un'altra stringa chiave in uno spazio del pacchetto
appartenenti ad altra organizzazione. Gli implementatori del dispositivo NON DEVONO alterare o estendere nessuno degli intenti
modelli elencati nelle Appendici A o B.
Questa proibizione è analoga a quella specificata per le classi di linguaggio Java nella Sezione 3.6.
3.2.3.4. Intenti di trasmissione
Le applicazioni di terze parti si affidano alla piattaforma per trasmettere determinati Intenti per notificare loro i cambiamenti nel
ambiente hardware o software. I dispositivi compatibili con Android DEVONO trasmettere la trasmissione pubblica
Intenti in risposta a eventi di sistema appropriati. Un elenco degli intenti di trasmissione richiesti è fornito in
Appendice B; tuttavia, tieni presente che l'SDK può definire ulteriori intenti di trasmissione, che DEVONO essere anch'essi
onorato.
3.3. Compatibilità API nativa
Il codice gestito in esecuzione in Dalvik può richiamare il codice nativo fornito nel file .apk dell'applicazione come ELF
.so file compilato per l'architettura hardware del dispositivo appropriata. Le implementazioni del dispositivo DEVONO includere
supporto per il codice in esecuzione nell'ambiente gestito per richiamare il codice nativo, utilizzando lo standard Java
Semantica dell'interfaccia nativa (JNI). Le seguenti API devono essere disponibili per il codice nativo:
• libc (libreria C)
• libm (libreria matematica)
• Interfaccia JNI
• libz (compressione Zlib)
• liblog (registrazione Android)
• Supporto minimo per C++
• OpenGL ES 1.1
Queste librerie DEVONO essere compatibili con il codice sorgente (ovvero compatibili con l'intestazione) e compatibili con i binari (per un dato
architettura del processore) con le versioni fornite in Bionic dal progetto Android Open Source. Da
le implementazioni Bionic non sono completamente compatibili con altre implementazioni come GNU C
libreria, gli implementatori di dispositivi DOVREBBERO utilizzare l'implementazione di Android. Se gli implementatori del dispositivo utilizzano a
diversa implementazione di queste librerie, devono garantire la compatibilità di intestazione e binario.
La compatibilità del codice nativo è impegnativa. Per questo vogliamo ribadire che lo sono gli implementatori di dispositivi
MOLTO fortemente incoraggiato a utilizzare le implementazioni a monte delle librerie sopra elencate, per aiutare
garantire la compatibilità.
3.4. Compatibilità API Web
Molti sviluppatori e applicazioni si affidano al comportamento della classe android.webkit.WebView [ Risorse ,
11] per le loro interfacce utente, quindi l'implementazione di WebView deve essere compatibile su Android
implementazioni. L'implementazione Android Open Source utilizza la versione del motore di rendering WebKit per
implementare la WebView.
Poiché non è possibile sviluppare una suite di test completa per un browser Web, gli implementatori di dispositivi
DEVE utilizzare la build upstream specifica di WebKit nell'implementazione di WebView. Nello specifico:
• WebView DEVE utilizzare la build WebKit 528.5+ dall'albero Android Open Source a monte per
Androide 1.6. Questa build include un set specifico di funzionalità e correzioni di sicurezza per WebView.
• La stringa dell'agente utente riportata da WebView DEVE essere in questo formato:
Mozilla/5.0 (Linux; U; Android 1.6; <lingua>-<paese>; <dispositivo
nome>; Build/<build ID>) AppleWebKit/528.5+ (KHTML, come Gecko)
Versione/3.1.2 Mobile Safari/525.20.1
◦ La stringa "<nome dispositivo>" DEVE essere uguale al valore di
android.os.Build.MODEL
◦ La stringa "<build ID>" DEVE essere uguale al valore per android.os.Build.ID.
◦ Le stringhe "<lingua>" e "<paese>" DEVONO seguire le solite convenzioni per
codice paese e lingua, e DOVREBBE fare riferimento alla locale corrente del dispositivo in
momento della richiesta.
Le implementazioni POSSONO spedire una stringa agente utente personalizzata nell'applicazione Browser autonoma. Cosa c'è
inoltre, il browser autonomo POTREBBE essere basato su una tecnologia di browser alternativa (come Firefox,
Opera, ecc.) Tuttavia, anche se viene fornita un'applicazione Browser alternativa, il componente WebView
fornito ad applicazioni di terze parti DEVE essere basato su WebKit, come sopra.
L'applicazione browser standalone DOVREBBE includere il supporto per Gears [ Risorse, 12] e MAGGIO
includere il supporto per parte o tutto l'HTML5.
3.5. Compatibilità comportamentale dell'API
I comportamenti di ciascuno dei tipi di API (gestito, soft, nativo e Web) devono essere coerenti con il
implementazione preferita di Android disponibile da Android Open Source Project.
Alcune aree specifiche di compatibilità sono:
• I dispositivi NON DEVONO modificare il comportamento o il significato di un intento standard
• I dispositivi NON DEVONO alterare il ciclo di vita o la semantica del ciclo di vita di un particolare tipo di sistema
componente (come Service, Activity, ContentProvider, ecc.)
• I dispositivi NON DEVONO modificare la semantica di una particolare autorizzazione
L'elenco precedente non è completo e l'onere è sugli implementatori del dispositivo per garantire il comportamento
Compatibilità. Per questo motivo, gli implementatori di dispositivi DOVREBBERO utilizzare il codice sorgente disponibile tramite il
Android Open Source Project ove possibile, piuttosto che reimplementare parti significative del sistema.
La Compatibility Test Suite (CTS) testa parti significative della piattaforma per la compatibilità comportamentale,
ma non tutto. È responsabilità dell'implementatore garantire la compatibilità comportamentale con Android
Progetto Open Source.
3.6. Spazi dei nomi API
Android segue le convenzioni dello spazio dei nomi dei pacchetti e delle classi definite dalla programmazione Java
linguaggio. Per garantire la compatibilità con applicazioni di terze parti, gli implementatori di dispositivi NON DEVONO creare
qualsiasi modifica proibita (vedi sotto) a questi spazi dei nomi dei pacchetti:
• java.*
• javax.*
• sole.*
• Android.*
• com.android.*
Le modifiche vietate includono:
• Le implementazioni del dispositivo NON DEVONO modificare le API esposte pubblicamente sulla piattaforma Android
modificando qualsiasi metodo o firma di classe o rimuovendo classi o campi di classe.
• Gli implementatori di dispositivi POSSONO modificare l'implementazione sottostante delle API, ma tale
le modifiche NON DEVONO influire sul comportamento dichiarato e sulla firma in linguaggio Java di qualsiasi
API esposte pubblicamente.
• Gli implementatori di dispositivi NON DEVONO aggiungere elementi esposti pubblicamente (come classi o
interfacce o campi o metodi a classi o interfacce esistenti) alle API di cui sopra.
Un "elemento esposto pubblicamente" è qualsiasi costrutto che non è decorato con il marcatore "@hide" nel file
codice sorgente Android a monte. In altre parole, gli implementatori di dispositivi NON DEVONO esporre nuove API o
alterare le API esistenti negli spazi dei nomi sopra indicati. Gli implementatori di dispositivi POSSONO rendere solo interno
modifiche, ma tali modifiche NON DEVONO essere pubblicizzate o altrimenti esposte agli sviluppatori.
Gli implementatori di dispositivi POSSONO aggiungere API personalizzate, ma tali API NON DEVONO trovarsi in uno spazio dei nomi di proprietà
da o facendo riferimento ad un'altra organizzazione. Ad esempio, gli implementatori di dispositivi NON DEVONO aggiungere API al file
com.google.* o uno spazio dei nomi simile; solo Google può farlo. Allo stesso modo, Google NON DEVE aggiungere API a
spazi dei nomi di altre società.
Se un implementatore di dispositivi propone di migliorare uno degli spazi dei nomi dei pacchetti di cui sopra (ad esempio aggiungendo
nuove funzionalità utili a un'API esistente o l'aggiunta di una nuova API), l'implementatore DOVREBBE visitare
source.android.com e iniziare il processo per apportare modifiche e codice, secondo il
informazioni su quel sito.
Si noti che le restrizioni di cui sopra corrispondono alle convenzioni standard per la denominazione delle API in Java
linguaggio di programmazione; questa sezione mira semplicemente a rafforzare tali convenzioni e renderle vincolanti
attraverso l'inclusione in questa definizione di compatibilità.
3.7. Compatibilità con le macchine virtuali
Un dispositivo Android compatibile deve supportare la specifica completa del bytecode Dalvik Executable (DEX) e
Dalvik Virtual Machine semantica [Risorse, 13].
3.8. Compatibilità dell'interfaccia utente
La piattaforma Android include alcune API per sviluppatori che consentono agli sviluppatori di collegarsi all'utente del sistema
interfaccia. Le implementazioni dei dispositivi DEVONO incorporare queste API UI standard nelle interfacce utente personalizzate
si sviluppano, come spiegato di seguito.
3.8.1. Widget
Android definisce un tipo di componente e l'API e il ciclo di vita corrispondenti che consentono alle applicazioni di esporre
un "AppWidget" per l'utente finale [Risorse , 14] . La versione di riferimento Android Open Source include a
Applicazione di avvio che include elementi dell'interfaccia utente che consentono all'utente di aggiungere, visualizzare e rimuovere
AppWidget dalla schermata iniziale.
Gli implementatori di dispositivi POSSONO sostituire un'alternativa al Launcher di riferimento (ad esempio la schermata iniziale).
I lanciatori alternativi DOVREBBERO includere il supporto integrato per AppWidgets ed esporre l'interfaccia utente
elementi per aggiungere, visualizzare e rimuovere AppWidgets direttamente all'interno del Launcher. Lanciatori alternativi MAGGIO
omettere questi elementi dell'interfaccia utente; tuttavia, se vengono omessi, l'implementatore del dispositivo DEVE fornire a
un'applicazione separata accessibile dal Launcher che consente agli utenti di aggiungere, visualizzare e rimuovere
AppWidget.
3.8.2. Notifiche
Android include API che consentono agli sviluppatori di notificare agli utenti eventi importanti [Risorse, 15]. Dispositivo
gli implementatori DEVONO fornire supporto per ogni classe di notifica così definita; in particolare: suoni,
vibrazione, luce e barra di stato.
Inoltre, l'implementazione DEVE renderizzare correttamente e tutte le risorse (icone, file audio, ecc.)
previsto nelle API [Risorse, 7] o nella guida allo stile delle icone della barra di stato [Risorse , 16]. Dispositivo
gli implementatori POSSONO fornire un'esperienza utente alternativa per le notifiche rispetto a quella fornita dal
fare riferimento all'implementazione Android Open Source; tuttavia, tali sistemi di notifica alternativi DEVONO
supportare le risorse di notifica esistenti, come sopra.
3.8.3. Ricerca
Android include API [Risorse, 17] che consentono agli sviluppatori di incorporare la ricerca nelle loro applicazioni,
ed esporre i dati della loro applicazione nella ricerca del sistema globale. In generale, questa funzionalità
è costituito da un'unica interfaccia utente a livello di sistema che consente agli utenti di inserire query e visualizzare suggerimenti
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