Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

lunny/axmlParser

Repository files navigation

Android binary manifest XML file parser library for Golang

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 github.com/lunny/axmlParser

Usage

package main

import (
	"fmt"

	"github.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)
}