且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获取已安装软件包的 lib 文件夹的路径

更新时间:2023-09-26 12:46:28

您可以通过以下方式获得确切的路径:

You can get the exact path with:

String libraryPath = getContext().getApplicationInfo().dataDir + "/lib";

应用程序可以读取目录及其文件.

The directory and its files are readable by the application.

unix 权限设置为 rwxr-x--x.所以应用程序同一组可以读取文件.

The unix permissions are set to rwxr-x--x. So applications with the same group can read the files.