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

Commit 05a7dbae authored by Pavel Grafov's avatar Pavel Grafov Committed by Android (Google) Code Review
Browse files

Revert "Add temporary debug logging."

This reverts commit e5613ecf.

Reason for revert: this is the wrong broadcast

Change-Id: Id9835bac60e9fb21298954a6a773f9b092c49a4c
parent e5613ecf
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -3286,15 +3286,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                .setDeliveryGroupPolicy(BroadcastOptions.DELIVERY_GROUP_POLICY_MOST_RECENT)
                .setDeferralPolicy(BroadcastOptions.DEFERRAL_POLICY_UNTIL_ACTIVE)
                .toBundle();
        mInjector.binderWithCleanCallingIdentity(() -> {
            try {
                mContext.sendBroadcastAsUser(intent, new UserHandle(userHandle), null, options);
            } catch (SecurityException e) {
                // TODO(b/387259698) remove debug logging.
                Slog.d(LOG_TAG, "Exception broadcasting as UID " + Binder.getCallingUid(), e);
                throw e;
            }
        });
        mInjector.binderWithCleanCallingIdentity(() ->
                mContext.sendBroadcastAsUser(intent, new UserHandle(userHandle), null, options));
    }
    private void loadSettingsLocked(DevicePolicyData policy, int userHandle) {