I have compiled some native libraries and these are added to the apk file at lib/ path. I added a capture of my apk.
The problem is when I use OTA updates of the android things developer console. It seems that the apk is not installed because the updater_process doesn't create the 'lib' and 'oat' directories like the usual installation of packages. For example, I I install that package using
adb install package it works fine without any problems but if I send the package via OTA when the app runs fails beacuse it doesn't find the native libraries with the error message:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.google.android.things.jar", zip file "/oem/app/app-release.apk"],nativeLibraryDirectories=[/oem/lib/app-release, /oem/app/app-release.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib, /system/lib, /system/vendor/lib]]] couldn't find "libnode-launcher.so"
What I can do to fix it?