2

Android 连接SSID隐藏网络以及 LEAP 认证的方法

 2 years ago
source link: https://blogread.cn/it/article/1873?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Android 连接SSID隐藏网络以及 LEAP 认证的方法

浏览:6318次  出处信息

题目很拗口,其实就是在搜狐怎么连入'sohu-office' wifi

话说 Android 虽然从 1.6 就开始支持 802.1x 认证,但是配置 UI 上却只有很少的几项,如果想要做 LEAP 认证就必须取得 root 权限后修改配置文件。

先说说解题思路,因为 android 连接 wifi 和现代 Linux Desktop 一样,都是 wpa_supplicant,而且版本差异应该不会太大,所以我想拿着 Ubuntu 上的配置到 Android 上就应该能用!不管是任何模式的认证,只要你的 Linux 能接入 wifi,Android 也差不多应该能行。

在 Ubuntu 下是 daemon.log,grep 一下 "Config:" 就能看到 supplicant 的配置了。把 root 后 Android 的配置文件(路径在 /data/misc/wifi/ 下面)用 adb pull 下来,然后加入如下内容

ap_scan=2
network={
    ssid="sohu-office"
    scan_ssid=1
    key_mgmt=IEEE8021X
    auth_alg=LEAP
    eap=LEAP
    identity="qiuyingbo"
    password="yourpasswordhere"
}

push 回去,关闭再重启无线网络,sohu-office 就连上了.

注意这里的 ap_scan=2,是针对隐藏网络的。如果没有这一行配置,貌似很难连接上 sohu-office。如果后来又修改了无线配置,有可能这一行配置会被系统自动删除,切记


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK