Definisi Kompatibilitas Android 4.3

Revisi 1
Terakhir diperbarui: 23 Juli 2013

Hak Cipta © 2013, Google Inc. Semua hak dilindungi undang-undang.
kompatibilitas@android.com

Daftar isi

1. Perkenalan
2. Sumber Daya
3. Perangkat Lunak
3.1. Kompatibilitas API Terkelola
3.2. Kompatibilitas API Lunak
3.3. Kompatibilitas API Asli
3.4. Kompatibilitas Web
3.5. Kompatibilitas Perilaku API
3.6. Ruang Nama API
3.7. Kompatibilitas Mesin Virtual
3.8. Kompatibilitas Antarmuka Pengguna
3.9 Administrasi Perangkat
3.10 Aksesibilitas
3.11 Teks-ke-Ucapan
4. Kompatibilitas Kemasan Aplikasi
5. Kompatibilitas Multimedia
6. Kompatibilitas Alat Pengembang dan Opsi
7. Kompatibilitas Perangkat Keras
7.1. Tampilan dan Grafik
7.2. Perangkat masukan
7.3. Sensor
7.4. Konektivitas Data
7.5. Kamera
7.6. Memori dan Penyimpanan
7.7. USB
8. Kompatibilitas Kinerja
9. Kompatibilitas Model Keamanan
10. Pengujian Kompatibilitas Perangkat Lunak
11. Perangkat Lunak yang Dapat Diperbarui
12. Hubungi Kami

1. Perkenalan

Dokumen ini merinci persyaratan yang harus dipenuhi agar perangkat kompatibel dengan Android 4.3.

Penggunaan "harus", "tidak boleh", "wajib", "harus", "tidak boleh", "seharusnya", "tidak boleh", "direkomendasikan", "boleh" dan "opsional" sesuai dengan standar IETF didefinisikan dalam RFC2119 [ Sumber Daya, 1 ].

Seperti yang digunakan dalam dokumen ini, "implementer perangkat" atau "implementer" adalah orang atau organisasi yang mengembangkan solusi perangkat keras/perangkat lunak yang menjalankan Android 4.3. Sebuah "implementasi perangkat" atau "implementasi" adalah solusi perangkat keras/perangkat lunak yang dikembangkan.

Agar dianggap kompatibel dengan Android 4.3, implementasi perangkat HARUS memenuhi persyaratan yang disajikan dalam Definisi Kompatibilitas ini, termasuk dokumen apa pun yang dimasukkan melalui referensi.

Apabila definisi ini atau pengujian perangkat lunak yang dijelaskan dalam Bagian 10 tidak jelas, ambigu, atau tidak lengkap, maka merupakan tanggung jawab pelaksana perangkat untuk memastikan kompatibilitas dengan implementasi yang ada.

Karena alasan ini, Proyek Sumber Terbuka Android [ Sumber Daya, 3 ] merupakan referensi dan implementasi Android yang disukai. Implementer perangkat sangat dianjurkan untuk mendasarkan implementasi mereka semaksimal mungkin pada kode sumber "upstream" yang tersedia dari Proyek Sumber Terbuka Android. Meskipun beberapa komponen secara hipotetis dapat diganti dengan implementasi alternatif, praktik ini sangat tidak disarankan, karena lulus pengujian perangkat lunak akan menjadi jauh lebih sulit. Implementer bertanggung jawab untuk memastikan kompatibilitas penuh perilaku dengan implementasi Android standar, termasuk dan di luar Compatibility Test Suite. Terakhir, perhatikan bahwa penggantian dan modifikasi komponen tertentu secara eksplisit dilarang oleh dokumen ini.

2. Sumber Daya

  1. Tingkat Persyaratan IETF RFC2119: http://www.ietf.org/rfc/rfc2119.txt
  2. Ikhtisar Program Kompatibilitas Android: http://source.android.com/docs/compatibility/index.html
  3. Proyek Sumber Terbuka Android: http://source.android.com/
  4. Definisi dan dokumentasi API: http://developer.android.com/reference/packages.html
  5. Referensi Izin Android: http://developer.android.com/reference/android/Manifest.permission.html
  6. referensi android.os.Build: http://developer.android.com/reference/android/os/Build.html
  7. String versi yang diizinkan Android 4.3: http://source.android.com/docs/compatibility/4.3/versions.html
  8. Skrip Render: http://developer.android.com/guide/topics/graphics/renderscript.html
  9. Akselerasi Perangkat Keras: http://developer.android.com/guide/topics/graphics/hardware-accel.html
  10. kelas android.webkit.WebView: http://developer.android.com/reference/android/webkit/WebView.html
  11. HTML5: http://www.whatwg.org/specs/web-apps/current-work/multipage/
  12. Kemampuan offline HTML5: http://dev.w3.org/html5/spec/Overview.html#offline
  13. Label video HTML5: http://dev.w3.org/html5/spec/Overview.html#video
  14. API geolokasi HTML5/W3C: http://www.w3.org/TR/geolocation-API/
  15. API basis data web HTML5/W3C: http://www.w3.org/TR/webdatabase/
  16. API IndexedDB HTML5/W3C: http://www.w3.org/TR/IndexedDB/
  17. Spesifikasi Mesin Virtual Dalvik: tersedia dalam kode sumber Android, di dalvik/docs
  18. Widget Aplikasi: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
  19. Pemberitahuan: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
  20. Sumber Daya Aplikasi: http://code.google.com/android/reference/available-resources.html
  21. Panduan gaya ikon Bilah Status: http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
  22. Manajer Pencarian: http://developer.android.com/reference/android/app/SearchManager.html
  23. Bersulang: http://developer.android.com/reference/android/widget/Toast.html
  24. Tema: http://developer.android.com/guide/topics/ui/themes.html
  25. Kelas R.style: http://developer.android.com/reference/android/R.style.html
  26. Wallpaper Animasi: https://android-developers.googleblog.com/2010/02/live-wallpapers.html
  27. Administrasi Perangkat Android: http://developer.android.com/guide/topics/admin/device-admin.html
  28. Referensi DevicePolicyManager: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html
  29. API Layanan Aksesibilitas Android: http://developer.android.com/reference/android/accessibilityservice/package-summary.html
  30. API Aksesibilitas Android: http://developer.android.com/reference/android/view/accessibility/package-summary.html
  31. Proyek Mata Gratis: http://code.google.com/p/eyes-free
  32. API Text-To-Speech: http://developer.android.com/reference/android/speech/tts/package-summary.html
  33. Dokumentasi alat referensi (untuk adb, aapt, ddms, systrace): http://developer.android.com/guide/developing/tools/index.html
  34. Deskripsi file apk Android: http://developer.android.com/guide/topics/fundamentals.html
  35. File manifes: http://developer.android.com/guide/topics/manifest/manifest-intro.html
  36. Alat pengujian monyet: https://developer.android.com/studio/test/other-testing-tools/monkey
  37. Kelas Android android.content.pm.PackageManager dan Daftar Fitur Perangkat Keras: http://developer.android.com/reference/android/content/pm/PackageManager.html
  38. Mendukung Banyak Layar: http://developer.android.com/guide/practices/screens_support.html
  39. android.util.DisplayMetrics: http://developer.android.com/reference/android/util/DisplayMetrics.html
  40. android.content.res.Konfigurasi: http://developer.android.com/reference/android/content/res/Configuration.html
  41. android.hardware.SensorEvent: http://developer.android.com/reference/android/hardware/SensorEvent.html
  42. API Bluetooth: http://developer.android.com/reference/android/bluetooth/package-summary.html
  43. Protokol Dorong NDEF: http://source.android.com/docs/compatibility/ndef-push-protocol.pdf
  44. MIFARE MF1S503X: http://www.nxp.com/documents/data_sheet/MF1S503x.pdf
  45. MIFARE MF1S703X: http://www.nxp.com/documents/data_sheet/MF1S703x.pdf
  46. MIFARE MF0ICU1: http://www.nxp.com/documents/data_sheet/MF0ICU1.pdf
  47. MIFARE MF0ICU2: http://www.nxp.com/documents/short_data_sheet/MF0ICU2_SDS.pdf
  48. MIFARE AN130511: http://www.nxp.com/documents/application_note/AN130511.pdf
  49. MIFARE AN130411: http://www.nxp.com/documents/application_note/AN130411.pdf
  50. API orientasi kamera: http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)
  51. Kamera: http://developer.android.com/reference/android/hardware/Camera.html
  52. Aksesori Terbuka Android: http://developer.android.com/guide/topics/usb/accessory.html
  53. API Host USB: http://developer.android.com/guide/topics/usb/host.html
  54. Referensi Keamanan dan Izin Android: http://developer.android.com/guide/topics/security/security.html
  55. Aplikasi untuk Android: http://code.google.com/p/apps-for-android
  56. Pengelola Unduhan Android: http://developer.android.com/reference/android/app/DownloadManager.html
  57. Transfer File Android: http://www.android.com/filetransfer
  58. Format Media Android: http://developer.android.com/guide/appendix/media-formats.html
  59. Protokol Draf Streaming Langsung HTTP: http://tools.ietf.org/html/draft-pantos-http-live-streaming-03
  60. Penyerahan Koneksi NFC: http://www.nfc-forum.org/specs/spec_list/#conn_handover
  61. Pemasangan Sederhana Aman Bluetooth Menggunakan NFC: http://www.nfc-forum.org/resources/AppDocs/NFCForum_AD_BTSSP_1_0.pdf
  62. Wifi Multicast API: http://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html
  63. Bantuan Tindakan: http://developer.android.com/reference/android/content/Intent.html#ACTION_ASSIST
  64. Spesifikasi Pengisian USB: http://www.usb.org/developers/devclass_docs/USB_Battery_Charging_1.2.pdf
  65. Android Beam: http://developer.android.com/guide/topics/nfc/nfc.html
  66. Audio USB Android: http://developer.android.com/reference/android/hardware/usb/UsbConstants.html#USB_CLASS_AUDIO
  67. Setelan Berbagi NFC Android: http://developer.android.com/reference/android/provider/Settings.html#ACTION_NFCSHARING_SETTINGS
  68. Wifi Langsung (Wifi P2P): http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.html
  69. Kunci dan Widget Layar Beranda: http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html
  70. Referensi UserManager: http://developer.android.com/reference/android/os/UserManager.html
  71. Referensi Penyimpanan Eksternal: https://source.android.com/docs/core/storage
  72. API Penyimpanan Eksternal: http://developer.android.com/reference/android/os/Environment.html
  73. Kode Pendek SMS: http://en.wikipedia.org/wiki/Short_code
  74. Klien Kontrol Jarak Jauh Media: http://developer.android.com/reference/android/media/RemoteControlClient.html
  75. Manajer Tampilan: http://developer.android.com/reference/android/hardware/display/DisplayManager.html
  76. Mimpi: http://developer.android.com/reference/android/service/dreams/DreamService.html
  77. Pengaturan Terkait Pengembangan Aplikasi Android: http://developer.android.com/reference/android/provider/Settings.html#ACTION_APPLICATION_DEVELOPMENT_SETTINGS
  78. Kamera: http://developer.android.com/reference/android/hardware/Camera.Parameters.html
  79. Ekstensi EGL-EGL_ANDROID_RECORDABLE: http://www.khronos.org/registry/egl/extensions/ANDROID/EGL_ANDROID_recordable.txt
  80. API Peristiwa Gerak: http://developer.android.com/reference/android/view/MotionEvent.html
  81. Konfigurasi Masukan Sentuh: http://source.android.com/docs/core/interaction/input/touch-devices.html

Banyak dari sumber daya ini yang diturunkan secara langsung atau tidak langsung dari Android 4.3 SDK, dan secara fungsional akan identik dengan informasi dalam dokumentasi SDK tersebut. Jika Definisi Kompatibilitas atau Rangkaian Uji Kompatibilitas ini tidak sesuai dengan dokumentasi SDK, dokumentasi SDK dianggap resmi. Detail teknis apa pun yang diberikan dalam referensi yang disertakan di atas dianggap sebagai bagian dari Definisi Kompatibilitas ini.

3. Perangkat Lunak

3.1. Kompatibilitas API Terkelola

Lingkungan eksekusi terkelola (berbasis Dalvik) adalah sarana utama untuk aplikasi Android. Antarmuka pemrograman aplikasi (API) Android adalah kumpulan antarmuka platform Android yang diekspos ke aplikasi yang berjalan di lingkungan VM terkelola. Implementasi perangkat HARUS menyediakan implementasi lengkap, termasuk semua perilaku yang terdokumentasi, dari setiap API terdokumentasi yang diekspos oleh Android 4.3 SDK [ Sumber Daya, 4 ].

Implementasi perangkat TIDAK BOLEH menghilangkan API terkelola apa pun, mengubah antarmuka atau tanda tangan API, menyimpang dari perilaku yang terdokumentasi, atau menyertakan larangan pengoperasian, kecuali jika diizinkan secara khusus oleh Definisi Kompatibilitas ini.

Definisi Kompatibilitas ini mengizinkan beberapa jenis perangkat keras yang Android menyertakan API untuk dihilangkan oleh implementasi perangkat. Dalam kasus seperti ini, API HARUS tetap ada dan berperilaku wajar. Lihat Bagian 7 untuk persyaratan khusus untuk skenario ini.

3.2. Kompatibilitas API Lunak

Selain API terkelola dari Bagian 3.1, Android juga menyertakan API "lunak" khusus runtime yang signifikan, dalam bentuk seperti Intent, izin, dan aspek serupa dari aplikasi Android yang tidak dapat diterapkan pada waktu kompilasi aplikasi.

3.2.1. Izin

Pelaksana perangkat HARUS mendukung dan menegakkan semua konstanta izin seperti yang didokumentasikan oleh halaman referensi Izin [ Sumber Daya, 5 ]. Perhatikan bahwa Bagian 9 mencantumkan persyaratan tambahan terkait model keamanan Android.

3.2.2. Parameter Bangun

Android API menyertakan sejumlah konstanta pada kelas android.os.Build [ Resources, 6 ] yang dimaksudkan untuk mendeskripsikan perangkat saat ini. Untuk memberikan nilai yang konsisten dan bermakna di seluruh penerapan perangkat, tabel di bawah menyertakan batasan tambahan pada format nilai yang HARUS dipatuhi oleh penerapan perangkat.

Parameter Komentar
android.os.Build.VERSION.RELEASE Versi sistem Android yang sedang dijalankan, dalam format yang dapat dibaca manusia. Bidang ini HARUS memiliki salah satu nilai string yang ditentukan di [ Sumber Daya, 7 ].
android.os.Build.VERSION.SDK Versi sistem Android yang sedang dijalankan, dalam format yang dapat diakses oleh kode aplikasi pihak ketiga. Untuk Android 4.3, kolom ini HARUS memiliki nilai integer 18.
android.os.Build.VERSION.SDK_INT Versi sistem Android yang sedang dijalankan, dalam format yang dapat diakses oleh kode aplikasi pihak ketiga. Untuk Android 4.3, kolom ini HARUS memiliki nilai integer 18.
android.os.Build.VERSION.INCREMENTAL Nilai yang dipilih oleh pelaksana perangkat yang menunjuk build spesifik sistem Android yang sedang dijalankan, dalam format yang dapat dibaca manusia. Nilai ini TIDAK BOLEH digunakan kembali untuk build berbeda yang tersedia untuk pengguna akhir. Penggunaan umum bidang ini adalah untuk menunjukkan nomor build atau pengidentifikasi perubahan kontrol sumber mana yang digunakan untuk menghasilkan build. Tidak ada persyaratan mengenai format spesifik bidang ini, kecuali TIDAK HARUS berupa null atau string kosong ("").
android.os.Build.BOARD Nilai yang dipilih oleh pelaksana perangkat yang mengidentifikasi perangkat keras internal spesifik yang digunakan oleh perangkat, dalam format yang dapat dibaca manusia. Kemungkinan penggunaan bidang ini adalah untuk menunjukkan revisi spesifik pada papan yang memberi daya pada perangkat. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.MEREK Nilai yang dipilih oleh pelaksana perangkat yang mengidentifikasi nama perusahaan, organisasi, individu, dll. yang memproduksi perangkat, dalam format yang dapat dibaca manusia. Kemungkinan penggunaan bidang ini adalah untuk menunjukkan OEM dan/atau operator yang menjual perangkat. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.CPU_ABI Nama set instruksi (tipe CPU + konvensi ABI) dari kode asli. Lihat Bagian 3.3: Kompatibilitas API Asli .
android.os.Build.CPU_ABI2 Nama set instruksi kedua (tipe CPU + konvensi ABI) dari kode asli. Lihat Bagian 3.3: Kompatibilitas API Asli .
android.os.Build.DEVICE Nilai yang dipilih oleh pelaksana perangkat yang mengidentifikasi konfigurasi spesifik atau revisi bodi (terkadang disebut "desain industri") perangkat. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.FINGERPRINT Sebuah string yang secara unik mengidentifikasi bangunan ini. Itu HARUS dapat dibaca manusia secara wajar. Itu HARUS mengikuti templat ini:
$(BRAND)/$(PRODUCT)/$(DEVICE):$(VERSION.RELEASE)/$(ID)/$(VERSION.INCREMENTAL):$(TYPE)/$(TAGS)
Misalnya:
acme/mydevice/generic:4.3/JRN53/3359:userdebug/test-keys
Sidik jari TIDAK HARUS menyertakan karakter spasi. Jika kolom lain yang disertakan dalam template di atas memiliki karakter spasi, maka kolom tersebut HARUS diganti di sidik jari build dengan karakter lain, misalnya karakter garis bawah ("_"). Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit.
android.os.Build.PERANGKAT KERAS Nama perangkat keras (dari baris perintah kernel atau /proc). Itu HARUS dapat dibaca manusia secara wajar. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.HOST Sebuah string yang secara unik mengidentifikasi host tempat build dibangun, dalam format yang dapat dibaca manusia. Tidak ada persyaratan mengenai format spesifik bidang ini, kecuali TIDAK HARUS berupa null atau string kosong ("").
android.os.Build.ID Pengidentifikasi yang dipilih oleh pelaksana perangkat untuk merujuk pada rilis tertentu, dalam format yang dapat dibaca manusia. Kolom ini bisa sama dengan android.os.Build.VERSION.INCREMENTAL, namun HARUS berupa nilai yang cukup bermakna bagi pengguna akhir untuk membedakan build perangkat lunak. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.MANUFACTURER Nama dagang Produsen Peralatan Asli (OEM) produk. Tidak ada persyaratan mengenai format spesifik bidang ini, kecuali TIDAK HARUS berupa null atau string kosong ("").
android.os.Build.MODEL Nilai yang dipilih oleh pelaksana perangkat yang berisi nama perangkat yang diketahui oleh pengguna akhir. Nama ini HARUS sama dengan nama perangkat yang dipasarkan dan dijual kepada pengguna akhir. Tidak ada persyaratan mengenai format spesifik bidang ini, kecuali TIDAK HARUS berupa null atau string kosong ("").
android.os.Build.PRODUK Nilai yang dipilih oleh pelaksana perangkat yang berisi nama pengembangan atau nama kode produk (SKU). HARUS dapat dibaca manusia, namun tidak dimaksudkan untuk dilihat oleh pengguna akhir. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.SERIAL Nomor seri perangkat keras, jika tersedia. Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^([a-zA-Z0-9]{0,20})$" .
android.os.Build.TAGS Daftar tag yang dipisahkan koma yang dipilih oleh pelaksana perangkat yang selanjutnya membedakan build. Misalnya, "tidak ditandatangani,debug". Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.TIME Nilai yang mewakili stempel waktu saat pembangunan terjadi.
android.os.Build.TYPE Nilai yang dipilih oleh pelaksana perangkat yang menentukan konfigurasi runtime build. Bidang ini HARUS memiliki salah satu nilai yang sesuai dengan tiga konfigurasi runtime Android pada umumnya: "user", "userdebug", atau "eng". Nilai bidang ini HARUS dapat dikodekan sebagai ASCII 7-bit dan cocok dengan ekspresi reguler "^[a-zA-Z0-9.,_-]+$" .
android.os.Build.USER Nama atau ID pengguna dari pengguna (atau pengguna otomatis) yang menghasilkan build. Tidak ada persyaratan mengenai format spesifik bidang ini, kecuali TIDAK HARUS berupa null atau string kosong ("").

3.2.3. Kompatibilitas Maksud

Implementasi perangkat HARUS mengikuti sistem Intent yang terhubung secara longgar, seperti yang dijelaskan pada bagian di bawah ini. Yang dimaksud dengan "dihormati" adalah bahwa pelaksana perangkat HARUS menyediakan Aktivitas atau Layanan Android yang menentukan filter Intent yang cocok dan mengikat serta mengimplementasikan perilaku yang benar untuk setiap pola Intent yang ditentukan.

3.2.3.1. Maksud Aplikasi Inti

Proyek upstream Android mendefinisikan sejumlah aplikasi inti, seperti kontak, kalender, galeri foto, pemutar musik, dan sebagainya. Pelaksana perangkat DAPAT mengganti aplikasi ini dengan versi alternatif.

Namun, versi alternatif tersebut HARUS mengikuti pola Intent yang sama yang disediakan oleh proyek hulu. Misalnya, jika perangkat berisi pemutar musik alternatif, perangkat tersebut tetap harus mengikuti pola Intent yang dikeluarkan oleh aplikasi pihak ketiga untuk memilih lagu.

Aplikasi berikut ini dianggap sebagai aplikasi inti sistem Android:

  • Jam Meja
  • Peramban
  • Kalender
  • Kontak
  • Galeri
  • Pencarian Global
  • Peluncur
  • Musik
  • Pengaturan

Aplikasi inti sistem Android mencakup berbagai komponen Aktivitas atau Layanan yang dianggap "publik". Artinya, atribut "android:exported" mungkin tidak ada, atau mungkin memiliki nilai "true".

Untuk setiap Aktivitas atau Layanan yang ditentukan di salah satu aplikasi sistem Android inti yang tidak ditandai sebagai non-publik melalui atribut android:exported dengan nilai "false", implementasi perangkat HARUS menyertakan komponen bertipe sama yang mengimplementasikan filter Intent yang sama pola sebagai aplikasi sistem Android inti.

Dengan kata lain, implementasi perangkat MUNGKIN menggantikan aplikasi inti sistem Android; namun, jika ya, penerapan perangkat HARUS mendukung semua pola Intent yang ditentukan oleh setiap aplikasi sistem Android inti yang diganti.

3.2.3.2. Penggantian Niat

Karena Android adalah platform yang dapat diperluas, implementasi perangkat HARUS mengizinkan setiap pola Intent yang dirujuk di Bagian 3.2.3.2 diganti oleh aplikasi pihak ketiga. Implementasi open source Android upstream mengizinkan hal ini secara default; pelaksana perangkat TIDAK BOLEH memberikan hak istimewa khusus pada penggunaan pola Intent ini oleh aplikasi sistem, atau mencegah aplikasi pihak ketiga mengikat dan mengambil kendali atas pola ini. Larangan ini secara khusus mencakup namun tidak terbatas pada menonaktifkan antarmuka pengguna "Chooser" yang memungkinkan pengguna memilih di antara beberapa aplikasi yang semuanya menangani pola Intent yang sama.

Namun, penerapan perangkat MUNGKIN menyediakan aktivitas default untuk pola URI tertentu (misalnya http://play.google.com) jika aktivitas default menyediakan filter yang lebih spesifik untuk URI data. Misalnya, filter maksud yang menentukan URI data "http://www.android.com" lebih spesifik dibandingkan filter browser untuk "http://". Implementasi perangkat HARUS menyediakan antarmuka pengguna bagi pengguna untuk mengubah aktivitas default untuk maksud.

3.2.3.3. Ruang Nama Maksud

Implementasi perangkat TIDAK BOLEH menyertakan komponen Android apa pun yang mengikuti pola Intent atau Intent Siaran baru menggunakan ACTION, CATEGORY, atau string kunci lainnya di namespace android.* atau com.android.*. Implementer perangkat TIDAK BOLEH menyertakan komponen Android apa pun yang mengikuti pola Intent atau Intent Siaran baru menggunakan ACTION, CATEGORY, atau string kunci lainnya dalam ruang paket milik organisasi lain. Pelaksana perangkat TIDAK BOLEH mengubah atau memperluas pola Intent apa pun yang digunakan oleh aplikasi inti yang tercantum di Bagian 3.2.3.1. Implementasi perangkat MUNGKIN menyertakan pola Intent yang menggunakan namespace yang jelas dan jelas terkait dengan organisasinya sendiri.

Larangan ini serupa dengan yang ditentukan untuk kelas bahasa Java di Bagian 3.6.

3.2.3.4. Maksud Siaran

Aplikasi pihak ketiga mengandalkan platform untuk menyiarkan Intent tertentu guna memberi tahu mereka tentang perubahan dalam lingkungan perangkat keras atau perangkat lunak. Perangkat yang kompatibel dengan Android HARUS menyiarkan Intent siaran publik sebagai respons terhadap kejadian sistem yang sesuai. Intent Siaran dijelaskan dalam dokumentasi SDK.

3.3. Kompatibilitas API Asli

3.3.1 Antarmuka Biner Aplikasi

Kode terkelola yang berjalan di Dalvik dapat memanggil kode asli yang disediakan dalam file .apk aplikasi sebagai file ELF .so yang dikompilasi untuk arsitektur perangkat keras perangkat yang sesuai. Karena kode asli sangat bergantung pada teknologi prosesor yang mendasarinya, Android mendefinisikan sejumlah Antarmuka Biner Aplikasi (ABI) di Android NDK, dalam file docs/CPU-ARCH-ABIS.html . Jika implementasi perangkat kompatibel dengan satu atau beberapa ABI yang ditentukan, implementasi tersebut HARUS mengimplementasikan kompatibilitas dengan Android NDK, seperti di bawah ini.

Jika implementasi perangkat menyertakan dukungan untuk Android ABI, maka:

  • HARUS menyertakan dukungan untuk kode yang berjalan di lingkungan terkelola untuk memanggil kode asli, menggunakan semantik Java Native Interface (JNI) standar
  • HARUS kompatibel dengan sumber (yaitu kompatibel dengan header) dan kompatibel dengan biner (untuk ABI) dengan setiap pustaka yang diperlukan dalam daftar di bawah
  • HARUS melaporkan secara akurat Application Binary Interface (ABI) asli yang didukung oleh perangkat, melalui android.os.Build.CPU_ABI API
  • HARUS melaporkan hanya ABI yang didokumentasikan dalam versi terbaru Android NDK, dalam file docs/CPU-ARCH-ABIS.txt
  • HARUS dibuat menggunakan kode sumber dan file header yang tersedia di Proyek Sumber Terbuka Android upstream

API kode asli berikut HARUS tersedia untuk aplikasi yang menyertakan kode asli:

  • libc (perpustakaan C)
  • libm (perpustakaan matematika)
  • Dukungan minimal untuk C++
  • antarmuka JNI
  • liblog (pencatatan Android)
  • libz (kompresi Zlib)
  • libdl (penghubung dinamis)
  • libGLESv1_CM.so (OpenGL ES 1.0)
  • libGLESv2.so (OpenGL ES 2.0)
  • libGLESv3.so (OpenGL ES 3.0)
  • libEGL.so (manajemen permukaan OpenGL asli)
  • libjnigraphics.so
  • libOpenSLES.so (dukungan audio OpenSL ES 1.0.1)
  • libOpenMAXAL.so (dukungan OpenMAX AL 1.0.1)
  • libandroid.so (dukungan aktivitas Android asli)
  • Dukungan untuk OpenGL, seperti dijelaskan di bawah

Perlu diperhatikan bahwa rilis Android NDK di masa mendatang mungkin memperkenalkan dukungan untuk ABI tambahan. Jika implementasi perangkat tidak kompatibel dengan ABI yang telah ditentukan sebelumnya, maka implementasi tersebut TIDAK HARUS melaporkan dukungan untuk ABI apa pun sama sekali.

Perhatikan bahwa implementasi perangkat HARUS menyertakan libGLESv3.so dan HARUS menghubungkan tautan simbolis (simbolis) ke libGLESv2.so. Pada implementasi perangkat yang menyatakan dukungan untuk OpenGL ES 3.0, libGLESv2.so HARUS mengekspor simbol fungsi OpenGL ES 3.0 selain simbol fungsi OpenGL ES 2.0.

Kompatibilitas kode asli merupakan suatu tantangan. Oleh karena itu, harus diulangi bahwa pelaksana perangkat SANGAT dianjurkan untuk menggunakan implementasi hulu dari perpustakaan yang tercantum di atas untuk membantu memastikan kompatibilitas.

3.4. Kompatibilitas Web

3.4.1. Kompatibilitas Tampilan Web

Implementasi Android Open Source menggunakan mesin rendering WebKit untuk mengimplementasikan android.webkit.WebView [ Resources, 10 ] . Karena tidak layak untuk mengembangkan rangkaian pengujian komprehensif untuk sistem rendering web, pelaksana perangkat HARUS menggunakan versi hulu WebKit yang spesifik dalam implementasi WebView. Secara khusus:

  • Implementasi android.webkit.WebView implementasi perangkat HARUS didasarkan pada build WebKit 534.30 dari pohon Sumber Terbuka Android upstream untuk Android 4.3. Versi ini mencakup serangkaian fungsionalitas dan perbaikan keamanan khusus untuk WebView. Pelaksana perangkat MUNGKIN menyertakan penyesuaian pada implementasi WebKit; namun, penyesuaian apa pun TIDAK BOLEH mengubah perilaku WebView, termasuk perilaku rendering.
  • String agen pengguna yang dilaporkan oleh WebView HARUS dalam format ini:
    Mozilla/5.0 (Linux; U; Android $(VERSION); $(LOCALE); $(MODEL) Build/$(BUILD)) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
    • Nilai string $(VERSION) HARUS sama dengan nilai untuk android.os.Build.VERSION.RELEASE
    • Nilai string $(LOCALE) HARUS mengikuti konvensi ISO untuk kode negara dan bahasa, dan HARUS mengacu pada konfigurasi lokal perangkat saat ini
    • Nilai string $(MODEL) HARUS sama dengan nilai untuk android.os.Build.MODEL
    • Nilai string $(BUILD) HARUS sama dengan nilai untuk android.os.Build.ID
    • Implementasi perangkat MUNGKIN menghilangkan Mobile dalam string agen pengguna

Komponen WebView HARUS menyertakan dukungan untuk HTML5 sebanyak mungkin [ Sumber Daya, 11 ]. Minimal, implementasi perangkat HARUS mendukung setiap API yang terkait dengan HTML5 di WebView:

Selain itu, implementasi perangkat HARUS mendukung API penyimpanan web HTML5/W3C [ Sumber Daya, 15 ], dan HARUS mendukung API IndexedDB HTML5/W3C [ Sumber Daya, 16 ]. Perlu diperhatikan bahwa seiring dengan transisi badan standar pengembangan web yang lebih mengutamakan IndexedDB dibandingkan penyimpanan web, IndexedDB diperkirakan akan menjadi komponen wajib dalam versi Android mendatang.

API HTML5, seperti semua API JavaScript, HARUS dinonaktifkan secara default di WebView, kecuali jika pengembang secara eksplisit mengaktifkannya melalui API Android biasa.

3.4.2. Kompatibilitas Peramban

Implementasi perangkat HARUS menyertakan aplikasi Browser mandiri untuk penjelajahan web pengguna umum. Browser mandiri MUNGKIN didasarkan pada teknologi browser selain WebKit. Namun, meskipun aplikasi Browser alternatif digunakan, komponen android.webkit.WebView yang disediakan untuk aplikasi pihak ketiga HARUS berbasis WebKit, seperti dijelaskan di Bagian 3.4.1.

Implementasi MUNGKIN mengirimkan string agen pengguna khusus dalam aplikasi Browser mandiri.

Aplikasi Browser mandiri (baik berdasarkan aplikasi Browser WebKit upstream atau pengganti pihak ketiga) HARUS menyertakan dukungan untuk HTML5 sebanyak mungkin [ Sumber Daya, 11 ] . Minimal, implementasi perangkat HARUS mendukung setiap API yang terkait dengan HTML5 berikut:

Selain itu, implementasi perangkat HARUS mendukung API penyimpanan web HTML5/W3C [ Sumber Daya, 15 ], dan HARUS mendukung API IndexedDB HTML5/W3C [ Sumber Daya, 16 ]. Perlu diperhatikan bahwa seiring dengan transisi badan standar pengembangan web yang lebih mengutamakan IndexedDB dibandingkan penyimpanan web, IndexedDB diperkirakan akan menjadi komponen wajib dalam versi Android mendatang.

3.5. Kompatibilitas Perilaku API

Perilaku masing-masing jenis API (terkelola, lunak, asli, dan web) harus konsisten dengan implementasi pilihan Proyek Sumber Terbuka Android upstream [ Sumber Daya, 3 ]. Beberapa area kompatibilitas tertentu adalah:

  • Perangkat TIDAK BOLEH mengubah perilaku atau semantik Intent standar
  • Perangkat TIDAK BOLEH mengubah siklus hidup atau semantik siklus hidup jenis komponen sistem tertentu (seperti Layanan, Aktivitas, ContentProvider, dll.)
  • Perangkat TIDAK HARUS mengubah semantik izin standar

Daftar di atas tidak lengkap. Compatibility Test Suite (CTS) menguji sebagian besar platform untuk kompatibilitas perilaku, namun tidak semuanya. Implementer bertanggung jawab memastikan kompatibilitas perilaku dengan Proyek Sumber Terbuka Android. Oleh karena itu, pelaksana perangkat HARUS menggunakan kode sumber yang tersedia melalui Proyek Sumber Terbuka Android jika memungkinkan, daripada mengimplementasikan ulang bagian penting dari sistem.

3.6. Ruang Nama API

Android mengikuti konvensi namespace paket dan kelas yang ditentukan oleh bahasa pemrograman Java. Untuk memastikan kompatibilitas dengan aplikasi pihak ketiga, pelaksana perangkat TIDAK BOLEH melakukan modifikasi apa pun yang dilarang (lihat di bawah) pada namespace paket ini:

  • Jawa.*
  • javax.*
  • matahari.*
  • android.*
  • com.android.*

Modifikasi yang dilarang antara lain:

  • Implementasi perangkat TIDAK BOLEH mengubah API yang diekspos secara publik di platform Android dengan mengubah metode atau tanda tangan kelas apa pun, atau dengan menghapus kelas atau kolom kelas.
  • Pelaksana perangkat MUNGKIN memodifikasi implementasi dasar API, namun modifikasi tersebut TIDAK BOLEH berdampak pada perilaku yang dinyatakan dan tanda tangan bahasa Java dari API apa pun yang diekspos secara publik.
  • Pelaksana perangkat TIDAK BOLEH menambahkan elemen apa pun yang diekspos secara publik (seperti kelas atau antarmuka, atau bidang atau metode ke kelas atau antarmuka yang ada) ke API di atas.

"Elemen yang diekspos secara publik" adalah konstruksi apa pun yang tidak dihiasi dengan penanda "@hide" seperti yang digunakan dalam kode sumber Android upstream. Dengan kata lain, pelaksana perangkat TIDAK BOLEH mengekspos API baru atau mengubah API yang sudah ada di namespace yang disebutkan di atas. Pelaksana perangkat MUNGKIN melakukan modifikasi internal saja, namun modifikasi tersebut TIDAK BOLEH diiklankan atau diekspos ke pengembang.

Pelaksana perangkat MUNGKIN menambahkan API khusus, namun API tersebut TIDAK BOLEH berada dalam namespace yang dimiliki atau mengacu pada organisasi lain. Misalnya, pelaksana perangkat TIDAK BOLEH menambahkan API ke com.google.* atau namespace serupa; hanya Google yang dapat melakukannya. Demikian pula, Google TIDAK BOLEH menambahkan API ke namespace perusahaan lain. Selain itu, jika implementasi perangkat menyertakan API khusus di luar namespace Android standar, API tersebut HARUS dikemas dalam pustaka bersama Android sehingga hanya aplikasi yang menggunakannya secara eksplisit (melalui mekanisme <uses-library> ) yang terpengaruh oleh peningkatan penggunaan memori API tersebut.

Jika pelaksana perangkat mengusulkan untuk meningkatkan salah satu paket nama di atas (seperti dengan menambahkan fungsionalitas baru yang berguna ke API yang ada, atau menambahkan API baru), pelaksana harus mengunjungi sumber.android.com dan memulai proses untuk menyumbangkan perubahan dan kode, sesuai dengan informasi di situs itu.

Perhatikan bahwa pembatasan di atas sesuai dengan konvensi standar untuk penamaan API dalam bahasa pemrograman Java; Bagian ini hanya bertujuan untuk memperkuat konvensi tersebut dan membuatnya mengikat melalui inklusi dalam definisi kompatibilitas ini.

3.7. Kompatibilitas Mesin Virtual

Implementasi perangkat harus mendukung spesifikasi bytecode Dalvik yang dapat dieksekusi (DEX) dan semantik mesin virtual Dalvik [ Sumber Daya, 17 ].

Implementasi perangkat harus mengkonfigurasi Dalvik untuk mengalokasikan memori sesuai dengan platform Android hulu, dan sebagaimana ditentukan oleh tabel berikut. (Lihat Bagian 7.1.1 untuk ukuran layar dan definisi kepadatan layar.)

Perhatikan bahwa nilai memori yang ditentukan di bawah ini dianggap sebagai nilai minimum, dan implementasi perangkat dapat mengalokasikan lebih banyak memori per aplikasi.

Ukuran layar Kepadatan Layar Memori aplikasi
Kecil / normal / besar LDPI / MDPI 16MB
Kecil / normal / besar TVDPI / HDPI 32MB
Kecil / normal / besar xhdpi 64MB
xbesar mdpi 32MB
xbesar TVDPI / HDPI 64MB
xbesar xhdpi 128MB

3.8. Kompatibilitas Antarmuka Pengguna

3.8.1. Peluncur (Layar Beranda)

Android 4.3 termasuk aplikasi peluncur (layar beranda) dan dukungan untuk aplikasi pihak ketiga untuk menggantikan peluncur perangkat (layar beranda). Implementasi perangkat yang memungkinkan aplikasi pihak ketiga untuk mengganti layar beranda perangkat harus mendeklarasikan fitur platform android.software.home_screen .

3.8.2. Widget

Android mendefinisikan jenis komponen dan API dan siklus hidup yang sesuai yang memungkinkan aplikasi untuk mengekspos "appwidget" ke pengguna akhir [ sumber daya, 18 ]. Implementasi perangkat yang mendukung penyembatan widget di layar beranda harus memenuhi persyaratan berikut dan mendeklarasikan dukungan untuk fitur platform android.software.app_widgets .

  • Peluncur perangkat harus menyertakan dukungan bawaan untuk AppWidgets, dan mengekspos keterjangkauan antarmuka pengguna untuk menambah, mengkonfigurasi, melihat, dan menghapus APPWIDGET secara langsung di dalam peluncur.
  • Implementasi perangkat harus mampu rendering widget yang 4 x 4 dalam ukuran grid standar. (Lihat Pedoman Desain Widget Aplikasi dalam dokumentasi Android SDK [ Sumber Daya, 18 ] untuk detailnya.
  • Implementasi perangkat yang mencakup dukungan untuk layar kunci harus mendukung widget aplikasi pada layar kunci.

3.8.3. Pemberitahuan

Android termasuk API yang memungkinkan pengembang untuk memberi tahu pengguna tentang acara terkenal [ Sumber Daya, 19 ], menggunakan fitur perangkat keras dan perangkat lunak perangkat.

Beberapa API memungkinkan aplikasi untuk melakukan pemberitahuan atau menarik perhatian menggunakan perangkat keras, khususnya suara, getaran, dan cahaya. Implementasi perangkat harus mendukung pemberitahuan yang menggunakan fitur perangkat keras, seperti yang dijelaskan dalam dokumentasi SDK, dan sejauh mungkin dengan perangkat keras implementasi perangkat. Misalnya, jika implementasi perangkat mencakup vibrator, ia harus mengimplementasikan API getaran dengan benar. Jika implementasi perangkat tidak memiliki perangkat keras, API yang sesuai harus diimplementasikan sebagai no-ops. Perhatikan bahwa perilaku ini lebih rinci dalam Bagian 7.

Selain itu, implementasi harus membuat semua sumber daya dengan benar (ikon, file suara, dll.) Disediakan dalam API [ Sumber Daya, 20 ], atau dalam Panduan Gaya Ikon Status/System Bar [ Sumber Daya, 21 ]. Pelaksana perangkat dapat memberikan pengalaman pengguna alternatif untuk pemberitahuan daripada yang disediakan oleh referensi implementasi sumber terbuka Android; Namun, sistem pemberitahuan alternatif tersebut harus mendukung sumber daya pemberitahuan yang ada, seperti di atas.

Android 4.3 termasuk dukungan untuk pemberitahuan yang kaya, seperti pandangan interaktif untuk pemberitahuan yang sedang berlangsung. Implementasi perangkat harus menampilkan dan menjalankan pemberitahuan yang kaya dengan benar, seperti yang didokumentasikan dalam API Android.

Android termasuk API [ Sumber Daya, 22 ] yang memungkinkan pengembang untuk memasukkan pencarian ke dalam aplikasi mereka, dan mengekspos data aplikasi mereka ke dalam pencarian sistem global. Secara umum, fungsionalitas ini terdiri dari antarmuka pengguna tunggal, seluruh sistem yang memungkinkan pengguna untuk memasukkan kueri, menampilkan saran sebagai pengguna mengetik, dan menampilkan hasil. API Android memungkinkan pengembang untuk menggunakan kembali antarmuka ini untuk menyediakan pencarian di dalam aplikasi mereka sendiri, dan memungkinkan pengembang untuk memasok hasil ke antarmuka pengguna pencarian global umum.

Implementasi perangkat harus menyertakan antarmuka pengguna pencarian tunggal, bersama, di seluruh sistem yang mampu melakukan saran waktu nyata sebagai respons terhadap input pengguna. Implementasi perangkat harus mengimplementasikan API yang memungkinkan pengembang untuk menggunakan kembali antarmuka pengguna ini untuk memberikan pencarian dalam aplikasi mereka sendiri. Implementasi perangkat harus mengimplementasikan API yang memungkinkan aplikasi pihak ketiga untuk menambahkan saran ke kotak pencarian saat dijalankan dalam mode pencarian global. Jika tidak ada aplikasi pihak ketiga yang diinstal yang memanfaatkan fungsi ini, perilaku default harus menampilkan hasil dan saran mesin pencari web.

3.8.5. Bersulang

Aplikasi dapat menggunakan API "Toast" (didefinisikan dalam [ Sumber Daya, 23 ]) untuk menampilkan string non-modal yang pendek kepada pengguna akhir, yang hilang setelah periode waktu yang singkat. Implementasi perangkat harus menampilkan roti panggang dari aplikasi ke pengguna akhir dengan cara visibilitas tinggi.

3.8.6. Tema

Android menyediakan "tema" sebagai mekanisme untuk aplikasi untuk menerapkan gaya di seluruh aktivitas atau aplikasi. Android 4.3 mencakup tema "holo" atau "holografik" sebagai satu set gaya yang ditentukan untuk digunakan pengembang aplikasi jika mereka ingin mencocokkan tampilan dan rasa tema holo sebagaimana didefinisikan oleh Android SDK [ Sumber Daya, 24 ]. Implementasi perangkat tidak boleh mengubah atribut tema Holo yang terpapar pada aplikasi [ Sumber Daya, 25 ].

Android 4.3 mencakup tema "perangkat default" baru sebagai satu set gaya yang ditentukan untuk digunakan pengembang aplikasi jika mereka ingin mencocokkan tampilan dan nuansa tema perangkat sebagaimana didefinisikan oleh pelaksana perangkat. Implementasi perangkat dapat memodifikasi atribut tema Devicedefault yang terpapar pada aplikasi [ Sumber Daya, 25 ].

3.8.7. Wallpaper Hidup

Android mendefinisikan jenis komponen dan API dan siklus hidup yang sesuai yang memungkinkan aplikasi untuk mengekspos satu atau lebih "wallpaper hidup" ke pengguna akhir [ sumber daya, 26 ]. Wallpaper hidup adalah animasi, pola, atau gambar serupa dengan kemampuan input terbatas yang ditampilkan sebagai wallpaper, di belakang aplikasi lain.

Perangkat keras dianggap mampu menjalankan wallpaper langsung jika dapat menjalankan semua wallpaper hidup, tanpa batasan fungsionalitas, pada framerate yang masuk akal tanpa pengaruh buruk pada aplikasi lain. Jika keterbatasan dalam perangkat keras menyebabkan wallpaper dan/atau aplikasi untuk macet, tidak berfungsi, mengonsumsi CPU yang berlebihan atau daya baterai, atau dijalankan dengan laju bingkai rendah yang tidak dapat diterima, perangkat keras dianggap tidak mampu menjalankan wallpaper hidup. Sebagai contoh, beberapa wallpaper hidup dapat menggunakan konteks GL 1.0 atau 2.0 terbuka untuk membuat konten mereka. Wallpaper langsung tidak akan berjalan dengan andal pada perangkat keras yang tidak mendukung beberapa konteks OpenGL karena penggunaan wallpaper langsung dari konteks OpenGL dapat bertentangan dengan aplikasi lain yang juga menggunakan konteks OpenGL.

Implementasi perangkat yang mampu menjalankan wallpaper langsung dengan andal seperti yang dijelaskan di atas harus menerapkan wallpaper hidup. Implementasi perangkat yang ditentukan untuk tidak menjalankan wallpaper hidup dengan andal seperti yang dijelaskan di atas tidak boleh menerapkan wallpaper hidup.

3.8.8. Tampilan Aplikasi Terbaru

Kode sumber Android 4.3 hulu mencakup antarmuka pengguna untuk menampilkan aplikasi terbaru menggunakan gambar thumbnail dari keadaan grafik aplikasi saat ini pengguna terakhir kali meninggalkan aplikasi. Implementasi perangkat dapat mengubah atau menghilangkan antarmuka pengguna ini; Namun, versi Android di masa depan direncanakan untuk memanfaatkan fungsionalitas ini lebih luas. Implementasi perangkat sangat dianjurkan untuk menggunakan antarmuka pengguna Android 4.3 hulu (atau antarmuka berbasis thumbnail serupa) untuk aplikasi terbaru, atau mereka mungkin tidak kompatibel dengan versi Android di masa depan.

3.8.9. Manajemen input

Android 4.3 termasuk dukungan untuk manajemen input dan dukungan untuk editor metode input pihak ketiga. Implementasi perangkat yang memungkinkan pengguna untuk menggunakan metode input pihak ketiga pada perangkat harus mendeklarasikan fitur platform android.software.input_methods dan mendukung IME API sebagaimana didefinisikan dalam dokumentasi Android SDK.

Implementasi perangkat yang mendeklarasikan fitur android.software.input_methods harus memberikan mekanisme yang dapat diakses pengguna untuk menambah dan mengonfigurasi metode input pihak ketiga. Implementasi Perangkat harus menampilkan antarmuka Pengaturan sebagai respons terhadap intent android.settings.INPUT_METHOD_SETTINGS .

3.8.10. Kunci Layar Media Remote Control

Android 4.3 termasuk dukungan untuk API kontrol jarak jauh yang memungkinkan aplikasi media berintegrasi dengan kontrol pemutaran yang ditampilkan dalam tampilan jarak jauh seperti layar kunci perangkat [ Sumber Daya, 74 ]. Implementasi perangkat yang mendukung layar kunci di perangkat dan memungkinkan pengguna untuk menambahkan widget pada layar beranda harus mencakup dukungan untuk menyematkan kontrol jarak jauh di layar kunci perangkat [ Sumber Daya, 69 ].

3.8.11. Mimpi

Android 4.3 termasuk dukungan untuk screensavers interaktif yang disebut Dreams [ Resources, 76 ]. Mimpi memungkinkan pengguna untuk berinteraksi dengan aplikasi saat perangkat pengisian daya menganggur, atau merapat di dermaga meja. Implementasi perangkat harus mencakup dukungan untuk mimpi dan menyediakan opsi pengaturan bagi pengguna untuk mengonfigurasi mimpi.

3.9 Administrasi Perangkat

Android 4.3 mencakup fitur yang memungkinkan aplikasi yang sadar keamanan untuk melakukan fungsi administrasi perangkat di tingkat sistem, seperti menegakkan kebijakan kata sandi atau melakukan penghapusan jarak jauh, melalui API Administrasi Perangkat Android [ Sumber Daya, 27 ]. Implementasi perangkat harus memberikan implementasi kelas DevicePolicyManager [ Sumber Daya, 28 ]. Implementasi perangkat yang mencakup dukungan untuk layar kunci harus mendukung berbagai kebijakan administrasi perangkat yang ditentukan dalam dokumentasi Android SDK [ Sumber Daya, 27 ].

3.10 Aksesibilitas

Android 4.3 menyediakan lapisan aksesibilitas yang membantu pengguna penyandang cacat untuk menavigasi perangkat mereka dengan lebih mudah. Selain itu, Android 4.3 menyediakan API platform yang memungkinkan implementasi layanan aksesibilitas untuk menerima panggilan balik untuk acara pengguna dan sistem dan menghasilkan mekanisme umpan balik alternatif, seperti teks-ke-speech, umpan balik haptic, dan navigasi trackball/d-pad [ Sumber Daya, 29 ] . Implementasi perangkat harus memberikan implementasi kerangka kerja aksesibilitas Android yang konsisten dengan implementasi Android default. Secara khusus, implementasi perangkat harus memenuhi persyaratan berikut.

  • Implementasi perangkat harus mendukung implementasi layanan aksesibilitas pihak ketiga melalui android.accessibilityservice API [ Sumber Daya, 30 ].
  • Implementasi perangkat harus menghasilkan AccessibilityEvents dan mengirimkan acara ini ke semua implementasi AccessibilityService terdaftar dengan cara yang konsisten dengan implementasi Android default.
  • Implementasi perangkat harus memberikan mekanisme yang dapat diakses pengguna untuk mengaktifkan dan menonaktifkan layanan aksesibilitas, dan harus menampilkan antarmuka ini sebagai tanggapan terhadap intent android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS .

Selain itu, implementasi perangkat harus memberikan implementasi layanan aksesibilitas pada perangkat, dan harus menyediakan mekanisme bagi pengguna untuk mengaktifkan layanan aksesibilitas selama pengaturan perangkat. Implementasi open source dari layanan aksesibilitas tersedia dari proyek bebas mata [ Sumber Daya, 31 ].

3.11 Teks-ke-Speech

Android 4.3 mencakup API yang memungkinkan aplikasi untuk menggunakan layanan teks-ke-speech (TTS), dan memungkinkan penyedia layanan untuk menyediakan implementasi layanan TTS [ Sumber Daya, 32 ]. Implementasi perangkat harus memenuhi persyaratan ini terkait dengan kerangka kerja TTS Android:

  • Implementasi perangkat harus mendukung API Kerangka TTS Android dan harus menyertakan mesin TTS yang mendukung bahasa yang tersedia di perangkat. Perhatikan bahwa perangkat lunak open source Android hulu mencakup implementasi mesin TTS berfitur lengkap.
  • Implementasi perangkat harus mendukung pemasangan mesin TTS pihak ketiga.
  • Implementasi perangkat harus menyediakan antarmuka yang dapat diakses pengguna yang memungkinkan pengguna untuk memilih mesin TTS untuk digunakan di tingkat sistem.

4. Kompatibilitas Kemasan Aplikasi

Implementasi perangkat harus menginstal dan menjalankan file android ".apk" seperti yang dihasilkan oleh alat "AAPT" yang termasuk dalam Android SDK resmi [ Sumber Daya, 33 ].

Implementasi perangkat tidak boleh memperluas .apk [ sumber daya, 34 ], manifes android [ sumber daya, 35 ], dalvik bytecode [ sumber daya, 17 ], atau renderscript format bytecode sedemikian perangkat lain yang kompatibel. Pelaksana perangkat harus menggunakan implementasi hulu referensi dari Dalvik, dan sistem manajemen paket implementasi referensi.

5. Kompatibilitas Multimedia

Implementasi perangkat harus mencakup setidaknya satu bentuk output audio, seperti speaker, jack headphone, koneksi speaker eksternal, dll.

5.1. Codec Media

Implementasi perangkat harus mendukung format media inti yang ditentukan dalam dokumentasi Android SDK [ Sumber Daya, 58 ] kecuali jika diizinkan secara eksplisit dalam dokumen ini. Secara khusus, implementasi perangkat harus mendukung format media, encoder, decoder, jenis file dan format wadah yang ditentukan dalam tabel di bawah ini. Semua codec ini disediakan sebagai implementasi perangkat lunak dalam implementasi Android yang disukai dari proyek open source Android.

Harap dicatat bahwa Google maupun aliansi handset terbuka tidak membuat representasi bahwa codec ini tidak terbebani oleh paten pihak ketiga. Mereka yang bermaksud menggunakan kode sumber ini dalam produk perangkat keras atau perangkat lunak disarankan agar implementasi kode ini, termasuk dalam perangkat lunak open source atau shareware, mungkin memerlukan lisensi paten dari pemegang paten yang relevan.

Perhatikan bahwa tabel ini tidak mencantumkan persyaratan bitrate spesifik untuk sebagian besar codec video karena perangkat keras perangkat saat ini tidak selalu mendukung bitrate yang memetakan persis ke bitrat yang diperlukan yang ditentukan oleh standar yang relevan. Sebaliknya, implementasi perangkat harus mendukung bitrate tertinggi praktis pada perangkat keras, hingga batas yang ditentukan oleh spesifikasi.

Jenis Format / Kodek Pembuat enkode Dekoder Detail Jenis file / format kontainer
Audio Profil AAC MPEG-4 (AAC LC) Diperlukan untuk implementasi perangkat yang mencakup perangkat keras mikrofon dan mendefinisikan android.hardware.microphone . DIPERLUKAN Dukungan untuk konten mono/stereo/5.0/5.1* dengan laju pengambilan sampel standar dari 8 hingga 48 kHz.
  • 3GPP (.3gp)
  • MPEG-4 (.mp4, .m4a)
  • ADTS RAW AAC (.AAC, Decode di Android 3.1+, Encode di Android 4.0+, Adif Tidak Didukung)
  • MPEG-TS (.ts, tidak dicari, Android 3.0+)
MPEG-4 He AAC Profile (AAC+) Diperlukan untuk implementasi perangkat yang mencakup perangkat keras mikrofon dan mendefinisikan android.hardware.microphone DIPERLUKAN Dukungan untuk konten mono/stereo/5.0/5.1* dengan laju pengambilan sampel standar dari 16 hingga 48 kHz.
MPEG-4 He AAC V2 Profile (Ditingkatkan AAC+) DIPERLUKAN Dukungan untuk konten mono/stereo/5.0/5.1* dengan laju pengambilan sampel standar dari 16 hingga 48 kHz.
MPEG-4 Audio Obyek Jenis ER AAC ELD (Peningkatan Penundaan AAC) Ditingkatkan) Diperlukan untuk implementasi perangkat yang mencakup perangkat keras mikrofon dan mendefinisikan android.hardware.microphone DIPERLUKAN Dukungan untuk konten mono/stereo dengan tingkat pengambilan sampel standar dari 16 hingga 48 kHz.
AMR-NB Diperlukan untuk implementasi perangkat yang mencakup perangkat keras mikrofon dan mendefinisikan android.hardware.microphone . DIPERLUKAN Sampel 4,75 hingga 12,2 kbps @ 8kHz 3GPP (.3gp)
AMR-WB Diperlukan untuk implementasi perangkat yang mencakup perangkat keras mikrofon dan mendefinisikan android.hardware.microphone . DIPERLUKAN 9 kecepatan dari 6,60 kbit/s hingga 23,85 kbit/s sampel @ 16kHz 3GPP (.3gp)
FLAC DIPERLUKAN
(Android 3.1+)
Mono/Stereo (tanpa multisaluran). Kecepatan sampel hingga 48 kHz (tetapi disarankan hingga 44,1 kHz pada perangkat dengan output 44,1 kHz, karena downsampler 48 hingga 44,1 kHz tidak menyertakan filter low-pass). direkomendasikan 16-bit; tidak ada keragu-raguan yang diterapkan untuk 24-bit. FLAC (.flac) saja
MP3 DIPERLUKAN Konstanta Mono/Stereo 8-320Kbps (CBR) atau kecepatan bit variabel (VBR) Mp3 (.mp3)
MIDI DIPERLUKAN MIDI Tipe 0 dan 1. DLS Versi 1 dan 2. XMF dan Mobile XMF. Dukungan untuk format nada dering RTTTL/RTX, OTA, dan iMelody
  • Tipe 0 dan 1 (.mid, .xmf, .mxmf)
  • Rtttl/rtx (.rtttl, .rtx)
  • OTA (.ota)
  • Imelody (.imy)
Vorbis DIPERLUKAN
  • OGG (.OGG)
  • Matroska (.mkv)
PCM/GELOMBANG DIPERLUKAN DIPERLUKAN 8-bit dan 16-bit linear PCM ** (Tarif hingga batas perangkat keras). Perluasan harus mendukung laju pengambilan sampel untuk perekaman PCM mentah pada 8000.16000 dan 44100 frekuensi Hz GELOMBANG (.wav)
Gambar jpeg DIPERLUKAN DIPERLUKAN Basis+progresif JPEG (.jpg)
GIF DIPERLUKAN GIF (.gif)
PNG DIPERLUKAN DIPERLUKAN PNG (.png)
BMP DIPERLUKAN BMP (.bmp)
WEBP DIPERLUKAN DIPERLUKAN WebP (.webp)
Video H.263 Diperlukan untuk implementasi perangkat yang mencakup perangkat keras kamera dan mendefinisikan android.hardware.camera atau android.hardware.camera.front . DIPERLUKAN
  • 3GPP (.3gp)
  • MPEG-4 (.mp4)
H.264 AVC Diperlukan untuk implementasi perangkat yang mencakup perangkat keras kamera dan mendefinisikan android.hardware.camera atau android.hardware.camera.front . DIPERLUKAN Profil Dasar (BP)
  • 3GPP (.3gp)
  • MPEG-4 (.mp4)
  • MPEG-TS (.ts, AAC Audio saja, tidak dicari, Android 3.0+)
MPEG-4SP DIPERLUKAN 3GPP (.3gp)
Wakil Presiden8 DIPERLUKAN
(Android 4.3+)
DIPERLUKAN
(Android 2.3.3+)
Webm (.webm) dan matroska (.mkv, android 4.0+) ***
  • *Catatan: Hanya Downmix dari Konten 5.0/5.1 yang diperlukan; Merekam atau merender lebih dari 2 saluran adalah opsional.
  • ** Catatan: Penangkapan PCM linier 16-bit adalah wajib. Penangkapan PCM linier 8-bit tidak wajib.
  • *** CATATAN: Implementasi perangkat harus mendukung penulisan file webm Matroska.

5.2 Pengkodean Video

Implementasi perangkat Android yang menyertakan kamera yang menghadap ke belakang dan mendeklarasikan android.hardware.camera harus mendukung profil pengkodean video H.264 berikut.

SD (Kualitas rendah) SD (Kualitas tinggi) HD (saat didukung oleh perangkat keras)
Resolusi video 176x144 piksel 480x360 piksel 1280x720 piksel
Kecepatan bingkai video 12fps 30fps 30fps
Kecepatan bit video 56 Kbps 500 kbps atau lebih tinggi 2 mbps atau lebih tinggi
Kodek audio AAC-LC AAC-LC AAC-LC
Saluran audio 1 (mono) 2 (stereo) 2 (stereo)
Kecepatan bit audio 24Kbps 128 Kbps 192 kbps

Implementasi perangkat Android yang menyertakan kamera yang menghadap ke belakang dan mendeklarasikan android.hardware.camera harus mendukung profil pengkodean video VP8 berikut

SD (Kualitas rendah) SD (Kualitas tinggi) HD 720p
(Saat didukung oleh perangkat keras)
HD 1080p
(Saat didukung oleh perangkat keras)
Resolusi video 320 x 180 px 640 x 360 px 1280x720 piksel 1920x1080 piksel
Kecepatan bingkai video 30fps 30fps 30fps 30fps
Kecepatan bit video 800 kbps 2Mbps 4Mbps 10Mbps

5.3 DECODING VIDEO

Implementasi perangkat Android harus mendukung profil decoding video VP8 dan H.264 berikut.

SD (Kualitas rendah) SD (Kualitas tinggi) HD 720p
(Saat didukung oleh perangkat keras)
HD 1080p
(Saat didukung oleh perangkat keras)
Resolusi video 320 x 180 px 640 x 360 px 1280x720 piksel 1920x1080 piksel
Kecepatan bingkai video 30fps 30fps 30fps 30fps
Kecepatan bit video 800 kbps 2Mbps 8Mbps 20Mbps

5.4. Rekaman audio

Ketika sebuah aplikasi telah menggunakan android.media.AudioRecord API untuk mulai merekam aliran audio, implementasi perangkat yang mencakup perangkat keras mikrofon dan mendeklarasikan android.hardware.microphone harus mencicipi dan merekam audio dengan masing -masing perilaku ini:

  • Perangkat harus menunjukkan kira -kira amplitudo datar versus karakteristik frekuensi; Secara khusus, ± 3 dB, dari 100 Hz hingga 4000 Hz
  • Sensitivitas input audio harus ditetapkan sedemikian rupa sehingga sumber daya daya 90 dB (SPL) pada 1000 Hz menghasilkan RMS 2500 untuk sampel 16-bit.
  • Level amplitudo PCM harus secara linier melacak perubahan input SPL pada setidaknya kisaran 30 dB dari -18 dB hingga +12 dB Re 90 dB SPL di mikrofon.
  • Distorsi harmonik total harus kurang dari 1% untuk 1kHz pada tingkat input SPL 90 dB.

Selain spesifikasi perekaman di atas, ketika suatu aplikasi telah mulai merekam aliran audio menggunakan android.media.MediaRecorder.AudioSource.VOICE_RECOGNITION Audio Sumber:

  • Pemrosesan pengurangan kebisingan, jika ada, harus dinonaktifkan.
  • Kontrol gain otomatis, jika ada, harus dinonaktifkan.

Catatan: Sementara beberapa persyaratan yang diuraikan di atas dinyatakan sebagai "harus" untuk Android 4.3, definisi kompatibilitas untuk versi masa depan direncanakan untuk mengubahnya menjadi "harus". Artinya, persyaratan ini opsional di Android 4.3 tetapi akan diminta oleh versi masa depan. Perangkat yang ada dan baru yang menjalankan Android 4.3 sangat dianjurkan untuk memenuhi persyaratan ini di Android 4.3 , atau mereka tidak akan dapat mencapai kompatibilitas Android saat ditingkatkan ke versi masa depan.

5.5. Latensi Audio

Latensi audio adalah penundaan waktu ketika sinyal audio melewati sistem. Banyak kelas aplikasi bergantung pada latensi pendek, untuk mencapai efek suara real-time.

Untuk keperluan bagian ini:

  • "Latensi keluaran" didefinisikan sebagai interval antara ketika aplikasi menulis bingkai data kode PCM dan ketika suara yang sesuai dapat didengar oleh pendengar eksternal atau diamati oleh transduser
  • "Latensi Output Dingin" didefinisikan sebagai latensi output untuk frame pertama, ketika sistem output audio telah menganggur dan didukung sebelum permintaan
  • "Latensi Output Berkelanjutan" didefinisikan sebagai latensi output untuk frame berikutnya, setelah perangkat sudah bermain audio
  • "Latensi input" adalah interval antara ketika suara eksternal disajikan ke perangkat dan ketika aplikasi membaca bingkai yang sesuai dari data kode PCM
  • "Latensi Input Dingin" didefinisikan sebagai jumlah waktu input yang hilang dan latensi input untuk bingkai pertama, ketika sistem input audio telah menganggur dan dimatikan sebelum permintaan
  • "Latensi Input Berkelanjutan" didefinisikan sebagai latensi input untuk frame berikutnya, sedangkan perangkat sudah menangkap audio
  • "OpenSL ES PCM Buffer Queue API" adalah himpunan Opensl ES terkait PCM di dalam Android NDK; Lihat ndk_root /docs/opensles/index.html

Per bagian 5 , semua implementasi perangkat yang kompatibel harus mencakup setidaknya satu bentuk output audio. Implementasi perangkat harus memenuhi atau melampaui persyaratan latensi output ini:

  • latensi output dingin 100 milidetik atau kurang
  • Latensi keluaran terus menerus dari 45 milidetik atau kurang

Jika implementasi perangkat memenuhi persyaratan bagian ini setelah kalibrasi awal saat menggunakan OpenSl ES PCM Buffer Queue API, untuk latensi output berkelanjutan dan latensi output dingin pada setidaknya satu perangkat output audio yang didukung, itu dapat melaporkan dukungan untuk audio latensi rendah rendah latensi rendah , dengan melaporkan fitur "android.hardware.audio.low-latency" melalui kelas android.content.pm.PackageManager . [ Sumber Daya, 37 ] Sebaliknya, jika implementasi perangkat tidak memenuhi persyaratan ini, ia tidak boleh melaporkan dukungan untuk audio latensi rendah.

Per bagian 7.2.5 , perangkat keras mikrofon dapat dihilangkan dengan implementasi perangkat.

Implementasi perangkat yang mencakup perangkat keras mikrofon dan mendeklarasikan android.hardware.microphone harus memenuhi persyaratan latensi audio input ini:

  • latensi input dingin 100 milidetik atau kurang
  • latensi input kontinu 50 milidetik atau kurang

5.6. Protokol Jaringan

Perangkat harus mendukung protokol jaringan media untuk pemutaran audio dan video sebagaimana ditentukan dalam dokumentasi Android SDK [ Resources, 58 ]. Secara khusus, perangkat harus mendukung protokol jaringan media berikut:

  • RTSP (RTP, SDP)
  • Http (s) streaming progresif
  • HTTP (S) Live Streaming Draft Protocol, Versi 3 [ Sumber Daya, 59 ]

6. Kompatibilitas Alat dan Opsi Pengembang

6.1 Alat Pengembang

Implementasi perangkat harus mendukung alat pengembang Android yang disediakan di Android SDK. Secara khusus, perangkat yang kompatibel dengan Android harus kompatibel dengan:

  • Android Debug Bridge (dikenal sebagai ADB) [ Sumber Daya, 33 ]
    Implementasi perangkat harus mendukung semua fungsi adb seperti yang didokumentasikan dalam Android SDK. Daemon adb sisi perangkat harus tidak aktif secara default, dan harus ada mekanisme yang dapat diakses pengguna untuk menyalakan jembatan debug Android.
  • Android 4.3 termasuk dukungan untuk ADB yang aman. Secure ADB Mengaktifkan ADB pada host yang diotentikasi yang diketahui. Implementasi perangkat harus mendukung ADB yang aman.
  • Dalvik Debug Monitor Service (dikenal sebagai DDMS) [ Sumber Daya, 33 ]
    Implementasi perangkat harus mendukung semua fitur ddms seperti yang didokumentasikan dalam Android SDK. Karena ddms menggunakan adb , dukungan untuk ddms harus tidak aktif secara default, tetapi harus didukung setiap kali pengguna mengaktifkan jembatan Android Debug, seperti di atas.
  • Monyet [ Sumber Daya, 36 ]
    Implementasi perangkat harus mencakup kerangka kerja monyet, dan membuatnya tersedia untuk aplikasi untuk digunakan.
  • Systrace [ Sumber Daya, 33 ]
    Implementasi perangkat harus mendukung alat Systrace seperti yang didokumentasikan dalam Android SDK. Systrace harus tidak aktif secara default, dan harus ada mekanisme yang dapat diakses pengguna untuk menyalakan Systrace.

Sebagian besar sistem berbasis Linux dan sistem Apple Macintosh mengenali perangkat Android menggunakan alat Android SDK standar, tanpa dukungan tambahan; Namun sistem Microsoft Windows biasanya memerlukan driver untuk perangkat Android baru. (Misalnya, ID vendor baru dan kadang -kadang ID perangkat baru memerlukan driver USB khusus untuk sistem Windows.) Jika implementasi perangkat tidak diakui oleh alat adb sebagaimana disediakan dalam SDK Android standar, pelaksana perangkat harus menyediakan driver Windows yang memungkinkan pengembang untuk terhubung ke Perangkat menggunakan protokol adb . Driver ini harus disediakan untuk Windows XP, Windows Vista, Windows 7, dan Windows 8, dalam versi 32-bit dan 64-bit.

6.2 Opsi Pengembang

Android 4.3 termasuk dukungan bagi pengembang untuk mengonfigurasi pengaturan terkait pengembangan aplikasi. Implementasi perangkat harus menghormati Android.settings.application_development_settings Niat untuk menunjukkan pengaturan terkait pengembangan aplikasi [ Sumber Daya, 77 ]. Implementasi Android hulu menyembunyikan menu Opsi Pengembang secara default, dan memungkinkan pengguna untuk meluncurkan opsi pengembang setelah menekan tujuh (7) kali pada pengaturan> tentang perangkat> Build Number Menu item. Implementasi perangkat harus memberikan pengalaman yang konsisten untuk opsi pengembang. Secara khusus, implementasi perangkat harus menyembunyikan opsi pengembang secara default dan harus memberikan mekanisme untuk memungkinkan opsi pengembang yang konsisten dengan implementasi Android hulu.

7. Kompatibilitas perangkat keras

Jika perangkat menyertakan komponen perangkat keras tertentu yang memiliki API yang sesuai untuk pengembang pihak ketiga, implementasi perangkat harus mengimplementasikan API tersebut seperti yang dijelaskan dalam dokumentasi Android SDK. Jika API di SDK berinteraksi dengan komponen perangkat keras yang dinyatakan sebagai opsional dan implementasi perangkat tidak memiliki komponen itu:

  • Definisi kelas lengkap (seperti yang didokumentasikan oleh SDK) untuk API komponen masih harus ada
  • Perilaku API harus diimplementasikan sebagai tidak ada ops dengan cara yang masuk akal
  • Metode API harus mengembalikan nilai nol jika diizinkan oleh dokumentasi SDK
  • Metode API Harus Mengembalikan Implementasi Kelas No-Op di mana nilai nol tidak diizinkan oleh dokumentasi SDK
  • Metode API tidak boleh melempar pengecualian yang tidak didokumentasikan oleh dokumentasi SDK

Contoh khas dari skenario di mana persyaratan ini berlaku adalah API Telephony: Bahkan pada perangkat non-telepon, API ini harus diimplementasikan sebagai no-op yang masuk akal.

Implementasi Perangkat harus secara akurat melaporkan informasi konfigurasi perangkat keras yang akurat melalui metode getSystemAvailableFeatures() dan hasSystemFeature(String) di kelas android.content.pm.PackageManager . [ Sumber Daya, 37 ]

7.1. Tampilan dan Grafik

Android 4.3 mencakup fasilitas yang secara otomatis menyesuaikan aset aplikasi dan tata letak UI secara tepat untuk perangkat, untuk memastikan bahwa aplikasi pihak ketiga berjalan dengan baik pada berbagai konfigurasi perangkat keras [ sumber daya, 38 ]. Perangkat harus mengimplementasikan API dan perilaku ini dengan benar, sebagaimana dirinci dalam bagian ini.

Unit yang dirujuk oleh persyaratan di bagian ini didefinisikan sebagai berikut:

  • "Ukuran diagonal fisik" adalah jarak dalam inci antara dua sudut yang berlawanan dari bagian layar yang diterangi.
  • "DPI" (artinya "titik per inci") adalah jumlah piksel yang dicakup oleh rentang horizontal atau vertikal linier 1 ". Di mana nilai DPI terdaftar, baik DPI horizontal dan vertikal harus berada dalam kisaran.
  • "Rasio aspek" adalah rasio dimensi yang lebih panjang dari layar terhadap dimensi yang lebih pendek. Misalnya, tampilan 480x854 piksel adalah 854 /480 = 1.779, atau kira -kira "16: 9".
  • "Pixel-independen-kepadatan" atau ("DP") adalah unit piksel virtual yang dinormalisasi ke layar 160 dpi, dihitung sebagai: pixels = dps * (density / 160) .

7.1.1. Konfigurasi Layar

Ukuran layar

Kerangka kerja Android UI mendukung berbagai ukuran layar yang berbeda, dan memungkinkan aplikasi untuk menanyakan ukuran layar perangkat (alias "tata letak layar") melalui android.content.res.Configuration.screenLayout dengan SCREENLAYOUT_SIZE_MASK . Implementasi perangkat harus melaporkan ukuran layar yang benar sebagaimana didefinisikan dalam dokumentasi Android SDK [ Sumber Daya, 38 ] dan ditentukan oleh platform Android hulu. Secara khusus, implementasi perangkat harus melaporkan ukuran layar yang benar sesuai dengan dimensi layar piksel-independen-independen (DP).

  • Perangkat harus memiliki ukuran layar minimal 426 dp x 320 dp ('kecil')
  • Perangkat yang melaporkan ukuran layar 'normal' harus memiliki ukuran layar setidaknya 480 dp x 320 dp
  • Perangkat yang melaporkan ukuran layar 'besar' harus memiliki ukuran layar setidaknya 640 dp x 480 dp
  • Perangkat yang melaporkan ukuran layar 'xlarge' harus memiliki ukuran layar setidaknya 960 dp x 720 dp

Selain itu, perangkat harus memiliki ukuran layar minimal 2,5 inci dalam ukuran diagonal fisik.

Perangkat tidak boleh mengubah ukuran layar yang dilaporkan kapan saja.

Aplikasi secara opsional menunjukkan ukuran layar mana yang mereka dukung melalui atribut <supports-screens> di file androidmanifest.xml. Implementasi perangkat harus menghormati aplikasi yang dinyatakan dengan benar untuk layar kecil, normal, besar, dan xlarge, seperti yang dijelaskan dalam dokumentasi Android SDK.

Rasio Aspek Layar

Rasio aspek harus antara 1,3333 (4: 3) dan 1,85 (16: 9).

Kepadatan Layar

Kerangka kerja Android UI mendefinisikan serangkaian kepadatan logis standar untuk membantu pengembang aplikasi menargetkan sumber daya aplikasi. Implementasi perangkat harus melaporkan salah satu dari kepadatan kerangka kerja Android logis berikut melalui android.util.DisplayMetrics API, dan harus menjalankan aplikasi pada kepadatan standar ini.

  • 120 dpi, dikenal sebagai 'LDPI'
  • 160 dpi, dikenal sebagai 'mdpi'
  • 213 dpi, dikenal sebagai 'tvdpi'
  • 240 dpi, dikenal sebagai 'hdpi'
  • 320 dpi, dikenal sebagai 'xhdpi'
  • 480 dpi, dikenal sebagai 'xxhdpi'
  • 640 dpi, dikenal sebagai 'xxxhdpi'
Implementasi perangkat harus menentukan kerapatan kerangka Android standar yang secara numerik terdekat dengan kepadatan fisik layar, kecuali kepadatan logis itu mendorong ukuran layar yang dilaporkan di bawah minimum yang didukung. Jika kepadatan kerangka Android standar yang paling dekat dengan kepadatan fisik menghasilkan ukuran layar yang lebih kecil dari ukuran layar kompatibel yang kompatibel dengan terkecil (lebar 320 dp), implementasi perangkat harus melaporkan kepadatan kerangka Android standar terendah berikutnya.

7.1.2. Metrik Tampilan

Implementasi perangkat harus melaporkan nilai yang benar untuk semua metrik tampilan yang ditentukan dalam android.util.DisplayMetrics [ Sumber Daya, 39 ].

7.1.3. Orientasi layar

Perangkat harus mendukung orientasi dinamis berdasarkan aplikasi untuk orientasi potret atau orientasi layar lansekap. Artinya, perangkat harus menghormati permintaan aplikasi untuk orientasi layar tertentu. Implementasi perangkat dapat memilih orientasi potret atau lanskap sebagai default.

Perangkat harus melaporkan nilai yang benar untuk orientasi perangkat saat ini, kapan pun ditanya melalui android.content.res.configuration.orientation, android.view.display.getorientation (), atau API lainnya.

Perangkat tidak boleh mengubah ukuran atau kepadatan layar yang dilaporkan saat mengubah orientasi.

Perangkat harus melaporkan orientasi layar mana yang mereka dukung ( android.hardware.screen.portrait dan/atau android.hardware.screen.landscape ) dan harus melaporkan setidaknya satu orientasi yang didukung. Misalnya, perangkat dengan layar lansekap orientasi tetap, seperti televisi atau laptop, hanya harus melaporkan android.hardware.screen.landscape .

7.1.4. Akselerasi Grafik 2D dan 3D

Implementasi perangkat harus mendukung OpenGL ES 1.0 dan 2.0, sebagaimana diwujudkan dan dirinci dalam dokumentasi Android SDK. Implementasi perangkat harus mendukung OpenGL ES 3.0 pada perangkat yang mampu mendukung OpenGL ES 3.0. Implementasi perangkat juga harus mendukung Android RenderScript, sebagaimana dirinci dalam dokumentasi Android SDK [ Sumber Daya, 8 ].

Implementasi perangkat juga harus mengidentifikasi diri mereka dengan benar sebagai mendukung OpenGL ES 1.0, OpenGL ES 2.0, atau OpenGL ES 3.0. Itu adalah:

  • API yang dikelola (seperti melalui metode GLES10.getString() ) harus melaporkan dukungan untuk OpenGL ES 1.0 dan OpenGL ES 2.0
  • API OpenGL C/C ++ asli (yaitu, yang tersedia untuk aplikasi melalui libgles_v1cm.so, libgles_v2.so, atau libegl.so) harus melaporkan dukungan untuk OpenGL ES 1.0 dan OpenGL ES 2.0.
  • Implementasi perangkat yang mendeklarasikan dukungan untuk OpenGL ES 3.0 harus mendukung OpenGL ES 3.0 API yang dikelola dan termasuk dukungan untuk API C/C ++ asli. On device implementations that declare support for OpenGL ES 3.0, libGLESv2.so MUST export the OpenGL ES 3.0 function symbols in addition to the OpenGL ES 2.0 function symbols.

Device implementations MAY implement any desired OpenGL ES extensions. However, device implementations MUST report via the OpenGL ES managed and native APIs all extension strings that they do support, and conversely MUST NOT report extension strings that they do not support.

Note that Android 4.3 includes support for applications to optionally specify that they require specific OpenGL texture compression formats. These formats are typically vendor-specific. Device implementations are not required by Android 4.3 to implement any specific texture compression format. However, they SHOULD accurately report any texture compression formats that they do support, via the getString() method in the OpenGL API.

Android 4.3 includes a mechanism for applications to declare that they wanted to enable hardware acceleration for 2D graphics at the Application, Activity, Window or View level through the use of a manifest tag android:hardwareAccelerated or direct API calls [ Resources, 9 ].

In Android 4.3, device implementations MUST enable hardware acceleration by default, and MUST disable hardware acceleration if the developer so requests by setting android:hardwareAccelerated="false" or disabling hardware acceleration directly through the Android View APIs.

In addition, device implementations MUST exhibit behavior consistent with the Android SDK documentation on hardware acceleration [ Resources, 9 ].

Android 4.3 includes a TextureView object that lets developers directly integrate hardware-accelerated OpenGL ES textures as rendering targets in a UI hierarchy. Device implementations MUST support the TextureView API, and MUST exhibit consistent behavior with the upstream Android implementation.

Android 4.3 includes support for EGL_ANDROID_RECORDABLE , a EGLConfig attribute that indicates whether the EGLConfig supports rendering to an ANativeWindow that records images to a video. Device implementations MUST support EGL_ANDROID_RECORDABLE extension [ Resources, 79 ].

7.1.5. Legacy Application Compatibility Mode

Android 4.3 specifies a "compatibility mode" in which the framework operates in an 'normal' screen size equivalent (320dp width) mode for the benefit of legacy applications not developed for old versions of Android that pre-date screen-size independence. Device implementations MUST include support for legacy application compatibility mode as implemented by the upstream Android open source code. That is, device implementations MUST NOT alter the triggers or thresholds at which compatibility mode is activated, and MUST NOT alter the behavior of the compatibility mode itself.

7.1.6. Jenis Layar

Device implementation screens are classified as one of two types:

  • Fixed-pixel display implementations: the screen is a single panel that supports only a single pixel width and height. Typically the screen is physically integrated with the device. Examples include mobile phones, tablets, and so on.
  • Variable-pixel display implementations: the device implementation either has no embedded screen and includes a video output port such as VGA, HDMI or a wireless port for display, or has an embedded screen that can change pixel dimensions. Examples include televisions, set-top boxes, and so on.

Fixed-Pixel Device Implementations

Fixed-pixel device implementations MAY use screens of any pixel dimensions, provided that they meet the requirements defined this Compatibility Definition.

Fixed-pixel implementations MAY include a video output port for use with an external display. However, if that display is ever used for running apps, the device MUST meet the following requirements:

  • The device MUST report the same screen configuration and display metrics, as detailed in Sections 7.1.1 and 7.1.2, as the fixed-pixel display.
  • The device MUST report the same logical density as the fixed-pixel display.
  • The device MUST report screen dimensions that are the same as, or very close to, the fixed-pixel display.

For example, a tablet that is 7" diagonal size with a 1024x600 pixel resolution is considered a fixed-pixel large mdpi display implementation. If it contains a video output port that displays at 720p or 1080p, the device implementation MUST scale the output so that applications are only executed in a large mdpi window, regardless of whether the fixed-pixel display or video output port is in use.

Variable-Pixel Device Implementations

Variable-pixel device implementations MUST support one or both of 1280x720, or 1920x1080 (that is, 720p or 1080p). Device implementations with variable-pixel displays MUST NOT support any other screen configuration or mode. Device implementations with variable-pixel screens MAY change screen configuration or mode at runtime or boot-time. For example, a user of a set-top box may replace a 720p display with a 1080p display, and the device implementation may adjust accordingly.

Additionally, variable-pixel device implementations MUST report the following configuration buckets for these pixel dimensions:

  • 1280x720 (also known as 720p): 'large' screen size, 'tvdpi' (213 dpi) density
  • 1920x1080 (also known as 1080p): 'large' screen size, 'xhdpi' (320 dpi) density

For clarity, device implementations with variable pixel dimensions are restricted to 720p or 1080p in Android 4.3, and MUST be configured to report screen size and density buckets as noted above.

7.1.7. Teknologi Layar

The Android platform includes APIs that allow applications to render rich graphics to the display. Devices MUST support all of these APIs as defined by the Android SDK unless specifically allowed in this document. Secara khusus:

  • Devices MUST support displays capable of rendering 16-bit color graphics and SHOULD support displays capable of 24-bit color graphics.
  • Devices MUST support displays capable of rendering animations.
  • The display technology used MUST have a pixel aspect ratio (PAR) between 0.9 and 1.1. That is, the pixel aspect ratio MUST be near square (1.0) with a 10% tolerance.

7.1.8. Tampilan Eksternal

Android 4.3 includes support for secondary display to enable media sharing capabilities and developer APIs for accessing external displays. If a device supports an external display either via a wired, wireless or an embedded additional display connection then the device implementation MUST implement the display manager API as described in the Android SDK documentation [ Resources, 75 ]. Device implementations that support secure video output and are capable of supporting secure surfaces MUST declare support for Display.FLAG_SECURE . Specifically, device implementations that declare support for Display.FLAG_SECURE , MUST support HDCP 2.x or higher for Miracast wireless displays or HDCP 1.2 or higher for wired displays. The upstream Android open source implementation includes support for wireless (Miracast) and wired (HDMI) displays that satisfies this requirement.

7.2. Perangkat masukan

7.2.1. Papan ketik

Implementasi perangkat:

  • MUST include support for the Input Management Framework (which allows third party developers to create Input Management Engines - ie soft keyboard) as detailed at http://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.keyboard [ Resources, 40 ] (that is, QWERTY, or 12-key)

7.2.2. Non-touch Navigation

Implementasi perangkat:

  • MAY omit a non-touch navigation option (that is, may omit a trackball, d-pad, or wheel)
  • MUST report the correct value for android.content.res.Configuration.navigation [ Resources, 40 ]
  • MUST provide a reasonable alternative user interface mechanism for the selection and editing of text, compatible with Input Management Engines. The upstream Android open source implementation includes a selection mechanism suitable for use with devices that lack non-touch navigation inputs.

7.2.3. Tombol navigasi

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 when running applications. These functions MAY be implemented via dedicated physical buttons (such as mechanical or capacitive touch buttons), or MAY be implemented using dedicated software keys, gestures, touch panel, etc. Android 4.3 supports both implementations.

Android 4.3 includes support for assist action [ Resources, 63 ]. Device implementations MUST make the assist action available to the user at all times when running applications. This function MAY be implemented via hardware or software keys.

Device implementations MAY use a distinct portion of the screen to display the navigation keys, but if so, MUST meet these requirements:

  • Device implementation navigation keys MUST use a distinct portion of the screen, not available to applications, and MUST NOT obscure or otherwise interfere with the portion of the screen available to applications.
  • Device implementations MUST make available a portion of the display to applications that meets the requirements defined in Section 7.1.1 .
  • Device implementations MUST display the navigation keys when applications do not specify a system UI mode, or specify SYSTEM_UI_FLAG_VISIBLE .
  • Device implementations MUST present the navigation keys in an unobtrusive "low profile" (eg. dimmed) mode when applications specify SYSTEM_UI_FLAG_LOW_PROFILE .
  • Device implementations MUST hide the navigation keys when applications specify SYSTEM_UI_FLAG_HIDE_NAVIGATION .
  • Device implementation MUST present a Menu key to applications when targetSdkVersion <= 10 and SHOULD NOT present a Menu key when the targetSdkVersion > 10.

7.2.4. Touchscreen input

Device implementations SHOULD have a pointer input system of some kind (either mouse-like, or touch). However, if a device implementation does not support a pointer input system, it MUST NOT report the android.hardware.touchscreen or android.hardware.faketouch feature constant. Device implementations that do include a pointer input system:

  • SHOULD support fully independently tracked pointers, if the device input system supports multiple pointers
  • MUST report the value of android.content.res.Configuration.touchscreen [ Resources, 40 ] corresponding to the type of the specific touchscreen on the device

Android 4.3 includes support for a variety of touch screens, touch pads, and fake touch input devices. Touch screen based device implementations are associated with a display [ Resources, 81 ] such that the user has the impression of directly manipulating items on screen. Since the user is directly touching the screen, the system does not require any additional affordances to indicate the objects being manipulated. In contrast, a fake touch interface provides a user input system that approximates a subset of touchscreen capabilities. For example, a mouse or remote control that drives an on-screen cursor approximates touch, but requires the user to first point or focus then click. Numerous input devices like the mouse, trackpad, gyro-based air mouse, gyro-pointer, joystick, and multi-touch trackpad can support fake touch interactions. Android 4.0 includes the feature constant android.hardware.faketouch , which corresponds to a high-fidelity non-touch (that is, pointer-based) input device such as a mouse or trackpad that can adequately emulate touch-based input (including basic gesture support), and indicates that the device supports an emulated subset of touchscreen functionality. Device implementations that declare the fake touch feature MUST meet the fake touch requirements in Section 7.2.5 .

Device implementations MUST report the correct feature corresponding to the type of input used. Device implementations that include a touchscreen (single-touch or better) MUST report the platform feature constant android.hardware.touchscreen . Device implementations that report the platform feature constant android.hardware.touchscreen MUST also report the platform feature constant android.hardware.faketouch . Device implementations that do not include a touchscreen (and rely on a pointer device only) MUST NOT report any touchscreen feature, and MUST report only android.hardware.faketouch if they meet the fake touch requirements in Section 7.2.5 .

7.2.5. Fake touch input

Device implementations that declare support for android.hardware.faketouch

  • MUST report the absolute X and Y screen positions of the pointer location and display a visual pointer on the screen [ Resources, 80 ]
  • MUST report touch event with the action code [ Resources, 80 ] that specifies the state change that occurs on the pointer going down or up on the screen [ Resources, 80 ]
  • MUST support pointer down and up on an object on the screen, which allows users to emulate tap on an object on the screen
  • MUST support pointer down , pointer up , pointer down then pointer up in the same place on an object on the screen within a time threshold, which allows users to emulate double tap on an object on the screen [ Resources, 80 ]
  • MUST support pointer down on an arbitrary point on the screen, pointer move to any other arbitrary point on the screen, followed by a pointer up , which allows users to emulate a touch drag
  • MUST support pointer down then allow users to quickly move the object to a different position on the screen and then pointer up on the screen, which allows users to fling an object on the screen

Devices that declare support for android.hardware.faketouch.multitouch.distinct MUST meet the requirements for faketouch above, and MUST also support distinct tracking of two or more independent pointer inputs.

7.2.6. Mikropon

Device implementations MAY omit a microphone. However, if a device implementation omits a microphone, it MUST NOT report the android.hardware.microphone feature constant, and must implement the audio recording API as no-ops, per Section 7 . Conversely, device implementations that do possess a microphone:

  • MUST report the android.hardware.microphone feature constant
  • SHOULD meet the audio quality requirements in Section 5.4
  • SHOULD meet the audio latency requirements in Section 5.5

7.3. Sensor

Android 4.3 includes APIs for accessing a variety of sensor types. Devices implementations generally MAY omit these sensors, as provided for in the following subsections. If a device includes a particular sensor type that has a corresponding API for third-party developers, the device implementation MUST implement that API as described in the Android SDK documentation. For example, device implementations:

  • MUST accurately report the presence or absence of sensors per the android.content.pm.PackageManager class. [ Resources, 37 ]
  • MUST return an accurate list of supported sensors via the SensorManager.getSensorList() and similar methods
  • MUST behave reasonably for all other sensor APIs (for example, by returning true or false as appropriate when applications attempt to register listeners, not calling sensor listeners when the corresponding sensors are not present; etc.)
  • MUST report all sensor measurements using the relevant International System of Units (ie metric) values for each sensor type as defined in the Android SDK documentation [ Resources, 41 ]

The list above is not comprehensive; the documented behavior of the Android SDK is to be considered authoritative.

Some sensor types are synthetic, meaning they can be derived from data provided by one or more other sensors. (Examples include the orientation sensor, and the linear acceleration sensor.) Device implementations SHOULD implement these sensor types, when they include the prerequisite physical sensors.

The Android 4.3 includes a notion of a "streaming" sensor, which is one that returns data continuously, rather than only when the data changes. Device implementations MUST continuously provide periodic data samples for any API indicated by the Android 4.3 SDK documentation to be a streaming sensor. Note that the device implementations MUST ensure that the sensor stream must not prevent the device CPU from entering a suspend state or waking up from a suspend state.

7.3.1. Akselerometer

Device implementations SHOULD include a 3-axis accelerometer. If a device implementation does include a 3-axis accelerometer, it:

  • SHOULD be able to deliver events at 120 Hz or greater. Note that while the accelerometer frequency above is stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ])
  • MUST be capable of measuring from freefall up to twice gravity (2g) or more on any three-dimensional vector
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.05 m/s^2

7.3.2. magnetometer

Device implementations SHOULD include a 3-axis magnetometer (ie compass.) If a device does include a 3-axis magnetometer, it:

  • MUST be able to deliver events at 10 Hz or greater
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ]).
  • MUST be capable of sampling a range of field strengths adequate to cover the geomagnetic field
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.5 µT

7.3.3. GPS

Device implementations SHOULD include a GPS receiver. If a device implementation does include a GPS receiver, it SHOULD include some form of "assisted GPS" technique to minimize GPS lock-on time.

7.3.4. Giroskop

Device implementations SHOULD include a gyroscope (ie angular change sensor.) Devices SHOULD NOT include a gyroscope sensor unless a 3-axis accelerometer is also included. If a device implementation includes a gyroscope, it:

  • MUST be temperature compensated
  • MUST be capable of measuring orientation changes up to 5.5*Pi radians/second (that is, approximately 1,000 degrees per second)
  • SHOULD be able to deliver events at 200 Hz or greater. Note that while the gyroscope frequency above is stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • MUST have 12-bits of accuracy or more
  • MUST have a variance no greater than 1e-7 rad^2 / s^2 per Hz (variance per Hz, or rad^2 / s). The variance is allowed to vary with the sampling rate, but must be constrained by this value. In other words, if you measure the variance of the gyro at 1 Hz sampling rate it should be no greater than 1e-7 rad^2/s^2.
  • MUST have timestamps as close to when the hardware event happened as possible. The constant latency must be removed.

7.3.5. Barometer

Device implementations MAY include a barometer (ie ambient air pressure sensor.) If a device implementation includes a barometer, it:

  • MUST be able to deliver events at 5 Hz or greater
  • MUST have adequate precision to enable estimating altitude
  • MUST be temperature compensated

7.3.6. Termometer

Device implementations MAY but SHOULD NOT include a thermometer (ie temperature sensor.) If a device implementation does include a thermometer, it MUST measure the temperature of the device CPU. It MUST NOT measure any other temperature. (Note that this sensor type is deprecated in the Android 4.3 APIs.)

7.3.7. Fotometer

Device implementations MAY include a photometer (ie ambient light sensor.)

7.3.8. Sensor jarak

Device implementations MAY include a proximity sensor. If a device implementation does include a proximity sensor, it MUST measure the proximity of an object in the same direction as the screen. That is, the proximity sensor MUST be oriented to detect objects close to the screen, as the primary intent of this sensor type is to detect a phone in use by the user. If a device implementation includes a proximity sensor with any other orientation, it MUST NOT be accessible through this API. If a device implementation has a proximity sensor, it MUST be have 1-bit of accuracy or more.

7.4. Konektivitas Data

7.4.1. Telepon

"Telephony" as used by the Android 4.3 APIs and this document refers specifically to hardware related to placing voice calls and sending SMS messages via a GSM or CDMA network. While these voice calls may or may not be packet-switched, they are for the purposes of Android 4.3 considered independent of any data connectivity that may be implemented using the same network. In other words, the Android "telephony" functionality and APIs refer specifically to voice calls and SMS; for instance, device implementations that cannot place calls or send/receive SMS messages MUST NOT report the "android.hardware.telephony" feature or any sub-features, regardless of whether they use a cellular network for data connectivity.

Android 4.3 MAY be used on devices that do not include telephony hardware. That is, Android 4.3 is compatible with devices that are not phones. However, if a device implementation does include GSM or CDMA telephony, it MUST implement full support for the API for that technology. Device implementations that do not include telephony hardware MUST implement the full APIs as no-ops.

7.4.2. IEEE 802.11 (WiFi)

Android 4.3 device implementations SHOULD include support for one or more forms of 802.11 (b/g/a/n, etc.) If a device implementation does include support for 802.11, it MUST implement the corresponding Android API.

Device implementations MUST implement the multicast API as described in the SDK documentation [ Resources, 62 ]. Device implementations that do include Wifi support MUST support multicast DNS (mDNS). Device implementations MUST NOT filter mDNS packets (224.0.0.251) at any time of operation including when the screen is not in an active state.

7.4.2.1. Wi-Fi Langsung

Device implementations SHOULD include support for Wifi direct (Wifi peer-to-peer). If a device implementation does include support for Wifi direct, it MUST implement the corresponding Android API as described in the SDK documentation [ Resources, 68 ]. If a device implementation includes support for Wifi direct, then it:

  • MUST support regular Wifi operation
  • SHOULD support concurrent wifi and wifi Direct operation

7.4.3. Bluetooth

Device implementations SHOULD include a Bluetooth transceiver. Device implementations that do include a Bluetooth transceiver MUST enable the RFCOMM-based Bluetooth API as described in the SDK documentation and declare hardware feature android.hardware.bluetooth [ Resources, 42 ]. Device implementations SHOULD implement relevant Bluetooth profiles, such as A2DP, AVRCP, OBEX, etc. as appropriate for the device.

Device implementations that do include support for Bluetooth GATT (generic attribute profile) to enable communication with Bluetooth Smart or Smart Ready devices MUST enable the GATT-based Bluetooth API as described in the SDK documentation and declare hardware feature android.hardware.bluetooth_le [ Resources, 42 ].

7.4.4. Near-Field Communications

Device implementations SHOULD include a transceiver and related hardware for Near-Field Communications (NFC). If a device implementation does include NFC hardware, then it:

  • MUST report the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ]
  • MUST be capable of reading and writing NDEF messages via the following NFC standards:
    • MUST be capable of acting as an NFC Forum reader/writer (as defined by the NFC Forum technical specification NFCForum-TS-DigitalProtocol-1.0) via the following NFC standards:
      • NfcA (ISO14443-3A)
      • NfcB (ISO14443-3B)
      • NfcF (JIS 6319-4)
      • IsoDep (ISO 14443-4)
      • NFC Forum Tag Types 1, 2, 3, 4 (defined by the NFC Forum)
  • SHOULD be capable of reading and writing NDEF messages via the following NFC standards. Note that while the NFC standards below are stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases.
    • NfcV (ISO 15693)
  • MUST be capable of transmitting and receiving data via the following peer-to-peer standards and protocols:
    • ISO 18092
    • LLCP 1.0 (defined by the NFC Forum)
    • SDP 1.0 (defined by the NFC Forum)
    • NDEF Push Protocol [ Resources, 43 ]
    • SNEP 1.0 (defined by the NFC Forum)
  • MUST include support for Android Beam [ Resources, 65 ]:
    • MUST implement the SNEP default server. Valid NDEF messages received by the default SNEP server MUST be dispatched to applications using the android.nfc.ACTION_NDEF_DISCOVERED intent. Disabling Android Beam in settings MUST NOT disable dispatch of incoming NDEF message.
    • Device implementations MUST honor the android.settings.NFCSHARING_SETTINGS intent to show NFC sharing settings [ Resources, 67 ].
    • MUST implement the NPP server. Messages received by the NPP server MUST be processed the same way as the SNEP default server.
    • MUST implement a SNEP client and attempt to send outbound P2P NDEF to the default SNEP server when Android Beam is enabled. If no default SNEP server is found then the client MUST attempt to send to an NPP server.
    • MUST allow foreground activities to set the outbound P2P NDEF message using android.nfc.NfcAdapter.setNdefPushMessage, and android.nfc.NfcAdapter.setNdefPushMessageCallback, and android.nfc.NfcAdapter.enableForegroundNdefPush.
    • SHOULD use a gesture or on-screen confirmation, such as 'Touch to Beam', before sending outbound P2P NDEF messages.
    • SHOULD enable Android Beam by default
    • MUST support NFC Connection handover to Bluetooth when the device supports Bluetooth Object Push Profile. Device implementations must support connection handover to Bluetooth when using android.nfc.NfcAdapter.setBeamPushUris, by implementing the "Connection Handover version 1.2" [ Resources, 60 ] and "Bluetooth Secure Simple Pairing Using NFC version 1.0" [ Resources, 61 ] specs from the NFC Forum. Such an implementation SHOULD use SNEP GET requests for exchanging the handover request / select records over NFC, and it MUST use the Bluetooth Object Push Profile for the actual Bluetooth data transfer.
  • MUST poll for all supported technologies while in NFC discovery mode.
  • SHOULD be in NFC discovery mode while the device is awake with the screen active and the lock-screen unlocked.

(Note that publicly available links are not available for the JIS, ISO, and NFC Forum specifications cited above.)

Additionally, device implementations MAY include reader/writer support for the following MIFARE technologies.

Note that Android 4.3 includes APIs for these MIFARE types. If a device implementation supports MIFARE in the reader/writer role, it:

  • MUST implement the corresponding Android APIs as documented by the Android SDK
  • MUST report the feature com.nxp.mifare from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ] Note that this is not a standard Android feature, and as such does not appear as a constant on the PackageManager class.
  • MUST NOT implement the corresponding Android APIs nor report the com.nxp.mifare feature unless it also implements general NFC support as described in this section

If a device implementation does not include NFC hardware, it MUST NOT declare the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method [ Resources, 37 ], and MUST implement the Android 4.3 NFC API as a no-op.

As the classes android.nfc.NdefMessage and android.nfc.NdefRecord represent a protocol-independent data representation format, device implementations MUST implement these APIs even if they do not include support for NFC or declare the android.hardware.nfc feature.

7.4.5. Minimum Network Capability

Device implementations MUST include support for one or more forms of data networking. Specifically, device implementations MUST include support for at least one data standard capable of 200Kbit/sec or greater. Examples of technologies that satisfy this requirement include EDGE, HSPA, EV-DO, 802.11g, Ethernet, etc.

Device implementations where a physical networking standard (such as Ethernet) is the primary data connection SHOULD also include support for at least one common wireless data standard, such as 802.11 (WiFi).

Devices MAY implement more than one form of data connectivity.

7.5. Kamera

Device implementations SHOULD include a rear-facing camera, and MAY include a front-facing camera. A rear-facing camera is a camera located on the side of the device opposite the display; that is, it images scenes on the far side of the device, like a traditional camera. A front-facing camera is a camera located on the same side of the device as the display; that is, a camera typically used to image the user, such as for video conferencing and similar applications.

7.5.1. Kamera Menghadap ke Belakang

Device implementations SHOULD include a rear-facing camera. If a device implementation includes a rear-facing camera, it:

  • 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, unless the application has explicitly enabled the flash by enabling the FLASH_MODE_AUTO or FLASH_MODE_ON attributes of a Camera.Parameters object. Note that this constraint does not apply to the device's built-in system camera application, but only to third-party applications using Camera.PreviewCallback .

7.5.2. Kamera Menghadap Depan

Device implementations MAY include a front-facing camera. If a device implementation includes a front-facing camera, it:

  • MUST have a resolution of at least VGA (that is, 640x480 pixels)
  • MUST NOT use a front-facing camera as the default for the Camera API. That is, the camera API in Android 4.3 has specific support for front-facing cameras, and device implementations MUST NOT configure the API to to treat a front-facing camera as the default rear-facing camera, even if it is the only camera on perangkat.
  • MAY include features (such as auto-focus, flash, etc.) available to rear-facing cameras as described in Section 7.5.1.
  • MUST horizontally reflect (ie mirror) the stream displayed by an app in a CameraPreview, as follows:
    • If the device implementation is capable of being rotated by user (such as automatically via an accelerometer or manually via user input), the camera preview MUST be mirrored horizontally relative to the device's current orientation.
    • If the current application has explicitly requested that the Camera display be rotated via a call to the android.hardware.Camera.setDisplayOrientation() [ Resources, 50 ] method, the camera preview MUST be mirrored horizontally relative to the orientation specified by the application.
    • Otherwise, the preview MUST be mirrored along the device's default horizontal axis.
  • MUST mirror the image displayed by the postview in the same manner as the camera preview image stream. (If the device implementation does not support postview, this requirement obviously does not apply.)
  • MUST NOT mirror the final captured still image or video streams returned to application callbacks or committed to media storage

7.5.3. Camera API Behavior

Device implementations MUST implement the following behaviors for the camera-related APIs, for both front- and rear-facing cameras:

  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. That is, NV21 MUST be the default.
  3. Device implementations MUST support the YV12 format (as denoted by the android.graphics.ImageFormat.YV12 constant) for camera previews for both front- and rear-facing cameras. (The hardware video encoder and camera may use any native pixel format, but the device implementation MUST support conversion to YV12.)

Device implementations MUST implement the full Camera API included in the Android 4.3 SDK documentation [ Resources, 51 ]), regardless of whether the device includes hardware autofocus or other capabilities. For instance, cameras that lack autofocus MUST still call any registered android.hardware.Camera.AutoFocusCallback instances (even though this has no relevance to a non-autofocus camera.) Note that this does apply to front-facing cameras; for instance, even though most front-facing cameras do not support autofocus, the API callbacks must still be "faked" as described.

Device implementations MUST recognize and honor each parameter name defined as a constant on the android.hardware.Camera.Parameters class, if the underlying hardware supports the feature. If the device hardware does not support a feature, the API must behave as documented. Conversely, Device implementations MUST NOT honor or recognize string constants passed to the android.hardware.Camera.setParameters() method other than those documented as constants on the android.hardware.Camera.Parameters . That is, device implementations MUST support all standard Camera parameters if the hardware allows, and MUST NOT support custom Camera parameter types. For instance, device implementations that support image capture using high dynamic range (HDR) imaging techniques MUST support camera parameter Camera.SCENE_MODE_HDR [ Resources, 78 ]).

Device implementations MUST broadcast the Camera.ACTION_NEW_PICTURE intent whenever a new picture is taken by the camera and the entry of the picture has been added to the media store.

Device implementations MUST broadcast the Camera.ACTION_NEW_VIDEO intent whenever a new video is recorded by the camera and the entry of the picture has been added to the media store.

7.5.4. Orientasi Kamera

Both front- and rear-facing cameras, if present, MUST be oriented so that the long dimension of the camera aligns with the screen's long dimension. That is, when the device is held in the landscape orientation, cameras MUST capture images in the landscape orientation. This applies regardless of the device's natural orientation; that is, it applies to landscape-primary devices as well as portrait-primary devices.

7.6. Memori dan Penyimpanan

7.6.1. Minimum Memory and Storage

Device implementations MUST have at least 340MB of memory available to the kernel and userspace. The 340MB MUST be in addition to any memory dedicated to hardware components such as radio, video, and so on that is not under the kernel's control.

Device implementations MUST have at least 512MB of non-volatile storage available for application private data. Artinya, partisi /data HARUS berukuran minimal 512MB. Device implementations that run Android 4.3 are very strongly encouraged to have at least 1GB of non-volatile storage for application private data so they will be able to upgrade to the future platform releases.

The Android APIs include a Download Manager that applications may use to download data files [ Resources, 56 ]. The device implementation of the Download Manager MUST be capable of downloading individual files of at least 100MB in size to the default "cache" location.

7.6.2. Application Shared Storage

Device implementations MUST offer shared storage for applications. The shared storage provided MUST be at least 1GB in size.

Device implementations MUST be configured with shared storage mounted by default, "out of the box". If the shared storage is not mounted on the Linux path /sdcard , then the device MUST include a Linux symbolic link from /sdcard to the actual mount point.

Device implementations MUST enforce as documented the android.permission.WRITE_EXTERNAL_STORAGE permission on this shared storage. Shared storage MUST otherwise be writable by any application that obtains that permission.

Device implementations MAY have hardware for user-accessible removable storage, such as a Secure Digital card. Alternatively, device implementations MAY allocate internal (non-removable) storage as shared storage for apps.

Regardless of the form of shared storage used, device implementations MUST provide some mechanism to access the contents of shared storage from a host computer, such as USB mass storage (UMS) or Media Transfer Protocol (MTP). Device implementations MAY use USB mass storage, but SHOULD use Media Transfer Protocol. If the device implementation supports Media Transfer Protocol:

  • The device implementation SHOULD be compatible with the reference Android MTP host, Android File Transfer [ Resources, 57 ].
  • The device implementation SHOULD report a USB device class of 0x00 .
  • The device implementation SHOULD report a USB interface name of 'MTP'.

If the device implementation lacks USB ports, it MUST provide a host computer with access to the contents of shared storage by some other means, such as a network file system.

It is illustrative to consider two common examples. If a device implementation includes an SD card slot to satisfy the shared storage requirement, a FAT-formatted SD card 1GB in size or larger MUST be included with the device as sold to users, and MUST be mounted by default. Alternatively, if a device implementation uses internal fixed storage to satisfy this requirement, that storage MUST be 1GB in size or larger and mounted on /sdcard (or /sdcard MUST be a symbolic link to the physical location if it is mounted elsewhere.)

Device implementations that include multiple shared storage paths (such as both an SD card slot and shared internal storage) SHOULD modify the core applications such as the media scanner and ContentProvider to transparently support files placed in both locations.

7.7. USB

Device implementations SHOULD include a USB client port, and SHOULD include a USB host port.

If a device implementation includes a USB client port:

  • the port MUST be connectable to a USB host with a standard USB-A port
  • the port SHOULD use the micro USB form factor on the device side. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • the port SHOULD be centered in the middle of an edge. Device implementations SHOULD either locate the port on the bottom of the device (according to natural orientation) or enable software screen rotation for all apps (including home screen), so that the display draws correctly when the device is oriented with the port at bottom. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to future platform releases.
  • if the device has other ports (such as a non-USB charging port) it SHOULD be on the same edge as the micro-USB port
  • it MUST allow a host connected to the device to access the contents of the shared storage volume using either USB mass storage or Media Transfer Protocol
  • it MUST implement the Android Open Accessory API and specification as documented in the Android SDK documentation, and MUST declare support for the hardware feature android.hardware.usb.accessory [ Resources, 52 ]
  • it MUST implement the USB audio class as documented in the Android SDK documentation [ Resources, 66 ]
  • it SHOULD implement support for USB battery charging specification [ Resources, 64 ] Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases

If a device implementation includes a USB host port:

  • it MAY use a non-standard port form factor, but if so MUST ship with a cable or cables adapting the port to standard USB-A
  • it MUST implement the Android USB host API as documented in the Android SDK, and MUST declare support for the hardware feature android.hardware.usb.host [ Resources, 53 ]

Device implementations MUST implement the Android Debug Bridge. If a device implementation omits a USB client port, it MUST implement the Android Debug Bridge via local-area network (such as Ethernet or 802.11)

8. Performance Compatibility

Device implementations MUST meet the key performance metrics of an Android 4.3 compatible device defined in the table below:

Metrik Ambang Kinerja Komentar
Application Launch Time The following applications should launch within the specified time.
  • Browser: less than 1300ms
  • Contacts: less than 700ms
  • Settings: less than 700ms
The launch time is measured as the total time to complete loading the default activity for the application, including the time it takes to start the Linux process, load the Android package into the Dalvik VM, and call onCreate.
Simultaneous Applications When multiple applications have been launched, re-launching an already-running application after it has been launched must take less than the original launch time.

9. 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, 54 ] 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 security mechanisms described in the follow sub-sections.

9.1. Izin

Device implementations MUST support the Android permissions model as defined in the Android developer documentation [ Resources, 54 ]. 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.

9.2. UID 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, 54 ].

9.3. Izin Sistem File

Device implementations MUST support the Android file access permissions model as defined in the Security and Permissions reference [ Resources, 54 ].

9.4. Alternate Execution Environments

Device implementations MAY include runtime environments that execute applications using some other software or technology than the Dalvik virtual machine or native code. However, such alternate execution environments MUST NOT compromise the Android security model or the security of installed Android applications, as described in this section.

Alternate runtimes MUST themselves be Android applications, and abide by the standard Android security model, as described elsewhere in Section 9.

Alternate runtimes MUST NOT be granted access to resources protected by permissions not requested in the runtime's AndroidManifest.xml file via the <uses-permission> mechanism.

Alternate runtimes MUST NOT permit applications to make use of features protected by Android permissions restricted to system applications.

Alternate runtimes MUST abide by the Android sandbox model. Secara khusus:

  • Alternate runtimes SHOULD install apps via the PackageManager into separate Android sandboxes (that is, Linux user IDs, etc.)
  • Alternate runtimes MAY provide a single Android sandbox shared by all applications using the alternate runtime
  • Alternate runtimes and installed applications using an alternate runtime MUST NOT reuse the sandbox of any other app installed on the device, except through the standard Android mechanisms of shared user ID and signing certificate
  • Alternate runtimes MUST NOT launch with, grant, or be granted access to the sandboxes corresponding to other Android applications

Alternate runtimes MUST NOT be launched with, be granted, or grant to other applications any privileges of the superuser (root), or of any other user ID.

The .apk files of alternate runtimes MAY be included in the system image of a device implementation, but MUST be signed with a key distinct from the key used to sign other applications included with the device implementation.

When installing applications, alternate runtimes MUST obtain user consent for the Android permissions used by the application. That is, if an application needs to make use of a device resource for which there is a corresponding Android permission (such as Camera, GPS, etc.), the alternate runtime MUST inform the user that the application will be able to access that resource . If the runtime environment does not record application capabilities in this manner, the runtime environment MUST list all permissions held by the runtime itself when installing any application using that runtime.

9.5. Dukungan Multi-Pengguna

Android 4.3 includes support for multiple users and provides support for full user isolation [ Resources, 70 ].

Device implementations MUST meet these requirements related to multi-user support [ Resources, 71 ]:

  • As the behavior of the telephony APIs on devices with multiple users is currently undefined, device implementations that declare android.hardware.telephony MUST NOT enable multi-user support.
  • Device implementations MUST, for each user, implement a security model consistent with the Android platform security model as defined in Security and Permissions reference document in the APIs [Resources, 54]
  • Android 4.3 includes support for restricted profiles, a feature that allows device owners to manage additional users and their capabilities on the device. With restricted profiles, device owners can quickly set up separate environments for additional users to work in, with the ability to manage finer-grained restrictions in the apps that are available in those environments. Device implementations that include support for multiple users MUST include support for restricted profiles. The upstream Android Open Source Project includes an implementation that satisfies this requirement.

Each user instance on an Android device MUST have separate and isolated external storage directories. Device implementations MAY store multiple users' data on the same volume or filesystem. However, the device implementation MUST ensure that applications owned by and running on behalf a given user cannot list, read, or write to data owned by any other user. Note that removable media, such as SD card slots, can allow one user to access another's data by means of a host PC. For this reason, device implementations that use removable media for the external storage APIs MUST encrypt the contents of the SD card if multi-user is enabled using a key stored only on non-removable media accessible only to the system. As this will make the media unreadable by a host PC, device implementations will be required to switch to MTP or a similar system to provide host PCs with access to the current user's data. Accordingly, device implementations MAY but SHOULD NOT enable multi-user if they use removable media [ Resources, 72 ] for primary external storage. The upstream Android Open Source Project includes an implementation that uses internal device storage for application external storage APIs; device implementations SHOULD use this configuration and software implementation. Device implementations that include multiple external storage paths MUST NOT allow Android applications to write to the secondary external storage.

9.6. Premium SMS Warning

Android 4.3 includes support for warning users for any outgoing premium SMS message [ Resources, 73 ] . Premium SMS messages are text messages sent to a service registered with a carrier that may incur a charge to the user. Device implementations that declare support for android.hardware.telephony MUST warn users before sending a SMS message to numbers identified by regular expressions defined in /data/misc/sms/codes.xml file in the device. The upstream Android Open Source Project provides an implementation that satisfies this requirement.

9.7. Kernel Security Features

The Android Sandbox in Android 4.3 includes features that can use the SELinux mandatory access control system (MAC) and other security features in the Linux kernel. Device implementations MUST support SELinux MAC. Note that the upstream Android Open Source Project provides an implementation that satisfies this requirement.

SELinux or any security features implemented below the Android framework MUST maintain compatibility with existing applications. These features SHOULD be invisible to users and developers. These features SHOULD NOT be user or developer configurable. If any API for configuration of policy is exposed to an application that can affect another application (such as a Device Administration API), the API MUST NOT allow configurations that break compatibility. To ensure continued compatibility the reference implementation allows the use of SELinux in a permissive mode and supports dynamic policy updates without requiring a system image update. Device implementations using SELinux MUST support this permissive mode, support dynamic policy updates and log any policy violations without breaking applications or affecting system behavior. Implementations using SELinux SHOULD load policy from /sepolicy file on the device. The upstream Android Open Source Project provides an implementation that satisfies this requirement. Device implementations SHOULD use the reference implementation in the Android Open Source Project, and device implementations MUST be compatible with the upstream Android Open Source Project.

10. Software Compatibility Testing

Device implementations MUST pass all tests described in this section.

However, note that no software test package is fully comprehensive. For this reason, device implementers are very strongly encouraged to make the minimum number of changes as possible to the reference and preferred implementation of Android 4.3 available from the Android Open Source Project. This will minimize the risk of introducing bugs that create incompatibilities requiring rework and potential device updates.

10.1. Rangkaian Uji Kompatibilitas

Device implementations MUST pass the Android Compatibility Test Suite (CTS) [ Resources, 2 ] 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 4.3. Device implementations MUST pass the latest CTS version available at the time the device software is completed.

10.2. Pemverifikasi CTS

Device implementations MUST correctly execute all applicable cases in the CTS Verifier. The CTS Verifier is included with the Compatibility Test Suite, and is intended to be run by a human operator to test functionality that cannot be tested by an automated system, such as correct functioning of a camera and sensors.

The CTS Verifier has tests for many kinds of hardware, including some hardware that is optional. Device implementations MUST pass all tests for hardware which they possess; for instance, if a device possesses an accelerometer, it MUST correctly execute the Accelerometer test case in the CTS Verifier. Test cases for features noted as optional by this Compatibility Definition Document MAY be skipped or omitted.

Every device and every build MUST correctly run the CTS Verifier, as noted above. However, since many builds are very similar, device implementers are not expected to explicitly run the CTS Verifier on builds that differ only in trivial ways. Specifically, device implementations that differ from an implementation that has passed the CTS Verifier only by the set of included locales, branding, etc. MAY omit the CTS Verifier test.

10.3. Aplikasi Referensi

Device implementers MUST test implementation compatibility using the following open source applications:

  • The "Apps for Android" applications [ Resources, 55 ]
  • Replica Island (available in Google Play Store)

Each app above MUST launch and behave correctly on the implementation, for the implementation to be considered compatible.

11. Updatable Software

Device implementations MUST include a mechanism to replace the entirety of the system software. The mechanism need not perform "live" upgrades - that is, a device restart MAY be required.

Any method can be used, provided that it can replace the entirety of the software preinstalled on the device. For instance, any of the following approaches will satisfy this requirement:

  • Over-the-air (OTA) downloads with offline update via reboot
  • "Tethered" updates over USB from a host PC
  • "Offline" updates via a reboot and update from a file on removable storage

The update mechanism used MUST support updates without wiping user data. That is, the update mechanism MUST preserve application private data and application shared data. Note that the upstream Android software includes an update mechanism that satisfies this requirement.

If an error is found in a device implementation after it has been released but within its reasonable product lifetime that is determined in consultation with the Android Compatibility Team to affect the compatibility of third-party applications, the device implementer MUST correct the error via a software update available that can be applied per the mechanism just described.

12. Hubungi Kami

You can contact the document authors at compatibility@android.com for clarifications and to bring up any issues that you think the document does not cover.