Skip to content

v2.0

Compare
Choose a tag to compare
@bihe0832 bihe0832 released this 09 Apr 07:50
· 14 commits to master since this release

功能介绍

  • 彻底修改为使用官网apksig校验
  • 添加对于V3的支持

使用事例

  • CheckAndroidSignature.jar

    ➜ java -jar ./CheckAndroidSignature.jar ./YSDK_Android_1.3.1_629-debug-ysdktest-inner.apk

    {"ret":0,"msg":"","isV1OK":false,"isV2":true,"isV2OK":true,"isV3":true,"isV3OK":true,"keystoreMd5":"80fa5a8552e418f6bd805c65bcddf4c8"}

  • GetAPKInfo.jar

    ➜ java -jar ./getPackageInfo.jar ./YSDK_Android_1.3.1_629-debug-ysdktest-inner.apk

    执行结果: 成功
    应用信息:
    包名: com.huohoubrowser
    版本名: 4.0.1.8
    版本号: 4018
    签名文件MD5: f430582429f49b685c3572ba28995e39
    V1签名验证通过: false
    使用V2签名: false
    V2签名验证通过: false
    使用V3签名: false
    V3签名验证通过: false
    签名验证详细信息: {"ret":0,"msg":"","isV1OK":false,"isV2":true,"isV2OK":true,"isV3":true,"isV3OK":true,"keystoreMd5":"80fa5a8552e418f6bd805c65bcddf4c8"}

  • GetMoreAPKInfo.jar

    ➜ java -jar ./GetMorePackageInfo.jar ./test.apk

    执行结果: 成功
    应用信息:
    包名: com.tencent.jygame
    版本名: 0.0.1.30
    版本号: 287
    签名文件MD5: 634b6933d798de3498f20a9b02452575
    SDK版本:
    minSdkVersion:12
    targetSdkVersion:25
    V1签名验证通过: true
    使用V2签名: true
    V2签名验证通过: true
    使用V3签名: false
    V3签名验证通过: false
    签名验证详细信息: {"ret":0,"msg":"","isV1OK":false,"isV2":true,"isV2OK":true,"isV3":true,"isV3OK":true,"keystoreMd5":"80fa5a8552e418f6bd805c65bcddf4c8"}
    使用权限列表:
    android.permission.INTERNET
    android.permission.VIBRATE
    android.permission.MOUNT_UNMOUNT_FILESYSTEMS
    android.permission.WRITE_EXTERNAL_STORAGE
    android.permission.ACCESS_NETWORK_STATE
    android.permission.ACCESS_WIFI_STATE
    android.permission.READ_PHONE_STATE