How to Enable Nexus 4 LTE Tethering on Rogers

So I've been playing around with scripts and stuff and finally found a solution that allows me to tether my LTE enabled data connection on my Nexus 4 to my other devices.

So I'm making a quick article here to share my findings and show you how to do it.

To start things off, I must say that I take no credit for this as I found the commands and simply made my own script for it to auto load every time my device boots up.

XanSama on XDA posted
If you log in to the phone via ADB and as root (either via "adb root" command, or via "su" from the shell) execute the commands listed here the tethering will work. Test it yourself.
If you want a persistent fix you have two options:
1) If you have a custom kernel installed, create a script in /system/etc/init.d that executes the commands from the post above (don't forget to set the permissions to executable!).
2) Install a program like Script Manager from the market, create a script using the commands from the post above, and tell it to execute the script at startup with root permissions.
Currently I'm running a rooted stock ROM with stock kernel, so I'm using Script Manager, and it's working perfectly. 
Here's the script I'm using right now:

iptables -A bw_FORWARD -i !lo+
iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED
iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID
iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+
iptables -A natctrl_FORWARD -j DROP
iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE

And now here's how I easily did it on my own. First thing you'll need is a script editor as XanSama said. I used the scripter that came inside Rom Toolbox pro.

You'll want to make a script called "LTE Tether" or another name you'll be able to identify the script with, and enter the commands located above. (You can copy and paste)

Now you have your script in the list and ready to go.

Touching the script you'll you be presented with the options as follows (Providing you're also using Rom Toolbox) I set mine on "Set at Boot" and also ran the script. If Wifi Tether is currently running, you'll need to turn it off and then on again for the changes to take effect.

Please keep in mind this little step by step I sketched together is all done on Rom ToolBox Pro. If you use another application, it could be slightly different, upon witch you'll have to figure that out for yourself.

If you're feeling a little lazy, you can use the script I exported through Rom Toolbox Pro, you'll be able to simply import it and use it as you wish if you don't want to make one yourself.

Download my Script here

Note: Remember that this was intended for the LG Nexus 4, running this script on any other phone may have ill effects on which you deserve for not reading.

Of course this is one of those Use at your own risk situations.
I personally have been using this script on my Nexus 4 on Rogers and successfully Tethering my LTE data connection to my ChromeBook and iMac Desktop without a single issue. Upon reboot it automatically loads my script, and everything is a go.

Thanks goes to XanSama for the info, I just did my best to simplify it and offer a pre-built script.



Post a Comment