Skip to content

Instantly share code, notes, and snippets.

@dknr
Created October 27, 2016 19:32
Show Gist options
  • Save dknr/fa4eaa326d49c5effcbb4b0fda371078 to your computer and use it in GitHub Desktop.
Save dknr/fa4eaa326d49c5effcbb4b0fda371078 to your computer and use it in GitHub Desktop.
android rndis config
svc usb setFunction rndis
ip addr add 192.168.137.2/24 dev rndis0
ip link set dev rndis0 up
ip route add default via 192.168.137.1 dev rndis0
ndc resolver setnetdns rndis0 local 8.8.8.8 8.8.4.4
@alchemistake
Copy link

Finding this took me 2 days of googling. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment