adb – How to get all the pid processes on the recent android version?


Previously with Android KitKat or marshmallow, commands like ps -a or htop returned the entire process tree along the threads, zygote and init.

But now it only returns the processes of the application from which they are launched (even as root) while the full list of pid remains readable under /proc.

So how do you list the full list of processes again?