側載OtaTargetPreparer
public class SideloadOtaTargetPreparer
extends DeviceUpdateTargetPreparer
java.lang.Object | ||||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |||
↳ | com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper | |||
↳ | com.android.tradefed.targetprep.DeviceUpdateTargetPreparer | |||
↳ | com.android.tradefed.targetprep.SideloadOtaTargetPreparer |
執行指定 OTA 包的側載、應用包、等待設備啟動並註入設備構建屬性以用作構建信息的目標準備器
此目標準備器假定設備在啟動時將處於常規 adb 模式,並將確保設備以相同模式退出但應用了較新的構建。在此過程中任何意外的設備狀態轉換都將報告為TargetSetupError
,這同樣適用於檢測到的任何 OTA 側載錯誤。
概括
公共構造函數 | |
---|---|
SideloadOtaTargetPreparer () |
受保護的方法 | |
---|---|
File | getDeviceUpdateImage () 提供表示要用於更新的設備映像文件的 |
void | performDeviceUpdate (File deviceUpdateImage, ITestDevice device) 執行 OTA 包的側載 |
void | postUpdateActions (File deviceUpdateImage, ITestDevice device) 等待設備從側載過渡到恢復,然後重新啟動到用戶空間 |
void | preUpdateActions (File deviceUpdateImage, ITestDevice device) 將設備重新啟動到側載模式以準備 |
公共構造函數
側載OtaTargetPreparer
public SideloadOtaTargetPreparer ()
受保護的方法
執行設備更新
protected void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)
執行 OTA 包的側載
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
postUpdateActions
protected void postUpdateActions (File deviceUpdateImage, ITestDevice device)
等待設備從側載過渡到恢復,然後重新啟動到用戶空間
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
更新前動作
protected void preUpdateActions (File deviceUpdateImage, ITestDevice device)
將設備重新啟動到側載模式以準備
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |