zinwalin
V2EX  ›  Android

安卓 10 定制-如何预置 WiFi SSID 和密码

  •  
  •   zinwalin · Dec 13, 2022 · 13573 views
    This topic created in 1423 days ago, the information mentioned may be changed or developed.

    烧录完安卓 10 的镜像后,开机启动后想让设备自动连接预置的某一 WiFi SSD 和密码。

    应该在哪里加?

    3 replies  •  2022-12-14 18:54:14 +08:00
    dot
    dot
    Dec 13, 2022❤️1
    1
    android - AOSP - Adding Default Wifi SSID - Stack Overflow
    https://stackoverflow.com/questions/21705216/aosp-adding-default-wifi-ssid
    zinwalin
    zinwalin
    OP
    Dec 14, 2022
    2
    @dot 改成这样,但是不起作用。

    cat android/external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_template.conf

    ##### wpa_supplicant configuration file template #####
    update_config=1
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    pmf=1
    p2p_add_cli_chan=1

    network={
    ssid="8PRODWIFI"
    psk="3ZwF4b7mzNtWcUd@MV!sq9tV"
    key_mgmt=WPA-PSK
    priority=42
    }
    zinwalin
    zinwalin
    OP
    Dec 14, 2022
    3
    改成在 Launcher 里连接默认 WiFi, 可以用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4878 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:18 · PVG 09:18 · LAX 17:18 · JFK 20:18
    ♥ Do have faith in what you're doing.