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

Skip to content
Commit 5ed626f0 authored by Matt Gilbride's avatar Matt Gilbride
Browse files

Migrate MediaProjectionManager#addCallback to @EnforcePermission

Use the recommended mechanism for permission enforcement in services.
This change is not *technically* behavior preserving because the manual
implementation used checkCallingPermission (as opposed to
checkCalling*orSelf*Permission.

It is safe to make this change since MANAGE_MEDIA_PROJECTION is very
locked down and orSelf simply covers calls within system server.

Bug: 275368789
Test: TH
Change-Id: I603dce46dab1a18c12bc5c25e796bf4e64e46fab
parent 3f1d5b58
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