Drop SSID display from settings, connection pill shows generic "Connected"
Real hardware testing (Pixel 10a) showed NetworkCapabilities.getTransportInfo() consistently returns a redacted WifiInfo (SSID "<unknown ssid>", masked BSSID) even for the app's own self-requested WifiNetworkSpecifier network, disproving this codebase's prior assumption of a self-request exemption from ACCESS_FINE_LOCATION for that API path (confirmed via native diagnostic logging cross-checked against `adb shell dumpsys wifi`, which does show and correctly attribute the true SSID at the OS level). Rather than add a location permission with a runtime prompt purely for this cosmetic display, the settings pill now just shows "Connected". Documented as decision 4.24.
This commit is contained in:
@@ -35,15 +35,6 @@ final wifiLinkErrorReasonProvider = Provider<LinkErrorReason?>((ref) {
|
||||
return ref.watch(wifiTransportProvider).lastErrorReason;
|
||||
});
|
||||
|
||||
/// Reaktive tatsaechliche SSID des verbundenen Netzes (Doku: "connected
|
||||
/// pille soll den WiFi-Namen anzeigen") - eigener Stream statt Ableitung aus
|
||||
/// [wifiLinkStateProvider], weil Android die SSID fuer WifiNetworkSpecifier-
|
||||
/// Netze oft erst nachtraeglich liefert (siehe UdpTransport.connectedSsidChanges/
|
||||
/// MlrsNetworkPlugin.kt), also ohne begleitenden LinkState-Wechsel.
|
||||
final wifiConnectedSsidProvider = StreamProvider<String?>((ref) {
|
||||
final transport = ref.watch(wifiTransportProvider);
|
||||
return transport.connectedSsidChanges;
|
||||
});
|
||||
|
||||
/// Zeigt an, ob gerade UDP-Pakete ankommen ("receiving"/"not receiving"),
|
||||
/// unabhaengig vom (binaeren) Verbindungszustand - der Socket kann offen
|
||||
|
||||
Reference in New Issue
Block a user