User 10161 does not have android.permission.UPDATE_DEVICE_STATS.
I have the location wifi on fir two locations and a couple of times a day I get the above error.
How can I fix this?
Can someone please explain to me how to fix this error?
Moderator: Martin
Re: Can someone please explain to me how to fix this error?
Just a heads up I am using a Samsung galaxy s3 in Canada with the latest android version
Re: Can someone please explain to me how to fix this error?
Could you publish your flows?
Re: Can someone please explain to me how to fix this error?
http://automagic4android.com/flow.php?i ... 3279c31b34
Sorry please bear with me as I am new to this
Sorry please bear with me as I am new to this
Re: Can someone please explain to me how to fix this error?
Hi,
The missing UPDATE_DEVICE_STATS is an Android internal bug (was reported to Google about Nov 2011). I did not yet run into this problem myself and I'm not aware of a workaround.
Can you successfully switch WiFi on/off after this problem occurred or is a reboot of the device required?
Regards,
Martin
The missing UPDATE_DEVICE_STATS is an Android internal bug (was reported to Google about Nov 2011). I did not yet run into this problem myself and I'm not aware of a workaround.
Can you successfully switch WiFi on/off after this problem occurred or is a reboot of the device required?
Regards,
Martin
Re: Can someone please explain to me how to fix this error?
Usually I don't have an issue since it works fine but sometimes it goes on a fritz and I need to rebootMartin wrote:Hi,
The missing UPDATE_DEVICE_STATS is an Android internal bug (was reported to Google about Nov 2011). I did not yet run into this problem myself and I'm not aware of a workaround.
Can you successfully switch WiFi on/off after this problem occurred or is a reboot of the device required?
Regards,
Martin
Re: Can someone please explain to me how to fix this error?
Hi,
I followed the hint under
http://stackoverflow.com/questions/1500 ... rror-occur
and modified the manifest to set the sharedUserID, using VTS:
http://www.virtuous-ten-studio.com/index.php
Seems to work now, no complaining anymore about "User XXXXX does not have android.permission.UPDATE_DEVICE_STATS"
Perhaps it would be good to have this in the AM standard apk? Maybe as an optional setting?
(I am not an Android expert, so I do not really know what drawbacks it has setting the sharedUserID="android.uid.system")
Cheers
uki
I followed the hint under
http://stackoverflow.com/questions/1500 ... rror-occur
and modified the manifest to set the sharedUserID, using VTS:
http://www.virtuous-ten-studio.com/index.php
Seems to work now, no complaining anymore about "User XXXXX does not have android.permission.UPDATE_DEVICE_STATS"
Perhaps it would be good to have this in the AM standard apk? Maybe as an optional setting?
(I am not an Android expert, so I do not really know what drawbacks it has setting the sharedUserID="android.uid.system")
Cheers
uki
Re: Can someone please explain to me how to fix this error?
I have exactly this problem.
I have two flows that set wifi state on and the most triggered is showing this error randomized along the day.
Automagic has root permissions as superuser app says. And the mostly of times the flow ends with no problems
I attach to executions the first with the exc eption and the second after 9 minutes with no problems
==================================================================
17.10.2013 17:00:52.532 [Feina] Start executing action 'Set WiFi State: On'
17.10.2013 17:00:52.533 [Feina] Action 'Set WiFi State: On' enable = true
17.10.2013 17:00:52.535 [Feina] Action 'Set WiFi State: On' failed
java.lang.SecurityException: User 10131 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:855)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:1046)
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)
17.10.2013 17:00:52.545 [Feina] End executing action 'Set WiFi State: On' and exception User 10131 does not have android.permission.UPDATE_DEVICE_STATS.
17.10.2013 17:00:52.547 [Feina] Flow ends execution due to errors
17.10.2013 17:00:52.547 [Feina] Error:
java.lang.SecurityException: User 10131 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:855)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:1046)
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)
17.10.2013 17:00:52.590 [Feina] Flow ended.
========================================================================
17.10.2013 17:09:03.399 [Feina] Starting to execute flow 'Feina' with Context{global{global_pantalla=1},local{disconnected=false,trigger='Phone Cell Vocalcom.es',psc=-1,last_lac=865,last_cid=144705275,connected=true,flow_name=Feina,triggertime=1382022543395,last_psc=-1,cid=144705269,lac=865}}
17.10.2013 17:09:03.399 [Feina] Start executing condition 'Airplane Mode On'
17.10.2013 17:09:03.400 [Feina] End executing condition 'Airplane Mode On' with return value false
17.10.2013 17:09:03.402 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.403 [Feina] Start executing action 'Remove Notification on Statusbar: 4'
17.10.2013 17:09:03.404 [Feina] End executing action 'Remove Notification on Statusbar: 4'
17.10.2013 17:09:03.404 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.405 [Feina] Start executing action 'Notification on Statusbar: Arribat a feina Factory ID 3'
17.10.2013 17:09:03.436 [Feina] End executing action 'Notification on Statusbar: Arribat a feina Factory ID 3'
17.10.2013 17:09:03.437 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.437 [Feina] Start executing action 'Set WiFi State: On'
17.10.2013 17:09:03.438 [Feina] Action 'Set WiFi State: On' enable = true
17.10.2013 17:09:03.441 [Feina] End executing action 'Set WiFi State: On'
17.10.2013 17:09:03.443 [Feina] Flow ended.
I have two flows that set wifi state on and the most triggered is showing this error randomized along the day.
Automagic has root permissions as superuser app says. And the mostly of times the flow ends with no problems
I attach to executions the first with the exc eption and the second after 9 minutes with no problems
==================================================================
17.10.2013 17:00:52.532 [Feina] Start executing action 'Set WiFi State: On'
17.10.2013 17:00:52.533 [Feina] Action 'Set WiFi State: On' enable = true
17.10.2013 17:00:52.535 [Feina] Action 'Set WiFi State: On' failed
java.lang.SecurityException: User 10131 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:855)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:1046)
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)
17.10.2013 17:00:52.545 [Feina] End executing action 'Set WiFi State: On' and exception User 10131 does not have android.permission.UPDATE_DEVICE_STATS.
17.10.2013 17:00:52.547 [Feina] Flow ends execution due to errors
17.10.2013 17:00:52.547 [Feina] Error:
java.lang.SecurityException: User 10131 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:855)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:1046)
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)
17.10.2013 17:00:52.590 [Feina] Flow ended.
========================================================================
17.10.2013 17:09:03.399 [Feina] Starting to execute flow 'Feina' with Context{global{global_pantalla=1},local{disconnected=false,trigger='Phone Cell Vocalcom.es',psc=-1,last_lac=865,last_cid=144705275,connected=true,flow_name=Feina,triggertime=1382022543395,last_psc=-1,cid=144705269,lac=865}}
17.10.2013 17:09:03.399 [Feina] Start executing condition 'Airplane Mode On'
17.10.2013 17:09:03.400 [Feina] End executing condition 'Airplane Mode On' with return value false
17.10.2013 17:09:03.402 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.403 [Feina] Start executing action 'Remove Notification on Statusbar: 4'
17.10.2013 17:09:03.404 [Feina] End executing action 'Remove Notification on Statusbar: 4'
17.10.2013 17:09:03.404 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.405 [Feina] Start executing action 'Notification on Statusbar: Arribat a feina Factory ID 3'
17.10.2013 17:09:03.436 [Feina] End executing action 'Notification on Statusbar: Arribat a feina Factory ID 3'
17.10.2013 17:09:03.437 [Feina] Flow continues executing with the next step.
17.10.2013 17:09:03.437 [Feina] Start executing action 'Set WiFi State: On'
17.10.2013 17:09:03.438 [Feina] Action 'Set WiFi State: On' enable = true
17.10.2013 17:09:03.441 [Feina] End executing action 'Set WiFi State: On'
17.10.2013 17:09:03.443 [Feina] Flow ended.