Merge "Fix clipboard permission issue for AugmentedAutofillService provider." into qt-dev
This commit is contained in:
@@ -775,8 +775,7 @@ public class ClipboardService extends SystemService {
|
|||||||
// if the application has the permission, let it to access user's clipboard.
|
// 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.
|
// To passed synthesized uid user#10_app#systemui may not tell the real uid.
|
||||||
// userId must pass intending userId. i.e. user#10.
|
// userId must pass intending userId. i.e. user#10.
|
||||||
allowed = mContentCaptureInternal.isContentCaptureServiceForUser(
|
allowed = mContentCaptureInternal.isContentCaptureServiceForUser(uid, userId);
|
||||||
Binder.getCallingUid(), userId);
|
|
||||||
}
|
}
|
||||||
if (!allowed && mAutofillInternal != null) {
|
if (!allowed && mAutofillInternal != null) {
|
||||||
// ...or the Augmented Autofill Service
|
// ...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.
|
// 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.
|
// To passed synthesized uid user#10_app#systemui may not tell the real uid.
|
||||||
// userId must pass intending userId. i.e. user#10.
|
// userId must pass intending userId. i.e. user#10.
|
||||||
allowed = mAutofillInternal.isAugmentedAutofillServiceForUser(
|
allowed = mAutofillInternal.isAugmentedAutofillServiceForUser(uid, userId);
|
||||||
Binder.getCallingUid(), userId);
|
|
||||||
}
|
}
|
||||||
if (!allowed) {
|
if (!allowed) {
|
||||||
Slog.e(TAG, "Denying clipboard access to " + callingPackage
|
Slog.e(TAG, "Denying clipboard access to " + callingPackage
|
||||||
|
|||||||
Reference in New Issue
Block a user