Bug#868486: diffoscope often fails to detect APKs

Ximin Luo infinity0 at debian.org
Tue Jul 25 07:48:00 UTC 2017


Hans-Christoph Steiner:
> 
> The APK format is a ZIP file that always includes the files
> AndroidManifest.xml and classes.dex.  Then it also always
> has a JAR signature (i.e. META-INF/).  It does not have the
> JAR magic number CAFEBABE in it.
> 

Right, I can get that much by looking it up on wikipedia. What I don't know is why file(1) detects some of these as DOS/MBR partition even though the test case you gave starts with "PK" and can quite obviously be recognised as a zip file (ignoring the APK aspect for now). zipinfo(1) works. So I want to know why libfile didn't accept your patch, what were their reasons?

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Reproducible-builds mailing list