Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 912 Bytes

README.md

File metadata and controls

32 lines (30 loc) · 912 Bytes

Node APK

A library to parse Android application's manifest and signature

Installation

This library is meant to work with Node JS 4 or later. You can install it using npm:

npm install node-apk

Usage

Import the Apk class and instanciate it passing your APK's file path

import {Apk} from "node-apk";
const apk = new Apk("yourapplication.apk");

Application manifest details can be accessed using:

apk.getManifestInfo()
    .then((manifest) => console.log(JSON.stringify(manifest, null, 4)));

Signature details can be retrieved with:

apk.getCertificateInfo()
    .then((certInfo) => console.log(JSON.stringify(certInfo, null, 4)))

Once you are done, don't forget to release you Apk object:

apk.close();

License

This software is licensed under the MIT license

Copyright © 2019 All rights reserved. XdevL