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, openboolean 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 startedApplications must request permission :
<uses-permission android:name="android.permission.CLOUDPOS_INSTALL_SILENCE" />
DeviceExceptionint installApkFile(String apkFilePath) throws DeviceException
apkFilePath - : apk file path.Applications must request permission :
<uses-permission android:name="android.permission.CLOUDPOS_INSTALL_SILENCE" />
DeviceExceptionboolean uninstall(String packageName) throws DeviceException
packageName - : Installed package name.DeviceException