Page 1 of 1

Exception during WIFI on

Posted: 18 Aug 2014 10:03
by cats-shadow
Hi!

There is a simple flow, that switching WIFI On when device situated in defined locations. But it ends regulary with an exception:

Code: Select all

End executing action 'Set WiFi State: On' and exception uid 10108 does not have android.permission.UPDATE_DEVICE_STATS.
during attempt of switching WIFI on.
Could you advice solution for this problem?

Re: Exception during WIFI on

Posted: 18 Aug 2014 17:29
by Martin
Hi,

This is a very old bug of Android that was reported to Google Nov 2011. The bug has come up before (search the forum for UPDATE_DEVICE_STATS).
Unfortunately I have not encountered this bug myself yet so I'm not aware of a good workaround. Does restarting the device help?
What device and Android version are you using?

Regards,
Martin

Re: Exception during WIFI on

Posted: 19 Aug 2014 13:09
by cats-shadow
Hi, Martin.

Restarting device does not help.

I have Chinese Zopo ZP950H mobile phone with modified ROM, based on Android 4.2.2 (for similar by hardware phone GFIVE G9, kervel version 3.4.5).
Sorry, but information about this ROM modification available on russian forum (http://4pda.ru/forum/index.php?s=&showt ... p=28658388)

I'll try to convert AM into system appplication, may be it helps. (http://stackoverflow.com/questions/1500 ... rror-occur)