Fix cross user package visibility leakage for queryInstrumentation
Returns false for querying instrumentation APIs if the target package
does not installed in the calling user.
Also adding a user id parameter to APIs for the system modules to
specify the correct user id when querying the instrumentation.
NoNonSdkCheck: The equivalent apis are available in PackageManager.
Bug: 229684723
Test: atest CrossUserPackageVisibilityTests
Change-Id: I0798e543705cb8866231ee376e07b853b419b6f3
10 files changed