[Android] Extract test server spawner logic from BaseTestRunner.