Git Product home page Git Product logo

Comments (3)

plecesne avatar plecesne commented on May 2, 2024 1

In bundletool 0.6.0, we enabled the optimization called uncompressed native libraries for devices on Android M and above.

This allows native libraries to remain uncompressed in the APK so that the Android platform doesn't have to uncompress them on the device to be able to read them. This leads to a size reduction of the app on the user device as well as a reduction in download size as well (due to compression algorithms performing better on uncompressed data). The optimization is guarded by the attribute extractNativeLibs=false in the AndroidManifest.xml which is why not only the APKs with native libraries will differ (on the compression), but also the master APK (for the manifest).

Because this optimization is available since Android M only, we generate two variants of the APKs, the compressed native libraries for devices on L and before, and the uncompressed native libraries for devices on M and later.

Calling bundletool install-apks selects the right APKs for the right device automatically based on the SDK version.

from bundletool.

overetch avatar overetch commented on May 2, 2024

Hello, wopeiseqi. I'm facing a similar behaviour, but i don't know why is this happening. Can you (or someone else) explain this?
For example:
I have a file "base-arm64_v8a" and "base-arm64_v8a_2", the second one is 3x larger then the first one. All files inside are identical but with compression.

from bundletool.

overetch avatar overetch commented on May 2, 2024

plecesne, Thanks for your replay! Now it's much clearer to understand!

from bundletool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.