Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android where System.loadLibrary loads files

Tags:

android

Some articles on the web tell me that System.loadLibrary() will load files in /data/data/{app package} directory. I wonder if this varies on each vendor implementation or fixed ?

like image 801
robinmag Avatar asked Mar 25 '12 15:03

robinmag


1 Answers

It is ultimately up to the vendor to define the filesystem / filesystem layout. So it might be in a different place. If there is no customized definition then the libraries will be in /data/data/your.package.name/lib.

In case it is in a different directory then System.loadLibrary will know that and load the library from that place.

like image 93
zapl Avatar answered Oct 04 '22 12:10

zapl