Instrumentation:monitor all of the interaction the system has with the application
里面提供了许多有用的方法:如sendKeySync,实现方法
(IWindowManager.Stub.asInterface(ServiceManager.getService("window")))
.injectKeyEvent(event, true);通过模拟Input的sendKeyEvent给WindowManger发送事件。
android测试流程: