SideloadOtaTargetPreparer
  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()
      업데이트에 사용할 기기 이미지 파일을 나타내는  | 
| 
        
        
        
        
        
        void | 
      performDeviceUpdate(File deviceUpdateImage, ITestDevice device)
      OTA 패키지 사이드로드를 실행합니다. | 
| 
        
        
        
        
        
        void | 
      postUpdateActions(File deviceUpdateImage, ITestDevice device)
      기기가 사이드로드에서 복구로 전환될 때까지 기다린 후 사용자 공간으로 재부팅합니다. | 
| 
        
        
        
        
        
        void | 
      preUpdateActions(File deviceUpdateImage, ITestDevice device)
      준비를 위해 기기를 사이드로드 모드로 재부팅합니다. | 
공개 생성자
SideloadOtaTargetPreparer
public SideloadOtaTargetPreparer ()
보호된 메서드
getDeviceUpdateImage
protected File getDeviceUpdateImage ()
업데이트에 사용할 기기 이미지 파일을 나타내는 ERROR(/File) 인스턴스를 제공합니다.
| 반환 값 | |
|---|---|
| File | |
performDeviceUpdate
protected void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)OTA 패키지 사이드로드를 실행합니다.
| 생성 값 | |
|---|---|
| DeviceNotAvailableException | |
| TargetSetupError | |
postUpdateActions
protected void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)기기가 사이드로드에서 복구로 전환될 때까지 기다린 후 사용자 공간으로 재부팅합니다.
| 생성 값 | |
|---|---|
| DeviceNotAvailableException | |
| TargetSetupError | |
preUpdateActions
protected void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)준비를 위해 기기를 사이드로드 모드로 재부팅합니다.
| 생성 값 | |
|---|---|
| DeviceNotAvailableException | |
| TargetSetupError | |
