Use the calling uid, not app id

Use the calling uid, when checking permissions,
since the target app may not exist in the system user.

This allows apps in the work profile to request
BROADCAST_STICKY permission, for instance.

Fixes: 121274063
Test: Manually test failing apps in work profile
Change-Id: I326f504a482623a7db624b4d7779423c6a17e4d1
1 file changed