Documentation
¶
Overview ¶
Package apk reference article http://blog.csdn.net/mldxs/article/details/44956911 http://www.freebuf.com/articles/terminal/75944.html
Index ¶
Constants ¶
View Source
const ( RES_NULL_TYPE = 0x0000 RES_STRING_POOL_TYPE = 0x0001 RES_TABLE_TYPE = 0x0002 RES_XML_FIRST_CHUNK_TYPE = 0x0100 RES_XML_START_NAMESPACE_TYPE = 0x0100 RES_XML_END_NAMESPACE_TYPE = 0x0101 RES_XML_START_ELEMENT_TYPE = 0x0102 RES_XML_END_ELEMENT_TYPE = 0x0103 RES_XML_CDATA_TYPE = 0x0104 RES_XML_LAST_CHUNK_TYPE = 0x017f RES_XML_RESOURCE_MAP_TYPE = 0x0180 RES_TABLE_PACKAGE_TYPE = 0x0200 RES_TABLE_TYPE_TYPE = 0x0201 RES_TABLE_TYPE_SPEC_TYPE = 0x0202 RES_FLAG_UTF16 = 0x0000 RES_FLAG_UTF8 = 0x0100 RES_FLAG_SORTED = 0x0001 )
View Source
const ( CHUNK_AXML_FILE = 0x00080003 CHUNK_RESOURCEIDS = 0x00080180 CHUNK_STRINGS = 0x001C0001 CHUNK_XML_END_NAMESPACE = 0x00100101 CHUNK_XML_END_TAG = 0x00100103 CHUNK_XML_START_NAMESPACE = 0x00100100 CHUNK_XML_START_TAG = 0x00100102 CHUNK_XML_TEXT = 0x00100104 UTF8_FLAG = 0x00000100 SKIP_BLOCK = 0xFFFFFFFF )
Variables ¶
This section is empty.
Functions ¶
func Unmarshal ¶
decompressXML -- Parse the 'compressed' binary form of Android XML docs such as for AndroidManifest.xml in .apk files
func UnmarshalArsc ¶
Types ¶
type ActivityAction ¶
type ActivityAction struct {
Name string `xml:"name,attr"`
}
type ActivityCategory ¶
type ActivityCategory struct {
Name string `xml:"name,attr"`
}
type ActivityIntentFilter ¶
type ActivityIntentFilter struct {
Action ActivityAction `xml:"action"`
Category ActivityCategory `xml:"category"`
}
type AppActivity ¶
type AppActivity struct {
Theme string `xml:"theme,attr"`
Name string `xml:"name,attr"`
Label string `xml:"label,attr"`
IntentFilter []ActivityIntentFilter `xml:"intent-filter"`
}
type Application ¶
type Application struct {
AllowTaskReparenting bool `xml:"allowTaskReparenting,attr"`
AllowBackup bool `xml:"allowBackup,attr"`
BackupAgent string `xml:"backupAgent,attr"`
Debuggable bool `xml:"debuggable,attr"`
Description string `xml:"description,attr"`
Enabled bool `xml:"enabled,attr"`
HasCode bool `xml:"hasCode,attr"`
HardwareAccelerated bool `xml:"hardwareAccelerated,attr"`
Icon string `xml:"icon,attr"`
KillAfterRestore bool `xml:"killAfterRestore,attr"`
LargeHeap bool `xml:"largeHeap,attr"`
Label string `xml:"label,attr"`
Logo int `xml:"logo,attr"`
ManageSpaceActivity string `xml:"manageSpaceActivity,attr"`
Name string `xml:"name,attr"`
Permission string `xml:"permission,attr"`
Persistent bool `xml:"persistent,attr"`
Process string `xml:"process,attr"`
RestoreAnyVersion bool `xml:"restoreAnyVersion,attr"`
RequiredAccountType string `xml:"requiredAccountType,attr"`
RestrictedAccountType string `xml:"restrictedAccountType,attr"`
SupportsRtl bool `xml:"supportsRtl,attr"`
TaskAffinity string `xml:"taskAffinity,attr"`
TestOnly bool `xml:"testOnly,attr"`
Theme int `xml:"theme,attr"`
UiOptions string `xml:"uiOptions,attr"`
VmSafeMode bool `xml:"vmSafeMode,attr"`
Activity []AppActivity `xml:"activity"`
}
type Instrumentation ¶
type Manifest ¶
type Manifest struct {
Package string `xml:"package,attr"`
VersionCode int `xml:"versionCode,attr"`
VersionName string `xml:"versionName,attr"`
App Application `xml:"application"`
Instrument Instrumentation `xml:"instrumentation"`
Sdk UsesSdk `xml:"uses-sdk"`
}
type UsesSdk ¶
type UsesSdk struct {
Min adb.SdkVersion `xml:"minSdkVersion,attr"`
Target adb.SdkVersion `xml:"targetSdkVersion,attr"`
Max adb.SdkVersion `xml:"maxSdkVersion,attr"`
}
Click to show internal directories.
Click to hide internal directories.