Set WiFi State On Failed

Post your questions and help other users.

Moderator: Martin

Post Reply
t4n017
Posts: 11
Joined: 20 Oct 2013 19:34

Set WiFi State On Failed

Post by t4n017 » 05 Nov 2013 12:51

Hi, I'm having some problems with a flow that try to change WiFi state. The flow was working fine before, I didn't change it. If I execute it manually works. If not..

05.11.2013 08:00:00.576 [Buen día (cuando suena alarma)] Action 'Set WiFi State: On' failed
java.lang.SecurityException: uid 10110 does not have android.permission.UPDATE_DEVICE_STATS.
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:708)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:921)
at ch.gridvision.ppam.androidautomagic.d.a.eh$1.c(SourceFile:52)
at ch.gridvision.ppam.androidautomagic.d.a.eh$1.a(SourceFile:47)
at ch.gridvision.ppam.androidautomagic.util.fa$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:856)

t4n017
Posts: 11
Joined: 20 Oct 2013 19:34

Re: Set WiFi State On Failed

Post by t4n017 » 05 Nov 2013 14:54

Ok, I found it's an Android bug. Is any workaround?, maybe using exceptions?

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

Re: Set WiFi State On Failed

Post by Martin » 05 Nov 2013 17:57

Hi,

No sorry, there is no easy workaround that I know of.
What device and Android version are you using?

Regards,
Martin

t4n017
Posts: 11
Joined: 20 Oct 2013 19:34

Re: Set WiFi State On Failed

Post by t4n017 » 05 Nov 2013 20:22

Martin wrote:Hi,

No sorry, there is no easy workaround that I know of.
What device and Android version are you using?

Regards,
Martin
Samsung Galaxy S Advance (i9070)
Jelly Bean 4.2 (CyanogenMod 10.1).

It's weird because it wasn't happening before.}

---EDIT---
I don't know why but it stop happening, is working fine again.

Post Reply