DeviceActionUtil
public
class
DeviceActionUtil
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.util.DeviceActionUtil
|
A Utility class to execute device actions.
Summary
Nested classes |
class |
DeviceActionUtil.DeviceActionConfigError
Exception for config error.
|
Public methods
create
public static DeviceActionUtil create (File deviceActionMainJar,
File bundletoolJar)
Creates an instance.
| Parameters |
deviceActionMainJar |
File |
bundletoolJar |
File |
execute
public CommandResult execute (DeviceActionUtil.Command command,
String deviceId,
List<String> actionArgs)
Executes a device action command.
| Parameters |
command |
DeviceActionUtil.Command: to execute. |
deviceId |
String: of the device. |
actionArgs |
List: action args for the command. |
findExecutableOnPath
public static File findExecutableOnPath (String name)
generateLogFile
public void generateLogFile (CommandResult result)
Generates the host log file.
| Parameters |
result |
CommandResult |
saveToLogs
public void saveToLogs (DeviceActionUtil.Command cmd,
ITestLogger testLogger)
Saves all generated files to test logs.
| Parameters |
cmd |
DeviceActionUtil.Command |
testLogger |
ITestLogger |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-22 UTC."],[],[]]