Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAndroid P Wifi Analyzer Beta Works But Fails to Scan After a Few refreshes #199
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here's a log https://pastebin.com/Ws7jwrmQ |
This comment has been minimized.
This comment has been minimized.
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... |
This comment has been minimized.
This comment has been minimized.
@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. |
This comment has been minimized.
This comment has been minimized.
How do I get the beta?
Thanks
…On Tue, Jul 10, 2018, 15:05 buffal0b1ll ***@***.***> wrote:
@avpavp <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFC2mNLkOAqsYuqBTjqDQ7KSHH5-JrwKks5uFOXbgaJpZM4VHpHm>
.
|
This comment has been minimized.
This comment has been minimized.
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... |
This comment has been minimized.
This comment has been minimized.
Can you please provide additional information, such as:
Thanks, |
This comment has been minimized.
This comment has been minimized.
@VREMSoftwareDevelopment sure. Thanks for looking into this. App Version Scan internal value: |
This comment has been minimized.
This comment has been minimized.
This is not an application issue, it is Android P Beta issue. |
This comment has been minimized.
This comment has been minimized.
^ 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! |
This comment has been minimized.
This comment has been minimized.
Next BETA release will try to minimize "WifiManager startScan throttled in Android P". |
This comment has been minimized.
This comment has been minimized.
@VREMSoftwareDevelopment thank you. |
This comment has been minimized.
This comment has been minimized.
@VREMSoftwareDevelopment by "next BETA release", do you mean the version (Pixel XL, Android P PPP4.180612.004) |
This comment has been minimized.
This comment has been minimized.
I installed the new beta too. It looks like it stops refreshing every 5
seconds after about 3 or 4 scans, but at least it doesn't leave the APs
screen and get hung on Scanning anymore. Interestingly enough, this is how
the competitor Wifi Analyzer app on the PlayStore behaves on Android P
too. Thanks for the fix. It is an improvement.
…--expect crazy typos--
On Sat, Jul 14, 2018, 2:12 PM Anthony Wang ***@***.***> wrote:
@VREMSoftwareDevelopment <https://github.com/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!
|
This comment has been minimized.
This comment has been minimized.
@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). |
This comment has been minimized.
This comment has been minimized.
According to the Android source code the throttling will not occur if the application holds the NETWORK_SETTINGS permission.
Would you mind adding this permission to the BETA? |
This comment has been minimized.
This comment has been minimized.
Maybe we as users could add the permission with a ADB pm command to test
this? I'm not sure the syntax tho.
…--expect crazy typos--
On Tue, Aug 14, 2018, 5:48 PM Jack ***@***.***> wrote:
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
<https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/wifi/java/android/net/wifi/WifiManager.java#739>
Would you mind adding this permission to the BETA?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADlZb5kaa5qhBx1ANTKm9ayvHJrjDHBtks5uQ0WwgaJpZM4VHpHm>
.
|
This comment has been minimized.
This comment has been minimized.
I just noted this:
protectionLevel="signature" means we cannot add this permission to an user app, I think :-( |
This comment has been minimized.
This comment has been minimized.
Thanks for that link Jack. I think ADB might work. I'll test. See
https://github.com/TilesOrganization/support/wiki/How-to-use-ADB-to-grant-permissions
We use that to elevate permissions for the Tiles App which is using
<permission android:name="android.permission.WRITE_SECURE_SETTINGS"
android:protectionLevel="signature|privileged|development" />
…--expect crazy typos--
On Tue, Aug 14, 2018, 6:11 PM Jack ***@***.***> wrote:
I just noted this:
permission android:name="android.permission.NETWORK_SETTINGS"
android:protectionLevel="signature"
AndroidManifest.xml#1439
<https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/AndroidManifest.xml#1439>
protectionLevel="signature" means we cannot add this permission to an user
app, I think :-(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADlZb4bQtMfwPKP-sVoE1WtesspHeOwpks5uQ0sAgaJpZM4VHpHm>
.
|
This comment has been minimized.
This comment has been minimized.
Oh well, it didn't work. But maybe if VREM requested the permission we
could grant it thru adb.
chronos@localhost / $ adb shell pm grant
com.vrem.wifianalyzer.location android.permission.NETWORK_SETTINGS
Security exception: Package com.vrem.wifianalyzer.location has not
requested permission android.permission.NETWORK_SETTINGS
java.lang.SecurityException: Package com.vrem.wifianalyzer.location
has not requested permission android.permission.NETWORK_SETTINGS
at com.android.server.pm.permission.BasePermission.enforceDeclaredUsedAndRuntimeOrDevelopment(BasePermission.java:379)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1404)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:89)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2093)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5411)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21260)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2796)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3856)
at android.os.Binder.execTransact(Binder.java:731)
On Tue, Aug 14, 2018 at 6:37 PM BILLBLANDFORD <billblandford@gmail.com>
wrote:
… Thanks for that link Jack. I think ADB might work. I'll test. See
https://github.com/TilesOrganization/support/wiki/How-to-use-ADB-to-grant-permissions
We use that to elevate permissions for the Tiles App which is using
<permission android:name="android.permission.WRITE_SECURE_SETTINGS"
android:protectionLevel="signature|privileged|development" />
--expect crazy typos--
On Tue, Aug 14, 2018, 6:11 PM Jack ***@***.***> wrote:
> I just noted this:
>
> permission android:name="android.permission.NETWORK_SETTINGS"
> android:protectionLevel="signature"
> AndroidManifest.xml#1439
> <https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/AndroidManifest.xml#1439>
>
> protectionLevel="signature" means we cannot add this permission to an
> user app, I think :-(
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#199 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADlZb4bQtMfwPKP-sVoE1WtesspHeOwpks5uQ0sAgaJpZM4VHpHm>
> .
>
|
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