自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release 而非 aosp-main 建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
IncrementalImageUtil
public
class
IncrementalImageUtil
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.util.image.IncrementalImageUtil
|
這項公用程式可運用增量映像檔和裝置更新。
摘要
公用方法 |
void
|
allowSameBuildFlashing()
|
void
|
cleanAfterSetup()
執行部分套用邏輯時,我們可以在設定完成後立即清除檔案。
|
File
|
getExtractedTargetDirectory()
|
static
IncrementalImageUtil
|
initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowTrackerlessUpdate, allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
|
boolean
|
isSameBuildFlashingAllowed()
|
static
boolean
|
isSnapshotInUse(ITestDevice device)
傳回裝置目前是否使用快照。
|
static
boolean
|
isSnapshotSupported(ITestDevice device, boolean useMerkle)
Returns whether or not we can use the snapshot logic to update the device
|
void
|
setSkipBootloaderVersionCheck(boolean skipBootloaderVersionCheck)
|
void
|
teardownDevice(TestInformation testInfo)
|
boolean
|
updateCompleted()
傳回更新是否完成。
|
void
|
updateDevice(File currentBootloader, File currentRadio)
使用快照邏輯更新裝置。
|
void
|
updateDeviceWithNewFlow(File currentBootloader, File currentRadio)
|
boolean
|
useUpdatedFlow()
|
欄位
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
公用建構函式
IncrementalImageUtil
public IncrementalImageUtil (ITestDevice device,
File targetImage,
File createSnapshot,
boolean updateBootloaderFromUserspace,
SnapuserdWaitPhase waitPhase,
File deviceMerkleTree)
| 參數 |
device |
ITestDevice |
targetImage |
File |
createSnapshot |
File |
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
deviceMerkleTree |
File |
公用方法
allowSameBuildFlashing
public void allowSameBuildFlashing ()
cleanAfterSetup
public void cleanAfterSetup ()
執行部分套用邏輯時,我們可以在設定完成後立即清除檔案。
public File getExtractedTargetDirectory ()
初始化
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowTrackerlessUpdate,
allowedTransition,
boolean updateBootloaderFromUserspace,
SnapuserdWaitPhase waitPhase)
| 參數 |
device |
ITestDevice |
build |
IDeviceBuildInfo |
createSnapshot |
File |
isIsolatedSetup |
boolean |
allowTrackerlessUpdate |
boolean |
allowedTransition |
|
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
isSameBuildFlashingAllowed
public boolean isSameBuildFlashingAllowed ()
isSnapshotInUse
public static boolean isSnapshotInUse (ITestDevice device)
傳回裝置目前是否使用快照。
isSnapshotSupported
public static boolean isSnapshotSupported (ITestDevice device,
boolean useMerkle)
傳回是否可使用快照邏輯更新裝置
| 參數 |
device |
ITestDevice |
useMerkle |
boolean |
setSkipBootloaderVersionCheck
public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)
| 參數 |
skipBootloaderVersionCheck |
boolean |
public void teardownDevice (TestInformation testInfo)
| 參數 |
testInfo |
TestInformation |
updateCompleted
public boolean updateCompleted ()
傳回更新是否完成。
updateDevice
public void updateDevice (File currentBootloader,
File currentRadio)
使用快照邏輯更新裝置。
| 參數 |
currentBootloader |
File |
currentRadio |
File |
updateDeviceWithNewFlow
public void updateDeviceWithNewFlow (File currentBootloader,
File currentRadio)
| 參數 |
currentBootloader |
File |
currentRadio |
File |
useUpdatedFlow
public boolean useUpdatedFlow ()
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-12-04 (世界標準時間)。
[null,null,["上次更新時間:2025-12-04 (世界標準時間)。"],[],[]]