Category Archives: hacks

Subscribe

Ad-hoc Wifi in Android

Suppose you want one Android phone to connect to another. Unfortunately, the WifiManager in stock Android ignores ad-hoc networks. There are a couple ways around this:

  • One is to modify the Android framework to support ad-hoc networks (I recall seeing some custom ROM for Samsung Moment that had this).
  • Another is to manually configure the wpa_supplicant to connect to an ad-hoc network.
  • Yet another one is to patch the wpa_supplicant to pretend that ad-hoc networks are regular access points. This was my method.
read more »