Investigate if we can reduce app installed size (currently 169 MB)
What/user problem
The installed size of v2.3.0 is 169 MB on my Pixel 2 (N.B.: this excludes user data and cache): this seems rather large, especially compared to the ~57 MB download size.
Impact
I'm concerned users will be more likely to uninstall the app if it takes up a lot of space on their devices, especially for older devices with less storage.
Acceptance criteria
- ?
I notice we don't set the extractNativeLibs flag (explanation) so it defaults to true. This means the native libraries are copied & decompressed out to disk on installation, a little more than doubling the size they take up on device: I wonder if this could make up the entire difference.
We could also consider Android App Bundles to reduce the size.
┆Issue is synchronized with this Jira Task
FWIW: Fennec is 174MB after installing.
FWIW: Chrome is 27 MB after installing on my Pixel 2. Perhaps they use app bundles and extractNativeLibs to reduce their APK size.
I don't think that is realistic comparison. Is the Blink/WebView engine counted in the 27 MB?
I don't think that is realistic comparison. Is the Blink/WebView engine counted in the 27 MB?
I verified the engine is not included in the APK and I agree that from a dev perspective it's not a realistic comparison.
However, this is what users will compare the apps :\ so we should take that into account.
FWIW: Chrome is 27 MB after installing on my Pixel 2. Perhaps they use app bundles and
extractNativeLibsto reduce their APK size.
It's 267 MB for me.
And latest nightly is 180 MB.
Xperia XZ1, Android 9
Galaxy S7, Android 8. Chrome also takes much more than 27MB:
Fresh install of Chrome Beta is a little bit smaller, but still >150MB
Firefox Preview and Firefox Preview Nightly are comparable to standard Chrome (179MB for Preview and 190MB for Nightly)
Thank you all for screenshots from your devices. There is no need to add more of them. The Chrome size on your device will depend on the Android version. For Android 10 they broke Chrome and the Webview into separate parts. Users on Android 10 would need to sum the Webview and Chrome sizes to compare to Firefox.
Thank you all for screenshots from your devices. There is no need to add more of them. The Chrome size on your device will depend on the Android version. For Android 10 they broke Chrome and the Webview into separate parts. Users on Android 10 would need to sum the Webview and Chrome sizes to compare to Firefox.
Got it. I updated my phone to 10 and size is 24+78=102MB.
Perf triage: Eric will do a brief investigation into how much installed size affects retention rates.
We can defer further investigation into installed app size for now. Prioritization as P3 is appropriate. I may file a separate ticket for user data and cache size as we have some signal there regarding churn.
Temp files not being deleted is a good example of cache blowing up to an unexpected size. 1555115
The perf team is tracking high level work on JIRA:
- APK size: https://jira.mozilla.com/browse/FXP-465
- user data size: https://jira.mozilla.com/browse/FXP-1202
Please open a new issue if you're having a specific problem we can address.
