Modify checkPermissionSelf to check for app ID instead of UID

This allows cross-user interaction for an app, as the UID is different
for different users.

Bug: 199148522
Test: manual, work profile switch WAI
Change-Id: I9c0634aec0efeed96f49368475c651d908a9f701
Merged-In: I9c0634aec0efeed96f49368475c651d908a9f701
(cherry picked from commit 90d6cfbff3b9df9a9a91fb5d2ee1f9f9f64e3bb1)
1 file changed