private YuvImage i420ToYuvImage(ByteBuffer[] yuvPlanes, int[] yuvStrides, int width, int height) {
if (yuvStrides[0] != width) {
return fastI420ToYuvImage(yuvPlanes, yuvStrides, width, hei……继续阅读 »
sharezer
4年前 (2017-07-13) 1311浏览 0评论
0个赞
pm dump【包名】| grep -A 1 android.intent.action.MAIN: | tail -1
PS:windows貌似不能使用tail
……继续阅读 »
sharezer
4年前 (2017-07-03) 1250浏览 0评论
1个赞
/**
* 通过包名获取task id,不存在为-1
*
* @param packageName
* @return
*/
public int getTaskId(String packageName) {
String result = execRootCmd("dumpsys activity | grep " + packageName);
……继续阅读 »
sharezer
4年前 (2017-07-03) 1933浏览 0评论
0个赞