commit | 8bfd2777425a32e06b04ff39807492e1c8dac278 | [log] [tgz] |
---|---|---|
author | Grace Jia <xiaotonj@google.com> | Mon Apr 26 12:43:58 2021 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Mon Apr 26 21:15:22 2021 +0000 |
tree | f2ac164c2a63760aca37630a9881cbdc9def268d | |
parent | 1ae504df22b736082636cfb0a1028fef614326de [diff] |
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)