public interface IUpdateAppDevice extends IAdvanceDevice
Modifier and Type | Method and Description |
---|---|
boolean |
installAndLaunchApkFile(String apkFilePath,
int type,
String packageName,
String classNameOrAction) |
int |
installApkFile(String apkFilePath) |
boolean |
uninstall(String packageName)
uninstall app
|
close, isOpened, open
boolean installAndLaunchApkFile(String apkFilePath, int type, String packageName, String classNameOrAction) throws DeviceException
apkFilePath
- : apk file path.type
- : 0, service; 1, broadcast; 2, activitypackageName
- : apk's package nameclassNameOrAction
- : The class name( or action) of the component to be startedDeviceException
int installApkFile(String apkFilePath) throws DeviceException
apkFilePath
- : apk file path.DeviceException
boolean uninstall(String packageName) throws DeviceException
packageName
- : Installed package name.DeviceException