C:\Users\TJW>adb devices
List of devices attached
5066adc2 device
C:\Users\TJW>adb shell
shell@cancro:/ $ su
root@cancro:/ # adb push e:/tcpdump /data/local
error: device not found
1|root@cancro:/ # chmod 777 /data/local
root@cancro:/ #
130|root@cancro:/ #
130|root@cancro:/ # exit
shell@cancro:/ $ exit
C:\Users\TJW>adb push e:/tcpdump /data/local
failed to copy 'e:/tcpdump' to '/data/local/tcpdump': Is a directory
4715 KB/s (1801155 bytes in 0.373s)
C:\Users\TJW>adb push e:/tcpdump /data/local/tcpdump
4197 KB/s (1801155 bytes in 0.419s)
C:\Users\TJW>adb shell
shell@cancro:/ $ su
root@cancro:/ # chmod 6755 /data/local/tcpdump
root@cancro:/ # /data/local/tcpdump -p -s 0 -w /sdcard/001.pcap
k_shell/2000:10411: /data/local/tcpdump: can't execute: Is a directory
126|root@cancro:/ # /data/local/tcpdump/tcpdump -p -s 0 -w /sdcard/001.pcap
k_shell/2000:10411: /data/local/tcpdump/tcpdump: can't execute: Permission denie
d
126|root@cancro:/ # chmod 6755 /data/local/tcpdump/tcpdump
root@cancro:/ # /data/local/tcpdump/tcpdump -p -s 0 -w /sdcard/001.pcap
tcpdump: no suitable device found
请问为什么找得到设备,权限也有为什么抓不到数据包,还有一些细节可以继续讨论。