Skip to content

Huge app size #2

@cweiske

Description

@cweiske

I installed v0.2 on my Fairphone 4 running LineageOS-with-microg 20 (Android 13) and pulled the stock camera app from the latest FP4 firmware. The camera app version is v2.0.039(06301600-01). With your app, Ipressing the last photo in the bottom left makes a gallery selection popup appear the first time, and I can preview the last image.

What I am shocked of is the huge app size of 4.3 MiB for something that should only act as proxy to open another app.

The .apk has 783 (!) files, and two of them prettly large:

$ unzip -l Downloads/FPCameraPhotoProxy.apk | sort -n
[...]
   846344  1981-01-01 01:01   resources.arsc
  8547428  1981-01-01 01:01   classes.dex

When using jadx-gui to inspect the code, I see that many kotlin and androidx classes are embedded. There are 6249 classes in it:

$ java -jar baksmali-2.5.2.jar list classes classes.dex |wc -l
6249

Please make the apk smaller. It should be possible to get it down to some kiB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions