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 -vPlace 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 /systemDelete WPA_Supplicant
rm /System/Bin/WPA_SupplicantPlace patched file
cat '/SDCard/WPA_Supplicant vX.X.X' > /System/Bin/WPA_SupplicantFix file flags
chmod 755 /System/Bin/WPA_SupplicantUpdated:
2026 Aug 19

