Pass the supportQ flag to stats-log-api-gen
Statsd is becoming a Mainline module in R. As part of that effort,
the logging schema has been updated. However, mainline modules
using statsd that are updated in Q still need to use the legacy
schema.
So we've added support for that in the autogeneration tool by
passing a
flag to support legacy logging schema.
Note: this change is not needed if this module will not be
updated in Q.
Bug: 145624233
Test: m
Test: flashes successfully
Change-Id: I1417512bcaec6074c984da1dd19144277094820e
diff --git a/Android.bp b/Android.bp
index f3fd863..6fca804 100644
--- a/Android.bp
+++ b/Android.bp
@@ -61,7 +61,7 @@
genrule {
name: "statslog-docsui-java-gen",
tools: ["stats-log-api-gen"],
- cmd: "$(location stats-log-api-gen) --java $(out) --module docsui --javaPackage com.android.documentsui --javaClass DocumentsStatsLog",
+ cmd: "$(location stats-log-api-gen) --java $(out) --module docsui --javaPackage com.android.documentsui --javaClass DocumentsStatsLog --supportQ",
out: ["com/android/documentsui/DocumentsStatsLog.java"],
}