AaptParser

public class AaptParser
extends Object

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


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

aapt, PATH में होना चाहिए

खास जानकारी

सार्वजनिक तरीके

String getLabel()
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  getNativeCode ()

रिटर्न

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 अगर AndroidManifest.xml में requestLegacyExternalStorage सही है, तो बूलियन सही दिखाता है

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, अगर जानकारी एक्सट्रैक्ट नहीं की जा सकी