Currently SystemWebViewShell is a self-instrumenting APK: it includes instrumentation tests that run with itself as the target. We provide this APK in Android to function as a minimal default browser for test/development purposes on system image configurations that don't have a real web browser installed.
Android would rather that the shell APK did not include instrumentation tests, because it's breaking a validation case they have that checks whether there are any instrumentation tests in the default system image. We should investigate moving the instrumentation tests into a separate APK that instruments the shell, instead of having it self-instrument as it does now.
Comment 1 by torne@chromium.org
, May 22 2018