Šta je novo?

[Mini HowTo] Ad-hoc podrška za Android i Windows 7

DuleC

Slavan
Učlanjen(a)
11.11.2004
Poruke
2,085
Poena
390
Ukoliko imate root-ovan telefon baziran na Android platformi, internet, WiFi karticu, ali ne i bežični ruter, evo jednog rešenja kako omogućiti WiFi internet na Vašem telefonu. Na kompjuteru je potrebno formirati Ad-hoc mrežu, a u tome je ujedno i problem. Naime, Android OS nema podršku za Ad-hoc tip konekcije i mreža ovog tipa neće biti vidljiva telefonu, te je potrebno instalirati jedan patch.

MQleg.jpg

Postupak je sledeći:
Na telefonu:
1. koristeći adb ili neku od Terminal aplikacija sa marketa, proveriti koja je verzija wpa_supplicant fajla instalirana, kucajući sledeće:
Kod:
wpa_supplicant -v
2. u zavisnosti od verzije, skinuti odgovarajući fajl sa linka u citiranom delu teksta
3. u Recovery modu uraditi Nandroid backup
4. kopirati skinuti .zip fajl u root SD kartice telefona
5. iz Recovery menija flešovati fajl
6. restart telefona

Na kompjuteru:
1. izvršiti Bridge LAN adaptera i WiFi kartice da bi bilo omogućeno da se wifi kartica "ponaša kao wireless ruter". U meniju Network Connections (Control Panel > Network and Internet > Network Connections) selektovati oba adaptera i preko padajućeg menija kliknuti na opciju Bridge.
2. kreirati Ad-hoc mrežu (Control Panel > Network and Internet > Manage Wireless Networks) prateći uputstva. Podržani tip enkripcije je WEP, ali ne i WPA/WPA2.

Posle navedenih koraka, Ad-hoc mreža će biti vidljiva na mobilnom telefonu, obeležena znakom * čime je obeleženo da se radi o Ad-hoc tipu mreže.

NAPOMENA: Testirano i potvrđeno da radi na Windows 7 operativnom sistemu i HTC Magic telefonu.

Tekst preuzet sa eXopBLOG-a:
eXopBLOG je napisao(la):
Ad-hoc support for Android
Whether you’re on the go or behind your desk, there will always be moments when the only option for a internet connection is wired. For laptops that isn’t really a problem and for Android the 3G data connection is an option. Unfortunately it’s quite expensive, especially when your contract with your carrier doesn’t include it.

Many people did already consider using ad-hoc networks, but unfortunately Android doesn’t support them. Until now!

What it’s all about
It was already known that it’s a software problem. It just needed some guru to fix this. With his findings we’re able to activate ad-hoc support for Android.

The patch changes the following things in the wpa_supplicant file that can be found in /system/bin:

  • Removes the [IBSS] flag from scan results
  • Masquerades and demasquerades ad-hoc SSID with (*) prefix
  • Sets mode 1 (ad-hoc) if the ssid is for IBSS
  • Permits the supplicant to select an IBSS when associating to a given SSID
  • Someone on XDA compiled this patch and made a signed patch

Versions
The wpa_supplicant file comes in different versions. You should test which one is running on your device before applying the patch.
Which can be done by a shell, either through adb shell or by using an app like ConnectBot. Run the command wpa_supplicant -v.

In case of v0.5.11:
Download wpa_adhoc-signed.zip

In case of v0.6.00:
Download wpa6_adhoc-signed.zip

Applying the patch
MAKE A BACKUP FIRST!

You’ll need a rooted Android device, else it wouldn’t be able to access that file. A recovery ROM could also be handy for newbies.

Place the zip-archive in the root of the sd card and flash the zip using a recovery ROM.

Once back in Android it will be able to find and connect to ad-hoc network. Those are indicated by an asterisk (*).

Drawbacks
At this moment the only encryption supported is WEP. Not the safest around, but it will do the trick for now.
Hopefully Android will natively support various secured ad-hoc networks in the future.

Afterwords
If you aren’t familiar with all of the terms used above, you probably haven’t got a lotexperience with rooting Android devices. If so, a good way to start is at XDA-Developers Wiki.

Once you’ve learned how to install custom ROMs, use adb, etc the info above will be easy.
 
Nazad
Vrh Dno