Enabling USB tethering programmatically - there is an app that did it for 2.3

前端 未结 6 1843
野趣味
野趣味 2020-12-05 12:15

I\'ve read many questions here on SO that ask how to enable USB tethering programmatically.

The answer is always the same, ordinary applications can\'t do it, only s

6条回答
  •  自闭症患者
    2020-12-05 13:18

    The port "rndis0" is enabled dynamically not availble in the the Tetherable interfaces list. It gets added when the user selects the USB Tethering option in the menu. The function ConnectivityManager::setUsbTethering(bool) is called when the option is selected. And this function call is allowed only for System applications.

提交回复
热议问题