Add calling package verification for ATM binder calls
In some methods in ActivityTaskManagerService and AppTaskImpl we were
not validating if the callingPackage parameter that's passed in from
binder actually belongs to the calling uid. But some of our security
checks involve retrieving properties of the callingPackage, e.g.
and apps were able to circumvent these checks.
This CL adds checks that provided package name belongs to the calling
UID in ATM binder calls, and throws an exception if it doesn't.
Test: Build & flash
3 files changed