Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ea196114 authored by Michael Groover's avatar Michael Groover
Browse files

When device ID access is revoked get app info as calling user

When a calling package from another user ID does not meet the new
requirements to access device identifiers its application info will
be queried to determine its target SDK. However since the permission
check for device identifiers runs as user 0 the current query would
look for the application info under user 0. This change queries for
the application info using the calling user ID to ensure the correct
info is returned and prevent any issues with an
INTERACT_ACROSS_USERS_FULL permission check.

Fixes: 128359188
Test: Manually verified app that queries Build#getSerial from work
      profile did not fail due to INTERACTS_ACROSS_USER_FULL perm.
Change-Id: Iaea4e3952bd1e329bde7de0ace004bb8478821f5
parent 726e36e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment