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 |