

You can also simulate app spanning and other gestures as part of UI Testing. The time is important because if you drag too fast, the app is “flung” to the other screen rather than spanned. The first four values are the start and end coordinates of the drag gesture, and the final value is elapsed time (milliseconds). You can simulate this gesture with ADB, using the following command: adb shell input touchscreen swipe 675 1780 1350 1500 3000 These screenshots illustrate the process of spanning by grabbing the handle at the bottom of the window, and dragging it towards the hinge until the span indicator covers both screens: adb pull – extract files from the emulator or deviceĪnother use for ADB is simulating input commands, such as automating spanning of an app on Surface Duo.adb shell pm path – gets the file system path of the package specified.adb shell pm list packages – list all the packages installed.

