Termux (excessive size, can be reduced)

This is a really nice application but eats around 116 MiB on my phone.
Taking a look to the APK I see the problem is that the APK is compiled for the 4 platforms:

  • ARM 32 bits
  • ARM 64 bits
  • x86 32 bits
  • x86 64 bits

The APK is around 64 MiB, 16 MiB for each platform.
Is it possible to make 4 separated APKs?

After installing only one binary is installed, but a copy of the APK is kept.
To make things worst the binary lib extracts all the tools, in the end you get:

  • 64 MiB of the APK
  • 16 MiB for the installed lib: /data/app/com.termux-1/lib/arm/libtermux-bootstrap.so
  • 36 MiB for the uncompressed files in: /data/data/com.termux/files/usr/

Reducing the APK to 16 MiB the size complete size goes down to 68 MiB (IMHO too much, but much better than 116 MiB)

2 Likes

Yes. But this will break the autoupdating mechanism. IMO 48 MB of storage are not worth the manual work and delays.

1 Like

FWIW, the issue trackig this is here: Support gradle ABI splits (#82) · Issues · F-Droid / fdroidserver · GitLab

1 Like

Thanks for the link!

1 Like

You realise that anything you install in Termux will eat more than those 60Mb, right? :slight_smile:

1 Like

Why? some packages are way smaller, of course others are huge (Python > 200 MB).
The point is that if I’m wasting 48 MiB it could prevent the installation of something.
My phone has 4 MiB of internal flash and a 4 MiB sdcard.
/data is just 2.1 GiB, wasting 48 MiB is too much.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.