yandexmobile / metrica-sdk-android

AppMetrica is a free real-time ad tracking and mobile app analytics solution.
https://tech.yandex.com/metrica-mobile-sdk/
20 stars 3 forks source link

SecurityException android.permission.ACCESS_WIFI_STATE #52

Closed OJIer3 closed 6 years ago

OJIer3 commented 6 years ago

v 2.77

Fatal Exception: java.lang.SecurityException: WifiService: Neither user 10079 nor current process has android.permission.ACCESS_WIFI_STATE. at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.net.wifi.IWifiManager$Stub$Proxy.getScanResults(IWifiManager.java:1066) at android.net.wifi.WifiManager.getScanResults(WifiManager.java:1329) at com.yandex.metrica.impl.bn.c(SourceFile:1102) at com.yandex.metrica.impl.bn.a(SourceFile:89) at com.yandex.metrica.impl.l.a(SourceFile:7133) at com.yandex.metrica.impl.ob.cg.a(SourceFile:129) at com.yandex.metrica.impl.ob.v.b(SourceFile:240) at com.yandex.metrica.impl.ob.v.a(SourceFile:232) at com.yandex.metrica.impl.ob.v$1.a(SourceFile:134) at com.yandex.metrica.impl.ob.bl.b(SourceFile:180) at com.yandex.metrica.impl.ob.bl.a(SourceFile:172) at com.yandex.metrica.impl.ob.bl.f(SourceFile:149) at com.yandex.metrica.impl.ob.bl.a(SourceFile:64) at com.yandex.metrica.impl.ob.am.a(SourceFile:23) at com.yandex.metrica.impl.ob.ba.a(SourceFile:31) at com.yandex.metrica.impl.ob.x.a(SourceFile:27) at com.yandex.metrica.impl.ob.av.a(SourceFile:22) at com.yandex.metrica.impl.ob.ad.a(SourceFile:26) at com.yandex.metrica.impl.ob.x.a(SourceFile:27) at com.yandex.metrica.impl.ob.v.a(SourceFile:181) at com.yandex.metrica.impl.ag$a.run(SourceFile:422) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

In docs this permission isn't needed. App no need this too. https://tech.yandex.ru/appmetrica/doc/mobile-sdk-dg/concepts/android-initialize-docpage/?ncrnd=6451

alexklints commented 6 years ago

Hello. We know about this device specific problem. We'll fix it in next version.

alexklints commented 6 years ago

Fixed in 2.78.