不能够运行从亚行的shell可执行文件 [英] Not able to run executable file from adb shell

查看:275
本文介绍了不能够运行从亚行的shell可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用这个命令添加tcpdump的二进制文件到我的Andr​​oid设备

I've added tcpdump binary file to my android device using this command

./adb push ~/tcpdump-4.2.1/tcpdump /data/local

二进制被添加到Android设备成功。
但是,当我尝试从亚行外壳程序执行tcpdump的文件,使用下面的命令

The binary is added to the android device successfully. But, when I try to execute the tcpdump file from the adb shell, using following commands

./adb shell
cd data/local
./tcpdump

它给了我这个错误

It gives me this error

/system/bin/sh: ./tcpdump: not executable: magic 7F45

我也试过用搭配chmod 777 tcpdump的但不成功更改权限。
我该如何解决这个问题?谢谢你。

I've also tried changing permissions using chmod 777 tcpdump but in vain. How do I overcome this issue? Thanks.

推荐答案

您可以找到的tcpdump的此处。此版本是有些过时,只适合ARM的设备有关。您应该按照这些说明打造从二进制< A HREF =htt​​p://www.tcpdump.org/#latest-release相对=nofollow>官方消息。

You can find an Android version of tcpdump here. This build is somewhat outdated, and only relevant for ARM devices. You should follow these instructions to build the binary from official source.

详细说明重新如何运行的 tcpdump的在Android上。请注意,您需要一个根深蒂固的设备开始。

There are detailed instructions re how to run tcpdump on Android. Note that you need a rooted device to begin with.

这篇关于不能够运行从亚行的shell可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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