AaptParser

public class AaptParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.AaptParser


यह क्लास, 'aapt dump badging' के आउटपुट को पार्स करके, APK से जानकारी निकालती है.

aapt, PATH पर होना चाहिए

खास जानकारी

पब्लिक मेथड

String getLabel()
List<String> getNativeCode()
String getPackageName()
int getSdkVersion()
int getTargetSdkVersion()
String getVersionCode()
String getVersionName()
boolean isRequestingLegacyStorage()

देखें कि ऐप्लिकेशन, लेगसी स्टोरेज का अनुरोध कर रहा है या नहीं.

boolean isUsingPermissionManageExternalStorage()
static AaptParser parse(File apkFile, AaptParser.AaptVersion aaptVersion)

APK से जानकारी पार्स करता है.

static AaptParser parse(File apkFile)

APK से जानकारी पार्स करता है.

पब्लिक मेथड

getLabel

public String getLabel ()

रिटर्न
String

getNativeCode

public List<String> getNativeCode ()

रिटर्न
List<String>

getPackageName

public String getPackageName ()

रिटर्न
String

getSdkVersion

public int getSdkVersion ()

रिटर्न
int

getTargetSdkVersion

public int getTargetSdkVersion ()

रिटर्न
int

getVersionCode

public String getVersionCode ()

रिटर्न
String

getVersionName

public String getVersionName ()

रिटर्न
String

isRequestingLegacyStorage

public boolean isRequestingLegacyStorage ()

देखें कि ऐप्लिकेशन, लेगसी स्टोरेज का अनुरोध कर रहा है या नहीं.

रिटर्न
boolean boolean, अगर AndroidManifest.xml में requestLegacyExternalStorage की वैल्यू सही है, तो true दिखाता है

isUsingPermissionManageExternalStorage

public boolean isUsingPermissionManageExternalStorage ()

रिटर्न
boolean

पार्स करना

public static AaptParser parse (File apkFile, 
                AaptParser.AaptVersion aaptVersion)

APK से जानकारी पार्स करता है.

पैरामीटर
apkFile File: APK फ़ाइल

aaptVersion AaptParser.AaptVersion: aapt का वर्शन

रिटर्न
AaptParser अगर जानकारी नहीं निकाली जा सकी, तो AaptParser या null

पार्स करना

public static AaptParser parse (File apkFile)

APK से जानकारी पार्स करता है.

पैरामीटर
apkFile File: APK फ़ाइल

रिटर्न
AaptParser अगर जानकारी नहीं निकाली जा सकी, तो AaptParser या null