Use framework-tethering-stub instead of framework-tethering

The non-updatable part of the platform now is built with
framework-tethering-stub, which is a stub library of
framework-tethering.

Bug: 147200698
Test: m
Change-Id: I97ef83f7f9b4c1376f373713036f5256318f1050
This commit is contained in:
markchien
2020-02-06 19:23:26 +08:00
parent 14922d41d2
commit 273a3e1c54

View File

@@ -2423,14 +2423,14 @@ public class ConnectivityManager {
/** /**
* Get the set of tethered dhcp ranges. * Get the set of tethered dhcp ranges.
* *
* @return an array of 0 or more {@code String} of tethered dhcp ranges. * @deprecated This method is not supported.
* @deprecated This API just return the default value which is not used in DhcpServer. * TODO: remove this function when all of clients are removed.
* {@hide} * {@hide}
*/ */
@RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
@Deprecated @Deprecated
public String[] getTetheredDhcpRanges() { public String[] getTetheredDhcpRanges() {
return getTetheringManager().getTetheredDhcpRanges(); throw new UnsupportedOperationException("getTetheredDhcpRanges is not supported");
} }
/** /**