החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
עדכוני OTA
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מכשירי Android בשטח יכולים לקבל ולהתקין עדכונים אוויריים (OTA) למערכת, לתוכנות האפליקציות ולכללים של אזורי הזמן. בקטע הזה מוסבר המבנה של חבילות העדכונים והכלים שאפשר להשתמש בהם כדי ליצור אותן. היא מיועדת למפתחים שרוצים לגרום לעדכוני OTA לפעול במכשירי Android חדשים, וגם למפתחים שרוצים ליצור חבילות עדכונים למכשירים שכבר הושקו.
עדכוני OTA נועדו לשדרג את מערכת ההפעלה הבסיסית, את האפליקציות לקריאה בלבד שמותקנות במחיצה של המערכת ואת כללי אזור הזמן. העדכונים האלה לא משפיעים על האפליקציות שהמשתמש מתקין מ-Google Play.
עדכוני מערכת וירטואליים מסוג A/B (חלקים)
במכשירי Android מודרניים (Android 11 ואילך) נשמרות שתי עותקים של כל מחיצה (A ו-B) במהלך עדכון. מנגנון העדכון הזה נקרא 'בדיקה וירטואלית של A/B עם דחיסה'. בעדכוני A/B מדור קודם (Android 10 וגרסאות קודמות), שמורות שתי עותקים לכל מחיצה, אבל ב-Virtual A/B שמורות רק שתי משבצות פיזיות למחיצות קריטיות לאתחול. חריצי אחסון שלא בשימוש נכתבים ישירות למחיצות קריטיות לאתחול. במחיצות דינמיות, נתוני מערכת ההפעלה החדשים נכתבים כתמונות מצב דחוסות, כי גודל התמונה שלהן בדרך כלל גדול בהרבה. קובצי snapshot דחוסים מאפשרים למכשיר לדמות את חוויית השימוש עם שני משבצות, תוך צמצום דרישות האחסון. מידע נוסף על עדכוני OTA של Virtual A/B זמין במאמר עדכוני מערכת Virtual A/B (חלקים). באפליקציית לדוגמה שמספקת דוגמאות לשימוש בממשקי API לעדכון מערכת Android (כלומר update_engine
) כדי להתקין עדכוני A/B, תוכלו לעיין ב-SystemUpdaterSample (פרטי האפליקציה זמינים ב-updater_sample/README.md
).
עדכוני A/B מדור קודם ועדכוני מערכת שאינם A/B
עדכוני A/B מדור קודם היו הגרסה הראשונה של עדכוני A/B ב-Android. מנגנון העדכון הזה שמר על שני משבצות בכל מחיצה, אבל החיסרון שלו היה הצורך בנפח אחסון כפול לכל מחיצה. למידע נוסף, ראו עדכוני מערכת מסוג A/B. החל מגרסה Android 15, עדכונים שאינם עדכוני A/B הוצאו משימוש. למידע נוסף, ראו עדכוני מערכת שאינם A/B.
עדכונים של כללי אזורי הזמן
החל מגרסה 8.1 של Android, יצרני ציוד מקורי יכולים לדחוף נתונים מעודכנים של כללי אזורי הזמן למכשירים בלי שתצטרכו לבצע עדכון מערכת. המנגנון הזה מאפשר למשתמשים לקבל עדכונים בזמן (כך שהם יכולים להאריך את משך החיים של מכשיר Android), וליצרני ציוד מקורי לבדוק עדכונים של אזורי זמן בנפרד מעדכונים של קובצי אימג' של מערכת. פרטים נוספים זמינים במאמר כללי אזור הזמן.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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)."]]