yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
only by send to HTC or t mobile.

don't tell them you flashed, just say you woke up and it wouldn't turn on.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] DN41:
sorry samsamuel, i know you're a really knowledged man around here, but do you really think they don't know what has bricked the phone? :D

DN41
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
heh, course they know, but burden of proof and all that.

Go look in the tmous section, loads of people have gotten them exchanged/fixed after flashing the wrong radio. it won't power on so they can't see that hspl is on there.

just like if you send one back with for example a 1.66 rom and 1.42.0000spl, (or for tmous, 2.13 rom and 2.08.0000 spl) it can only get like that from using hspl,,, but they still replace it cos its stock.

but if you admit it, however, then they can just laugh at you and charge you 150 dollars or whatever it is for a new mainboard.

(unless there's a htc tech reading this and thinking "oh, of course, d'oh",, in which case sorry for pointing it out, hehe)
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] 12793080:
How to reapair it?

pls help me all user.

thanks.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] DN41:
thanks samsamuel, you're right.

but for me, it belongs to the owner, if he does something like that or not.

you see, i'm a person, who nearly always want to do the right :P

and this is for me against the law...its just cheating..and thats something I (yeah only me) won't do...

it doesnt matter if others do so, but yeah..i won't :D

back2topic: theres no chance to repair it. the way to get a new one is described by samsamuel...if you'd read the posts carefully, you would have read it...

DN41
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] 12793080:
pls help me all user.

thansk.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] DN41:
please dont ask again. that wont help.

THERE IS NO CHANCE TO REPAIR IT!

THE ONLY WAY IS TO GIVE IT TO T-MOBILE OR HTC!

sorry, but you didnt read carefully. if you would had done so, you would know that a .51 radio bricks a tmous-device!

DN41
[HD2 Android Q&A, Help & Troubleshooting and Genera] kmeta:
Hello guiz

I instaled Android - all working very good, but can't see phone (SD card) via USB.

With same cable i no problem under WM. I use Win7.

Can you help me ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] proofhitter:
Search for droid explorer.
[HD2 Android Q&A, Help & Troubleshooting and Genera] thatruth132:
search is your friend
[HD2 Android Q&A, Help & Troubleshooting and Genera] mr_billionaire:
When you plug in your phone, 2 notifications pop up, one saying Debug Mode, the other saying USB Connection, click on the USB Connection one and hit "Turn USB Connection On" then click "OK" and your done.

Sent from my HTC HD2 running DarkStone HD2Froyo v1
[Desire Android Development] daveba:
Just tried this out and it connected to my laptop adhoc wireless fine. Wish the rom creators will put this in their builds...

http://xdaforums.com/showthread.php?t=754961

Use the one at the bootom of the page as it has a newer wpa_supplicant 0.6.10
[Desire Android Development] prove:
Sounds great, have to try this out!
[Desire Android Development] neowlchaz:
why would we need this when we have the HTC mobile hotspot app?
[Desire Android Development] daveba:
Mobile hostpot is to use the desire's wifi as a hotspot for connecting *other* devices to use the 2g/3g network.

This is for connecting the desire to a adhoc network like the wifi network on your laptop. Some laptop wifi cards for example can set them selves into AP mode so they are a true access point and the desire can connect to it, however most cards don't support that mode (well mine doesn't anyhow) so you need to create a ad-hoc network on your laptop that ultimately routes out to the internet via your wired network connection. This is where the desire cannot connect to that ad-hoc network without this 'hack'.

When you are roaming this is invaluable with extortionate roaming data charges so this is a way to reuse your wired connection on your laptop as a gateway for your desire. It's in effect a reverse hotspot.
[Desire Android Development] mattiadj:
Wonderful!!!!!

Finally!!!!I'm searching it from a lot of time!!!!

Now all works wonderful!!!

Thanks a lot to all!!
[Desire Android Development] daveba:
I noticed that the binary in the link above was for an older wpa_supplicant (0.5.11) and Desire and the new froyo's are on 0.6.10 of wpa_supplicant so i repatched and compiled.

For those with the writeable /system hack, just disable wifi, push this on your /system/bin and reenable wifi. Else push this at recovery time

adb push wpa_supplicant /system/bin/

I also changed the "(*)" prefix for adhoc networks as i didn't like the look of the wifi list so now it's changed to "(adhoc)" suffix for adhoc networks it sees.

Diff and binary attached below.
[Desire Android Development] bleh815:
Why not provide as Update.zip ? Thanks!
[Desire Android Development] Orphee:
Thank you, it seems to work, but no possibility to set a protection on the wifi, no ask for password...
[Desire Android Development] daveba:
Strange, works for me. I've set up a WEP on my linux lappie wifi card and it works fine and pops up the password dialog.
[Desire Android Development] daveba:
Ok, try this
[Desire Android Development] Orphee:
I tried WPA AES ...
[Desire Android Development] bleh815:
Kudos 10char
[Desire Android Development] daveba:
http://www.sprintusers.com/forum/archive/index.php/t-195868.html

try tkip ?
[Desire Android Development] Lior84:
Can anyone post a complete guide what to do in my desire and what to do in my pc using WinXp or Win7.

*With Ad-hoc I can share my internet connection from notebook with desire and inverted ?
[Desire Android Development] Orphee:
WPA AES works well in AP mode (I can switch my PCI can into AP mode)
[Desire Android Development] daveba:
Strange, then this must be a generic bug with ad-hoc networks (i.e. not something this patch/hack has introduced) so you will see the same results if you edit the wpa_supplicant.conf files manually correct ? It looks from this that adhoc supports only open or WEP encrypted network (in wifi tether too you can only use WEP). See the thread here:

http://xdaforums.com/showthread.php?p=7726880
[Desire Android Development] tochie009:
Yeah I need that too. I have gone through the thread but I didnt understand how to go about connectiong my HTC Desire to my laptop's internet...Pls help!
[Desire Android Development] daveba:
Flash the zip provided in the thread, and google 'windows setting up adhoc network'

Ensure not to choose WPA2-AES key for the password, but a WEP password. Then select wifi networks on your phone and choose your network and put in the password you selected.

For linux it's easy too. First disable wifi scanning on your applet in the top right as you want to disable it as a client and make it as a server. So as root do this (assuming your wireless interface is called wlan0) and want to create a network on 10.0.0.x

DEV=wlan0
iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 >/proc/sys/net/ipv4/ip_forward

ifconfig $DEV down
iwconfig $DEV essid 'Laptop WiFi'
iwconfig $DEV mode ad-hoc
iwconfig $DEV key s:mykey
ifconfig $DEV 10.0.0.1 netmask 255.255.255.0
/usr/sbin/dnsmasq --dhcp-range=10.0.0.2,10.0.0.10 -x /tmp/dnsmasq-$DEV.pid -i $DEV
[Desire Android Development] phunkycow:
Thank you very much for this hack, Daveba! Don't really need this as of now, but could be handy in the future. :) One, probably silly question, does it have any negative impact when connecting to a standard Wi-Fi router, or it just provides additional functionality?

Hopefully we can see this included in various Roms soon.

Good day! :)

Sent from my DynaTAC 8000X.
[Desire Android Development] daveba:
Well please don't credit me with the work. As noted in the first post, the initial patch was released for an older version of wpa_supplicant. I've just updated it for wpa_supplicant 6 and changed some aesthetics on the wifi list page on the phone. Remember again this is a hack and should really be inherently supported by the OS. I suggest people read issue 82 and star the issue for greater visibility.

I would like to know if anyone sees any negative impact with this hack. The only thing i see is that the phone doesn't automatically disconnect from the ad-hoc network if i take it down on my laptop or i move away from the signal range. It will drain the battery if not manually disconnected. This is a small 'bug' for what (in my opinion) is such a hugely important function. Hell even the iphone, the nokia E71, etc can do this out of the box and i get laughed at at work (until now).
[Desire Android Development] shixue:
my desire unable to obtain ip...tried manually set static ip, it will keep on reconnect

LeeDrOiD_v1.9

Radio 5_09_00_20

Hboot 0.82
[Desire Android Development] perettigiuliano:
IT WORKS!!!

Great!

Fantastic!

Now i can handle my desire through wireless with adbwireless!!!
[Desire Android Development] mminbcn:
I can confirm that this solution works perfectly with [ROM-FroYo] Official Froyo HTC Sense ROM v1.0c (http://xdaforums.com/showthread.php?t=726300).

wpa-adhoc-0.6.10.zip didn't work.

wpa6_adhoc-signed.zip worked correctly: http://xdaforums.com/attachment.php?attachmentid=382282&d=1282069697
[Desire Android Development] daveba:
Strange, they're both the *exact same* wpa_supplicant binary from me.

jar tvf wpa-adhoc-0.6.10.zip system/bin/wpa_supplicant
312440 Wed Aug 18 12:16:44 GST 2010 system/bin/wpa_supplicant

and

jar tvf wpa6_adhoc-signed.zip system/bin/wpa_supplicant
312440 Tue Aug 17 13:12:42 GST 2010 system/bin/wpa_supplicant

One is signed and the other not, so you've essentially not got the checkbox on in your ROM to trust 3rd party zips that's all.
[Desire Android Development] Niggo372:
Hey,

I've pushed the wpa_supplicant file in my /system/bin dir, but now my WLAN doesn't work anymore. When I activate WLAN it tries to scan for available networks but stops and tells me "unable to scan for networks". What am I doing wrong?

Also: what is the diff.txt file for?

Device:

Nexus One

Froyo FRF91

Thanks,

Niggo
[Desire Android Development] FordT:
Same problem here with OpenDesire 4.0, radio 5.09.05.30_2

It sees the network, tries to connect but balks every time after a short time of "trying to obtain IP address" (my translation). With a static IP address it's the same, only faster :D

It doesn't really matter if I use OpenDesire 4.0 as it comes or whether I flash the zip provided here. Only difference is, with the zip it adds a "(adhoc)" to the SSID name...

Any hints?
[Desire Android Development] hemant.virgo:
Is it only for Froyo, or it will work for 2.1 as well ?
[Desire Android Development] daveba:
Yup it should. I've heard reports it works fine..
[Desire Android Development] yassero:
If the PC is connected to Wifi, there is no reason the Android device wouldnt be connected as so aswell.

Is there anyway I can share the internet on my notebook to my Android through USB cable, just like Activesync on WM ?

I can ofcourse use Wifi & connect to the same network my notebook is connected to, but the reason I wanna do this is to save power of the Android device by not using Wifi.
[Desire Android Development] daveba:
Of course. Why not ? It's very simple - but i won't give you exact details. You need to do homework first.

So you need 2 things:

1. adb

2. openvpn (on both your laptop and the android - most rooted roms come with this).

First, use the 'adb forward' command which will forward an arbitrary tcp port from your laptop to the android.

Second set up openvpn on your laptop in server mode to listen on the port you chose.

Third, start openvpn from the openvpn settings applet GUI to connect to the openvpn on your laptop

You will also need to set up routing on your laptop to route packets from the tun device and masquerate appropriately and also a DHCP server to run on laptop to give out an address to your phone if you want (or you can set up a static ip in your conf file)

Very easy really.

Done.

P.s before people ask/comment, i use openvpn here as it will allow everything on the phone to work (i.e. all apps). Of course with just adb you can forward tcp ports like 443, 80, etc, but you'd have to do them individually. This way all tcp and udp connections will work.
[Desire Android Development] yassero:
It is a bit complex specially that I am unaware how to use those 2 needs apps. I hope there is a more simplified solution just like Activesync sharing internet thru USB connection on WM. Or if you can guide us with exact action steps to be taken, that would be best.

Thanks.
[Desire Android Development] prasetya:
how to push to system? i'm failed using that command to my desire :(

C:\AndroidSDK\tools>adb push wpa_supplicant /sytem/bin/

failed to copy 'wpa_supplicant' to '/sytem/bin/': No such file or directory

help me please..
[Desire Android Development] daveba:
Try spelling 'system' correctly. I agree it was my typo, so not blaming you. Also you'll have to do that in recovery, as perhaps your Desire doesn't have spl-off.
[Desire Android Development] webvan:
That's clearly a killer mod, unfortunately it only seems to work on HTC devices, at least it doesn't work on the Motorola Milestone, neither the 0.5.11 or the 0.6.10. Dexter_nlb who created the MotoFrenzy (Froyo 2.2 for milestone) ROM thought it might have something to do with the chip/driver

Not sure what's involved in patching the code into the wpa_supplicant, but here is a link to the Milestone's wpa_supplicant from 2.1update1 (it's v0.5.11) : http://dl.dropbox.com/u/904989/wpa_supplicant - do you think you could try patching it with szym's code ?

Thanks !
[Desire Android Development] interqd:
hi all

so, how actually is the way to enable desire to detect ad hoc??

is it enough by installing .zip that uploaded in page 1? or must be installed through adb ?
[Desire Android Development] daveba:
If your /system is writeable (you've installed the sploff tweak to Desire, or you have a non-restricted phone) you can just stop your wifi (which stops the wpa-supplicant binary) and then copy the binary from the zip and chmod it appropriatey. Else flash it via recovery.
[Desire Android Development] daveba:
You can't patch a binary in your link.. Must be the chip not going into ad-hoc mode - must be a moto h/w limitation. Does wifi tether work ? Moto could have a crippled firmware for your chipset which disables ad-hoc mode because they don't want you to use tethering over 3g. You need to uncover a full firmware or use the one from your wifi thether app (if there is one for moto)
[Desire Android Development] pascanu:
After applying the patch SwiFTP stops working. I also tried the other FTP Server app from the Market: same result. Can someone confirm my findings?
[Desire Android Development] interqd:
hm.. i dont understand the method.. i think will just flash it.. thx..
[Desire Android Development] webvan:
Thanks, had missed your reply.

Well the file editing trick works, it's the replacement wpa_supplicant that doesn't, it stops scanning for wifi networks, not sure why, very different file sizes. Dexter_nlb thought the binary needed to be updated from using a "wext" device (what HTC uses?) to a tiwlan driver and device, any reference to wext in your patched file?

Are you saying there will be a wpa_supplicant binary provided with a tethering app? I'll go looking.

Out of curiosity how did you apply the patch if you didn't start from a decompiled wpa_supplicant?
[Desire Android Development] daveba:
Ah, i didn't realise you had a texas instruments chip on the moto.

I didn't decompile the wpa_supplicant since there is source code for it.
[Desire Android Development] webvan:
ah ok, does that source code give any details on what needs to be subsituted depending on the WiFi chip ?
[Desire Android Development] daveba:
Nope, so i'm surprised it doesn't work for you. There's no chip specific stuff in there, but if i remember rightly you needed to make different changes in the conf file for the ti chip rather than the broadcom one
[Desire Android Development] webvan:
Hum...the plot thickens! Not sure whether different changes need to be made, the only detailed guide I'd found for the config files was http://www.wissamidrissi.com/2010/02/how-to-connect-android-phone-to-your-ad.html and it seemed to be for a ti chip based on "tiwlan"...

Can you point me to where the wpa_supplicant source code is available?
[Desire Android Development] webvan:
I'm about fed up with my Milestone bought from Amazon US, for a start it doesn't have 3G bands for the US and now no tweaking of the wpa_supplicant to activate AdHoc...

Does anyone know if this trick works on any Android phone with a keyboard? Must say I'd find it hard going back to not having one. The G1 maybe ?
[Desire Android Development] foofmonkey:
I've noticed a couple of people asking about this but no answers, wondering if anyone had any ideas - htc desire (rooted stock 2.2) stuck on obtaining ip address. As far as I know, normal wifi networks work alright.

thanks,

Matt

*edit, nevermind, seems to be a problem with my pc, used connectify and worked like a dream! thank you!!! :D
[Desire Android Development] foofmonkey:
Sorry to double post, but I've found that since flashing this I can't get an internet connection from a normal open (haven't been able to check secure yet) network, is it related?

Matt
[Desire Android Development] daveba:
http://wiki.cyanogenmod.com/index.php?title=Main_Page

See the 'Building from Source' section at the bottom
[Desire Android Development] daveba:
Should not be related. The wpa_supplicant code is from the same tree and only additional bits for adhoc.
[Desire Android Development] webvan:
Has anyone gotten this tweak to work on an Android tablet like the Witstech A81E - Nationite MIDNite ?
[Desire Android Development] kancaras:
after i pushed this i wasnt able to start wifi at all. anyone has a working modified wpa_supplicant for samsung i5800 galaxy 3? its 0.6.9 version

and on my phone there is no tiwlan.ini, instead there is wpa_supplicant.conf with the folowing options inside:

#network={

#	ssid="test adhoc"

#	mode=1

#	frequency=2412

#	proto=WPA

#	key_mgmt=WPA-NONE

#	pairwise=NONE

#	group=TKIP

#	psk="secret passphrase"

#}

would it do any good if i'd uncomment it?
[Desire Android Development] speedrapid:
your method didn't work with the latest ROM RUU_Bravo_Froyo_HTC_WWE_2.29.405.2_Radio_32.49.00. 32U_5.11.05.27

maybe it because has different wpa supplicant version ?

how to check it anyway ?
[Desire Android Development] subvertbeats:
thanks, worked great :)
[Desire Android Development] speedrapid:
please update the patch for 2.29.405.2 :'(
[Desire Android Development] alphahere:
Works perfectly with T-Mobile Vision G2 - OTA updated rom.

I really needed this patch. I'm moving from an old nokia e71 to G2. I was shocked that ad-hoc was not in the stock rom but standard in the nokia. I need this more than tethering.

Thanks again!
[Desire Android Development] veliksam:
iOS tethering to SG Tab?

Hi, I'm trying to use MyWi 4.0 on an iPhone 4 to tether to my tab, did everything as instructed, the tab finds my phones adhoc network but is stuck at "obtaining IP address"! Any Ideas? I know must of u don't care for iOS but please try and help!:o
[Desire Android Development] webvan:
Try selecting channel 11 in MyWi ;-)
[Desire Android Development] veliksam:
I will try that now. Thanks
[Desire Android Development] veliksam:
No success, still saying the same! :confused:
[Desire Android Development] webvan:
Turn WiFi on/off as well as MyWi.
[Desire Android Development] veliksam:
Tryied that too, again nothing. Hopefully a solution will be found 1 day:confused:

I think it might have to do with the supplicant file itself, maybe some1 needs 2 add some additional commands for the iPhone wifi, or edit. Anyways, I appreciate your effort. :)
[Desire Android Development] webvan:
You might want to stick to your original supplicant and do the file modifications as it works for me with MyWi on my iPad (only on channel 11 though) and if it works you can set up that nice script here http://www.chinadigitalcomm.com/android-a81/a81e-connect-to-ad-hoc-wifi-t1413.html to go from Wifi AdHoc to standard 3G.
[Desire Android Development] veliksam:
With the original supplicant file it does not even see the MyWi adhoc network, however when I replaced it, it was found. I can't really do anything with the link you gave me because I am novice at all this command line stuff. Thank friend. :)
[Desire Android Development] josdehaes:
thx, works for me on the 2.29 ROM :-)
[Desire Android Development] veliksam:
Hey, for some reason I tried it today with the same settings and it works! MyWi 4.0 on iPhone 4 to GS-Tab via adhoc Works! Awsome, thanks for this everyone!:)
[Desire Android Development] Defbrett:
Tried this on my (US)Galaxy Tablet (t-mobile) and the ad-hoc worked great and tethered to my rooted MyTouch but, when I tried to change back to my WEP Wifi for my home it keep going in a circle of Connecting..., Disconnecting..., Connecting..., Disconnecting... etc.

Even after a doing a factory reset i'm still unable to connect.

Any thoughts?

*update

Had to erase all internal data as well as factory reset..man that was rough but, i guess apart of the risk we take =)

Still curious why i can't easily switch between ad-hoc tethering and regular wifi. I'll keep trying some more things and provide an update if i find anything.
[Desire Android Development] tegrevboy:
Just wanted everyone who had a hand in the wpa_supplicant file fix for AdHoc wireless access points to know how thankful I am . It worked GREAT!!!.

I am using MyWi on my Iphone right now with my VZW Samsung Galaxy Tab (no data plan). And for everyone that cant get it to work on their device keep looking and reading , and reading and researching. Thanks again for all of the info you guys have given out.

:)
[Desire Android Development] Defbrett:
Ugh...:confused: just bricked my wifi trying to "fix" this connecting, disconnecting problem. I think i renamed some hidden files or, deleted them. Also my root explorer app simply won't overwrite or, rename my files.

Anybody have these original(factory) root folders they can send me.

/etc

/etc/wifi

System/etc

system/etc/wifi

...i'm noticing my device no longer has a MAC address...i imagine that's a problem but, what's killing me is that a factory reset doesn't really restore my device back to working condition anymore. I've also tried the hold vol up + power boot stuff too and no luck..

any suggestions?
[Desire Android Development] Ersill:
It says "Unable to scan for newtorks" and turns off. Using that attachment on a ZT-180 (Android 2.1). Now I'm trying "wpa-adhoc-0.6.10"
[Desire Android Development] atulgoswami21:
I Had a try of editing tiwlan.ini and wpaconfig files..

I have done 50 %.

Milestone able to find the adhoc network but in the loop of "obtaining ip address" and "remebered"

Please Help Me Guys

waiting Eagerly .

Together we can.....
[Desire Android Development] josephting:
I can't push wpa_supplicant to /system/bin/, it says it's read only file system.

When I push it in recovery mode, it says the device is not found although I've plugged in the cable.

USB Debugging mode is checked.

I looked up on the Internet and someone said adb remount will help.

But an error like no such directory message is displayed when I try that.

Anyway, this is Galaxy S I9000 on Froyo 2.2. Tried flashing update.zip but it wouldn't pass the verification process because it's 3e.

Please let me know what else can I do. Thanks! :D

P/S: Tried Install ROM from SD Card using ROM Manager but it didn't work. Same as apply update.zip in recovery mode.
[Desire Android Development] Skatedawg:
EPIC WIN!!!! (and no, not the phone) You have just convinced me to keep my tab. Thank you sir.