DeviceImageZipFlashingTargetPreparer

public class DeviceImageZipFlashingTargetPreparer
extends DeviceUpdateTargetPreparer

java.lang.객체
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

업데이트 후 작업

protected void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

무작동

던지기
DeviceNotAvailableException
TargetSetupError

사전 업데이트 작업

protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

무작동

던지기
DeviceNotAvailableException
TargetSetupError