Android 5.1 之后,发现通过ActivityManger获取不到正在运行的进程了,可以通过shell命令来获取,参考。 libsuperuse执行shell可以参考: http://my.oschina.net/u/1445604/blog/517272