Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Nexus 5 - Android L wifi tethering fix

OP rajneeshk

29th August 2014, 10:45 AM   |  #1  
rajneeshk's Avatar
OP Senior Member
Flag gurgaon
Thanks Meter: 174
 
392 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Thanks to @buraktamturk here

Here is solution for tethering (both usb and wireless).

Tether just as usual. Then disable tethering and re-enable it. (this step is important otherwise dhcp server is not started)
After doing that both your phone and computer will not connect internet, because of invalid routing table. (internal bug from l preview)

just connect to the phone shell with 'adb shell', or terminal software on android (connectbot or android terminal emulator will fine)

Code:
shell@hammerhead:/ $ su
root@hammerhead:/ # ip route | grep rmnet0 | grep link
10.64.70.120/29 dev rmnet0 proto kernel scope link src 10.64.70.124
Note the gateway here (10.64.70.124), and set this default gateway. (and yes, my provider gives me nat'ed private ip addresses)

Code:
root@hammerhead:/ # route add default gw 10.64.70.124 dev rmnet0
Enjoy the tethering!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes