0

I want to get the threads for my app. So I used the command like this. But I get bad pid '-T'

adb shell ps -T -p 29874

enter image description here

1 Answer 1

0

Most likely you're using Android Nougat that does not use ps command from toybox.

Anyway, to get the threads list for your app you can use the following command:

adb shell ps 29874 -t

Source code of ps command: https://github.com/xdtianyu/android-7.0.0_r1/blob/master/system/core/toolbox/ps.c

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.