android使用存储在assets文件夹中的Linux工具
I want to use tools from Linux which not available in Android by default such as iw and iperf. I saw Android applications that use this tools (like this). There are two ways to do it.
我想使用来自Linux的工具,Android默认没有这些工具,比如iw和iperf。我看到了使用这种工具的Android应用程序(像这样)。有两种方法。
First: get root rights on device and put file of the tool to the system/bin/
folder.
首先:获取设备的根权限,并将工具的文件放到系统/bin/文件夹中。
Second: put file of the tool to assets
folder of Android project and somehow use it.
第二:将工具文件放到Android project的assets文件夹中,以某种方式使用。
Applications from Play Market use second way. But I don't know, how it cuold be done. Is there any description of implementation of second way?
游戏市场应用的第二种方式。但我不知道,它是怎么做到的。第二种方式的实施有什么描述吗?
1 个解决方案
#1
2
https://xjaphx.wordpress.com/2011/10/02/store-and-use-files-in-assets/
https://xjaphx.wordpress.com/2011/10/02/store-and-use-files-in-assets/
This the best example of what you want to do.
这是你想要做的最好的例子。
For putting executable in assest see https://stackoverflow.com/a/5642593/775964
要将可执行文件放到assest中,请参见https://stackoverflow.com/a/5642593/775964
更多相关文章
- 如何将音频文件与新视频文件合并?是否可以在Android中使用?
- 无法从Android中的Asset文件夹复制数据库
- android 中的 odex 文件
- Android 在资源文件(res/strings.xml)定义一维数组,间接定义二维数
- 使用Android Dropbox API检查Dropbox上是否存在文件
- Android中的内存储、外存储概念、文件操作与PC端的有些不同
- delphi_Xe6开发android程序要附加安装其他SDK或工具吗?
- Android 打包VersionCode自增、APK文件名修改、上传蒲公英
- Android开发-直播视讯(3)-创建一个Ubuntu虚拟机并实现VMtools文