diff options
| author | 2024-07-11 08:56:24 -0700 | |
|---|---|---|
| committer | 2024-10-02 16:50:20 -0700 | |
| commit | 8c629e91f579e109bd8ca4f70c63e9e5a3c81f62 (patch) | |
| tree | 92a4efe0b2c7a7cb3bce2b0e60933a9a01cc813d /libs/input/PointerController.h | |
| parent | 28c0d2a2e3c39a03974c55d8650d86ca3eb7ca3b (diff) | |
Use context AttributionSource as the identity source-of-truth for connection
CameraService::connect and ::connectDevice allow an argument of USE_CALLING_*
for both the pid and uid of the client. In this change, USE_CALLING_* is
retired in favor of using the AttributionSource provided by the calling
Context. The AttributionSource pid/uid is verified to be truthful via
getCallingPid() / getCallingUid().
This change has no impact on APIs which do not pass the pid/uid through
ICameraService - the AttributionSource pid/uid are ignored for those
APIs and the calling pid / uid are still universally used.
Bug: 190657833
Bug: 369850244
Change-Id: I622c24b7ace926645b64ac70650e401dc7ad5f1e
Flag: com.android.internal.camera.flags.use_context_attribution_source
Test: Ran new CTS test with flag on/off
Diffstat (limited to 'libs/input/PointerController.h')
0 files changed, 0 insertions, 0 deletions