Closed grace618 closed 3 years ago
Hi there, this is already mentioned in the README but just in case you missed it:
const apk = new Apk("yourapplication.apk");
const iconBytes = Promise.all<Manifest, Resources>([apk.getManifestInfo(), apk.getResources()])
.then(([manifest, resources])) => {
// resolve and extract the first application icon found
return apk.extract(resources.resolve(manifest.applicationIcon)[0]);
}
How to get apk icon and name