Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Update OTA
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Perangkat Android di lapangan dapat menerima dan menginstal update over-the-air (OTA) ke sistem,
software aplikasi, dan aturan zona waktu. Bagian ini menjelaskan struktur paket update dan
alat yang disediakan untuk mem-build-nya. Panduan ini ditujukan bagi developer yang ingin membuat update OTA
berfungsi di perangkat Android baru dan mereka yang ingin mem-build paket update untuk perangkat yang dirilis.
Update OTA dirancang untuk mengupgrade sistem operasi yang mendasarinya, aplikasi hanya baca
yang diinstal di partisi sistem, dan aturan zona waktu; update ini tidak memengaruhi
aplikasi yang diinstal oleh pengguna dari Google Play.
Update sistem A/B virtual (lancar)
Perangkat Android modern (Android 11 dan yang lebih baru) mempertahankan dua salinan setiap partisi (A dan B) selama update. Mekanisme
update ini disebut Virtual A/B dengan kompresi. Meskipun update A/B lama (Android 10 dan yang lebih lama) menyimpan dua
salinan untuk setiap partisi, Virtual A/B hanya menyimpan dua slot fisik untuk partisi kritis
booting. Slot yang tidak digunakan ditulis langsung untuk partisi bootcritical. Partisi
dinamis memiliki data sistem operasi baru yang ditulis sebagai snapshot terkompresi karena ukuran
image-nya cenderung jauh lebih besar. Snapshot yang dikompresi memungkinkan perangkat menyimulasikan pengalaman
memiliki dua slot, sekaligus mengurangi persyaratan ruang. Untuk informasi selengkapnya tentang update OTA Virtual A/B, lihat Update sistem Virtual A/B (lancar). Untuk
aplikasi contoh yang memberikan contoh tentang penggunaan API update sistem Android (yaitu,
update_engine
) untuk menginstal update A/B, lihat
SystemUpdaterSample
(detail aplikasi tersedia di
updater_sample/README.md
).
Update A/B lama dan update sistem Non-A/B
Update A/B lama adalah versi pertama update A/B di Android. Mekanisme update ini
menyimpan dua slot dari setiap partisi, tetapi memiliki kelemahan karena memerlukan penyimpanan dua kali
untuk setiap partisi. Untuk informasi selengkapnya, lihat
Update sistem A/B. Mulai
Android 15, update non-A/B tidak digunakan lagi. Untuk mengetahui informasi selengkapnya, lihat
Update sistem non-A/B.
Pembaruan aturan zona waktu
Mulai Android 8.1, OEM dapat mengirimkan data aturan zona waktu yang diperbarui ke perangkat tanpa memerlukan
update sistem. Mekanisme ini memungkinkan pengguna menerima update tepat waktu (sehingga memperpanjang
masa pakai perangkat Android yang berguna) dan OEM untuk menguji update zona waktu secara terpisah dari
update image sistem. Untuk mengetahui detailnya, lihat
Aturan zona waktu.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# OTA updates\n\nAndroid devices in the field can receive and install over-the-air (OTA) updates to the system,\napp software, and time zone rules. This section describes the structure of update packages and\nthe tools provided to build them. It is intended for developers who want to make OTA updates\nwork on new Android devices and those who want to build update packages for released devices.\n\n\nOTA updates are designed to upgrade the underlying operating system, the read-only apps\ninstalled on the system partition, and time zone rules; these updates do *not* affect\napps installed by the user from Google Play.\n\nVirtual A/B (seamless) system updates\n-------------------------------------\n\n\nModern Android devices (Android 11 and after) maintain two copies of each partition (A and B) during an update. This\nupdate mechanism is called Virtual A/B with compression. While legacy A/B updates (Android 10 and earlier) kept two\ncopies for every single partition, Virtual A/B only keeps two physical slots for boot critical\npartitions. The unused slot is written to directly for bootcritical partitions. Dynamic\npartitions have new operating system data written as compressed snapshots since their image\nsize tends to be much larger. Compressed snapshots allows a device to simulate the experience\nof having two slots, while reducing space requirements. For more information about Virtual A/B\nOTA updates, see\n[Virtual A/B (seamless) system updates](/docs/core/ota/virtual_ab). For\na sample app that provides examples on using Android system update APIs (that is,\n`update_engine`) to install A/B updates, refer to\n[SystemUpdaterSample](https://android.googlesource.com/platform/bootable/recovery/+/android16-release/updater_sample/)\n(app details available in\n[`updater_sample/README.md`](https://android.googlesource.com/platform/bootable/recovery/+/android16-release/updater_sample/README.md)).\n\nLegacy A/B updates and Non-A/B system updates\n---------------------------------------------\n\n\nLegacy A/B updates were the first version of A/B updates in Android. This update mechanism\nkept two slots of every single partition, but had the drawback of needing twice the storage\nfor each partition. For more information see,\n[A/B system updates](/docs/core/ota/ab). As of\nAndroid 15, non A/B updates are deprecated. For more information, see\n[Non-A/B system updates](/docs/core/ota/nonab).\n\nTime zone rule updates\n----------------------\n\n\nAs of Android 8.1, OEMs can push updated time zone rules data to devices without requiring a\nsystem update. This mechanism enables users to receive timely updates (thus extending the\nuseful lifetime of an Android device) and OEMs to test time zone updates independently of\nsystem image updates. For details, see\n[Time zone rules](/docs/core/permissions/timezone-rules)."]]