[Android Themes] strawmetal:
Currently i'm adding MeeGo styled icons for apps. I've around 1200 icons. But the catch is i need to know what that icon is named inside its apk.

And for that i need to download everyone of those 1200+ apps. Have a look at the screenshot below where you can see the name of the icon inside 4ext recovery control. Likewise every app has it own icon names.

My friend Setherio made me a rudimentary script for extracting icons. Although it doesn't do everything but it'll pull out icons with "icon" and "launcher" in their filename.

It also appends .empty to directory names if no icons are found with the above names. Then we can manually check those apk's for the icon name.

Icon extraction script

#!/bin/bash
clear;
echo "=================================================="
echo " Setherio"
echo "=================================================="
echo " Quick icon extraction from APKs for strawmetal"
echo "=================================================="
echo " Your directory structure should be as follows"
echo " "
echo "	./extract.sh"
echo "	./app"
echo "	./app/(*ALL APKS HERE*)"
echo "=================================================="
echo " Now run the following commands"
echo "	chmod +x extract.sh"
echo "	./extract.sh"
echo "=================================================="
echo " This will create a folder:"
echo "	./results"
echo " "
echo " When this is finished running"
echo " your directory should look like this:"
echo " "
echo "	./extract.sh"
echo "	./app"
echo "	./app/Application1.apk"
echo "	./app/Application2.apk"
echo "	./results"
echo "	./results/Application1"
echo "	./results/Application1/icon.png"
echo "	./results/Application1/other_icon.png"
echo "	./results/Application2/icon.png"
echo "	./results/Application2/other_icon.png"
echo " "
echo "=================================================="
sleep 1
echo " Processing the files inside app folder..."

# Make directory "results" if there isn't one already
mkdir results > /dev/null 2>&1

# Delete everything in the directory "results"
rm -r results/*

for file in app/*; do
echo "Processing $file ..."

# Checks for any file inside the APK which the file name contains "icon.png"
icons=`unzip -l $file | awk '/-----/ {p = ++p % 2; next} p {print $NF}' | grep icon.png`

# Checks for any file inside the APK which the file name contains "launcher_"
launcher=`unzip -l $file | awk '/-----/ {p = ++p % 2; next} p {print $NF}' | grep launcher_`

if [ -n "$icons" -o -n "$launcher" ]
then
mkdir results/${file:4} > /dev/null 2>&1

# If a filename contains "icon.png" it will extract it into the results directory
# Associated with the APK
if [ -n "$icons" ]
then
unzip -j -qq -n $file `unzip -l $file | awk '/-----/ {p = ++p % 2; next} p {print $NF}' | grep icon.png` -d results/${file:4} > /dev/null 2>&1
fi

# If a filename contains "launcher_" it will extract it into the results directory
# Associated with the APK - NOTE - this may extract files that are not PNG files
if [ -n "$launcher" ]
then
unzip -j -qq -n $file `unzip -l $file | awk '/-----/ {p = ++p % 2; next} p {print $NF}' | grep launcher_` -d results/${file:4} > /dev/null 2>&1
fi

else
# Makes folder (filename.apk).empty if no icon is extracted
mkdir results/${file:4}.empty > /dev/null 2>&1
fi

done

# Finished!
echo "Finished!"
exit 0

If you guys can help me with this we'll progress faster.

Instructions to using the script are included inside.