Exempt instrumented processes from hidden API checks

Whitebox tradefed tests always run as an instrumentation of their own
APK or a shim. This patch passes the information about instrumentation
from ActivityManagerService.startInstrumentation() to
startProcessLocked() and starts the process with hidden API checks
disabled if it is instrumented.

Bug: 64382372
Test: cts-tradefed run cts --plan CTS
Change-Id: I0fe53fcb2ea9bec26f31c6c23833c58327973f6a
1 file changed