사이드로드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 ()

보호된 방법

getDeviceUpdateImage

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

preUpdate작업

protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

준비 중에 장치를 사이드로드 모드로 재부팅합니다.

던지기
DeviceNotAvailableException
TargetSetupError