安卓12,修改wifi热点名称

packages/modules/Wifi/service/java/com/android/server/wifi/WifiApConfigStore.java

    private SoftApConfiguration getDefaultApConfiguration() {
        SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder();
        configBuilder.setBand(generateDefaultBand(mContext));
        //configBuilder.setSsid(mContext.getResources().getString(
        //R.string.wifi_tether_configure_ssid_default) + "_" + getRandomIntForDefaultSsid());
        configBuilder.setSsid("LS1654QB5");
        if (ApConfigUtil.isWpa3SaeSupported(mContext)) {
            configBuilder.setPassphrase(generatePassword(),
                    SECURITY_TYPE_WPA3_SAE_TRANSITION);
        } else {
            configBuilder.setPassphrase(generatePassword(),
                    SECURITY_TYPE_WPA2_PSK);
        }


————————————————
版权声明:本文为CSDN博主「qq_28775927」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_28775927/article/details/127056866

你可能感兴趣的:(系统内容,开发语言)