החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
FlashingResourceUtil
public
class
FlashingResourceUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.FlashingResourceUtil
|
הכלי הזה עוזר להגדיר את הגרסה המתאימה של הארטיפקטים כדי שאפשר יהיה לבצע בהם איפוס באמצעות DeviceFlashPreparer
.
סיכום
קונסטרוקטורים גלויים לכולם
FlashingResourceUtil
public FlashingResourceUtil ()
שיטות ציבוריות
setUpFlashingResources
public static boolean setUpFlashingResources (IBuildInfo info,
keyAndFiles)
טיפול בקבצים הנדרשים להעברה (flashing) והגדרת הערך המתאים שלהם ב-BuildInfo
פרמטרים |
info |
IBuildInfo : ה-{IBuildInfo} שנוצר |
keyAndFiles |
: הקבצים שהורדתם נלקחים בחשבון |
החזרות |
boolean |
הערך True אם בוצעה הגדרה של פלאש |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# FlashingResourceUtil\n====================\n\n\n`\npublic\n\n\nclass\nFlashingResourceUtil\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.FlashingResourceUtil |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis utility helps setting the appropriate version of artifacts so they can be flashed via [DeviceFlashPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/DeviceFlashPreparer.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[FlashingResourceUtil](../../../../../../reference/tradefed/com/android/tradefed/util/FlashingResourceUtil.html#FlashingResourceUtil())`() ` |\n\n| ### Public methods ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static boolean` | ` `[setUpFlashingResources](../../../../../../reference/tradefed/com/android/tradefed/util/FlashingResourceUtil.html#setUpFlashingResources(com.android.tradefed.build.IBuildInfo,%20\u003cany\u003e))`(`[IBuildInfo](../../../../../../reference/tradefed/com/android/tradefed/build/IBuildInfo.html)` info, ` keyAndFiles) Handle the files needed for flashing and setting their appropriate value in the BuildInfo |\n\nPublic constructors\n-------------------\n\n### FlashingResourceUtil\n\n```\npublic FlashingResourceUtil ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### setUpFlashingResources\n\n```\npublic static boolean setUpFlashingResources (IBuildInfo info, \n keyAndFiles)\n```\n\nHandle the files needed for flashing and setting their appropriate value in the BuildInfo\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|---------------------------------------------------|\n| `info` | `IBuildInfo`: The {IBuildInfo} constructed \u003cbr /\u003e |\n| `keyAndFiles` | : The files downloaded considered \u003cbr /\u003e |\n\n| Returns ||\n|-----------|-----------------------------------|\n| `boolean` | True if flashing was setup \u003cbr /\u003e |\n\n| Throws ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------------------------------|\n| | com.android.tradefed.build.BuildRetrievalError |\n| [BuildRetrievalError](../../../../../../reference/tradefed/com/android/tradefed/build/BuildRetrievalError.html) | |"]]