android - Update native library without reinstalling the app -
i have app include 2 native library (for example libfirst.so, libsecond.so). loading libraries standard method.
system.loadlibrary("first"); system.loadlibrary("second");
now need able update library without reinstalling app (without update .apk). can loaded native libraries method
system.load("/storage/emulated/0/armeabi/libfirst.so"); system.load("/storage/emulated/0/armeabi/libsecond.so");
i think bad practice. tried copy manual libraries in folder getapplicationinfo().nativelibrarydir , system error: open failed: eacces (permission denied)
best practices update native libraries without update apk ?
what best practices update native libraries without update apk ?
i don't believe contingency covered.
code signing 2 things. first, ensures developer publishes app same 1 updates app. second, creates trust relationships between related apps (but not apply here). nikolay elenkov discusses topic @ code signing in android's security model.
if want update dependent libraries, need rebuild apk prove authorized make updates. that's part 1 of code signing discussed above.
if want update personal copy of app (and not publish it), strip existing signatures, update libraries, sign debug signing key, , push device.
also, safe perform adb install -r <the apk>
. -r
"replace existing application", , reinstall. retains previous application data, database.
there other things need done when updating app, increasing version numbers handled in google play. not relevant question.
Comments
Post a Comment