Merge "Work on issue #37815224: DeviceManagementService is incorrectly..." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72c0ab518a
@@ -181,6 +181,9 @@
|
||||
<allow-in-power-save package="com.android.cellbroadcastreceiver" />
|
||||
<allow-in-power-save package="com.android.shell" />
|
||||
|
||||
<!-- STOPSHIP(b/36856786): Revert this once it is fixed properly -->
|
||||
<allow-in-power-save package="com.google.android.apps.enterprise.dmagent" />
|
||||
|
||||
<!-- These are the packages that are white-listed to be able to run as system user -->
|
||||
<system-user-whitelisted-app package="com.android.settings" />
|
||||
|
||||
|
||||
@@ -184,8 +184,7 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
|
||||
scheduleOpTimeOutLocked();
|
||||
final Intent intent = new Intent().setComponent(job.getServiceComponent());
|
||||
boolean binding = mContext.bindServiceAsUser(intent, this,
|
||||
Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
|
||||
| Context.BIND_IMPORTANT_BACKGROUND,
|
||||
Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND,
|
||||
new UserHandle(job.getUserId()));
|
||||
if (!binding) {
|
||||
if (DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user