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>
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 🙂
As you can see in the previous picture I was using
shell:shellin strace instead ofroot:shellso I changed using the following command:After that I give permission to execute with this one:
So now, I have strace in this way and I don’t see anymore “”ptrace attach failed: Operation not permitted” message
Thank you to everybody helping me finding the solution 😉