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

Commit d49f552b authored by Qingxi Li's avatar Qingxi Li Committed by android-build-merger
Browse files

Merge "Fix issue that LPA cannot receive OTA status update." into pi-dev

am: af77c228

Change-Id: I324ea0ff0520931ea28596bae1cc00afaffa3fae
parents ca4617eb af77c228
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.app.AppOpsManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ComponentInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Binder;
@@ -984,6 +985,10 @@ public class EuiccController extends IEuiccController.Stub {
    @VisibleForTesting(visibility = VisibleForTesting.Visibility.PRIVATE)
    public void sendOtaStatusChangedBroadcast() {
        Intent intent = new Intent(EuiccManager.ACTION_OTA_STATUS_CHANGED);
        ComponentInfo bestComponent = mConnector.findBestComponent(mContext.getPackageManager());
        if (bestComponent != null) {
            intent.setPackage(bestComponent.packageName);
        }
        mContext.sendBroadcast(intent, permission.WRITE_EMBEDDED_SUBSCRIPTIONS);
    }