adb shell top -n 1|findstr pkg 不能获取到cpu数据
但是adb shell先进入shell环境,在执行top -n 1|grep pkg 就能获取到CPU数据
我想要直接获取数据,不进入shell环境
这个只有这种方法获取了,除非是安卓开发就可以通过代码方式实现