A netty server with uiautomator2 handlers
npm install appium-skywheel-server

A netty server that runs on the device listening for commands and executes using UiAutomator V2.
gradle clean assembleServerDebug assembleServerDebugAndroidTest
adb shell am instrument -w com.skywheel.skywheel.server.test/androidx.test.runner.AndroidJUnitRunner
gradle clean assembleE2ETestDebug assembleE2ETestDebugAndroidTest
unitTest flavor contains tests for handlers and can be invoked by using following command
gradle clean connectedE2ETestDebugAndroidTest
the above command takes care about installing the AUT apk in to the testing device/emulator before running the tests.
you can also invoke the test using below command
adb shell am instrument -w com.skywheel.skywheel.e2etest.test/androidx.test.runner.AndroidJUnitRunner
Note: AUT apk should be installed before executing above command.