AdbRootElevator

public class AdbRootElevator
extends Object implements AutoCloseable

java.lang.Object
com.android.tradefed.util.AdbRootElevator


一个 AutoCloseable,可在构造时根据需要启用 adb root,并在完成后恢复 root 状态。

摘要

公共构造函数

AdbRootElevator(INativeDevice device)

公共方法

void close()

公共构造函数

AdbRootElevator

public AdbRootElevator (INativeDevice device)

参数
device INativeDevice

抛出
DeviceNotAvailableException

公共方法

关闭

public void close ()