Merge "Fix USB tethering"

This commit is contained in:
Mike Lockwood
2011-07-23 19:36:32 -07:00
committed by Android (Google) Code Review
3 changed files with 22 additions and 0 deletions

View File

@@ -2262,6 +2262,15 @@ public class ConnectivityService extends IConnectivityManager.Stub {
}
}
public int setUsbTethering(boolean enable) {
enforceTetherAccessPermission();
if (isTetheringSupported()) {
return mTethering.setUsbTethering(enable);
} else {
return ConnectivityManager.TETHER_ERROR_UNSUPPORTED;
}
}
// TODO - move iface listing, queries, etc to new module
// javadoc from interface
public String[] getTetherableIfaces() {