Trace Redaction - Remove Trace Packets

Most packet types are being considered 'not necessary' to investigate
most issues. Since they are not necessary, those packets are being
dropped in order to ensure no sensitive information gets exposed.

This transform primitive looks at each packet and checks if the packet's
data type belongs to an allowlist. Since a packet can only have one data
type (as per the proto), it is safe to keep / drop the whole packet
based off of the packet's data type.

Bug: 318576092
Change-Id: Ic1e957784b6d051c7560bc0d35b57f0e35daa40e
diff --git a/Android.bp b/Android.bp
index ece4ad0..4fe80b2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12462,7 +12462,9 @@
     name: "perfetto_src_trace_redaction_trace_redaction",
     srcs: [
         "src/trace_redaction/find_package_uid.cc",
+        "src/trace_redaction/populate_allow_lists.cc",
         "src/trace_redaction/prune_package_list.cc",
+        "src/trace_redaction/scrub_trace_packet.cc",
         "src/trace_redaction/trace_redaction_framework.cc",
         "src/trace_redaction/trace_redactor.cc",
     ],
@@ -12474,6 +12476,7 @@
     srcs: [
         "src/trace_redaction/find_package_uid_unittest.cc",
         "src/trace_redaction/prune_package_list_unittest.cc",
+        "src/trace_redaction/scrub_trace_packet_unittest.cc",
     ],
 }