apk

package
v0.0.0-...-95acf55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

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

func Unmarshal(data []byte, v interface{}) error

decompressXML -- Parse the 'compressed' binary form of Android XML docs such as for AndroidManifest.xml in .apk files

Types

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"`
	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"`
}

type Instrumentation

type Instrumentation struct {
	Name            string `xml:"name,attr"`
	Target          string `xml:"targetPackage,attr"`
	HandleProfiling bool   `xml:"handleProfiling,attr"`
	FunctionalTest  bool   `xml:"functionalTest,attr"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL