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

Commit cbf4c3f5 authored by Antony Sargent's avatar Antony Sargent Committed by Automerger Merge Worker
Browse files

Merge "Skip clipboard access toasts for VirtualDevice owner app" into udc-dev...

Merge "Skip clipboard access toasts for VirtualDevice owner app" into udc-dev am: b0658303 am: 4d5f07d6 am: 2cf734fc am: f9001857

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22829406



Change-Id: Ice179cc0bb93930e039d66580724aabd389c1d6b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents cf1787f7 f9001857
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1389,6 +1389,11 @@ public class ClipboardService extends SystemService {
                callingPackage) == PackageManager.PERMISSION_GRANTED) {
            return;
        }
        // Don't notify if this access is coming from the privileged app which owns the device.
        if (clipboard.deviceId != DEVICE_ID_DEFAULT && mVdmInternal.getDeviceOwnerUid(
                clipboard.deviceId) == uid) {
            return;
        }
        // Don't notify if already notified for this uid and clip.
        if (clipboard.mNotifiedUids.get(uid)) {
            return;