WiFi-Widget icon indicating copy to clipboard operation
WiFi-Widget copied to clipboard

[Bug] Refresh Button Completely Borked.

Open atikattar1104 opened this issue 8 months ago • 19 comments

Overview

Everytime I Press Refresh Button, Always Shows "No Wifi Connection", Even When App Is Running In Background, With Phone Connected To Wifi, With Internet Access.

How to reproduce

  1. Turn On System Wifi.
  2. Connect To Local Wifi.
  3. Verify Connection To Internet.
  4. Manually Refresh Widget Using Refresh Button.
  5. See Error.

Version

v1.6.4

Android Version

Android 15, Xiaomi HyperOS 2.0.1.0

Device Model

Xiaomi Redmi 13C 5G

atikattar1104 avatar Apr 06 '25 18:04 atikattar1104

Update :- Widget Only Works Under VPN Connections Over Wifi. Not On Traditional Wifi.

atikattar1104 avatar Jul 14 '25 21:07 atikattar1104

Interesting, for me everything works perfectly on Android 13. I'll have to do some testing on Android 15.

w2sv avatar Jul 15 '25 07:07 w2sv

Is There A Way To Obtain Log Info Of What's Happening Behind The Scene? Maybe That Will Be Able To Solve The Problem. Please Let Me Know.

atikattar1104 avatar Jul 15 '25 07:07 atikattar1104

You should be able to do so with LogFox

w2sv avatar Jul 15 '25 09:07 w2sv

Sorry, A Little Late.

Here's Everything I Could Find :-

1752642327.999  1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:network packageName:com.w2sv.wifiwidget
1752642327.999  1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:passive packageName:com.w2sv.wifiwidget
1752642328.000  1000 28319 28369 I SmartPower: com.w2sv.wifiwidget/10430(4323): idle->background(333706ms) R(broadcast start Intent { act=com.w2sv.wifiwidget.action.REFRESH_DATA flg=0x10000010 cmp=com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider (has extras) }) adj=915.
1752642328.008  1000 28319 29957 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.009  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642328.161  1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.162  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642328.293  1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.293  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.251  1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.252  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.411  1000 28319 28939 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.412  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.556  1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.557  1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642333.281  1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:network packageName:com.w2sv.wifiwidget
1752642333.281  1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:passive packageName:com.w2sv.wifiwidget
[2025-07-16 10:23:51.500 Uid(value=1000):28319:28690 I/AppWidgetServiceImpl]
updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323


[2025-07-16 10:29:56.107 Uid(value=1000):28319:30851 I/AppWidgetServiceImpl]
updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323

updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323

[2025-07-16 10:29:56.107 Uid(value=1000):28319:28611 D/AppWidgetServiceImpl]
Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283

atikattar1104 avatar Jul 19 '25 21:07 atikattar1104

Also I Noticed, Sometimes The Widget Refresh Button Works As Expected, But Sometimes It Shows The Same "No Wifi Connection" Text.

atikattar1104 avatar Jul 22 '25 09:07 atikattar1104

Would you mind giving https://github.com/w2sv/WiFi-Widget/releases/download/1.7.1-rc1/1.7.1-rc1.apk a try and see if it solves the issue?

w2sv avatar Aug 03 '25 21:08 w2sv

Nope. Still The Same. Should I Paste Logs About The New Apk?

atikattar1104 avatar Aug 04 '25 23:08 atikattar1104

Also, Neo Launcher Is Having Issues With Widget After Update. Homescreen Refreshes Continuously, And The Widget Is Removed Automatically By Launcher, Immediately After Placing. After This The Continuous Homescreen Refreshing Stops.

atikattar1104 avatar Aug 04 '25 23:08 atikattar1104

Okayy, very strange. I just installed the latest neo launcher from their GitHub releases (I assume you're referring to https://github.com/NeoApplications/Neo-Launcher) and added the widget from the new app version to it, but again, everything works as it should for me. Does the issue only occur in conjunction with neo launcher?

w2sv avatar Aug 04 '25 23:08 w2sv

Yes. It Never Occured When The Same Setup Was In Other Old Device.

atikattar1104 avatar Aug 04 '25 23:08 atikattar1104

The Automatic Removal Of Widget Only Occurs With This Widget. And Also, When I Press And Hold The Widget To Drag And Drop It To It's Place, Entire Launcher Refreshes Several Times, And That's When It Either Get's Misplaced Over Another Widget, Or Gets Removed. This Does Not Happen With Any Other Widgets.

All Other Widgets Work Perfectly Fine, And Can Be Placed Without Any Glitches.

atikattar1104 avatar Aug 04 '25 23:08 atikattar1104

Maybe It Is Related To Launcher-Side Defect, But This Only Happening With This Widget Is A Little Weird.

atikattar1104 avatar Aug 04 '25 23:08 atikattar1104

Hey @atikattar1104, I just released a new version that might solve the issue. Would be great if you could give me some feedback. I suspect it has to do with the fact that before the update being connected to a non-active WiFi network was considered a disconnected state, which I now fixed.

w2sv avatar Sep 20 '25 15:09 w2sv

Ok. Some Improvements, Some Weird Behaviour, But Mostly Usable Now. Here's What I Noticed :-

The Widget Now Works When Value Checkboxes Are Modified. Like If I Enable/Disable Something Like NAT64 Prefix Or Anything From Widget Configuration, The Widget Starts Working Like Normal, While The Refresh Button Starts Working Normally.

But After Some Time When App Is Not In The Android's Recent Apps Page, And I Click The Refresh Button, The No Wifi Connection Text Shows Up, While Wifi Connection Still Exists. And The Same After Clicking It Multiple Times.

But Since I Don't Usually Refresh The Widget Most Often, It Works For Me.

atikattar1104 avatar Sep 20 '25 15:09 atikattar1104

Does that still only apply to usage with Neo Launcher?

And am I right in assuming that you don't actually need to change the widget configuration for it to work, but that it suffices to just open the app and have it in memory?

w2sv avatar Sep 20 '25 19:09 w2sv

Nope, Even System Launcher, Fossify Launcher, And Other Launchers Also Has Issues.

And I Was Wrong About Having App In Memory Makes Widget Work. Only Config Modification Removes No Wifi Connection Text Disappear, And Data Starts Loading As Expected.

atikattar1104 avatar Sep 21 '25 10:09 atikattar1104

Also For The Later Part, As Soon As I Get To Home Screen After Modifying Widget Config In The App, It Immediately Starts To Load Expected Network Data, Without Even Clicking Refresh Button.

Maybe The Way This Works, If Implemented On The Refresh Button, Can Fix It.

atikattar1104 avatar Sep 21 '25 10:09 atikattar1104

As Soon As I Get To Home Screen After Modifying Widget Config In The App, It Immediately Starts To Load Expected Network Data, Without Even Clicking Refresh Button.

For This One, The Launcher Is Not Being Refreshed, Like It Used To Before. It Happens Even Without It.

atikattar1104 avatar Sep 21 '25 10:09 atikattar1104