旁載 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 ()

提供一個ERROR(/File)實例,表示用於更新的裝置映像文件

void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)

執行 OTA 套件的旁加載

void postUpdateActions (File deviceUpdateImage, ITestDevice device)

等待裝置從旁加載過渡到恢復,然後重新啟動到用戶空間

void preUpdateActions (File deviceUpdateImage, ITestDevice device)

將裝置重新啟動到旁加載模式以進行準備

公共構造函數

旁載 OtaTargetPreparer

public SideloadOtaTargetPreparer ()

受保護的方法

取得設備更新影像

protected File getDeviceUpdateImage ()

提供一個ERROR(/File)實例,表示用於更新的裝置映像文件

退貨
File

執行設備更新

protected void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

執行 OTA 套件的旁加載

投擲
DeviceNotAvailableException
TargetSetupError

更新後操作

protected void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

等待裝置從旁加載過渡到恢復,然後重新啟動到用戶空間

投擲
DeviceNotAvailableException
TargetSetupError

更新前動作

protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

將裝置重新啟動到旁加載模式以進行準備

投擲
DeviceNotAvailableException
TargetSetupError