diff --git a/build/mainline_modules_sdks.py b/build/mainline_modules_sdks.py index ea2def9..8888220 100755 --- a/build/mainline_modules_sdks.py +++ b/build/mainline_modules_sdks.py @@ -732,6 +732,11 @@ class BuildRelease: # snapshot suitable for a specific target build release. "SOONG_SDK_SNAPSHOT_TARGET_BUILD_RELEASE": self.name, }) + # Unless flagged APIs are required to be included in the snapshot then + # tell the build to hide them. + if not self.include_flagged_apis: + self.soong_env["SOONG_SDK_SNAPSHOT_HIDE_FLAGGED_APIS"] = "true" + def __eq__(self, other): return self.ordinal == other.ordinal