Greetings! Thank you for all the very excellent work on this library!
Just curious if there are plans to add support for Android adaptive icons. If not, I would be happy to open a PR.
When parsing an APK with app-info-parser v1.1.2, the icon returned in the results is an ic_launcher.xml file. It is simple enough to parse that binary XML file to obtain the relevant foreground, background, or monochrome drawables (typically PNGs).
If support is desirable, would it make sense to extract the individual maximally sized icons (similar to findApkIconPath()) for each category (background, foreground, monochrome) so the user could potentially take further action? This would likely necessitate a change in the structure for the parsed result object, unless only the foreground image were returned?
@Klowner That's a good feature, but I'm busy in my main job recently. Welcome to contribute your code. You can create PR whenever you want, I will review and merge it as soon as I can.
Greetings! Thank you for all the very excellent work on this library!
Just curious if there are plans to add support for Android adaptive icons. If not, I would be happy to open a PR.
When parsing an APK with app-info-parser v1.1.2, the icon returned in the results is an
ic_launcher.xml
file. It is simple enough to parse that binary XML file to obtain the relevant foreground, background, or monochrome drawables (typically PNGs).If support is desirable, would it make sense to extract the individual maximally sized icons (similar to
findApkIconPath()
) for each category (background, foreground, monochrome) so the user could potentially take further action? This would likely necessitate a change in the structure for the parsed result object, unless only the foreground image were returned?Any input is appreciated!
-Mark