public class AndroidTools extends ConsoleTool
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANDROID_HOME_ENV_VAR
"ANDROID_HOME"
|
static java.lang.String |
ANDROID_HOME_SYS_PROP
"android-home" as in VM argument "-Dandroid-home=..."
|
static java.lang.String |
ANDROID_SDK_AAPT_TOOL_UNX
"aapt"
|
static java.lang.String |
ANDROID_SDK_AAPT_TOOL_WIN
"aapt.exe"
|
static java.lang.String |
ANDROID_SDK_ADB_TOOL_UNX
"adb"
|
static java.lang.String |
ANDROID_SDK_ADB_TOOL_WIN
"adb.exe"
|
static java.lang.String |
ANDROID_SDK_AIDL_TOOL_UNX
"aidl"
|
static java.lang.String |
ANDROID_SDK_AIDL_TOOL_WIN
"aidl.exe"
|
static java.lang.String |
ANDROID_SDK_APKBUILDER_TOOL_UNX
"apkbuilder"
|
static java.lang.String |
ANDROID_SDK_APKBUILDER_TOOL_WIN
"apkbuilder.bat"
|
static java.lang.String |
ANDROID_SDK_BUILD_TOOLS_DIR
"build-tools" subdirectory in Android SDK
|
static java.lang.String |
ANDROID_SDK_DDMS_TOOL_UNX
"ddms"
|
static java.lang.String |
ANDROID_SDK_DDMS_TOOL_WIN
"ddms.bat"
|
static java.lang.String |
ANDROID_SDK_DMTRACEDUMP_TOOL_UNX
"dmtracedump"
|
static java.lang.String |
ANDROID_SDK_DMTRACEDUMP_TOOL_WIN
"dmtracedump.exe"
|
static java.lang.String |
ANDROID_SDK_DX_TOOL_UNX
"dx"
|
static java.lang.String |
ANDROID_SDK_DX_TOOL_WIN
"dx.bat"
|
static java.lang.String |
ANDROID_SDK_EMULATOR_TOOL_UNX
"emulator"
|
static java.lang.String |
ANDROID_SDK_EMULATOR_TOOL_WIN
"emulator.exe"
|
static java.lang.String |
ANDROID_SDK_ENV_VAR
"ANDROID_SDK"
|
static java.lang.String |
ANDROID_SDK_MKSDCARD_TOOL_UNX
"mksdcard"
|
static java.lang.String |
ANDROID_SDK_MKSDCARD_TOOL_WIN
"mksdcard.exe"
|
static java.lang.String |
ANDROID_SDK_PLATFORM_DIR
"platform" subdirectory in Android SDK
|
static java.lang.String |
ANDROID_SDK_PLATFORM_TOOLS_DIR
"platform-tools" subdirectory in Android SDK
|
static java.lang.String |
ANDROID_SDK_SQLITE3_TOOL_UNX
"sqlite3"
|
static java.lang.String |
ANDROID_SDK_SQLITE3_TOOL_WIN
"sqlite3.exe"
|
static java.lang.String |
ANDROID_SDK_TOOLS_DIR
"tools" subdirectory in Android SDK
|
static java.lang.String |
ANDROID_SDK_TRACEVIEW_TOOL_UNX
"traceview"
|
static java.lang.String |
ANDROID_SDK_TRACEVIEW_TOOL_WIN
"traceview.bat"
|
binDirectories, console
Modifier and Type | Method and Description |
---|---|
Process2 |
aapt(java.util.List<java.lang.String> args) |
Process2 |
aapt(java.lang.String... args) |
Process2 |
adb(java.util.List<java.lang.String> args) |
Process2 |
adb(java.lang.String... args) |
Process2 |
aidl(java.util.List<java.lang.String> args) |
Process2 |
aidl(java.lang.String... args) |
Process2 |
apkBuilder(java.util.List<java.lang.String> args) |
Process2 |
apkBuilder(java.lang.String... args) |
Process2 |
ddms(java.util.List<java.lang.String> args) |
Process2 |
ddms(java.lang.String... args) |
Process2 |
dmtracedump(java.util.List<java.lang.String> args) |
Process2 |
dmtracedump(java.lang.String... args) |
Process2 |
dx(java.util.List<java.lang.String> args) |
Process2 |
dx(java.lang.String... args) |
Process2 |
emulator(java.util.List<java.lang.String> args) |
Process2 |
emulator(java.lang.String... args) |
static AndroidTools |
get()
TODO Do we need to keep this tool as a singleton?
If different users call
ConsoleTool.setToolHome(String) to set different tool-path, problem!!!But on one machine, it is rarely that user has different path for one tool. |
java.util.List<java.lang.Integer> |
getInstalledSKDLevel() |
protected java.util.List<java.lang.String> |
getToolHomeEnvs()
called internally to get the list of environment variable names to search for
the Android SDK home directory.
|
protected java.util.List<java.lang.String> |
getToolHomeProperties()
called internally to get the list (1) VM argument name to search for the
Android SDK home directory.
|
Process2 |
mksdcard(java.util.List<java.lang.String> args) |
Process2 |
mksdcard(java.lang.String... args) |
protected void |
modifyBinDirectories()
called internally to set the List of tools directories to search for tools.
|
protected boolean |
needSearchRecursively(java.lang.String directoryName)
If the directory is "build-tools", needs to
search in the sub-directories.
|
void |
setAndroidHome(java.lang.String androidHome)
Deprecated.
|
Process2 |
sqlite3(java.util.List<java.lang.String> args) |
Process2 |
sqlite3(java.lang.String... args) |
Process2 |
traceview(java.util.List<java.lang.String> args) |
Process2 |
traceview(java.lang.String... args) |
batch, batch, batch, exec, exec, exec, exec, getBinDirectories, getLastCommand, getOsFamilyName, getToolHome, isMacOS, isUnixOS, isWindowsOS, locateTool, searchFile, setToolHome
public static final java.lang.String ANDROID_HOME_ENV_VAR
public static final java.lang.String ANDROID_SDK_ENV_VAR
public static final java.lang.String ANDROID_HOME_SYS_PROP
public static final java.lang.String ANDROID_SDK_TOOLS_DIR
public static final java.lang.String ANDROID_SDK_PLATFORM_TOOLS_DIR
public static final java.lang.String ANDROID_SDK_BUILD_TOOLS_DIR
public static final java.lang.String ANDROID_SDK_PLATFORM_DIR
public static final java.lang.String ANDROID_SDK_AAPT_TOOL_WIN
public static final java.lang.String ANDROID_SDK_AAPT_TOOL_UNX
public static final java.lang.String ANDROID_SDK_AIDL_TOOL_WIN
public static final java.lang.String ANDROID_SDK_AIDL_TOOL_UNX
public static final java.lang.String ANDROID_SDK_APKBUILDER_TOOL_WIN
public static final java.lang.String ANDROID_SDK_APKBUILDER_TOOL_UNX
public static final java.lang.String ANDROID_SDK_ADB_TOOL_WIN
public static final java.lang.String ANDROID_SDK_ADB_TOOL_UNX
public static final java.lang.String ANDROID_SDK_DDMS_TOOL_WIN
public static final java.lang.String ANDROID_SDK_DDMS_TOOL_UNX
public static final java.lang.String ANDROID_SDK_DMTRACEDUMP_TOOL_WIN
public static final java.lang.String ANDROID_SDK_DMTRACEDUMP_TOOL_UNX
public static final java.lang.String ANDROID_SDK_DX_TOOL_WIN
public static final java.lang.String ANDROID_SDK_DX_TOOL_UNX
public static final java.lang.String ANDROID_SDK_EMULATOR_TOOL_WIN
public static final java.lang.String ANDROID_SDK_EMULATOR_TOOL_UNX
public static final java.lang.String ANDROID_SDK_MKSDCARD_TOOL_WIN
public static final java.lang.String ANDROID_SDK_MKSDCARD_TOOL_UNX
public static final java.lang.String ANDROID_SDK_SQLITE3_TOOL_WIN
public static final java.lang.String ANDROID_SDK_SQLITE3_TOOL_UNX
public static final java.lang.String ANDROID_SDK_TRACEVIEW_TOOL_WIN
public static final java.lang.String ANDROID_SDK_TRACEVIEW_TOOL_UNX
public static AndroidTools get()
ConsoleTool.setToolHome(String)
to set different tool-path, problem!!!protected void modifyBinDirectories()
modifyBinDirectories
in class ConsoleTool
#ANDROID_SDK_OLD_TOOLS_DIR
,
AndroidTools#ANDROID_SDK_NEW_TOOLS_DIR
protected java.util.List<java.lang.String> getToolHomeProperties()
getToolHomeProperties
in class ConsoleTool
ANDROID_HOME_SYS_PROP
protected java.util.List<java.lang.String> getToolHomeEnvs()
getToolHomeEnvs
in class ConsoleTool
ANDROID_HOME_ENV_VAR
,
ANDROID_SDK_ENV_VAR
protected boolean needSearchRecursively(java.lang.String directoryName)
needSearchRecursively
in class ConsoleTool
directoryName
- String, the directory to be searchedConsoleTool.locateTool(String)
public void setAndroidHome(java.lang.String androidHome)
ConsoleTool.getToolHome()
will not try to get the tool's homeConsoleTool.setToolHome(String)
instead.toolHome
- ConsoleTool.getToolHome()
,
ConsoleTool.setToolHome(String)
public Process2 aapt(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 aapt(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 aidl(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 aidl(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 apkBuilder(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 apkBuilder(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 adb(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 adb(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 ddms(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 ddms(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 dmtracedump(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 dmtracedump(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 dx(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 dx(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 emulator(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 emulator(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 mksdcard(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 mksdcard(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 sqlite3(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 sqlite3(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public Process2 traceview(java.lang.String... args) throws java.io.IOException
java.io.IOException
public Process2 traceview(java.util.List<java.lang.String> args) throws java.io.IOException
java.io.IOException
public java.util.List<java.lang.Integer> getInstalledSKDLevel()
Copyright © SAS Institute. All Rights Reserved.