安卓5.1,已root。
var ra = new RootAutomator();
//root模式
ra.setScreenMetrics(1080, 1920);
//屏幕大小
ra.touchDown(1080,0,1);
//手指1按住左上角
ra.touchMove(540,960,1);
//手指1滑动终点
ra.touchDown(1080,1920,2);
//手指1按住右下角
ra.touchMove(540,960,2);
//手指2滑动终点
ra.touchUp(1)
//抬起手指1
ra.touchUp(2)
//抬起手指2
ra.exit();
上面代码十次八次不管用,有没有其他方法
求助,屏幕缩放方法