Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"
like image 888
CodeBlue Avatar asked Mar 20 '12 10:03

CodeBlue


1 Answers

//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'
like image 86
Padma Kumar Avatar answered Oct 09 '22 10:10

Padma Kumar