WiFi Scan result avaible - issue

Post your questions and help other users.

Moderator: Martin

StrayCat
Posts: 31
Joined: 21 Nov 2013 12:51
Location: Ponferrada, Spain

Re: WiFi Scan result avaible - issue

Post by StrayCat » 02 Jul 2019 17:39

Same here.

Tons of flows aren't reliable anymore on my Huawei Mate 9 Pie.

Regards.

Marfo
Posts: 7
Joined: 04 Jan 2017 11:29

Re: WiFi Scan result avaible - issue

Post by Marfo » 02 Jul 2019 18:01

I look closely on all permissions, Automagic is excluded from battery optimization, can work in background, is device admin, wifi scanning is on etc. I don't know what can I do more, everything is like on Anrdoid 8, but in night when phone is not used Automagic don't get wifi scan results.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 04 Jul 2019 09:36

If phone is not active it don't get scanning results, it's just empty.
Yes, i think this is right.

The question is: It's an Android 9 issue or Automagic need an update to workaround this ?
Xiaomi MI 6

Rom Miui 10 EU STABLE

Marfo
Posts: 7
Joined: 04 Jan 2017 11:29

Re: WiFi Scan result avaible - issue

Post by Marfo » 05 Jul 2019 05:42

I have made a simple flow. Trigger - Wifi Scan results available and then write to file with date and list of ssids. It looks like if phone is inactive for some time, trigger is starting flow but the list of ssids is empty. When I wake up phone, list of ssid starts to appearing. Question as above, where is the problem in Pie or in Automagic?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi Scan result avaible - issue

Post by Desmanto » 06 Jul 2019 17:12

Maybe it is restriction from android pie above. Where the device won't give any wifi scan result when in doze mode. If you have root, you can try to use action Exit Device Idle/Doze mode periodically. See if the wifi scan result have the result again after exit from doze. But a simple periodic timer should have wake the device. Maybe you should wake the phone once in a while during certain interval.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: WiFi Scan result avaible - issue

Post by Martin » 06 Jul 2019 20:11

Maybe it's caused by the throttling introduced by Google on Android 9+. Here's a good article about this: https://www.xda-developers.com/android- ... ling-apps/

Unfortunately there's usually no way to fix such issues and often no workaround exists since Google deliberately introduces such changes.

Huawei is also known to add battery saving features. This page lists some known issues often encountered on the popular devices and some workarounds: https://dontkillmyapp.com/

Regards,
Martin

Marfo
Posts: 7
Joined: 04 Jan 2017 11:29

Re: WiFi Scan result avaible - issue

Post by Marfo » 09 Jul 2019 19:40

Desmanto wrote:
06 Jul 2019 17:12
If you have root, you can try to use action Exit Device Idle/Doze mode periodically.
Unfortunately I still not have root on my S8, and this mentioned action requires root access. After warranty I will sell this device or root it, but at this time I don't want to lose warranty.

Marfo
Posts: 7
Joined: 04 Jan 2017 11:29

Re: WiFi Scan result avaible - issue

Post by Marfo » 09 Jul 2019 19:53

Martin wrote:
06 Jul 2019 20:11
Maybe it's caused by the throttling introduced by Google on Android 9+. Here's a good article about this: https://www.xda-developers.com/android- ... ling-apps/
I think that you are right. Problem is also with trigger WiFi scan results available. I think that if there is no results of scan it should not start. Right now it get results with 0 WiFi SSID's, so all conditions/actions related with WiFi scan behave like there is no any WiFi available and it not works properly. I use WiFi scanning to know at what location my phone is. It was quite good for battery, accurate and it gives fast results. Right now it is hard to use. Maybe you have some ideas how to make it to work better 🙂.

StrayCat
Posts: 31
Joined: 21 Nov 2013 12:51
Location: Ponferrada, Spain

Re: WiFi Scan result avaible - issue

Post by StrayCat » 10 Jul 2019 10:15

Without WIFi SCANN RESULTS this app is useless for me unfortunately.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 12 Jul 2019 07:50

StrayCat wrote:
10 Jul 2019 10:15
Without WIFi SCANN RESULTS this app is useless for me unfortunately.
unfortunately it's google's fault, see post above from martin
Xiaomi MI 6

Rom Miui 10 EU STABLE

Post Reply