Allow usage of SdkLevel in telephony
This is necessary for TelephonyNetworkFactory because it uses
the static lib NetworkFactory which needs to test where it runs.
CP of ag/14309298
Bug: 183902758
Test: ClientModeImplTest
OemWifiNetworkFactoryTest
TelephonyNetworkFactoryTest
UntrustedWifiNetworkFactoryTest
WifiNetworkFactoryTest
Change-Id: I765bcb17901a2c9862d5879d524cbf522b6c7526
Merged-In: I765bcb17901a2c9862d5879d524cbf522b6c7526
diff --git a/Android.bp b/Android.bp
index 14f85ad..9aa92f9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -120,6 +120,7 @@
"PlatformProperties",
"net-utils-framework-common",
"telephony-protos",
+ "modules-utils-build_system",
],
product_variables: {
diff --git a/tests/telephonytests/jarjar-rules-tests.txt b/tests/telephonytests/jarjar-rules-tests.txt
index 7f72469..dd69870 100644
--- a/tests/telephonytests/jarjar-rules-tests.txt
+++ b/tests/telephonytests/jarjar-rules-tests.txt
@@ -7,6 +7,8 @@
# Telephony-common has already included net-utils-framework-common lib and jarjars
# the package name. FrameworksTelephonyTests also includes net-utils-framework-common
-# via net-tests-utils and tries to jarjar it again. Rename the package name with
-# differnt prefix in the test jarjar rule to avoid duplicate jar entries.
+# via net-tests-utils and tries to jarjar it again. Rename the package names with
+# a different prefix in the test jarjar rule to avoid duplicate jar entries.
rule com.android.net.module.util.** com.android.internal.telephony.util.test.@1
+# Similarly, this is needed for the build utils.
+rule com.android.modules.utils.** com.android.internal.telephony.util.test.@1