2

I have recently noticed that android extracts the native libraries in the 'lib' directory in the apk to two different locations. They are in the app folder (/data/app/package/lib/) and the app data folder (/data/data/package/lib). Not to mention theyre already contained in the apk. For games where these libraries total up to 50mb each, this wasted 100mb of my storage space on my SD card. Why does this happen. Is this normal? Is there any way to stop this from happening?

I am on android lollipop (5.1.1) running a resurrection remix ROM for galaxy s3 neo+.

4

In truth, the lib folder you can found under /data/data/com.package/ is called a symlink. The real position of an app's libraries is located to /data/app/com.package/lib, while the reason for the libraries to exist outside the APK, is for performance purposes: since APKs are compressed files, it would be a waste of time (and a considerable negative impact on usability) to have the OS extract them anytime you launch an app, don't you think?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.