RemoteSplitApkInstaller

public class RemoteSplitApkInstaller
extends SplitApkInstallerBase

java.lang.Object
   ↳ com.android.tradefed.device.server.SplitApkInstallerBase
     ↳ com.android.tradefed.device.server.RemoteSplitApkInstaller


Summary

Public methods

static RemoteSplitApkInstaller create(IDevice device, remoteApks, boolean reInstall, installOptions)

Returns a SplitApkInstaller for the given list of APKs that are already uploaded to the given device.

static RemoteSplitApkInstaller create(IDevice device, String applicationId, remoteApks, boolean reInstall, 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, TimeUnit unit)

Installs an Android application made of several APK files sitting locally on the device

Protected methods

boolean writeRemoteApk(String sessionId, String filePath, long timeout, TimeUnit unit)

Public methods

create

public static RemoteSplitApkInstaller create (IDevice device, 
                 remoteApks, 
                boolean reInstall, 
                 installOptions)

Returns a SplitApkInstaller for the given list of APKs that are already uploaded to the given device.

Parameters
device IDevice: the device to install APK, must include at least the main APK.

remoteApks

reInstall boolean: whether to enable reinstall option.

installOptions

Returns
RemoteSplitApkInstaller

create

public static RemoteSplitApkInstaller create (IDevice device, 
                String applicationId, 
                 remoteApks, 
                boolean reInstall, 
                 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.

Parameters
device IDevice: the device to install APK.

applicationId String: the application id of the existing application that to install new APKs with.

remoteApks

reInstall boolean: whether to enable reinstall option.

installOptions

Returns
RemoteSplitApkInstaller

install

public void install (long timeout, 
                TimeUnit unit)

Installs an Android application made of several APK files sitting locally on the device

Parameters
timeout long: installation timeout

unit TimeUnit

Throws
InstallException if the installation fails.

Protected methods

writeRemoteApk

protected boolean writeRemoteApk (String sessionId, 
                String filePath, 
                long timeout, 
                TimeUnit unit)

Parameters
sessionId String

filePath String

timeout long

unit TimeUnit

Returns
boolean