From: Hans-Christoph Steiner Date: Tue, 20 Dec 2016 13:09:45 +0000 (+0100) Subject: make `fdroid verify` use common.verify_apks() X-Git-Tag: 0.8~94^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=364e609ebe2ee867b2d156bc96be135ec8da385a;p=fdroidserver.git make `fdroid verify` use common.verify_apks() This makes the jarsigner the ultimate and only judge of whether two APKs match. This is the best tool since APK signatures are jar signatures. This should be eventually updated to use the official Android APK signing tool called apksigner. https://android.googlesource.com/platform/tools/apksig/ --- diff --git a/fdroidserver/verify.py b/fdroidserver/verify.py index c13055a0..cac31a9c 100644 --- a/fdroidserver/verify.py +++ b/fdroidserver/verify.py @@ -78,9 +78,9 @@ def main(): logging.info("...retrieving " + url) net.download_file(url, dldir=tmp_dir) - compare_result = common.compare_apks( - os.path.join(unsigned_dir, apkfilename), + compare_result = common.verify_apks( remoteapk, + os.path.join(unsigned_dir, apkfilename), tmp_dir) if compare_result: raise FDroidException(compare_result)