Fix enforce calling package behavior when called by GmsCore.

Using PackageManager get from user context to make sure we get correct
uid to check when enforcing the calling package.

Bug: 186380297
Test: Manually set work profile and see the it setup successfully
Change-Id: I4c61e303800bb472c379796f1ea5b50e7f4e71d2
(cherry picked from commit 345e3ac79e7b89f453a68f2328b2fec7a5bea76f)
1 file changed