diff options
| author | 2023-08-18 16:29:30 +0000 | |
|---|---|---|
| committer | 2023-08-18 16:36:19 +0000 | |
| commit | 5ed626f0929b08f4022882f894b5648503f964d3 (patch) | |
| tree | 8be0ebac8b67b003cd2f3a8ef4085b19bda8a270 /libs/androidfw/StringPool.cpp | |
| parent | 3f1d5b58b9434824fee288331ff4eea6e14c0d0b (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions