侧载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

postUpdateActions

protected void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

等待设备从侧载过渡到恢复,然后重新启动到用户空间

投掷
DeviceNotAvailableException
TargetSetupError

更新前动作

protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

将设备重新启动到侧载模式以准备

投掷
DeviceNotAvailableException
TargetSetupError