Draft: chore: Remove natives libs from release eOS apk, reduce size
Description
Native libs used by AdvancedPrivacy (tor, maplibre, ...) are copied in a specific directory during the /e/OS image construction ( https://gitlab.e.foundation/e/os/android_prebuilts_prebuiltapks_lfs/-/blob/main/AdvancedPrivacy/Android.mk?ref_type=heads ), as priv-app apps looks to work like that.
But we still embed them in the APK, for 4 different target platform, which weight around 156MB useless.
This simple change in the build allow to not embed these in the APK and save wieght for the builds.
Tests
I did a build with the obtained apk, and oberved weight reduction, even it is way smaller than expected :
Sep 26 09:00 out/target/product/FP3/IMG-e-2.2-u-20240926-UNOFFICIAL-FP3.zip -> 1 580 599 658 Bytes
Feb 21 09:54 out/target/product/FP3/IMG-e-2.2-u-20250221-UNOFFICIAL-FP3.zip -> 1 567 190 555 Bytes
AdvancedPrivacy still worked, and re-extracting the APK from the installed image let us observe the weight difference :
AdvancedPrivacy_240926.apk -> 176MB
AdvancedPrivacy.apk -> 23MB