A node wraper for aapt
With npm do:
npm install aaptjs --save
Using a callback:
const aaptjs = require('aaptjs');
aaptjs.list('/path/to/your/ExampleApp.apk', (err, data) => {
if (err) {
// something went wrong
} else {
console.log(data);
}
});
Using a promise:
const aaptjs = require('aaptjs');
aaptjs.list('/path/to/your/ExampleApp.apk')
.then (data => {
console.log(data)
})
.catch (err) {
// something went wrong
}