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

Commit dfbe891e authored by Naina Nalluri's avatar Naina Nalluri
Browse files

Add background flag to CI system update intent

Add flag to allow KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING
intent. This is needed
as the receiver service is modified to use
latest target version SDK which introduces Background
broadcast limitations.

Bug: 78634470
Test: On Device, verified that the intents are
      received by the service
Change-Id: I140c1988b241885a737413bd5f0b9c3cc63c4ea8
parent 0333b07a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ public class SystemUpdatePreferenceController extends BasePreferenceController {
            }
            Log.d(TAG, "ciActionOnSysUpdate: broadcasting intent " + intentStr +
                    " with extra " + extra + ", " + extraVal);
            intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
            mContext.getApplicationContext().sendBroadcast(intent);
        }
    }