获取使用软件包管理系统的.so文件列表 [英] Getting the .so files list using packagemanager

查看:367
本文介绍了获取使用软件包管理系统的.so文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让库/ nativearch /< .so文件>从包管理器中列出。考虑到像APK-信息的应用程序做到这一点,我想应该有一个办法让包以及所列出的。所以每个文件夹内的文件支持的体系结构。对此有何想法?

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?

推荐答案

软件包管理系统不会告诉你这个直接。

PackageManager won't tell you this directly.

然而,它会告诉你(通过ApplicationInfo.sourceDir)应用的APK文件的文件名,然后你可以使用的ZipFile 通过在APK中的所有文件进行迭代,以获得在libs目录树中的文件列表。

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.

又见<一个href=\"http://stackoverflow.com/questions/4635448/how-to-get-the-file-apk-location-in-android-device\">How获得在Android设备上的文件* .apk文件地点

这篇关于获取使用软件包管理系统的.so文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆