27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Kurumsal OTA güncellemeleri
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Android Uyumluluk Tanımlama Belgesi (CDD) Güncellenebilir Yazılım, cihazların SystemUpdatePolicy
sınıfını uygulamasını zorunlu kılar. SystemUpdatePolicy
, varsa cihaz sahibi (DO) uygulamasının sistem güncellemelerinin yüklenmesini kontrol etmesine olanak tanır.
Cihaz sahiplerini bilgilendirme
Kablosuz (OTA) istemcisi, sistem API'sini kullanarak cihaz sahibi uygulamalarını gelen OTA güncellemeleri hakkında bilgilendirmelidir. OTA istemcisi, OTA güncellemesinin ilk kez kullanıma sunulduğu zaman damgasını da içermelidir. OTA istemcileri, cihaz sahibi uygulamalarına bildirim göndermek için DevicePolicyManager.notifyPendingSystemUpdate(long updateReceivedTime, boolean isSecurityPatch)
hizmetini çağırabilir. OTA istemcisi, bir güncellemenin güvenlik yaması olup olmadığını bilmiyorsa DevicePolicyManager.notifyPendingSystemUpdate(long updateReceivedTime)
değerini kullanabilir.
Şu anda güncelleme yoksa OTA istemcisi, updateReceivedTime
bağımsız değişkenini -1
olarak ayarlayarak bunu bildirir.
OTA istemcisi OTA sunucusunu her sorguladığında veya istemciye OTA gönderildiğinde bildirim göndermenizi öneririz. Bildirimleri daha sık da gönderebilirsiniz.
Sistem güncelleme politikası
Android 9, OTA güncellemelerini 90 güne kadar ertelemelerine olanak tanıyarak cihaz sahiplerinin güncellemeleri kontrol etme olanağını artırır. Özel cihaz (eski adıyla COSU) çözümlerine odaklanan bu özellik, sahiplerinin tatiller gibi kritik dönemlerde cihazlarda çalışan işletim sistemi sürümünü duraklatmasına olanak tanır.
OTA istemcisinin, CDD'ye uymak için davranış politikalarını uygulaması gerekir. DO, cihaz sistem güncelleme alt sistemlerinin uyması gereken aşağıdaki politikaları ayarlayabilir:
Cihaz sahipleri, tatiller veya yoğun dönemler gibi kritik dönemlerde işletim sistemi sürümünü donduracak dondurma dönemleri de belirleyebilir (Android 9 veya sonraki sürümlerde). Sistem, dondurma döneminde OTA güncellemelerini yüklemez. SystemUpdatePolicy.InstallationOption
kullanmanızı öneririz (aşağıdaki bölüme bakın). Ancak OTA istemcisi, cihazın dondurma döneminde olup olmadığını kontrol etmek için SystemUpdatePolicy.getFreezePeriods()
işlevini de çağırabilir.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Enterprise OTA updates\n\nThe\n[Android\nCompatibility Definition Document (CDD) Updatable Software](/compatibility/android-cdd#11_updatable_software)\nrequires devices to implement the\n[`SystemUpdatePolicy`](https://developer.android.com/reference/android/app/admin/SystemUpdatePolicy.html)\nclass. `SystemUpdatePolicy` lets the device owner (DO) app, if\npresent, control the installation of system updates.\n\nNotify device owners\n--------------------\n\n\nThe over-the-air (OTA) client must notify device owner apps about\nincoming OTA updates using a system API. The OTA client must also\ninclude a timestamp recording when the OTA update first became\navailable. OTA clients can call\n`DevicePolicyManager.notifyPendingSystemUpdate(long updateReceivedTime, boolean isSecurityPatch)`\nto notify device owner apps. If the OTA client doesn't know if an update\nis a security patch, the OTA client can fall back to using\n`DevicePolicyManager.notifyPendingSystemUpdate(long updateReceivedTime)`.\n\n\nIf an update isn't currently available, the OTA client reports this by\nsetting the `updateReceivedTime` argument to `-1`.\nWe recommend sending notifications whenever the OTA client polls the\nOTA server, or when an OTA is pushed to the client. You can also send\nout notifications more frequently.\n\nSystem update policy\n--------------------\n\n\nAndroid 9 enhances the ability for device\nowners to\n[control\nupdates](https://developer.android.com/work/dpc/system-updates) by allowing device owners to postpone OTA updates for up to\n90 days. Focusing on dedicated device (previously called COSU)\nsolutions, this feature lets owners pause the OS version running on\ndevices over critical periods, such as holidays.\n\n\nTo comply with the CDD, the OTA client must implement behavioral\npolicies. The DO can set the following policies, which must be\nrespected by the device system update subsystems:\n\n- [`TYPE_INSTALL_AUTOMATIC`](https://developer.android.com/reference/android/app/admin/SystemUpdatePolicy.html#TYPE_INSTALL_AUTOMATIC)\n- [`TYPE_INSTALL_WINDOWED`](https://developer.android.com/reference/android/app/admin/SystemUpdatePolicy.html#TYPE_INSTALL_WINDOWED)\n- [`TYPE_POSTPONE`](https://developer.android.com/reference/android/app/admin/SystemUpdatePolicy.html#TYPE_POSTPONE)\n\n\nDevice owners can also\n[set\nfreeze periods](https://developer.android.com/work/dpc/system-updates#freeze-periods) (in Android 9 or later) that freeze the OS version\nover critical periods, such as holidays or other busy times. The system\ndoesn't install OTA updates during a freeze period. We recommend using\n`SystemUpdatePolicy.InstallationOption` (see\nfollowing section), however the OTA client can also call\n[`SystemUpdatePolicy.getFreezePeriods()`](https://developer.android.com/reference/android/app/admin/SystemUpdatePolicy#getFreezePeriods())\nto check if the device is in a freeze period."]]