From e2054a9f9dc2de6dcf41e20cc46d068ac72ad5a7 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 20 Apr 2020 14:46:47 -0700 Subject: [PATCH] Add some app modules to the allowed whitelist. Test: treehugger Bug: 152482542 Change-Id: Ia7adf690cd6dca1408ae0a340860eaeae6c1d4b4 Merged-In: Ia7adf690cd6dca1408ae0a340860eaeae6c1d4b4 (cherry picked from commit 6b6d387a7590d78604ed57fb5a932b5cc3285a88) --- android/neverallow.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/neverallow.go b/android/neverallow.go index f9fc03caa..63946a7ed 100644 --- a/android/neverallow.go +++ b/android/neverallow.go @@ -186,6 +186,10 @@ func createCcSdkVariantRules() []Rule { // derive_sdk_prefer32 suppress the platform installation rules, but fails when // the APEX modules contain the SDK variant and the platform variant still exists. "frameworks/base/apex/sdkextensions/derive_sdk", + // These are for apps and shouldn't be used by non-SDK variant modules. + "prebuilts/ndk", + "tools/test/graphicsbenchmark/apps/sample_app", + "tools/test/graphicsbenchmark/functional_tests/java", } platformVariantPropertiesWhitelist := []string{