Android的ADB Linux的问题 [英] Android ADB Linux problem

查看:516
本文介绍了Android的ADB Linux的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图测试在真实的Andr​​oid设备strace的工具,但我不能从中得到任何信息。 我尝试下面的命令,但该设备仍然告诉我拒绝权限。

I'm trying to test Strace tool in Android Real device but I can't get any information from it. I was trying the following command but the device still tell me "permission denied".

 '$' adb shell su strace -p <PID_number>

我试图分裂的命令,并使其在两次以这种方式和它的作品

I tried to split the commands and make it in two times in this way and it works

 '$' adb shell su
 '#' strace -p <PID_number>

我试图把previous code以这种方式,使之secuentially,但仍是不工作:

I tried to put the previous code in this way, to make it secuentially but still is not working:

 '$' adb shell su  && strace -p <PID_number>

我在做什么错了?在此先感谢

What I'm doing wrong? Thanks in advance

推荐答案

嘿,伙计们终于让我找到了答案,我想与你分享:)

Hey guys finally I found the answer and I want to share it with you :)

正如你可以在previous照片我是用外壳看到:在strace的,而不是 root的shell :外壳让我改变使用下面的命令:

As you can see in the previous picture I was using shell:shell in strace instead of root:shell so I changed using the following command:

'#' chown root strace 

在我给这个一到执行权限:

After that I give permission to execute with this one:

'#' chmod 4777 strace

所以,现在,我有strace的这样,我没有看到了。ptrace的连接失败:不允许的操作的消息。

So now, I have strace in this way and I don't see anymore ""ptrace attach failed: Operation not permitted" message

-rwsrwxrwx root shell 134508 2011-03-1 16:41 strace

感谢您给大家帮助我寻找解决办法;)

Thank you to everybody helping me finding the solution ;)

这篇关于Android的ADB Linux的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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