Ad-hoc WiFi

Connection to ad-hoc WiFi is forbidden in Android due to security concerns. The workaround is a patched WPA_Supplicant.

Caution: this remounts /system read-write and replaces /System/Bin/WPA_Supplicant.

Get WPA_Supplicant version

WPA_Supplicant -v

Place patched file on SDCard

Copy the patched binary onto the SD card.

Stop the WPA_Supplicant service

Turn off WiFi.

Access RW mode on the system partition

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

Delete WPA_Supplicant

rm /System/Bin/WPA_Supplicant

Place patched file

cat '/SDCard/WPA_Supplicant vX.X.X' > /System/Bin/WPA_Supplicant

Fix file flags

chmod 755 /System/Bin/WPA_Supplicant
Updated: 2026 Aug 19