Search code examples
androidwindowsaapt

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?

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

aapt d badging myapk.apk | find "pack"

Solution

  • //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'