android wpa_supplicant 调试

1. 编译 android;

2. 修改 external/wpa_supplicant/ 下 src/   wpa_supplicant/  hostapd/  下源文件;

3. 在 external/wpa_supplicant/ 编译, mm 或强制编译 mm -B;

4. 推送文件:

adb remount

adb shell svc wifi disable

ping 192.168.1.1 -n 1 -W 1000 > /nul

adb shell rm   /system/bin/hostapd  hostapd_cli  wpa_cli  wpa_supplicant

        adb push \xxx\android\out\target\product\xxx\system\bin\hostapd  hostapd_cli  wpa_cli  wpa_supplicant   /system/bin/hostapd  hostapd_cli  wpa_cli  wpa_supplicant

adb shell chmod 777   /system/bin/hostapd  hostapd_cli  wpa_cli  wpa_supplicant

adb shell svc wifi enable

adb shell logcat > e:\wpa_dbg.txt

:ping 192.168.1.1 -n 1 -W 6000 > /nul

你可能感兴趣的:(android)