[SOLVED] How do I enable Nexus 7 USB tether on Jelly Bean?

CarlosML

Member
Jan 16, 2013
12
0
0
Following the instructions in this thread, I managed to enable RNDIS when the Nexus 7 is not acting as a host, using this in my terminal:

Code:
echo 0 > /sys/class/android_usb/android0/enable
echo 18d1 > /sys/class/android_usb/android0/idVendor
echo 4e23 > /sys/class/android_usb/android0/idProduct
echo rndis > /sys/class/android_usb/android0/functions
echo 224 > /sys/class/android_usb/android0/bDeviceClass
echo 1 > /sys/class/android_usb/android0/enable
setprop sys.usb.state rndis
netcfg rndis0 dhcp
However, when my Nexus 7 is acting as a host and even with rndis_host.ko loaded, it doesn't work. I get this in dmesg

Code:
<6>[  595.787467] rndis_function_bind_config MAC: C2:8C:59:6E:2C:C1
<4>[  595.787580] android_usb gadget: using random self ethernet address
<4>[  595.787697] android_usb gadget: using random host ethernet address
<6>[  595.792019] rndis0: MAC 2e:22:6c:a0:e7:94
<6>[  595.792138] rndis0: HOST MAC 56:2c:6e:e8:bc:52
But rndis_host seems to do nothing. I guess the only way to this work is building the kernel with RNDIS Host support built-in, and not as a module.
 

O2Blevel

Senior Member
Sep 15, 2012
172
40
0
Following the instructions in this thread, I managed to enable RNDIS when the Nexus 7 is not acting as a host, using this in my terminal:

Code:
echo 0 > /sys/class/android_usb/android0/enable
echo 18d1 > /sys/class/android_usb/android0/idVendor
echo 4e23 > /sys/class/android_usb/android0/idProduct
echo rndis > /sys/class/android_usb/android0/functions
echo 224 > /sys/class/android_usb/android0/bDeviceClass
echo 1 > /sys/class/android_usb/android0/enable
setprop sys.usb.state rndis
netcfg rndis0 dhcp
However, when my Nexus 7 is acting as a host and even with rndis_host.ko loaded, it doesn't work. I get this in dmesg

Code:
<6>[  595.787467] rndis_function_bind_config MAC: C2:8C:59:6E:2C:C1
<4>[  595.787580] android_usb gadget: using random self ethernet address
<4>[  595.787697] android_usb gadget: using random host ethernet address
<6>[  595.792019] rndis0: MAC 2e:22:6c:a0:e7:94
<6>[  595.792138] rndis0: HOST MAC 56:2c:6e:e8:bc:52
But rndis_host seems to do nothing. I guess the only way to this work is building the kernel with RNDIS Host support built-in, and not as a module.
In post #19, the OP states he had to manually bring up the usb interface when in host mode. Maybe try that.

Also in post #20, the CM10 build provided by the poster works. You may be able to pick up a few hints if you dig around in it. Wish I could be more helpful.
 

skyline159

Senior Member
May 22, 2012
63
45
0
I have succesfully compiled one thanks to cbdnohue's instruction in this thread. I will upload it here for anyone who interested

cm-10.1-20130120-UNOFFICIAL-grouper.zip
MD5: 4B9C09AA7E028B04974E4B21A66315C2

This is build from CM 10.1 source without any modifications except the one in this thread to enable USB Tethering.
Please check the hash before you flash it.

Note: this zip does not contain Gapps, you'll need to download it from here gapps-jb-20121212-signed.zip and flash it after flashing the rom.
 
Last edited:
  • Like
Reactions: O2Blevel

gsw5700

Senior Member
Jan 31, 2011
2,890
663
183
Foxfi works great, you have to pay 2 beers to get more than the small limit imposed with free version

Sent from my Nexus 7 using XDA Premium HD app
 

MouseWhite

New member
Jan 24, 2013
1
0
0
In post #19, the OP states he had to manually bring up the usb interface when in host mode. Maybe try that.

Also in post #20, the CM10 build provided by the poster works. You may be able to pick up a few hints if you dig around in it. Wish I could be more helpful.
would this be breaked if i flash the lastest cm 10.1 without factory reset?
 

bftb0

Senior Member
Feb 5, 2010
2,594
1,040
0
almost effortless w/ CM 10.2

Old thread, but I thought I'd add a success report.*

I'm posting this via USB (wired) tethering, with an old (Gingerbread) rooted phone running Android Wired Tether v1.4, and CyanogenMod 10.2 (Nightly 20130922) on the N7.

The only thing needed to bring the interface up on the N7 was

#netcfg usb0 dhcp

from a root shell.

I did not use a dev kernel - just the CM kernel.


* just so it's clear, this is a grouper (2012) N7 acting as an RNDIS client of the phone using an OTG cable.
 

ritv12345

New member
Jul 24, 2013
1
1
0
I got tethering option (USB,Bluetooth&hotspot) on my Nexus 7 2012 WiFi Only(aka Grouper) running kitkat 4.4.2 stock on Mkernel using this xposed module called KitKat SMS+tether enabler.

Works great but it brings up the emergency call option on the menu

Should even work on any ROM or even any other phone,tablet with the same problem as its just an xposed module.
 
  • Like
Reactions: trevmar

bitflow999

Member
Dec 3, 2015
7
1
0
Rome
I got tethering option (USB,Bluetooth&hotspot) on my Nexus 7 2012 WiFi Only(aka Grouper) running kitkat 4.4.2 stock on Mkernel using this xposed module called KitKat SMS+tether enabler.

Works great but it brings up the emergency call option on the menu

Should even work on any ROM or even any other phone,tablet with the same problem as its just an xposed module.
Hi, after upgrading to android 5.1.1 the xposed module isn't working anymore becouse its not updated yet...how did you solved if you did it?
I really need usb tethering becouse I use the tablet as a controller for music softwares and it needs to send data over the network..it is really a shame that asus did not think of this...there are lots of apps that uses the net to work with pc..internet its not the main reason for needing tether!!