Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0240593 authored by Ying Zheng's avatar Ying Zheng
Browse files

Fix usb service broadcasting for automotive.

Test: build
Bug: 132373192
Change-Id: I7017cfbe6ccdfa3a015f2165d10d9104046adc55
parent c3bfdf52
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static com.android.internal.app.IntentForwarderActivity.FORWARD_INTENT_TO

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.ActivityManager;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.Context;
@@ -769,7 +770,7 @@ class UsbProfileGroupSettingsManager {
        final Intent intent = createDeviceAttachedIntent(device);

        // Send broadcast to running activity with registered intent
        mContext.sendBroadcast(intent);
        mContext.sendBroadcastAsUser(intent, UserHandle.of(ActivityManager.getCurrentUser()));

        ApplicationInfo appInfo;
        try {