Android binary manifest XML file parser library for Golang
This repository has been archived on 2020-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Lunny Xiao 8e32cc89f2
Some checks failed
continuous-integration/drone/push Build is failing
fix vet
2020-01-25 16:31:53 +08:00
.drone.yml go mod and readme 2020-01-21 15:37:51 +08:00
appnamelistener.go Expose VersionCode & VersionName 2015-07-21 16:51:00 +02:00
attribute.go init 2014-08-16 10:01:47 +08:00
go.mod go mod and readme 2020-01-21 15:37:51 +08:00
LICENSE add license 2017-11-29 09:15:00 +08:00
listener.go init 2014-08-16 10:01:47 +08:00
parse.go init 2014-08-16 10:01:47 +08:00
parser_test.go updated 2014-08-21 11:22:15 +08:00
parser.go fix vet 2020-01-25 16:31:53 +08:00
plainlistener.go init 2014-08-16 10:01:47 +08:00
README.md go mod and readme 2020-01-21 15:37:51 +08:00

Android binary manifest XML file parser library for Golang

Build Status

This is a golang port of github.com/xgouchet/AXML.

This package aims to parse an android binary mainfest xml file on an apk file.

Installation

go get gitea.com/lunny/axmlParser

Usage

package main

import (
	"fmt"

	"gitea.com/lunny/axmlParser"
)

func main() {
	listener := new(axmlParser.AppNameListener)
	axmlParser.ParseApk("./myApp.apk", listener)

	fmt.Printf("ActivityName: %v\n", listener.ActivityName)
	fmt.Printf("VersionCode: %v\n", listener.VersionCode)
	fmt.Printf("VersionName: %v\n", listener.VersionName)
}