1. Home
  2. Mobile

How To Activate / Adjust WiFi HotSpot Settings For HTC G2 / Desire Z [Guide]

In case you were looking to activate and adjust Wi-Fi Hotspot settings on your T-Mobile G2 / HTC Desire Z, then there is a method available now. We all know that due to lack of a root that sticks, modifications etc for HTC Desire Z are not easily doable, but this doesn’t hinder folks at XDA to come out with excellent stuff like this.

Here is the step by step guide on adjusting and activating your G2’s HotSpot capabilities:

1. The first is to root your handset with VISIONary One Click retainable root app as per instruction in this post.

2. Once this is done, boot your phone in normal mode and press your homescreen for some time to get Create a shortcut / activity.

3. Now enter com.android.settings.wifi.WifiApSettings and this will make a shortcut to Wi-Fi settings right from your homescreen.

4. Now download and install ADB on your computer. You can find all the related instructions in this post.

5. Once you have downloaded and installed ADB, open command prompt and type the following commands to create dnsmasq.conf:


6. Once this is done, type the following code:

adb push dnsmasq.conf /data/local/tmp

7. Now create Wifi.sh by typing the following code:

echo 1 > /proc/sys/net/ipv4/ip_forward

./busybox ifconfig wl0.1

dnsmasq –strict-order –bind-interfaces –pid-file=/data/local/tmp/dnsmasq.pid –conf-file=/data/local/tmp/dnsmasq.conf  –listen-address  –dhcp-range, –dhcp-lease-max=253

iptables -t nat –append POSTROUTING –out-interface rmnet0 -j MASQUERADE

iptables –append FORWARD –in-interface wl0.1 -j ACCEPT

8. Once this is done, type the following ADB command to push / copy the Wifi.sh file:

adb push wifi.sh /data/local/tmp

9. Now launch Super User [SU] and change the directory to /data/local/tmp followed by executing Wifi.sh command.

And there you go! your G2 / HTC Desire Z is now enabled with Wi-Fi Hotspot capability. Please note that according to the developer, you should only connect to Access Point after dnsmasq is launched. Doing this before execution of the file can give DNS failure. Please head on to the official XDA Forum thread if you need support etc.

Disclaimer: Please attempt this guide at your own risk. AddictiveTips won’t be responsible in case your device bricks or any other damage occurs due to this method.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.