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 ()
更新に使用するデバイス イメージ ファイルを表す 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 |
|