Getting the .so files list using packagemanager

萝らか妹 提交于 2019-12-11 20:51:21

问题


Is there way to get libs/nativearch/<.so files> listed from the package-manager. Considering that apps like apk-info do it, I guess there should be a way to get the supported architecture of the package as well the listed .so files inside each folder. Any idea on this?


回答1:


PackageManager won't tell you this directly.

However it will tell you the filename of the app's APK file (via ApplicationInfo.sourceDir), and you can then use ZipFile to iterate through all the files in the apk, to get a list of the files in the libs directory tree.

See also How to get the file *.apk location in Android device



来源:https://stackoverflow.com/questions/18770243/getting-the-so-files-list-using-packagemanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!