Create a new non-updatable Wifi filegroup for WifiNetworkScoreCache

WifiNetworkScoreCache will not be part of the Wifi module. Thus,
split it out into a separate filegroup. WifiNetworkScoreCache
will eventually live in framework.jar, while the rest of the Wifi
API surface will live in framework-wifi.jar.

Bug: 144487252
Test: compiles
Change-Id: Id82218204ab62e549b60bcfc41af9eaa305000ce
diff --git a/Android.bp b/Android.bp
index 7b6d145..ac3ff84 100644
--- a/Android.bp
+++ b/Android.bp
@@ -205,10 +205,23 @@
         "wifi/java/**/*.java",
         "wifi/java/**/*.aidl",
     ],
+    exclude_srcs: [
+        ":framework-wifi-non-updatable-sources"
+    ],
     path: "wifi/java",
 }
 
 filegroup {
+    name: "framework-wifi-non-updatable-sources",
+    srcs: [
+        // TODO(b/146011398) package android.net.wifi is now split amongst 2 jars: framework.jar and
+        // framework-wifi.jar. This is not a good idea, should move WifiNetworkScoreCache
+        // to a separate package.
+        "wifi/java/android/net/wifi/WifiNetworkScoreCache.java"
+    ],
+}
+
+filegroup {
     name: "framework-non-updatable-sources",
     srcs: [
         // Java/AIDL sources under frameworks/base
@@ -233,6 +246,7 @@
         ":framework-telephony-common-sources",
         ":framework-telephony-sources",
         ":framework-wifi-sources",
+        ":framework-wifi-non-updatable-sources",
         ":PacProcessor-aidl-sources",
         ":ProxyHandler-aidl-sources",