Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading a native library does not work on Android

I have an application that uses a native library (.so). In the new version of the application I made changes in the lib. The problem is that after upgrading the application it looks like the new library is not loaded. If I force stop the application and then I restarted it everything works fine. In some cases just waiting for a while (for example 20 mins) fixes the problem.

Did anyone experience this issue? Is there a way to fix it?

EDIT I have also tried to call

System.loadLibrary("mylib.so");

in the onReceive of the OnUpgradeReceiver that is the broadcast receiver that is registered to be called when the application is upgraded It did not help

EDIT2

I think this issue has to do with the fact that the lib uses the audio engine. The reason iwhy I think so is that I tried to change the name of the lib and it did not help either

like image 846
kingston Avatar asked Dec 07 '12 13:12

kingston


1 Answers

Ok never mind I think the issue is just in my lib. I need to find where but I checked that the application is properly closed after the upgrading.

like image 151
kingston Avatar answered Oct 21 '22 06:10

kingston