Open mohammadrafigh opened 1 year ago
Apparently there's news regarding this: https://github.com/nunchuk-io/nunchuk-android/commit/72373c3531f49bdf085fb0cbb3b10ba10884e85b
We will give it another try.
hey, keraliss from walletscrutiny. i tested v1.9.51, and found diffs in the apks.
First of all, the build instructions were super helpful. we were able to generate the split apks following the info. we also extracted split apks from our adb-connected device, and ran the apkdiff.py
got this result -
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/reproducible-builds$ ./apkdiff.py ../apks/built-apks/splits/base-master.apk ../apks/device-apks/base.apk
APK file classes.dex does not match
APKs are different!
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/reproducible-builds$ ./apkdiff.py ../apks/built-apks/splits/base-arm64_v8a.apk ../apks/device-apks/split_config.arm64_v8a.apk
APKs are the same!
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/reproducible-builds$ ./apkdiff.py ../apks/built-apks/splits/base-xxhdpi.apk ../apks/device-apks/split_config.xxhdpi.apk
file res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png not found in second APK
APKs are different!
we also compared all the apks one to one, and got this -
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/apks$ diff --recursive device-apks/base built-apks/splits/base-master
Binary files device-apks/base/AndroidManifest.xml and built-apks/splits/base-master/AndroidManifest.xml differ
Binary files device-apks/base/assets/dexopt/baseline.prof and built-apks/splits/base-master/assets/dexopt/baseline.prof differ
Binary files device-apks/base/classes2.dex and built-apks/splits/base-master/classes2.dex differ
Binary files device-apks/base/classes3.dex and built-apks/splits/base-master/classes3.dex differ
Binary files device-apks/base/classes4.dex and built-apks/splits/base-master/classes4.dex differ
Binary files device-apks/base/classes5.dex and built-apks/splits/base-master/classes5.dex differ
Binary files device-apks/base/classes6.dex and built-apks/splits/base-master/classes6.dex differ
Binary files device-apks/base/classes.dex and built-apks/splits/base-master/classes.dex differ
Binary files device-apks/base/res/xml/splits0.xml and built-apks/splits/base-master/res/xml/splits0.xml differ
Binary files device-apks/base/resources.arsc and built-apks/splits/base-master/resources.arsc differ
Only in device-apks/base: stamp-cert-sha256
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/apks$ diff --recursive device-apks/split_config.arm64_v8a built-apks/splits/base-arm64_v8a
Binary files device-apks/split_config.arm64_v8a/AndroidManifest.xml and built-apks/splits/base-arm64_v8a/AndroidManifest.xml differ
Only in device-apks/split_config.arm64_v8a: META-INF
Only in device-apks/split_config.arm64_v8a: stamp-cert-sha256
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/apks$ diff --recursive device-apks/split_config.en built-apks/splits/base-en
Binary files device-apks/split_config.en/AndroidManifest.xml and built-apks/splits/base-en/AndroidManifest.xml differ
Only in device-apks/split_config.en: META-INF
Binary files device-apks/split_config.en/resources.arsc and built-apks/splits/base-en/resources.arsc differ
Only in device-apks/split_config.en: stamp-cert-sha256
keraliss@keraliss:~/projects/walletScrutiny_build/nunchuck/neww/apks$ diff --recursive device-apks/split_config.xxhdpi built-apks/splits/base-xxhdpi
Binary files device-apks/split_config.xxhdpi/AndroidManifest.xml and built-apks/splits/base-xxhdpi/AndroidManifest.xml differ
Only in device-apks/split_config.xxhdpi: META-INF
Only in device-apks/split_config.xxhdpi/res: drawable-hdpi-v4
Only in device-apks/split_config.xxhdpi/res: drawable-ldrtl-hdpi-v17
Only in built-apks/splits/base-xxhdpi/res: drawable-ldrtl-xxhdpi-v17
Only in built-apks/splits/base-xxhdpi/res: drawable-xhdpi-v4
Only in built-apks/splits/base-xxhdpi/res: drawable-xxhdpi-v4
Binary files device-apks/split_config.xxhdpi/resources.arsc and built-apks/splits/base-xxhdpi/resources.arsc differ
Only in device-apks/split_config.xxhdpi: stamp-cert-sha256
you can check my full review -here
Hey @keraliss, First, thanks for the tests. Regarding the result, could you send your .aab and .apk files here? Does your device have Nunchuk 1.9.51 installed from the Play Store or the GitHub release page?
I tried to reproduce v1.9.32 with the following steps:
Now getting a diff between the built apk and the downloaded apk:
Here are the results:
Note: The diff is truncated because it's too lengthy for Github.