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
This commit is contained in:
Naina Nalluri
2019-04-01 16:03:20 -07:00
parent 0333b07a1e
commit dfbe891e39

View File

@@ -139,7 +139,8 @@ public class SystemUpdatePreferenceController extends BasePreferenceController {
} }
Log.d(TAG, "ciActionOnSysUpdate: broadcasting intent " + intentStr + Log.d(TAG, "ciActionOnSysUpdate: broadcasting intent " + intentStr +
" with extra " + extra + ", " + extraVal); " with extra " + extra + ", " + extraVal);
intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
mContext.getApplicationContext().sendBroadcast(intent); mContext.getApplicationContext().sendBroadcast(intent);
} }
} }
} }