Issue
Shared libraries .so files are placed in lib/armeabi in an apk file.
I have read after installation the libs gets extracted to /data/data/application_package/lib
How can I get the exact path to this directory in my application at run time? Is this directory readable by the application? Or is only executeable access allowed? If it is readable - Is this still true for copy protected applications?
Solution
You can get the exact path with:
String libraryPath = getContext().getApplicationInfo().dataDir + "/lib";
The directory and its files are readable by the application.
The unix permissions are set to rwxr-x--x
. So applications with
the same group can read the files.
Answered By - Ralph Löwe
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.