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

Commit 515edef5 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Prevent creating AppPermissionGroup for wrong user

AppPermissionGroup#create takes a PackageInfo that contains the
permissions for an app (which is per user). It also take a
userHandle argument. Hence it can happen that the userHandle and
the permissions do not match.

Hence remove all userHandle arguments from the creation path to avoid
this problem in the first place.

Test: Granted and revoked permission in a multi-user environment. Checked
      permission screens.

Change-Id: I53307538f91bf7c95b571dadf3a9d098193800c6
parent f5006d90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment