public class RemoteSplitApkInstaller extends SplitApkInstallerBase
UNSAFE_PM_INSTALL_SESSION_SPLIT_NAME_CHARS| Modifier and Type | Method and Description |
|---|---|
static RemoteSplitApkInstaller |
create(IDevice device,
java.util.List<java.lang.String> remoteApks,
boolean reInstall,
java.util.List<java.lang.String> installOptions)
Returns a
SplitApkInstaller for the given list of APKs that are already uploaded to
the given device. |
static RemoteSplitApkInstaller |
create(IDevice device,
java.lang.String applicationId,
java.util.List<java.lang.String> remoteApks,
boolean reInstall,
java.util.List<java.lang.String> installOptions)
Returns a
SplitApkInstaller to install given list of APKs that are already uploaded
to the given device to an existing application on the device. |
void |
install(long timeout,
java.util.concurrent.TimeUnit unit)
Installs an Android application made of several APK files sitting locally on the device
|
protected boolean |
writeRemoteApk(java.lang.String sessionId,
java.lang.String filePath,
long timeout,
java.util.concurrent.TimeUnit unit) |
createMultiInstallSession, getDevice, getOptions, getOptions, getOptions, getPrefix, installAbandon, installCommit, validateApiLevelpublic void install(long timeout,
@NonNull
java.util.concurrent.TimeUnit unit)
throws InstallException
timeout - installation timeouttimeoutUnit - TimeUnit corresponding to the timeout parameterInstallException - if the installation fails.protected boolean writeRemoteApk(@NonNull
java.lang.String sessionId,
@NonNull
java.lang.String filePath,
long timeout,
@NonNull
java.util.concurrent.TimeUnit unit)
public static RemoteSplitApkInstaller create(@NonNull IDevice device, @NonNull java.util.List<java.lang.String> remoteApks, boolean reInstall, @NonNull java.util.List<java.lang.String> installOptions)
SplitApkInstaller for the given list of APKs that are already uploaded to
the given device.device - the device to install APK, must include at least the main APK.applicationId - the application id that to install new APKs with.apks - list of remote APKs.reInstall - whether to enable reinstall option.pmOptions - list of install options.public static RemoteSplitApkInstaller create(@NonNull IDevice device, @NonNull java.lang.String applicationId, @NonNull java.util.List<java.lang.String> remoteApks, boolean reInstall, @NonNull java.util.List<java.lang.String> installOptions)
SplitApkInstaller to install given list of APKs that are already uploaded
to the given device to an existing application on the device.device - the device to install APK.applicationId - the application id of the existing application that to install new APKs
with.apks - list of remote APKs.reInstall - whether to enable reinstall option.pmOptions - list of install options.