The new step generates APKs for instrumentation tests, building an Android project via Gradle with a specific variant and finding the APK files based on a given pattern. The required inputs include the project location, module, and variant, while the outputs are the paths of the generated (and copied) APK and test APK after filtering.