Add check to verify package belongs to caller
To fix security vulnerability mentioned in bug b/192587406, Add check to verify that package that is being queried belongs to the caller. Bug: 192587406 Test: atest AccessSerialNumberTest atest DeviceOwnerTest#testDeviceOwnerCanGetDeviceIdentifiers atest MixedDeviceOwnerTest#testEnrollmentSpecificIdCorrectCalculation atest MixedProfileOwnerTest#testEnrollmentSpecificIdCorrectCalculation atest MixedManagedProfileOwnerTest#testEnrollmentSpecificIdCorrectCalculation Change-Id: I343b847ae3e070201a7ac93ad88ceb2e47e829b2
Loading
Please register or sign in to comment