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

Skip to content
Commit 9ba5ac1a authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Combine whitelisting of system apps and permission changes on upgrade

- Load all data needed for both operations in parallel
  - Avoid re-loading of already loaded data
- de-dup whitelistings between the two methods

Performance of RuntimePermissionsUpgradeController.onUpgradeLocked on
first boot with this change on cuddlefish-userdebug:
~ 200ms loading data
~ 20ms processing data
~ 90ms applying whitelisting state
~ 0 granting permissions  (does not happen for new users, only on upgrade)

Test: Measured performance. Checked that permissions were whitelisted
Bug: 150407536
Change-Id: I379f91fe17394acfd3d743577c8e22ffdb69e79f
parent c09251f8
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