Move TETHERING_MODULE_NAME to libs/net
The constant is useful for both Connectivity and Tethering when they
want to check the APEX version. Include it in DeviceConfigUtils, as this
is what it will be used for.
Bug:
Test: atest ConnectivityServiceTest
Change-Id: Ib7a7677ca2954974613df25a105a65fe5d971afc
diff --git a/staticlibs/device/com/android/net/module/util/DeviceConfigUtils.java b/staticlibs/device/com/android/net/module/util/DeviceConfigUtils.java
index 77b7835..30a1c33 100644
--- a/staticlibs/device/com/android/net/module/util/DeviceConfigUtils.java
+++ b/staticlibs/device/com/android/net/module/util/DeviceConfigUtils.java
@@ -35,6 +35,12 @@
private DeviceConfigUtils() {}
private static final String TAG = DeviceConfigUtils.class.getSimpleName();
+ /**
+ * DO NOT MODIFY: this may be used by multiple modules that will not see the updated value
+ * until they are recompiled, so modifying this constant means that different modules may
+ * be referencing a different tethering module variant, or having a stale reference.
+ */
+ public static final String TETHERING_MODULE_NAME = "com.android.tethering";
@VisibleForTesting
public static void resetPackageVersionCacheForTest() {