google / bundletool

Bundletool is a command-line tool to manipulate Android App Bundles
https://g.co/androidappbundle
Apache License 2.0
3.52k stars 385 forks source link

Size differs between bundletool and apkanalyzer. #350

Open robercoding opened 12 months ago

robercoding commented 12 months ago

Describe the bug Analyzing the .apks file differs between the 2 tools -> bundletool & apkanalyzer. Running bundletool get-size total --apks nia.apks returns a total of 17929747,17929747 (MIN, MAX) Running apkanalyzer apk download-size --apks nia.apks returns a total of 17931058

As you can see, there's a small difference between them. (And the difference is much more in other projects, talking about MB)

I'm assuming they are both returning in bytes, so either I'm definitely not taking into account something or something's wrong. (Probably the first one) Maybe apkanalyzer is involving something else that the bundletool doesn't? What's the size the end-user is going to download from Google Play?

version(s) used Bundletool version: 1.15.4-all Apkanalyzer version: 11

How to reproduce