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

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

Merge "Add temporary debug logging." into main

parents a5f8e9ba e5613ecf
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -3285,8 +3285,15 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                .setDeliveryGroupPolicy(BroadcastOptions.DELIVERY_GROUP_POLICY_MOST_RECENT)
                .setDeferralPolicy(BroadcastOptions.DEFERRAL_POLICY_UNTIL_ACTIVE)
                .toBundle();
        mInjector.binderWithCleanCallingIdentity(() ->
                mContext.sendBroadcastAsUser(intent, new UserHandle(userHandle), null, options));
        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;
            }
        });
    }
    private void loadSettingsLocked(DevicePolicyData policy, int userHandle) {