增量圖像實用程式
public class IncrementalImageUtil
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.image.IncrementalImageUtil |
一個利用增量映像和裝置更新的實用程式。
概括
領域
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
公共構造函數
增量圖像實用程式
public IncrementalImageUtil (ITestDevice device,
File deviceImage,
File bootloader,
File baseband,
File targetImage,
File createSnapshot,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
參數 |
---|
device | ITestDevice |
deviceImage | File |
bootloader | File |
baseband | File |
targetImage | File |
createSnapshot | File |
applySnapshot | boolean |
waitPhase | SnapuserdWaitPhase |
公共方法
允許SameBuildFlashing
public void allowSameBuildFlashing ()
public File getExtractedTargetDirectory ()
初始化
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowCrossRelease,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
參數 |
---|
device | ITestDevice |
build | IDeviceBuildInfo |
createSnapshot | File |
isIsolatedSetup | boolean |
allowCrossRelease | boolean |
applySnapshot | boolean |
waitPhase | SnapuserdWaitPhase |
isSameBuildFlashing允許
public boolean isSameBuildFlashingAllowed ()
快照正在使用
public static boolean isSnapshotInUse (ITestDevice device)
返回設備目前是否正在使用快照。
是否支援快照
public static boolean isSnapshotSupported (ITestDevice device,
boolean applySnapshot)
返回我們是否可以使用快照邏輯來更新設備
參數 |
---|
device | ITestDevice |
applySnapshot | boolean |
通知BasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
通知Bootloader需要恢復
public void notifyBootloaderNeedsRevert ()
拆解設備
public void teardownDevice ()
更新完成
public boolean updateCompleted ()
返回更新是否完成。
更新設備
public void updateDevice (File currentBootloader,
File currentRadio)
使用快照邏輯更新設備。
參數 |
---|
currentBootloader | File |
currentRadio | File |