AaptParser
public
class
AaptParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AaptParser |
Class that extracts info from apk by parsing output of 'aapt dump badging'.
aapt must be on PATHSummary
Nested classes | |
---|---|
enum |
AaptParser.AaptVersion
Enum of options for AAPT version used to parse APK files. |
Public methods | |
---|---|
String
|
getLabel()
|
|
getNativeCode()
|
String
|
getPackageName()
|
int
|
getSdkVersion()
|
int
|
getTargetSdkVersion()
|
String
|
getVersionCode()
|
String
|
getVersionName()
|
boolean
|
isRequestingLegacyStorage()
Check if the app is requesting legacy storage. |
boolean
|
isUsingPermissionManageExternalStorage()
|
static
AaptParser
|
parse(File apkFile, AaptParser.AaptVersion aaptVersion)
Parse info from the apk. |
static
AaptParser
|
parse(File apkFile)
Parse info from the apk. |
Public methods
getLabel
public String getLabel ()
Returns | |
---|---|
String |
getNativeCode
publicgetNativeCode ()
Returns | |
---|---|
|
getPackageName
public String getPackageName ()
Returns | |
---|---|
String |
getSdkVersion
public int getSdkVersion ()
Returns | |
---|---|
int |
getTargetSdkVersion
public int getTargetSdkVersion ()
Returns | |
---|---|
int |
getVersionCode
public String getVersionCode ()
Returns | |
---|---|
String |
getVersionName
public String getVersionName ()
Returns | |
---|---|
String |
isRequestingLegacyStorage
public boolean isRequestingLegacyStorage ()
Check if the app is requesting legacy storage.
Returns | |
---|---|
boolean |
boolean return true if requestLegacyExternalStorage is true in AndroidManifest.xml |
isUsingPermissionManageExternalStorage
public boolean isUsingPermissionManageExternalStorage ()
Returns | |
---|---|
boolean |
parse
public static AaptParser parse (File apkFile, AaptParser.AaptVersion aaptVersion)
Parse info from the apk.
Parameters | |
---|---|
apkFile |
File : the apk file |
aaptVersion |
AaptParser.AaptVersion : the aapt version |
Returns | |
---|---|
AaptParser |
the AaptParser or null if failed to extract the information
|
parse
public static AaptParser parse (File apkFile)
Parse info from the apk.
Parameters | |
---|---|
apkFile |
File : the apk file |
Returns | |
---|---|
AaptParser |
the AaptParser or null if failed to extract the information
|
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
Last updated 2020-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"এতে আমার প্রয়োজনীয় তথ্য নেই"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"খুব জটিল / অনেক ধাপ"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"পুরনো"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"অনুবাদ সংক্রান্ত সমস্যা"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"নমুনা / কোড সংক্রান্ত সমস্যা"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"অন্যান্য"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"সহজে বোঝা যায়"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"আমার সমস্যার সমাধান হয়েছে"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"অন্যান্য"
}]