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

Commit 1765dd1e authored by Ying Zheng's avatar Ying Zheng Committed by Android (Google) Code Review
Browse files

Merge "Fix usb service broadcasting for automotive." into qt-dev

parents 0a8fcb3a b0240593
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 {