自 2025 年 3 月 27 日起,我们建议您使用 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)
处理刷写所需的文件,并在 BuildInfo 中设置其相应的值
参数 |
info |
IBuildInfo :构建的 {IBuildInfo} |
keyAndFiles |
:考虑的下载文件 |
返回 |
boolean |
如果已设置了刷写,则为 true |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-27。"],[],[],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) | |"]]