A parser for aab manifests, inspired by node-apk-parser
You must have java JDK 8+ on your machine NodeJS 12.18.0 (lower might versions work but unsupported)
npm install node-aab-parser
or
yarn add node-aab-parser
import { readManifest } from "node-aab-parser"; // or the require equivalent
await readManifest(filePath); // async / await
readManifest(filePath)
.then(response => /* do something */);
.catch(err => /* handle err */ ) // promise based
async aabParser(filePath): Response
Parameter | Description | Required | Type |
---|---|---|---|
filePath | Absolute path of the file you want to parse | true | string |
Response object:
Attribute | Description | Type |
---|---|---|
compiledSdkVersion | sdk version this was compiled to (api level on android studio ) | number |
compiledSdkVersionCodename | commonly known android version | number |
minSdkVersion | minimum android version that runs the app | number |
targetSdkVersion | target android version for the app | number |
versionCode | version number | number |
versionName | version name | string |
packageName | package name of your app | string |
permissions | permissions your app has | string[] |
It's still very barebones so any contribution is more than welcome.
Check the guidelines and the TODO