CodeBlue CodeBlue -4 years ago 166
Android Question

Read less info of apk file with aapt tool

I'm using aapt tool to read content of apk file with:

aapt d badging myapk.apk


But the output is too much. I just need the package name and version name. Any way to limit it? Thanks in advanced!

Update: I got it to work on window cmd. Look like this:

aapt d badging myapk.apk | find "pack"

Answer Source

//try this

aapt d badging myapk.apk | grep 'pack'

its showing for me as

padmakumar@padmakumar-desktop:~$ aapt d badging ./Desktop/NhpAndroid_tablet_k4.apk  | grep 'pack'
package: name='com.ti.et.nspire.android' versionCode='1' versionName='1.0'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download