New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sherifone
Old
(Last edited by sherifone; 5th October 2010 at 10:32 PM.)
#1  
Member - OP
Thanks Meter 0
Posts: 46
Join Date: May 2009
Default [MISC] Activate and Adjust Wifi HotSpot Settings, No Root Necessary

Interestingly enough if you install Launcher Pro or similar you can pop right on over to the Froyo AP settings.

Its very straight-forward, all you need to do is long press your homescreen, create a shortcut/activity that goes directly to the Wifi AP settings, what you are looking for is:

com.android.settings.wifi.WifiApSettings

Its as exactly as you would find on the Nexus One, its just hidden from the standard menus to keep the noobs out I suppose. Hopefully they leave this in, since the cat is out of the bag!

Edit:

HamNCheese has figured out that the temp root is necessary to kick things off. Its not really complex, here is his instructions:



Quote:
Originally Posted by HamNCheese View Post
Here's a workaround to get things working (for now)

Step 1: get root

Step 2: Add the wifi settings shortcut as posted in this thread and configure your AP

Step 3: Create dnsmasq.conf:

Code:
no-resolv
no-poll
server=208.67.222.222
server=208.67.220.220
dhcp-authoritative
Step 4: adb push dnsmasq.conf to /data/local/tmp

Step 5: create wifi.sh:

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

./busybox ifconfig wl0.1 192.168.1.1

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

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

iptables --append FORWARD --in-interface wl0.1 -j ACCEPT
Step 6: adb push wifi.sh to /data/local/tmp

Step 7: su, change to /data/local/tmp and run wifi.sh

Step 8: (important) Connect to your AP only after dnsmasq is started, otherwise you will get weird DNS failures.

Credit to teferi for his original USB tether script.

 
sino8r
Old
#2  
sino8r's Avatar
Senior Member
Thanks Meter 411
Posts: 3,043
Join Date: Sep 2006
Location: Birmingham, Alabama
Ha! Nice find...
evolution
HTC Wizard G3
HTC Excalibur
HTC Dream
HTC Sapphire
HTC Rhodium
HTC Espresso
HTC Glacier
HTC Vision
HTC Doubleshot
Samsung Note 2

My recent works:
2G/3G/4G/H+ icons for CM7.1 and Nightly

How to defeat data throttling

2.1 with JIT enabled on MTS

boot animation (Nexus "X"/HTC "quietly brilliant") for MTS
 
InGeNeTiCs
Old
#3  
Senior Member
Thanks Meter 51
Posts: 682
Join Date: May 2007
You beat me to it! I was just noticing that switchpro has an option to enable hotspot access. I still couldn't get to it, but the ssid popped up on my laptop.

This feature would make waiting for root soooo much easier. lol

Stupid dhcp...
HomeWork

Svenska Aeroplan Aktiebolaget
 
electronicrice
Old
#4  
electronicrice's Avatar
Senior Member
Thanks Meter 191
Posts: 250
Join Date: Apr 2007
Location: Chandler, AZ
Holy crap dude there it is! That's awesome. Thanks a lot for finding that out. Hopefully it does stay in.
Nexus 4
Stock 4.2.2 Rooted
Galaxy Nexus
Stock 4.2.2 Rooted
Microsoft Surface Pro
Windows 8 Pro with Media Center
Follow me on
---------
 
Master Loon
Old
#5  
Master Loon's Avatar
Senior Member
Thanks Meter 1
Posts: 275
Join Date: May 2007
Location: Norwalk, CT
Were you actually able to connect. My devices keep waiting to obtain an ip address

Sent from my T-Mobile G2 using XDA App
CUrrent: Sensation 4G

OWNED:G2
OWNED:Nexus 1
OWNED:Motorola Cliq
OWNED:My Touch Fender
OWNED:G1.
OWNED:Wing OT7 in a coma
OWNED:MDA (Drowned) RIP
 
cmstlist
Old
#6  
Senior Member
Thanks Meter 345
Posts: 2,497
Join Date: Jan 2010
Location: Vancouver
Rather than install an entirely new launcher, you could probably access this by installing AnyCut and creating a shortcut from there. Good luck to all you folks in G2 land!

Sent from my Nexus One using XDA App
 
sino8r
Old
#7  
sino8r's Avatar
Senior Member
Thanks Meter 411
Posts: 3,043
Join Date: Sep 2006
Location: Birmingham, Alabama
yeah, its not working. good find still though.
evolution
HTC Wizard G3
HTC Excalibur
HTC Dream
HTC Sapphire
HTC Rhodium
HTC Espresso
HTC Glacier
HTC Vision
HTC Doubleshot
Samsung Note 2

My recent works:
2G/3G/4G/H+ icons for CM7.1 and Nightly

How to defeat data throttling

2.1 with JIT enabled on MTS

boot animation (Nexus "X"/HTC "quietly brilliant") for MTS
 
phpdiddy
Old
#8  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Jun 2009
I can get to it, but it's not working for me. Gets enabled, shows up on my laptop, but I never get an IP to use.
 
philosophics
Old
#9  
philosophics's Avatar
Senior Member
Thanks Meter 45
Posts: 979
Join Date: Dec 2009
Location: Um... Does anyone have gps these days?
Quote:
Originally Posted by sherifone View Post
Interestingly enough if you install Launcher Pro or similar you can pop right on over to the Froyo AP settings.

Its very straight-forward, all you need to do is long press your homescreen, create a shortcut/activity that goes directly to the Wifi AP settings, what you are looking for is:

com.android.settings.wifi.WifiApSettings

Its as exactly as you would find on the Nexus One, its just hidden from the standard menus to keep the noobs out I suppose. Hopefully they leave this in, since the cat is out of the bag!
I can't get anything to connect with it though so that's kind of a bust. Nice work on the hunt though!


Sent from my HTC Vision

Google Nexus⁴
Bootloader - MAKOZ10o
Radio - 2.0.1700.48
Recovery - TWRP 2.5.0.0
ROM - PARANOIDANDROID 3.15
 
InGeNeTiCs
Old
#10  
Senior Member
Thanks Meter 51
Posts: 682
Join Date: May 2007
To all of you trying to make it work, it doesn't. Something is disabled in the IP tables or something to that effect. The hotspot menu was removed from the settings.apk from the g2 shipped rom as another way to try and disable hotspot access. Looks like we're getting close!
HomeWork

Svenska Aeroplan Aktiebolaget

Tags
wifi hotspot

XDA PORTAL POSTS

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more

Responses From Ubuntu Pouring Into Ubuntu Touch Q&A Thread

Ubuntu has become the most successful *nix distribution for a number of reasons, … more