Comments (3)
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.
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.
plecesne, Thanks for your replay! Now it's much clearer to understand!
from bundletool.
Related Issues (20)
- Error: Module 'myzip' is missing mandatory file 'manifest/AndroidManifest.xml' HOT 2
- bundletool build-apks failed when minsdk<21 HOT 1
- [BUG] Error: Module 'base' is missing mandatory file 'manifest/AndroidManifest.xml'. HOT 1
- Add bundletool to winget
- The App bundle is not a valid zip file HOT 1
- Unable to sign apk HOT 2
- Unable to sign APK due to FileAlreadyExistsException HOT 5
- com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Invalid dex file indices, expecting file 'classes?.dex' but found 'classes2.dex'. HOT 2
- Does it make the opposite? HOT 1
- the aab upload to Google Play, size counting issue HOT 1
- Error: Module 'base' is missing mandatory file 'manifest/AndroidManifest.xml'. HOT 2
- How does `bundletool build-apks` generate the versionCode for the APKs? HOT 3
- Returns immediately on command line without any info
- Size differs between bundletool and apkanalyzer.
- Unable to install dynamic feature modules with max sdk in manifest
- Set splittypes
- Please ignore
- Option NOT To Sign The APK Even If Debug Keystore Is Present
- Bundletool Package using 2 versions of AAPT2 Proto
- bundletool leaves 100s of KB of META-INF metadata in output APKs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundletool.