APK信息查询-AAPT

如果查询APK的相关信息,如包名,里面的资源情况,权限,相关的界面ACTIVITY等等,可以用AAPT进行查询。

工具目录:

android-sdk\build-tools下面的每一个目录下面都有AAPT工具,在DOS下面切到该目录下直接执行如下命令即可:

aapt l -a apkfilepath/***.apk >apkinfo.txt

由于导出的信息太长太多,建议直接导出到文件进行查看。

Android manifest:
N: android=http://schemas.android.com/apk/res/android
  E: manifest (line=2)
    A: android:sharedUserId(0x0101000b)="android.uid.system" (Raw: "android.uid.system")
    A: android:versionCode(0x0101021b)=(type 0x10)0x1
    A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
    A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
    A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
    A: package="com.tripod.flashstresstesting" (Raw: "com.tripod.flashstresstesting")
    A: platformBuildVersionCode=(type 0x10)0x1c
    A: platformBuildVersionName=(type 0x10)0x9
    E: uses-sdk (line=8)
      A: android:minSdkVersion(0x0101020c)=(type 0x10)0x16
      A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
    E: uses-permission (line=13)
      A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
    E: uses-permission (line=14)
      A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
    E: uses-permission (line=15)
      A: android:name(0x01010003)="android.permission.SHUTDOWN" (Raw: "android.permission.SHUTDOWN")
    E: application (line=17)
      A: android:theme(0x01010000)=@0x7f0f0006
      A: android:label(0x01010001)=@0x7f0e0028
      A: android:icon(0x01010002)=@0x7f0d0000
      A: android:allowBackup(0x01010280)=(type 0x12)0xffffffff
      A: android:supportsRtl(0x010103af)=(type 0x12)0xffffffff
      A: android:roundIcon(0x0101052c)=@0x7f0d0001
      A: android:appComponentFactory(0x0101057a)="android.support.v4.app.CoreComponentFactory" (Raw: "android.support.v4.app.CoreComponentFactory")
      E: activity (line=25)
        A: android:theme(0x01010000)=@0x7f0f00ca
        A: android:label(0x01010001)=@0x7f0e003d
        A: android:name(0x01010003)="com.tripod.flashstresstesting.TestDetailsActivity" (Raw: "com.tripod.flashstresstesting.TestDetailsActivity")
        A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
      E: activity (line=30)
        A: android:theme(0x01010000)=@0x7f0f00ca
        A: android:label(0x01010001)=@0x7f0e003b
        A: android:name(0x01010003)="com.tripod.flashstresstesting.OldTestActivity" (Raw: "com.tripod.flashstresstesting.OldTestActivity")
        A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
      E: activity (line=35)
        A: android:theme(0x01010000)=@0x7f0f00ca
        A: android:label(0x01010001)=@0x7f0e003c
        A: android:name(0x01010003)="com.tripod.flashstresstesting.PowerOnoffActivity" (Raw: "com.tripod.flashstresstesting.PowerOnoffActivity")
        A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
      E: activity (line=40)
        A: android:theme(0x01010000)=@0x7f0f00ca
        A: android:label(0x01010001)=@0x7f0e003a
        A: android:name(0x01010003)="com.tripod.flashstresstesting.FlashStressTesting" (Raw: "com.tripod.flashstresstesting.FlashStressTesting")
        A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
      E: activity (line=45)
        A: android:theme(0x01010000)=@0x7f0f0008
        A: android:label(0x01010001)=@0x7f0e0028
        A: android:name(0x01010003)="com.tripod.flashstresstesting.MainActivity" (Raw: "com.tripod.flashstresstesting.MainActivity")
        E: intent-filter (line=49)
          E: action (line=50)
            A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
          E: category (line=52)
            A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")

 

还有一种方法就是用反编译工具,直接查看manifest.xml也能查看大概的信息,但没有AAPT工具功能强大。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值