Uses of Class
com.pnfsoftware.jeb.core.units.code.android.adb.AdbWrapper
Packages that use AdbWrapper
Package
Description
Types to access and interact with the
Android Debug Bridge
(adb).-
Uses of AdbWrapper in com.pnfsoftware.jeb.core.units.code.android.adb
Methods in com.pnfsoftware.jeb.core.units.code.android.adb that return AdbWrapperModifier and TypeMethodDescriptionstatic AdbWrapper
AdbWrapperFactory.createStandardWrapper()
AdbWrapperFactory.createWrapper
(String deviceSerial) Create an ADB wrapper to issue command to a specific device, using a default timeout.AdbWrapperFactory.createWrapper
(String deviceSerial, long standardTimeout) Create an ADB wrapper to issue command to a specific device.Methods in com.pnfsoftware.jeb.core.units.code.android.adb with parameters of type AdbWrapperModifier and TypeMethodDescriptionstatic boolean
AndroidDeviceUtil.executeCommandAsRoot
(AdbWrapper adb, boolean rootVerification, String command) Attempt to execute a single ADB command as root.static boolean
AndroidDeviceUtil.executeCommandAsRoot
(AdbWrapper adb, String command) Attempt to execute a single ADB command as root, with a prior root verification.static boolean
AndroidDeviceUtil.executeCommandsAsRoot
(AdbWrapper adb, boolean rootVerification, String[] commands) Attempt to execute a sequence of ADB commands as root.static boolean
AndroidDeviceUtil.executeCommandsAsRoot
(AdbWrapper adb, String[] commands) Attempt to execute a sequence of ADB commands as root, with a prior root verification.static int
AndroidDeviceUtil.getAndroidApiLevel
(AdbWrapper adb) Retrieve the numerical API level (eg, 29 on Android Q) of the target.static AndroidPlatformABI
AndroidDeviceUtil.getBestABIForApp
(AdbWrapper adb, IApkUnit apk) Get the best ABI to run a given Android app on a given device.static AndroidPlatformABI
AndroidDeviceUtil.getPreferredABI
(AdbWrapper adb) Get the preferred ABI supported by a device.AndroidDeviceUtil.getProcessesByName
(AdbWrapper adb, String processName) Get a list of PIDs by process namestatic List<AndroidPlatformABI>
AndroidDeviceUtil.getSupportedABIs
(AdbWrapper adb) Get the ABIs supported by a device.static boolean
AndroidDeviceUtil.isDebuggableApp
(AdbWrapper adb, String pname) Determine whether an installed app is debuggable.static boolean
AndroidDeviceUtil.isRootDevice
(AdbWrapper adb) Heuristic to determine if the device appears to be rooted - and has a copy ofsu
installed.static boolean
AndroidDeviceUtil.pullFile
(AdbWrapper adb, String remotePath, String localPath) Attempt to pull a file from a device using a variety of methods.static String
AndroidDeviceUtil.uploadFileToDeviceTemp
(AdbWrapper adb, String name, AndroidPlatformABI platformAbi) Upload a JEB Android asset file to an Android device.static String
AndroidDeviceUtil.uploadFileToDeviceTemp
(AdbWrapper adb, String name, AndroidPlatformABI platformAbi, String version, String extension) Upload a JEB Android asset file to an Android device.