【发布时间】:2016-02-14 10:54:21
【问题描述】:
我将在两个应用程序之间使用strace -p <myPid> 命令。
但是,strace 命令不能与其他应用程序一起使用(它自己运行良好)。
这是错误信息:
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
如果由于uid的不同导致命令错误,我可以修复修改uid吗?
或者有其他解决方案吗?
【问题讨论】:
标签: android permissions adb strace uid