Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dff2aea2 authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Enable hiddenapi check for from-text stub build

This change removes the UNSAFE_DISABLE_HIDDENAPI_FLAGS env var setting
during from-text stub build, and enables hiddenapi list during from-text
stub build.

Test: ENABLE_HIDDENAPI_FLAGS=true m --build-from-text-stub
Bug: 275570206
Change-Id: Ic8cd60e376b978ccc658ff43a44d082eb2759fa5
parent 244d42a9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -472,11 +472,6 @@ func NewConfig(ctx Context, args ...string) Config {
		}
	}

	if ret.BuildFromTextStub() {
		// TODO(b/271443071): support hidden api check for from-text stub build
		ret.environ.Set("UNSAFE_DISABLE_HIDDENAPI_FLAGS", "true")
	}

	bpd := ret.BazelMetricsDir()
	if err := os.RemoveAll(bpd); err != nil {
		ctx.Fatalf("Unable to remove bazel profile directory %q: %v", bpd, err)