title: Can one Android application control another application via UI Automator?
body: <p>I am trying to write an Android application/service which can be deployed on the target device.  The app can be used as a hook to remotely control a target device.  Starting from Jelly Bean release, there is the UI Automator implementation available, which provides similar functionality.  However, it seems that UI Automator can only be used via ADB interface.  Application running on the device cannot use UI Automator directly(???).  I am trying to find a solution that can work without the help of the ADB.  For example, the hook can listen on a socket as a protobuf server.  The client can send command to the hook to remotely control and device.  I looked into the Andorid SDK source code.  It looks like the only way is to use android accessibility APIs.  I am wondering if there is any better way?</p>