From e15768865c2aa4d873f66eddc8027bb2a0304f97 Mon Sep 17 00:00:00 2001 From: donghualin Date: Thu, 5 Mar 2026 17:31:34 +0800 Subject: [PATCH] fix: Add WiFi password input flag for lock screen and login interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a flag to the NetManagerFlag enum in nettype.h to enable WiFi password input functionality on lock screen and login interface. When the lock screen or login interface detects this flag, it will display a WiFi password input dialog, allowing users to enter WiFi passwords to connect to networks. This addresses the issue where users couldn't connect to WiFi networks from lock screen or login screen due to missing password input capability. The bug was caused by the lack of proper flag configuration in the Net_LockFlags and Net_GreeterFlags enum values, which prevented the WiFi password input dialog from being triggered in lock screen and login scenarios. Log: Added new flag configuration to enable WiFi password input functionality for lock screen and login interface scenarios. PMG: BUG-350613 fix: 为锁屏和登录界面添加WiFi密码输入标记 在nettype.h文件的NetManagerFlag枚举中添加了标记,用于在锁屏和登录界面启用WiFi密码输入功能。当锁屏或登录界面检测到此标记时,将显示WiFi密码输入对话框,允许用户输入WiFi密码来连接网络。这解决了用户在锁屏或登录界面无法连接WiFi网络的问题。 该bug的原因是Net_LockFlags和Net_GreeterFlags枚举值中缺少适当的标记配置,导致在锁屏和登录场景下无法触发WiFi密码输入对话框。 Log: 添加新的标记配置,启用锁屏和登录界面的WiFi密码输入功能。 --- net-view/operation/nettype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-view/operation/nettype.h b/net-view/operation/nettype.h index 45ff32aa..28e5fa8e 100644 --- a/net-view/operation/nettype.h +++ b/net-view/operation/nettype.h @@ -106,8 +106,8 @@ class NetType Net_SysProxyAlwaysShow = 0x08000000, // Net_DockFlags = Net_Device | Net_VPN | Net_SysProxy | Net_Airplane | Net_AirplaneTips | Net_VPNTips | Net_tipsLinkEnabled | Net_UseSecretAgent | Net_CheckPortal | Net_8021xToControlCenterUnderConnect | Net_autoUpdateHiddenConfig, - Net_LockFlags = Net_Device | Net_VPN | Net_SysProxy | Net_Airplane | Net_AirplaneTips | Net_VPNTips | Net_UseSecretAgent | Net_CheckPortal | Net_8021xSendNotifyUnderConnect, - Net_GreeterFlags = Net_Device | Net_Airplane | Net_AirplaneTips | Net_ServiceNM | Net_AutoAddConnection | Net_UseSecretAgent | Net_CheckPortal | Net_8021xSendNotifyUnderConnect, + Net_LockFlags = Net_Device | Net_VPN | Net_SysProxy | Net_Airplane | Net_AirplaneTips | Net_VPNTips | Net_UseSecretAgent | Net_CheckPortal | Net_8021xSendNotifyUnderConnect | Net_autoUpdateHiddenConfig, + Net_GreeterFlags = Net_Device | Net_Airplane | Net_AirplaneTips | Net_ServiceNM | Net_AutoAddConnection | Net_UseSecretAgent | Net_CheckPortal | Net_8021xSendNotifyUnderConnect | Net_autoUpdateHiddenConfig, Net_DccFlags = Net_Device | Net_VPN | Net_VPNChildren | Net_SysProxy | Net_Hotspot | Net_Airplane | Net_DSL | Net_Details | Net_SysProxyAlwaysShow, // Net_8021xMask = 0x00000F00,