startApplication() fails to launch the AUT

Last edited on

startApplication() may fail to launch the Android application.

In such a case, please check/try the following points:

General

On Xiaomi devices running HyperOS, Squish may fail to launch the AUT even with USB debugging enabled and Android Studio closed (see General section above). Two additional steps are usually needed:

Note: appop code 10021 corresponds to this permission on HyperOS only and is not part of AOSP — this command is confirmed to work on HyperOS but should not be assumed to work on other Android distributions or OEM skins.