Disallow legacy tether() API starting in B
As part of the major tethering refactor to associate every IpServer with a TetheringRequest, tether()/untether() APIs should be completely removed in B and all tethering should go through startTethering() (with the exception of Wifi LOHS and Wifi P2P, which will move to startTethering() in a future CL). Bug: 216524590 Test: atest CtsTetheringTests TetheringTests Change-Id: If7981f1ee7d80ff0a1cc0069ba7a4ebf79144160
This commit is contained in:
parent
62928ee6e1
commit
30d8a25db3
1 changed files with 112 additions and 18 deletions
|
|
@ -3065,7 +3065,8 @@ public class ConnectivityManager {
|
|||
* <p>WARNING: New clients should not use this function. The only usages should be in PanService
|
||||
* and WifiStateMachine which need direct access. All other clients should use
|
||||
* {@link #startTethering} and {@link #stopTethering} which encapsulate proper provisioning
|
||||
* logic.</p>
|
||||
* logic. On SDK versions after {@link Build.VERSION_CODES.VANILLA_ICE_CREAM}, this will throw
|
||||
* an UnsupportedOperationException.</p>
|
||||
*
|
||||
* @param iface the interface name to tether.
|
||||
* @return error a {@code TETHER_ERROR} value indicating success or failure type
|
||||
|
|
@ -3090,7 +3091,8 @@ public class ConnectivityManager {
|
|||
* <p>WARNING: New clients should not use this function. The only usages should be in PanService
|
||||
* and WifiStateMachine which need direct access. All other clients should use
|
||||
* {@link #startTethering} and {@link #stopTethering} which encapsulate proper provisioning
|
||||
* logic.</p>
|
||||
* logic. On SDK versions after {@link Build.VERSION_CODES.VANILLA_ICE_CREAM}, this will throw
|
||||
* an UnsupportedOperationException.</p>
|
||||
*
|
||||
* @param iface the interface name to untether.
|
||||
* @return error a {@code TETHER_ERROR} value indicating success or failure type
|
||||
|
|
|
|||
Loading…
Reference in a new issue