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

Commit 55d9a153 authored by Ying Zheng's avatar Ying Zheng Committed by android-build-merger
Browse files

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

am: 1765dd1e

Change-Id: I95c976d0ad68a8f8276940b132735a20fe9d0aef
parents ceaa0287 1765dd1e
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 {