diff options
| author | 2024-02-23 02:38:36 +0000 | |
|---|---|---|
| committer | 2024-03-19 18:43:14 +0000 | |
| commit | bf3c8322208df04f04eca76e193760760e26e7e6 (patch) | |
| tree | 30b0320fd758a5c673bb0d9ed5175a39bd89725e /libs/gui/LayerState.cpp | |
| parent | b568238e53890fce51eeaab4325db1f627262461 (diff) | |
InputTracer: Adjust traced event sensitivity based on allow-list
An allow-list of packages will be defined in the perfetto config for
input traces. We can only allow an event to traced completely (i.e.
treated as a non-sensitive event) if _all_ of the UIDs that the event is
targeting are allow-listed for the trace.
In each trace instace, we maintain a cache of whether UIDs seen so far
are allow-listed. Since the allow-list is specified through a list of
package names, we must query PackageManager through the InputDispatcher
policy to look up the packages that correspond to each UID that we see.
Bug: 210460522
Test: manual with perfetto
Change-Id: I9c19a5ed941ebc239dccc0363cc6553733e16afd
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions