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

更多相关文章

  1. 如何将音频文件与新视频文件合并?是否可以在Android中使用?
  2. 无法从Android中的Asset文件夹复制数据库
  3. android 中的 odex 文件
  4. Android 在资源文件(res/strings.xml)定义一维数组,间接定义二维数
  5. 使用Android Dropbox API检查Dropbox上是否存在文件
  6. Android中的内存储、外存储概念、文件操作与PC端的有些不同
  7. delphi_Xe6开发android程序要附加安装其他SDK或工具吗?
  8. Android 打包VersionCode自增、APK文件名修改、上传蒲公英
  9. Android开发-直播视讯(3)-创建一个Ubuntu虚拟机并实现VMtools文

随机推荐

  1. Android动画之translate(位移动画)
  2. Android中真正的Player
  3. Android(安卓)Studio编译使用了Maven的工
  4. 【学习Android遇到的错误】Unable to res
  5. Android中如何使用自定义对话框
  6. 【android】对canvas的translate(),save()
  7. android OOM的那些事
  8. Android设置上下边框或者左右边框
  9. AS中一个报错解决:LoggedErrorException:
  10. Android: How to download the latest zi