com.android.repository.impl.installer
Interface PackageInstaller

All Known Implementing Classes:
BasicInstaller

public interface PackageInstaller

A facility for downloading and installing and uninstalling packages.


Method Summary
 boolean install(RemotePackage p, Downloader downloader, SettingsController settings, ProgressIndicator progress, RepoManager manager, FileOp fop)
          Installs the package.
 boolean uninstall(LocalPackage p, ProgressIndicator progress, RepoManager manager, FileOp fop)
          Uninstall the package.
 

Method Detail

uninstall

boolean uninstall(@NonNull
                  LocalPackage p,
                  @NonNull
                  ProgressIndicator progress,
                  @NonNull
                  RepoManager manager,
                  @NonNull
                  FileOp fop)
Uninstall the package.

Parameters:
p - The LocalPackage to delete.
progress - A ProgressIndicator for showing progress and facilitating logging.
manager - A RepoManager that knows about this package.
fop - The FileOp to use. Should be FileOpUtils.create() if not in a unit test.
Returns:
true if the uninstall was successful, false otherwise.

install

boolean install(@NonNull
                RemotePackage p,
                @NonNull
                Downloader downloader,
                @Nullable
                SettingsController settings,
                @NonNull
                ProgressIndicator progress,
                @NonNull
                RepoManager manager,
                @NonNull
                FileOp fop)
Installs the package.

Parameters:
p - The RemotePackage to install.
downloader - The Downloader used to download the archive.
settings - The SettingsController to provide any settings needed.
progress - A ProgressIndicator, to show install progress and facilitate logging.
manager - A RepoManager that knows about this package.
fop - The FileOp to use. Should be FileOpUtils.create() if not in a unit test.
Returns:
true if the install was successful, false otherwise.