InkrementellesImageUtil

public class IncrementalImageUtil
extends Object

java.lang.Object
com.android.tradefed.util.image.IncrementalImageUtil


Ein Dienstprogramm zur Nutzung der inkrementellen Image- und Geräteaktualisierung.

Zusammenfassung

Felder

public static final DYNAMIC_PARTITIONS_TO_DIFF

Öffentliche Bauträger

IncrementalImageUtil ( ITestDevice device, File deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, SnapuserdWaitPhase waitPhase)

Öffentliche Methoden

void allowSameBuildFlashing ()
File getExtractedTargetDirectory ()
static IncrementalImageUtil initialize ( ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowCrossRelease, boolean applySnapshot, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed ()
static boolean isSnapshotInUse ( ITestDevice device)

Gibt zurück, ob das Gerät derzeit Snapshots verwendet oder nicht.

static boolean isSnapshotSupported ( ITestDevice device, boolean applySnapshot)

Gibt zurück, ob wir die Snapshot-Logik zum Aktualisieren des Geräts verwenden können oder nicht

void notifyBasebadNeedsRevert ()
void notifyBootloaderNeedsRevert ()
void teardownDevice ()
boolean updateCompleted ()

Gibt zurück, ob die Aktualisierung abgeschlossen wurde oder nicht.

void updateDevice (File currentBootloader, File currentRadio)

Aktualisiert das Gerät mithilfe der Snapshot-Logik.

Felder

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

Öffentliche Bauträger

InkrementellesImageUtil

public IncrementalImageUtil (ITestDevice device, 
                File deviceImage, 
                File bootloader, 
                File baseband, 
                File targetImage, 
                File createSnapshot, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

Parameter
device ITestDevice

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

waitPhase SnapuserdWaitPhase

Öffentliche Methoden

AllowSameBuildFlashing

public void allowSameBuildFlashing ()

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

Kehrt zurück
File

initialisieren

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowCrossRelease, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

Parameter
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

applySnapshot boolean

waitPhase SnapuserdWaitPhase

Kehrt zurück
IncrementalImageUtil

Würfe
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

Kehrt zurück
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

Gibt zurück, ob das Gerät derzeit Snapshots verwendet oder nicht.

Parameter
device ITestDevice

Kehrt zurück
boolean

Würfe
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

Gibt zurück, ob wir die Snapshot-Logik zum Aktualisieren des Geräts verwenden können oder nicht

Parameter
device ITestDevice

applySnapshot boolean

Kehrt zurück
boolean

Würfe
DeviceNotAvailableException

notifyBasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

notifyBootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

TeardownDevice

public void teardownDevice ()

Würfe
DeviceNotAvailableException

Update abgeschlossen

public boolean updateCompleted ()

Gibt zurück, ob die Aktualisierung abgeschlossen wurde oder nicht.

Kehrt zurück
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

Aktualisiert das Gerät mithilfe der Snapshot-Logik.

Parameter
currentBootloader File

currentRadio File

Würfe
DeviceNotAvailableException
TargetSetupError