parses an Apk, uses aapt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
parser.go
parser_test.go
util.go

README.md

First install aapt (on Debian or derivatives install using apt-get)

Install using go get

$ go get github.com/betacraft/aapt-parser

How to use

func main() {
   apk := Parse("to_be_parsed.apk")
   if apk == nil {
      // some error, install aapt or give correct path
      return
	}
  // Use all data in Apk(see below Apk struct)
}

Apk Struct

type Apk struct {
	Permissions         []string
	FeaturesNotRequired []string
	FeaturesRequired    []string
	LibsNotRequired     []string
	LibsRequired        []string // TODO
	AppLabel            string
	PackageName         string
	VersionCode         int
	VersionName         string
	TargetSdkVersion    string
	SdkVersion          string
	GlUse               string
	NativeCode          string
}