public class

AdbResult

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.android.adb.AdbResult

Class Overview

Represent a result from the command adb.

Summary

Constants
String ADB_ERROR
Public Constructors
AdbResult(byte[] output)
Public Methods
byte[] getOutput()
String getOutputString()
boolean isSuccess(Boolean expectOuput)
boolean isSuccess()
boolean isSuccess(Boolean expectOuput, boolean verifyGenericErrors, String... knownErrorMessages)
Unified method to validate that an adb command was executed correctly
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ADB_ERROR

Constant Value: "adb_error_sent_to_jeb"

Public Constructors

public AdbResult (byte[] output)

Public Methods

public byte[] getOutput ()

public String getOutputString ()

public boolean isSuccess (Boolean expectOuput)

public boolean isSuccess ()

public boolean isSuccess (Boolean expectOuput, boolean verifyGenericErrors, String... knownErrorMessages)

Unified method to validate that an adb command was executed correctly

Parameters
expectOuput Indicate if there is an expected output stream result. Set null to bypass, true to check that there is an output message, false to check that there is not.
verifyGenericErrors Indicate if we should verify some common error messages.
knownErrorMessages Specific known error messages raised by this command.
Returns
  • true on success, false on error