Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android P Wifi Analyzer Beta Works But Fails to Scan After a Few refreshes #199

Closed
buffal0b1ll opened this issue Jul 9, 2018 · 20 comments
Closed
Labels
bug

Comments

@buffal0b1ll
Copy link

@buffal0b1ll buffal0b1ll commented Jul 9, 2018

I've noticed this problem on Android P dp2, dp3 and dp4 with WiFi Analyzer Beta.
Location is granted. Have also tried enabling wifi scanning but it didn't change the behavior.

In opening the app the access points are displayed just fine.
On manual refresh, or on maybe the third or fourth scheduled refresh the Scanning progress circle comes up and then times out with network error. Force closing the app and relaunching gets it to work again, but once more only for a few refreshes.

Thanks.

Device: Pixel 2
Android P dp4

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 9, 2018

screenshot_20180709-084808
screenshot_20180709-084721
screenshot_20180709-084731

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 9, 2018

@avpavp

This comment has been minimized.

Copy link

@avpavp avpavp commented Jul 10, 2018

I'm also running Android P Beta, I can't get any display of access points, just get the "Scanning..." screen - never shows any APs. Running Pixel 2 XL. Let me know if you need any testing or other info...

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 10, 2018

@avpavp are you using the Wifi Analyzer Beta app? It sounds like you might be using the stable channel WiFi Analyzer that doesn't let you grant the necessary location permission for the app to work on P.

@avpavp

This comment has been minimized.

Copy link

@avpavp avpavp commented Jul 10, 2018

@avpavp

This comment has been minimized.

Copy link

@avpavp avpavp commented Jul 10, 2018

Ok, found the beta, installed it, saw a list of APs for a couple seconds, now list is gone, and sounds like same issue as BuffaloBill. While typing this, the APs showed up again, now they gone again, just "Scanning..."... Let me know if I can help debug...

@VREMSoftwareDevelopment

This comment has been minimized.

Copy link
Owner

@VREMSoftwareDevelopment VREMSoftwareDevelopment commented Jul 13, 2018

@avpavp / @buffal0b1ll

Can you please provide additional information, such as:

  • Application version
  • Application scan interval value in the settings menu

Thanks,
VREM Development Team

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 14, 2018

@VREMSoftwareDevelopment sure. Thanks for looking into this.

App Version
WiFiAnalyzer BETA (open-source) com.vrem.wifianalyzer.location 0.0.8-8S (9-28)

Scan internal value:
5s default
Also tried tapering it back to 10s to see if that helped. Still got same result with eventual hang on scanning

@VREMSoftwareDevelopment

This comment has been minimized.

Copy link
Owner

@VREMSoftwareDevelopment VREMSoftwareDevelopment commented Jul 14, 2018

This is not an application issue, it is Android P Beta issue.
Please find the following article WifiManager startScan throttled in Android P

@anthony-wang

This comment has been minimized.

Copy link

@anthony-wang anthony-wang commented Jul 14, 2018

^ thanks for posting that. Hope they do implement a whitelist of sorts so that WiFi analyzer-type apps can work properly again. I use this app all the time!

@VREMSoftwareDevelopment

This comment has been minimized.

Copy link
Owner

@VREMSoftwareDevelopment VREMSoftwareDevelopment commented Jul 14, 2018

Next BETA release will try to minimize "WifiManager startScan throttled in Android P".
Please be aware, that this fix may create other issues.

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 14, 2018

@anthony-wang

This comment has been minimized.

Copy link

@anthony-wang anthony-wang commented Jul 14, 2018

@VREMSoftwareDevelopment by "next BETA release", do you mean the version v0.0.9 - 9SL (9-28) that I just got from the Play store? I've been using it in the past 5 min or so, and haven't observed any of the throttling happening! 😃

(Pixel XL, Android P PPP4.180612.004)

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Jul 15, 2018

@VREMSoftwareDevelopment

This comment has been minimized.

Copy link
Owner

@VREMSoftwareDevelopment VREMSoftwareDevelopment commented Jul 15, 2018

@buffal0b1ll wrote "It looks like it stops refreshing every 5 seconds after about 3 or 4 scans"

Before application would indicate clear Android OS Wi-Fi scan failure, now it just stops refreshing access points (False Positive).
Until Google fixes the "WifiManager startScan throttled in Android P" issues, the application will not work properly on Android P.

@jackfagner

This comment has been minimized.

Copy link

@jackfagner jackfagner commented Aug 14, 2018

According to the Android source code the throttling will not occur if the application holds the NETWORK_SETTINGS permission.

Note: Apps holding android.Manifest.permission.NETWORK_SETTINGS permission are exempted from scan throttling.
WifiManager.java#739
WifiManager reference

Would you mind adding this permission to the BETA?

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Aug 14, 2018

@jackfagner

This comment has been minimized.

Copy link

@jackfagner jackfagner commented Aug 14, 2018

I just noted this:

permission android:name="android.permission.NETWORK_SETTINGS" android:protectionLevel="signature"
AndroidManifest.xml#1439

protectionLevel="signature" means we cannot add this permission to an user app, I think :-(

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Aug 14, 2018

@buffal0b1ll

This comment has been minimized.

Copy link
Author

@buffal0b1ll buffal0b1ll commented Aug 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.