Whitelist ManagedProvisioning from bg check

Notice that app put in this list is also exempted from doze.
Also, this only exempts us from the service restriction, but not the broadcast one.

Test: adb shell am make-uid-idle  --user 0 com.android.managedprovisioning
      && adb shell am broadcast -a android.intent.action.PRE_BOOT_COMPLETED -n com.android.managedprovisioning/com.android.managedprovisioning.ota.PreBootListener
      Observe there is no crash

Change-Id: Ic0a943a9b66c909a6727f9411af519a8c6cf0157
Fix: 36705375
This commit is contained in:
Tony Mak
2017-03-29 15:53:07 +01:00
parent 76c32a35a9
commit bbb551cfb5

View File

@@ -181,6 +181,10 @@
<allow-in-power-save package="com.android.cellbroadcastreceiver" />
<allow-in-power-save package="com.android.shell" />
<!-- Package in charge of provisioning that needs to freely run in the background -->
<!-- STOPSHIP: Revert this once it is fixed properly -->
<allow-in-power-save package="com.android.managedprovisioning" />
<!-- These are the packages that are white-listed to be able to run as system user -->
<system-user-whitelisted-app package="com.android.settings" />