DeviceImageZipFlashingTargetPreparer

public class DeviceImageZipFlashingTargetPreparer
extends DeviceUpdateTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper
com.android.tradefed.targetprep.DeviceUpdateTargetPreparer
com.android.tradefed.targetprep.DeviceImageZipFlashingTargetPreparer


특정 형식을 통해 제공되는 장치 이미지로 장치를 플래시하는 대상 준비자입니다.

장치 이미지 형식에 대한 높은 수준의 요구 사항:

  • 기기 이미지 파일은 zip 파일이어야 합니다.
  • zip 파일의 루트에 flash-all.sh 스크립트가 포함되어야 합니다.
  • 스크립트는 기기가 adb devices 에 표시되는 사용자 공간에 있다고 가정해야 합니다.
  • zip 파일의 나머지 부분은 동일한 디렉터리 레이아웃을 가진 스크립트와 동일한 위치에 추출되며 스크립트는 상대 경로를 통해 zip에 패키지된 모든 파일을 참조할 수 있습니다.
  • 플래시한 후 스크립트는 장치를 동일한 상태로 되돌려야 합니다.
  • 환경 변수 ANDROID_SERIAL 실행 환경의 일부로 장치 일련 번호로 설정됩니다.
  • 스크립트는 PATH에 adbfastboot 있다고 가정할 수 있습니다.
이 대상 준비자는 장치 이미지 zip 파일의 압축을 풀고 위 요구 사항의 가정 개요에 따라 동봉된 flash- all.sh 실행합니다.

요약

공개 생성자

DeviceImageZipFlashingTargetPreparer ()

보호된 방법

File getDeviceUpdateImage ()

업데이트에 사용할 장치 이미지 파일을 나타내는 ERROR(/File) 인스턴스를 제공합니다.

void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)

장치 이미지 업데이트 zip을 확장하고 동봉된 플래싱 스크립트를 호출합니다.

void postUpdateActions (File deviceUpdateImage, ITestDevice device)

무작동

void preUpdateActions (File deviceUpdateImage, ITestDevice device)

무작동

공개 생성자

DeviceImageZipFlashingTargetPreparer

public DeviceImageZipFlashingTargetPreparer ()

보호된 방법

getDeviceUpdateImage

protected File getDeviceUpdateImage ()

업데이트에 사용할 장치 이미지 파일을 나타내는 ERROR(/File) 인스턴스를 제공합니다.

보고
File

수행장치 업데이트

protected void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

장치 이미지 업데이트 zip을 확장하고 동봉된 플래싱 스크립트를 호출합니다.

던지기
DeviceNotAvailableException
TargetSetupError

postUpdateActions

protected void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

무작동

던지기
DeviceNotAvailableException
TargetSetupError

preUpdate작업

protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

무작동

던지기
DeviceNotAvailableException
TargetSetupError