|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.internal.repository.updater.SdkUpdaterNoWindow
public class SdkUpdaterNoWindow
Performs an update using only a non-interactive console output with no GUI.
| Constructor Summary | |
|---|---|
SdkUpdaterNoWindow(java.lang.String osSdkRoot,
SdkManager sdkManager,
com.android.utils.ILogger sdkLog,
boolean force,
boolean useHttp,
java.lang.String proxyHost,
java.lang.String proxyPort)
Creates an UpdateNoWindow object that will update using the given SDK root and outputs to the given SDK logger. |
|
| Method Summary | |
|---|---|
com.android.utils.Pair<java.lang.Boolean,java.io.File> |
installPlatformPackage(java.lang.String hashString)
Installs a platform package given its target hash string. |
void |
listRemotePackages(boolean includeAll,
boolean extendedOutput)
Lists remote packages available for install using 'android update sdk --no-ui'. |
void |
updateAll(java.util.ArrayList<java.lang.String> pkgFilter,
boolean includeAll,
boolean dryMode,
java.lang.String acceptLicense)
Performs the actual update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SdkUpdaterNoWindow(java.lang.String osSdkRoot,
SdkManager sdkManager,
com.android.utils.ILogger sdkLog,
boolean force,
boolean useHttp,
java.lang.String proxyHost,
java.lang.String proxyPort)
osSdkRoot - The OS path of the SDK folder to update.sdkManager - An existing SDK manager to list current platforms and addons.sdkLog - A logger object, that should ideally output to a write-only console.force - The reply to any question asked by the update process. Currently this will
be yes/no for ability to replace modified samples or restart ADB.useHttp - True to force using HTTP instead of HTTPS for downloads.proxyPort - An optional HTTP/HTTPS proxy port. Can be null.proxyHost - An optional HTTP/HTTPS proxy host. Can be null.| Method Detail |
|---|
public void updateAll(java.util.ArrayList<java.lang.String> pkgFilter,
boolean includeAll,
boolean dryMode,
java.lang.String acceptLicense)
pkgFilter - A list of SdkRepoConstants.NODES to limit the type of packages
we can update. A null or empty list means to update everything possible.includeAll - True to list and install all packages, including obsolete ones.dryMode - True to check what would be updated/installed but do not actually
download or install anything.acceptLicense - SDK licenses to automatically accept.
public void listRemotePackages(boolean includeAll,
boolean extendedOutput)
includeAll - True to list and install all packages, including obsolete ones.extendedOutput - True to display more details on each package.public com.android.utils.Pair<java.lang.Boolean,java.io.File> installPlatformPackage(java.lang.String hashString)
hashString - The hash string of the platform to install.
File
with the path to the root folder of the package. The file is null when the boolean
is false, otherwise it should point to an existing valid folder.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||