AaptParser

public class AaptParser
extends Object

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


कक्षा जो 'एएपीटी डंप बैजिंग' के आउटपुट को पार्स करके एपीके से जानकारी निकालती है।

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)

एपीके से जानकारी पार्स करें।

static AaptParser parse (File apkFile)

एपीके से जानकारी पार्स करें।

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

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 सही है तो बूलियन वापसी सही है

अनुमति का उपयोग कर रहा है बाहरी संग्रहण प्रबंधित करें

public boolean isUsingPermissionManageExternalStorage ()

रिटर्न
boolean

पार्स

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

एपीके से जानकारी पार्स करें।

पैरामीटर
apkFile File : एपीके फ़ाइल

aaptVersion AaptParser.AaptVersion : aapt संस्करण

रिटर्न
AaptParser AaptParser या null अगर जानकारी निकालने में विफल रहा

पार्स

public static AaptParser parse (File apkFile)

एपीके से जानकारी पार्स करें।

पैरामीटर
apkFile File : एपीके फ़ाइल

रिटर्न
AaptParser AaptParser या null अगर जानकारी निकालने में विफल रहा