[Linux] 批量查看Android应用程序的文件名称;
#!/bin/bash - #=============================================================================== # # FILE: ~/bin/apkdump # # USAGE: apkdump # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: linkscue (scue), linkscue@gmail.com # CREATED: 2013年03月16日 16时52分08秒 HKT # COPYRIGHT: Copyright (c) 2013, linkscue # REVISION: 0.1 # ORGANIZATION: ATX风雅组 #=============================================================================== set -o nounset # Treat unset variables as an error en_label () { aapt d badging $1 | awk -n -F"'" '/application-label:/ {print $2}' 2>/dev/null } # ---------- end of function en_label ---------- cn_label () { aapt d badging $1 | awk -n -F"'" '/application-label-zh_CN/ {print $2}' 2>/dev/null } # ---------- end of function cn_label ---------- activity () { aapt d badging $1 | awk -n -F"'" '/launchable-activity/ {print $2}' 2>/dev/null } # ---------- end of function activity ---------- printf "%-50s %-30s %-30s \n" "[File|文件]" "[English]" "[中文]" for n in $@; do printf "%-50s %-30s %-30s \n" $n "$(en_label $n)" "$(cn_label $n)" done 2> /dev/null