diff options
| author | 2023-06-05 17:22:32 +0000 | |
|---|---|---|
| committer | 2023-10-11 17:46:29 +0000 | |
| commit | dff2aea21210c76ba4effb7c54e5a2884944d156 (patch) | |
| tree | 3bb472ec9ce5c631e64dbac3c27c4b1609558e5d | |
| parent | 244d42a91b4154ade05353132723a2844d47f135 (diff) | |
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
| -rw-r--r-- | ui/build/config.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ui/build/config.go b/ui/build/config.go index f80868c33..f18399e04 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -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) |