.so file does not install after repacking the APK file

23 views
Skip to first unread message

brenna...@gmail.com

unread,
Sep 8, 2016, 10:40:29 AM9/8/16
to android-ndk
I have an app that needs a unique configuration file for each install. The app uses the libsqliteX.so library.  Rather than building a new apk in Android Studio or gradle for each install, I elected to simply unzip the apk, replace the config file, re-zip it, sign it with jarsigner, and tweak the zip with zipalign.  The original apk installs and the libsqliteX.so file shows under data/app/myapp/lib/arm/.  The repacked apk installs but there is nothing under data/app/myapp/lib/.  Running the app immediately dies because of the missing lib file. I am using adb install to install the app.  The logcat listings for the two installs appear the same.  I checked that the oriignal apk and the repacked apk both have the same content and structure. Anyone have any thoughts? 

Andrew Esh

unread,
Sep 9, 2016, 10:05:39 AM9/9/16
to android-ndk
File permissions? Does the .so need to have a certain user, group and access in order to be loaded by the system?

Reply all
Reply to author
Forward
0 new messages