Explicitly Select UID for Target SDK Check
To ensure that the correct ApplicationInfo is retrieved
for the target SDK check, expicitly invoke the package
manager for the context of the calling UID.
Bug: 136597456
Bug: 136359936
Test: manual - verified on Crosshatch
-Install Slides on a Work Profile
-Open Slides (crash)
-CP this patch; build; flash
-Open Slides (no crash)
Merged-In: I70a09ea22a2b3e7a866b2b97aa30487ea300b686
Change-Id: I70a09ea22a2b3e7a866b2b97aa30487ea300b686
(cherry picked from commit ec1847440d4eac460aa166acfbc18ef7d9a879c6)
1 file changed