SideloadOtaTargetPreparer
public class SideloadOtaTargetPreparer
extends DeviceUpdateTargetPreparer
java.lang.オブジェクト | ||||
↳ | 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 |
デバイス更新の実行
protected void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)
OTAパッケージのサイドロードを実行します
投げる | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
postUpdateアクション
protected void postUpdateActions (File deviceUpdateImage, ITestDevice device)
デバイスがサイドロードからリカバリに移行するのを待ってから、ユーザースペースで再起動します
投げる | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
preUpdateActions
protected void preUpdateActions (File deviceUpdateImage, ITestDevice device)
準備としてデバイスをサイドロード モードで再起動します
投げる | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |