How to get the path to the lib folder for an installed package

后端 未结 6 2081
自闭症患者
自闭症患者 2020-12-14 03:40

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

6条回答
  •  感动是毒
    2020-12-14 04:44

    String libpath = getApplicationInfo().nativeLibraryDir;
    

    Class used: import android.content.pm.ApplicationInfo;

提交回复
热议问题