public class SplitApkInstaller extends SplitApkInstallerBase
UNSAFE_PM_INSTALL_SESSION_SPLIT_NAME_CHARS| Modifier and Type | Method and Description |
|---|---|
static SplitApkInstaller |
create(IDevice device,
java.util.List<java.io.File> apks,
boolean reInstall,
java.util.List<java.lang.String> installOptions)
Returns a
SplitApkInstaller for the given list of APK files from host to the given
device. |
static SplitApkInstaller |
create(IDevice device,
java.lang.String applicationId,
java.util.List<java.io.File> apks,
boolean reInstall,
java.util.List<java.lang.String> installOptions)
Returns a
SplitApkInstaller to install given list of APK files from host to an
existing application on the given device. |
InstallMetrics |
install(long timeout,
java.util.concurrent.TimeUnit unit)
Installs an Android application made of several APK files by streaming from files on host
|
protected boolean |
uploadApk(java.lang.String sessionId,
java.io.File fileToUpload,
int uniqueId,
long timeout,
java.util.concurrent.TimeUnit unit) |
createMultiInstallSession, getDevice, getOptions, getOptions, getOptions, getPrefix, installAbandon, installCommit, validateApiLevelpublic InstallMetrics install(long timeout, @NonNull java.util.concurrent.TimeUnit unit) throws InstallException
timeout - installation timeouttimeoutUnit - TimeUnit corresponding to the timeout parameterInstallMetrics metrics for time elapsed during this installationInstallException - if the installation fails.protected boolean uploadApk(@NonNull
java.lang.String sessionId,
@NonNull
java.io.File fileToUpload,
int uniqueId,
long timeout,
@NonNull
java.util.concurrent.TimeUnit unit)
public static SplitApkInstaller create(@NonNull IDevice device, @NonNull java.util.List<java.io.File> apks, boolean reInstall, @NonNull java.util.List<java.lang.String> installOptions)
SplitApkInstaller for the given list of APK files from host to the given
device.device - the device to install APK, must include at least the main APK.apks - list of APK files.reInstall - whether to enable reinstall option.options - list of install options.public static SplitApkInstaller create(@NonNull IDevice device, @NonNull java.lang.String applicationId, @NonNull java.util.List<java.io.File> apks, boolean reInstall, @NonNull java.util.List<java.lang.String> installOptions)
SplitApkInstaller to install given list of APK files from host to an
existing application on the given device.device - the device to install APK.applicationId - the application id of the existing application that to install new APKs
with.apks - list of APK files.reInstall - whether to enable reinstall option.pmOptions - list of install options.