diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 316e73b264102..0c64c86daf3ee 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -1098,17 +1098,18 @@ public final class ActivityThread extends ClientTransactionHandler IUiAutomationConnection instrumentationUiConnection, int debugMode, boolean enableBinderTracking, boolean trackAllocation, boolean isRestrictedBackupMode, boolean persistent, Configuration config, - CompatibilityInfo compatInfo, Map services, Bundle coreSettings, + CompatibilityInfo compatInfo, Map services, Bundle coreSettings, String buildSerial, AutofillOptions autofillOptions, ContentCaptureOptions contentCaptureOptions, long[] disabledCompatChanges, SharedMemory serializedSystemFontMap) { if (services != null) { if (false) { // Test code to make sure the app could see the passed-in services. - for (String name : services.keySet()) { - if (services.get(name) == null) { + for (Object oname : services.keySet()) { + if (services.get(oname) == null) { continue; // AM just passed in a null service. } + String name = (String) oname; // See b/79378449 about the following exemption. switch (name) { diff --git a/core/java/android/app/IApplicationThread.aidl b/core/java/android/app/IApplicationThread.aidl index 2afd98e9d685b..d6ff6d3dfc3a5 100644 --- a/core/java/android/app/IApplicationThread.aidl +++ b/core/java/android/app/IApplicationThread.aidl @@ -77,7 +77,7 @@ oneway interface IApplicationThread { IInstrumentationWatcher testWatcher, IUiAutomationConnection uiAutomationConnection, int debugMode, boolean enableBinderTracking, boolean trackAllocation, boolean restrictedBackupMode, boolean persistent, in Configuration config, - in CompatibilityInfo compatInfo, in Map services, + in CompatibilityInfo compatInfo, in Map services, in Bundle coreSettings, in String buildSerial, in AutofillOptions autofillOptions, in ContentCaptureOptions contentCaptureOptions, in long[] disabledCompatChanges, in SharedMemory serializedSystemFontMap);