/apksig

Primary LanguageJavaMIT LicenseMIT

Java APK integrity checker / app comparator

The aim is to check mutliple APK files in order to know if they refer to the same official Android app

  • check integrity of a list of apk files
  • compare public keys between mutliple apk files

TODO : parse Android binary XML

Usage

java -jar apkChecker.jar -l

-l / -listlist of jars with separated with empty space(s)
-v / -verifyverify java archive
-c / -comparePubkeycompare public keys of jars

Exemple : java -jar ./apkchecker-1.0.jar -l ~/test/app-debug.apk ~/test/app-debug3.apk -v -c

Output Exemples

exemple_success

exemple_failure

Library used

  • rewrite of JarSigner by Sun Microsystems under GPLv2 License
  • android-sun-jarsign-support-1.1.jar for JarSigner dependencies (NetscapeCertTypeExtension)
  • sun.misc.BASE64Decoder.jar for Base64

JDK 1.7 Eclipse