Include prebuild apk with libs?


I try to include presbuild app witch contain lib in apk.

After building, the apk is copied fine in system/priv-app/myApp but the libs are not extracted from apk.

First, I try to manually copy lib in


The lib is copied into /system/priv-app/myApp/lib/arm/ Now I need to have executable permission on but system is read-only. I can manually mount system as writable and set permission but how to automatically do that ?

I try to edit init.rc but it can’t set permission.

There is another method to install lib ? Or how i can automatically set permission ?