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

Commit 437d6fe4 authored by Feng Cao's avatar Feng Cao Committed by android-build-merger
Browse files

Merge "Fix clipboard permission issue for AugmentedAutofillService provider." into qt-dev

am: 3c0eeb95

Change-Id: Id4d23405bfb8e2f214aca9533f2f1f57bac8575c
parents b326363d 3c0eeb95
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -775,8 +775,7 @@ public class ClipboardService extends SystemService {
                    // if the application has the permission, let it to access user's clipboard.
                    // To passed synthesized uid user#10_app#systemui may not tell the real uid.
                    // userId must pass intending userId. i.e. user#10.
                    allowed = mContentCaptureInternal.isContentCaptureServiceForUser(
                            Binder.getCallingUid(), userId);
                    allowed = mContentCaptureInternal.isContentCaptureServiceForUser(uid, userId);
                }
                if (!allowed && mAutofillInternal != null) {
                    // ...or the Augmented Autofill Service
@@ -785,8 +784,7 @@ public class ClipboardService extends SystemService {
                    // if the application has the permission, let it to access user's clipboard.
                    // To passed synthesized uid user#10_app#systemui may not tell the real uid.
                    // userId must pass intending userId. i.e. user#10.
                    allowed = mAutofillInternal.isAugmentedAutofillServiceForUser(
                            Binder.getCallingUid(), userId);
                    allowed = mAutofillInternal.isAugmentedAutofillServiceForUser(uid, userId);
                }
                if (!allowed) {
                    Slog.e(TAG, "Denying clipboard access to " + callingPackage