logd.auditd: Skip caching for pidToUid and pidToName

Skip the caching introduced by LogStatistics for audit messages. The pid
<-> uid mapping may be outdated, which leads to meaningless field values
in denial messages.

Note that the call to android::UidToName is kept, as the mapping is
based on /data/misc/packages.list which is updated using inotify.

Bug: 368380090
Test: presubmit
Change-Id: I3a9971dbc3b59e91471cc2097fbb4c95a6bdcabe
3 files changed
tree: 23890764ab35292c4ef80f9e4baf0a63c46b467f
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/
  5. rust/
  6. OWNERS
  7. PREUPLOAD.cfg
  8. TEST_MAPPING