Can someone please explain to me how to fix this error?

Post your questions and help other users.

Moderator: Martin

Post Reply
Shreyh13
Posts: 18
Joined: 09 Jun 2013 02:15

Can someone please explain to me how to fix this error?

Post by Shreyh13 » 09 Jun 2013 02:24

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?

Shreyh13
Posts: 18
Joined: 09 Jun 2013 02:15

Re: Can someone please explain to me how to fix this error?

Post by Shreyh13 » 09 Jun 2013 03:46

Just a heads up I am using a Samsung galaxy s3 in Canada with the latest android version

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: Can someone please explain to me how to fix this error?

Post by pat2net » 09 Jun 2013 04:31

Could you publish your flows?

Shreyh13
Posts: 18
Joined: 09 Jun 2013 02:15

Re: Can someone please explain to me how to fix this error?

Post by Shreyh13 » 09 Jun 2013 05:32

http://automagic4android.com/flow.php?i ... 3279c31b34

Sorry please bear with me as I am new to this

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

Re: Can someone please explain to me how to fix this error?

Post by Martin » 09 Jun 2013 14:13

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

Shreyh13
Posts: 18
Joined: 09 Jun 2013 02:15

Re: Can someone please explain to me how to fix this error?

Post by Shreyh13 » 09 Jun 2013 15:13

Martin 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
Usually I don't have an issue since it works fine but sometimes it goes on a fritz and I need to reboot

uki
Posts: 1
Joined: 15 Sep 2013 15:34

Re: Can someone please explain to me how to fix this error?

Post by uki » 15 Sep 2013 15:47

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

dbesoli
Posts: 1
Joined: 17 Oct 2013 15:04

Re: Can someone please explain to me how to fix this error?

Post by dbesoli » 17 Oct 2013 15:24

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.

Post Reply