public interface AndroidDevice
Modifier and Type | Method and Description |
---|---|
AutoCloseable |
createForward() |
List<String> |
getDeviceAbis() |
Optional<PackageInfo> |
getPackageInfo(String packageName) |
String |
getProperty(String name) |
String |
getSerialNumber() |
String |
getSignature(String packagePath) |
default boolean |
installApkOnDevice(File apk,
boolean installViaSd,
boolean quiet) |
boolean |
installApkOnDevice(File apk,
boolean installViaSd,
boolean quiet,
boolean verifyTempWritable) |
void |
installFiles(String filesType,
Map<Path,Path> installPaths) |
void |
killProcess(String processName) |
com.google.common.collect.ImmutableSortedSet<Path> |
listDirRecursive(Path dirPath) |
void |
mkDirP(String dirpath) |
void |
rmFiles(String dirPath,
Iterable<String> filesToDelete) |
void |
sendBroadcast(String action,
Map<String,String> stringExtras) |
void |
stopPackage(String packageName) |
void |
uninstallPackage(String packageName) |
default boolean installApkOnDevice(File apk, boolean installViaSd, boolean quiet)
boolean installApkOnDevice(File apk, boolean installViaSd, boolean quiet, boolean verifyTempWritable)
Optional<PackageInfo> getPackageInfo(String packageName) throws Exception
Exception
void uninstallPackage(String packageName) throws com.android.ddmlib.InstallException
com.android.ddmlib.InstallException
com.google.common.collect.ImmutableSortedSet<Path> listDirRecursive(Path dirPath) throws Exception
Exception
AutoCloseable createForward() throws Exception
Exception
void installFiles(String filesType, Map<Path,Path> installPaths) throws Exception
Exception
void sendBroadcast(String action, Map<String,String> stringExtras) throws Exception
Exception
String getSerialNumber()