commit | de7b94cddcc8f911b159724fd47440c8795f0ddc | [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:13:18 2021 +0000 |
tree | f2ac164c2a63760aca37630a9881cbdc9def268d | |
parent | 7b0c9b2296e78128db0ddd46044264a5fce773cd [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)