src/index.js
async function parse(apkPath, target = `${os.tmpdir()}/apktoolDecodes`) {
  const cmd = `java -jar ${apktoolPath} d ${apkPath} -f -o ${target}`
  await shell(cmd)
  const MainfestFilePath = `${target}/AndroidManifest.xml`
  const doc = await parseManifest(MainfestFilePath)
  return parseDoc(doc)
}
async function parse(apkPath, target = `${os.tmpdir()}/apktoolDecodes`) {
  const cmd = `java -jar ${apktoolPath} d ${apkPath} -f -o ${target}`
  await shell(cmd)
  const MainfestFilePath = `${target}/AndroidManifest.xml`
  const doc = await parseManifest(MainfestFilePath)
  return parseDoc(doc)
}
async function parse ( apkPath , target = ` ${ os . tmpdir ( ) } ` ) { const cmd = ` ${ apktoolPath } ${ apkPath } ${ target } ` await shell ( cmd ) const MainfestFilePath = ` ${ target } ` const doc = await parseManifest ( MainfestFilePath ) return parseDoc ( doc ) }
parse apk and return manifest
@param  {String} apkPath apk path
@param  {String} target target extract dir, default to ${os.tmpdir()}/apktoolDecodes
@return {Promise} resolve manifest
parse apk and return manifest