I ran into a problem of pre-installing a particular apk in system.img.
When executing the apk, it always crashed after it called upon an api from an so file which actually doesn't exist in /system/lib, which is understandable. However, if I install it directly by adb install apk command, it runs fine. This really confused me a lot. Can somebody explain what's the mechanism under the hood? Thank you.