arsvechkarev / Vault

Simple, fast, secure password manager
GNU General Public License v3.0
39 stars 6 forks source link

F-Droid build not reproducible #54

Closed linsui closed 1 month ago

linsui commented 7 months ago

diff.html.zip

It seems the only diff is that pg-map-id is different. Could you please take a look? Thanks!

licaon-kter commented 6 months ago

https://gitlab.com/fdroid/fdroiddata/-/jobs/6294030022#L4384

your local tool versions is different?

arsvechkarev commented 6 months ago

If I understand correctly, tool versions i=gradle version? If yes, then it is true, my gradle version is 8.5. Should I update it for the build to pass?

linsui commented 6 months ago

It's easy to fix. But the apk is still not reproducible. https://gitlab.com/linsui/fdroiddata/-/jobs/6306448147

licaon-kter commented 6 months ago

diffing the APKs from the CI above and the released one

there's a difference in baseline, and a difference in classes.dex

upon dissembling classes.dex via apktool the smali files are identical, oddly enough :shrug:

trying directly:

$ diffoscope classes.dex classes-2.dex
--- classes.dex
+++ classes-2.dex
├── dexdump -a -d -f -h {}
│┄ Ignoring differences in offsets to keep diff size reasonable.
│ @@ -1,12 +1,12 @@
│  DEX version '038'
│  DEX file header:
│  magic               : 'dex\n038\0'
│ -checksum            : 07e5bdb3
│ -signature           : 1974...2f40
│ +checksum            : 0011bd77
│ +signature           : 71bb...b505
│  file_size           : 1979640
│  header_size         : 112
│  link_size           : 0
│  link_off            : 0 (0x000000)
│  string_ids_size     : 11985
│  string_ids_off      : 112 (0x000070)
│  type_ids_size       : 3388

@arsvechkarev can you clean caches, gradle caches, etc and rebuild the APK?

linsui commented 1 month ago

https://gitlab.com/fdroid/fdroiddata/-/merge_requests/15403