1
上模拟快速扫在我的应用我使用su命令在我的应用程序来模拟刷卡:植根设备
Process p = Runtime.getRuntime().exec(new String[]{"su", "-c", "adb
shell input touchscreen swipe" + " " + oldCoordinates[i] +
" " + oldCoordinates[i+1] + " " + newCoordinates[j] + " "
+ newCoordinates[j+1]});
p.waitFor();
但它正在采取1秒左右才能执行此命令... 我怎样才能提高速度还是有任何其他的我可以模拟快速刷卡?