summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorAyush Sharma <ayushsha@google.com>2021-08-23 21:29:28 +0000
committerAyush Sharma <ayushsha@google.com>2021-09-30 11:11:03 +0000
commitac4ef4db6f25417398a0fb33da41730ca34f2281 (patch)
treee11d7ff7d745ede65273e0488ef7b189c7649546 /core/java/android/widget/TextView.java
parent4a9d97b6ea332c60e8dd54c1c36c6ac75740f10d (diff)
Enforce missing permission getCameraDisabled
Add following checks: * Caller has cross user permission if user other than caller is queried * If componentName is specified than it belongs to the caller. Also, Merged security exceptions in getCallerIdentity, as there was a information leak. From different security exceptions it could be deduced if particular package is admin package. Bug: 193033501 Test: atest MixedProfileOwnerHostSideTransferTest#testTransferPolicies atest OrgOwnedProfileOwnerTest#testCameraDisabledOnParentIsEnforced atest ManagedProfileTest#testCameraPolicy atest MixedDeviceOwnerTest#testSetCameraDisabledLogged atest MixedProfileOwnerTest#testSetCameraDisabledLogged atest MixedManagedProfileOwnerTest#testSetCameraDisabledLogged atest com.android.server.devicepolicy.DevicePolicyManagerTest#testDaDisallowedPolicies_SecurityException atest com.android.server.devicepolicy.DevicePolicyManagerTest#testGetMacAddress Change-Id: I521ffd81f93c5c2576e9324152856b4a4933c094 Merged-In: I521ffd81f93c5c2576e9324152856b4a4933c094 (cherry picked from commit 30e223d1321794cb7720f51c3626a883e0db5880)
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions