Skip to content

Instantly share code, notes, and snippets.

@kamikat
Created February 14, 2017 08:52
Show Gist options
  • Select an option

  • Save kamikat/f6b39fa9d82e379a9ecc8e675b17f47f to your computer and use it in GitHub Desktop.

Select an option

Save kamikat/f6b39fa9d82e379a9ecc8e675b17f47f to your computer and use it in GitHub Desktop.
Extracting application icon from APK file.
#!/bin/sh
GENERATOR="/^application-icon-(\\d+):(.*)/ && print \"unzip -o $1 \$2 && mv \$2 $(basename $1 .apk)-\$1.png\n\""
aapt d --values badging $1 | perl -n -e"$GENERATOR" | sh
rm -rf res/
@KaKi87
Copy link

KaKi87 commented May 1, 2023

Hello,
Could you please add adaptive icons support ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment