@Deprecated
public final class AndroidManifest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_ANYDENSITY
Deprecated.
|
static java.lang.String |
ATTRIBUTE_BACKUP_AGENT
Deprecated.
|
static java.lang.String |
ATTRIBUTE_DEBUGGABLE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_EXPORTED
Deprecated.
|
static java.lang.String |
ATTRIBUTE_EXTRACT_NATIVE_LIBS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_FUNCTIONAL_TEST
Deprecated.
|
static java.lang.String |
ATTRIBUTE_GLESVERSION
Deprecated.
|
static java.lang.String |
ATTRIBUTE_HANDLE_PROFILING
Deprecated.
|
static java.lang.String |
ATTRIBUTE_ICON
Deprecated.
|
static java.lang.String |
ATTRIBUTE_INSTRUMENTATION_LABEL
Deprecated.
|
static java.lang.String |
ATTRIBUTE_LABEL
Deprecated.
|
static java.lang.String |
ATTRIBUTE_LARGESCREENS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MANAGE_SPACE_ACTIVITY
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MIME_TYPE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MIN_SDK_VERSION
Deprecated.
|
static java.lang.String |
ATTRIBUTE_NAME
Deprecated.
|
static java.lang.String |
ATTRIBUTE_NORMALSCREENS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_PACKAGE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_PARENT_ACTIVITY_NAME
Deprecated.
|
static java.lang.String |
ATTRIBUTE_PORT
Deprecated.
|
static java.lang.String |
ATTRIBUTE_PROCESS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQ_5WAYNAV
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQ_HARDKEYBOARD
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQ_KEYBOARDTYPE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQ_NAVIGATION
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQ_TOUCHSCREEN
Deprecated.
|
static java.lang.String |
ATTRIBUTE_REQUIRED
Deprecated.
|
static java.lang.String |
ATTRIBUTE_RESIZEABLE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_SMALLSCREENS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_SPLIT
Deprecated.
|
static java.lang.String |
ATTRIBUTE_SUPPORTS_RTL
Deprecated.
|
static java.lang.String |
ATTRIBUTE_TARGET_ACTIVITY
Deprecated.
|
static java.lang.String |
ATTRIBUTE_TARGET_PACKAGE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_TARGET_SDK_VERSION
Deprecated.
|
static java.lang.String |
ATTRIBUTE_THEME
Deprecated.
|
static java.lang.String |
ATTRIBUTE_UI_OPTIONS
Deprecated.
|
static java.lang.String |
ATTRIBUTE_VALUE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_VERSIONCODE
Deprecated.
|
static java.lang.String |
ATTRIBUTE_VERSIONNAME
Deprecated.
|
static java.lang.String |
NODE_ACTION
Deprecated.
|
static java.lang.String |
NODE_ACTIVITY
Deprecated.
|
static java.lang.String |
NODE_ACTIVITY_ALIAS
Deprecated.
|
static java.lang.String |
NODE_APPLICATION
Deprecated.
|
static java.lang.String |
NODE_CATEGORY
Deprecated.
|
static java.lang.String |
NODE_COMPATIBLE_SCREENS
Deprecated.
|
static java.lang.String |
NODE_DATA
Deprecated.
|
static java.lang.String |
NODE_GRANT_URI_PERMISSION
Deprecated.
|
static java.lang.String |
NODE_INSTRUMENTATION
Deprecated.
|
static java.lang.String |
NODE_INTENT
Deprecated.
|
static java.lang.String |
NODE_MANIFEST
Deprecated.
|
static java.lang.String |
NODE_METADATA
Deprecated.
|
static java.lang.String |
NODE_PATH_PERMISSION
Deprecated.
|
static java.lang.String |
NODE_PERMISSION
Deprecated.
|
static java.lang.String |
NODE_PERMISSION_GROUP
Deprecated.
|
static java.lang.String |
NODE_PERMISSION_TREE
Deprecated.
|
static java.lang.String |
NODE_PROVIDER
Deprecated.
|
static java.lang.String |
NODE_RECEIVER
Deprecated.
|
static java.lang.String |
NODE_SERVICE
Deprecated.
|
static java.lang.String |
NODE_SUPPORTS_GL_TEXTURE
Deprecated.
|
static java.lang.String |
NODE_SUPPORTS_SCREENS
Deprecated.
|
static java.lang.String |
NODE_USES_CONFIGURATION
Deprecated.
|
static java.lang.String |
NODE_USES_FEATURE
Deprecated.
|
static java.lang.String |
NODE_USES_LIBRARY
Deprecated.
|
static java.lang.String |
NODE_USES_PERMISSION
Deprecated.
|
static java.lang.String |
NODE_USES_SDK
Deprecated.
|
static java.lang.String |
VALUE_PARENT_ACTIVITY
Deprecated.
|
Constructor and Description |
---|
AndroidManifest()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
combinePackageAndClassName(java.lang.String javaPackage,
java.lang.String className)
Deprecated.
Combines a java package, with a class value from the manifest to make a fully qualified
class name
|
static java.lang.String |
extractActivityName(java.lang.String fullActivityName,
java.lang.String packageName)
Deprecated.
Given a fully qualified activity name (e.g.
|
static java.lang.String |
getApplicationIcon(IAbstractFile manifestFile)
Deprecated.
Returns the application icon for a given manifest.
|
static java.lang.String |
getApplicationLabel(IAbstractFile manifestFile)
Deprecated.
Returns the application label for a given manifest.
|
static boolean |
getDebuggable(IAbstractFile manifestFile)
Deprecated.
Returns whether the manifest is set to make the application debuggable.
|
static java.lang.String |
getExtractNativeLibsXPath()
Deprecated.
|
static java.lang.String |
getInstrumentationRunnerXPath()
Deprecated.
Returns the XPath expression for the instrumentation runner
|
static IAbstractFile |
getManifest(IAbstractFolder projectFolder)
Deprecated.
Returns an
IAbstractFile object representing the manifest for the given project. |
static java.lang.Object |
getMinSdkVersion(IAbstractFile manifestFile)
Deprecated.
Returns the value of the minSdkVersion attribute.
|
static java.lang.String |
getMinSdkVersionXPath()
Deprecated.
Returns the XPath expression for the minSdkVersion
|
static java.lang.String |
getPackage(IAbstractFile manifestFile)
Deprecated.
Returns the package for a given manifest.
|
static java.lang.String |
getPackage(IAbstractFolder projectFolder)
Deprecated.
Returns the package for a given project.
|
static java.lang.String |
getPackageXPath()
Deprecated.
Returns the XPath expression for the package
|
static java.lang.String |
getSplit(IAbstractFile manifestFile)
Deprecated.
Returns the split for a given manifest.
|
static java.lang.String |
getSplit(IAbstractFolder projectFolder)
Deprecated.
Returns the split for a given project.
|
static java.lang.String |
getSplitXPath()
Deprecated.
Returns the XPath expression for the split.
|
static boolean |
getSupportsRtl(IAbstractFile manifestFile)
Deprecated.
Returns whether the manifest is set to make the application RTL aware.
|
static java.lang.Object |
getTargetSdkVersion(IAbstractFile manifestFile)
Deprecated.
Returns the value of the targetSdkVersion attribute.
|
static java.lang.String |
getTargetSdkVersionXPath()
Deprecated.
Returns the XPath expression for the targetSdkVersion
|
static java.lang.String |
getTestFunctionalTest(IAbstractFile manifestFile)
Deprecated.
Returns the instrumentation functionalTest value for the manifest.
|
static java.lang.String |
getTestFunctionalTestXPath()
Deprecated.
Returns the XPath expression for the instrumentation functionTest
|
static java.lang.String |
getTestHandleProfiling(IAbstractFile manifestFile)
Deprecated.
Returns the instrumentation handleProfiling value for the manifest.
|
static java.lang.String |
getTestHandleProfilingXPath()
Deprecated.
Returns the XPath expression for the test handleProfiling
|
static java.lang.String |
getTestInstrumentationRunner(IAbstractFile manifestFile)
Deprecated.
Returns the instrumentation runner for the manifest.
|
static java.lang.String |
getTestLabel(IAbstractFile manifestFile)
Deprecated.
Returns the instrumentation label value for the manifest.
|
static java.lang.String |
getTestLabelXPath()
Deprecated.
Returns the XPath expression for the test testLabel
|
static java.lang.String |
getTestTargetPackage(IAbstractFile manifestFile)
Deprecated.
Returns the test target package for the manifest.
|
static java.lang.String |
getTestTargetPackageXPath()
Deprecated.
Returns the XPath expression for the instrumentation target package
|
static int |
getVersionCode(IAbstractFile manifestFile)
Deprecated.
Returns the value of the versionCode attribute or -1 if the value is not set.
|
static java.lang.String |
getVersionCodeXPath()
Deprecated.
Returns the XPath expression for the versionCode
|
static java.lang.String |
getVersionNameXPath()
Deprecated.
Returns the XPath expression for the versionName
|
static boolean |
hasVersionCode(IAbstractFile manifestFile)
Deprecated.
Returns whether the version Code attribute is set in a given manifest.
|
public static final java.lang.String NODE_MANIFEST
public static final java.lang.String NODE_APPLICATION
public static final java.lang.String NODE_ACTIVITY
public static final java.lang.String NODE_ACTIVITY_ALIAS
public static final java.lang.String NODE_SERVICE
public static final java.lang.String NODE_RECEIVER
public static final java.lang.String NODE_PROVIDER
public static final java.lang.String NODE_INTENT
public static final java.lang.String NODE_ACTION
public static final java.lang.String NODE_CATEGORY
public static final java.lang.String NODE_USES_SDK
public static final java.lang.String NODE_PERMISSION
public static final java.lang.String NODE_PERMISSION_TREE
public static final java.lang.String NODE_PERMISSION_GROUP
public static final java.lang.String NODE_USES_PERMISSION
public static final java.lang.String NODE_INSTRUMENTATION
public static final java.lang.String NODE_USES_LIBRARY
public static final java.lang.String NODE_SUPPORTS_SCREENS
public static final java.lang.String NODE_COMPATIBLE_SCREENS
public static final java.lang.String NODE_USES_CONFIGURATION
public static final java.lang.String NODE_USES_FEATURE
public static final java.lang.String NODE_METADATA
public static final java.lang.String NODE_DATA
public static final java.lang.String NODE_GRANT_URI_PERMISSION
public static final java.lang.String NODE_PATH_PERMISSION
public static final java.lang.String NODE_SUPPORTS_GL_TEXTURE
public static final java.lang.String ATTRIBUTE_PACKAGE
public static final java.lang.String ATTRIBUTE_VERSIONCODE
public static final java.lang.String ATTRIBUTE_VERSIONNAME
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_MIME_TYPE
public static final java.lang.String ATTRIBUTE_PORT
public static final java.lang.String ATTRIBUTE_REQUIRED
public static final java.lang.String ATTRIBUTE_GLESVERSION
public static final java.lang.String ATTRIBUTE_PROCESS
public static final java.lang.String ATTRIBUTE_DEBUGGABLE
public static final java.lang.String ATTRIBUTE_LABEL
public static final java.lang.String ATTRIBUTE_ICON
public static final java.lang.String ATTRIBUTE_MIN_SDK_VERSION
public static final java.lang.String ATTRIBUTE_TARGET_SDK_VERSION
public static final java.lang.String ATTRIBUTE_TARGET_PACKAGE
public static final java.lang.String ATTRIBUTE_FUNCTIONAL_TEST
public static final java.lang.String ATTRIBUTE_HANDLE_PROFILING
public static final java.lang.String ATTRIBUTE_INSTRUMENTATION_LABEL
public static final java.lang.String ATTRIBUTE_TARGET_ACTIVITY
public static final java.lang.String ATTRIBUTE_MANAGE_SPACE_ACTIVITY
public static final java.lang.String ATTRIBUTE_EXPORTED
public static final java.lang.String ATTRIBUTE_RESIZEABLE
public static final java.lang.String ATTRIBUTE_ANYDENSITY
public static final java.lang.String ATTRIBUTE_SMALLSCREENS
public static final java.lang.String ATTRIBUTE_NORMALSCREENS
public static final java.lang.String ATTRIBUTE_LARGESCREENS
public static final java.lang.String ATTRIBUTE_REQ_5WAYNAV
public static final java.lang.String ATTRIBUTE_REQ_NAVIGATION
public static final java.lang.String ATTRIBUTE_REQ_HARDKEYBOARD
public static final java.lang.String ATTRIBUTE_REQ_KEYBOARDTYPE
public static final java.lang.String ATTRIBUTE_REQ_TOUCHSCREEN
public static final java.lang.String ATTRIBUTE_THEME
public static final java.lang.String ATTRIBUTE_BACKUP_AGENT
public static final java.lang.String ATTRIBUTE_PARENT_ACTIVITY_NAME
public static final java.lang.String ATTRIBUTE_SUPPORTS_RTL
public static final java.lang.String ATTRIBUTE_UI_OPTIONS
public static final java.lang.String ATTRIBUTE_VALUE
public static final java.lang.String ATTRIBUTE_EXTRACT_NATIVE_LIBS
public static final java.lang.String ATTRIBUTE_SPLIT
public static final java.lang.String VALUE_PARENT_ACTIVITY
@Nullable public static IAbstractFile getManifest(@NonNull IAbstractFolder projectFolder)
IAbstractFile
object representing the manifest for the given project.projectFolder
- The project containing the manifest file.@Nullable public static java.lang.String getPackage(@NonNull IAbstractFolder projectFolder) throws StreamException
projectFolder
- the folder of the project.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getPackage(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getPackageXPath()
@Nullable public static java.lang.String getSplit(@NonNull IAbstractFolder projectFolder) throws StreamException
projectFolder
- the folder of the project.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getSplit(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getSplitXPath()
public static boolean getDebuggable(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.public static int getVersionCode(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest file to read the attribute from.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getVersionCodeXPath()
public static boolean hasVersionCode(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to checkStreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getVersionNameXPath()
@Nullable public static java.lang.Object getMinSdkVersion(@NonNull IAbstractFile manifestFile) throws StreamException
Returns the value of the minSdkVersion attribute.
If the attribute is set with an int value, the method returns an Integer object.
If the attribute is set with a codename, it returns the codename as a String object.
If the attribute is not set, it returns null.manifestFile
- the manifest file to read the attribute from.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getMinSdkVersionXPath()
@Nullable public static java.lang.Object getTargetSdkVersion(@NonNull IAbstractFile manifestFile) throws StreamException
If the attribute is set with an int value, the method returns an Integer object.
If the attribute is set with a codename, it returns the codename as a String object.
If the attribute is not set, it returns null.
manifestFile
- the manifest file to read the attribute from.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTargetSdkVersionXPath()
public static java.lang.String getExtractNativeLibsXPath()
@NonNull public static java.lang.String getApplicationIcon(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getApplicationLabel(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.public static boolean getSupportsRtl(@NonNull IAbstractFile manifestFile) throws StreamException
If the give manifest does not contain the supportsRtl attribute then the application is considered to not be not supporting RTL (there will be no layout mirroring).
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTestInstrumentationRunner(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getInstrumentationRunnerXPath()
@NonNull public static java.lang.String getTestTargetPackage(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTestTargetPackageXPath()
@NonNull public static java.lang.String getTestFunctionalTest(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTestFunctionalTestXPath()
@NonNull public static java.lang.String getTestHandleProfiling(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTestHandleProfilingXPath()
@NonNull public static java.lang.String getTestLabel(@NonNull IAbstractFile manifestFile) throws StreamException
manifestFile
- the manifest to parse.StreamException
- If any error happens when reading the manifest.@NonNull public static java.lang.String getTestLabelXPath()
@Nullable public static java.lang.String combinePackageAndClassName(@Nullable java.lang.String javaPackage, @Nullable java.lang.String className)
javaPackage
- the java package from the manifest.className
- the class name from the manifest.@Nullable public static java.lang.String extractActivityName(@Nullable java.lang.String fullActivityName, @Nullable java.lang.String packageName)
fullActivityName
- a fully qualified activity class name, e.g. "com.foo.test.MyClass"packageName
- The project base package name, e.g. "com.foo"