Remove parameter from getSdkSandboxApplicationInfoForInstrumentation
The userId parameter is redundant, it can be extracted from the
ApplicationInfo.
Flag: TEST_ONLY
Bug: 306689945
Test: atest SdkSandboxManagerServiceUnitTest SdkSandboxInstrumentationTest
Change-Id: Ibbcaa7368c6a1776e454fcdbb384ac8e3433fe68
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index d61dd75..88bb66f 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -15947,7 +15947,7 @@
try {
sdkSandboxInfo =
sandboxManagerLocal.getSdkSandboxApplicationInfoForInstrumentation(
- sdkSandboxClientAppInfo, userId, isSdkInSandbox);
+ sdkSandboxClientAppInfo, isSdkInSandbox);
} catch (NameNotFoundException e) {
reportStartInstrumentationFailureLocked(
watcher, className, "Can't find SdkSandbox package");