OSDN Git Service

Attempt to reduce problems from issue #3183612
authorDianne Hackborn <hackbod@google.com>
Wed, 9 Feb 2011 22:19:23 +0000 (14:19 -0800)
committerDianne Hackborn <hackbod@google.com>
Wed, 9 Feb 2011 22:19:23 +0000 (14:19 -0800)
commite5dea7537cadbf79614730f96d9e92cc2b12ad5a
treed9c6e3f8aac245371ba1515a04a0e1428c8c97cf
parentbe4b39d2fde3d34539752b99238ceebd97ccf580
Attempt to reduce problems from issue #3183612

java.lang.SecurityException: Neither user 1209 nor current...
...process has android.permission.WAKE_LOCK.

It looks like, somehow, the calling uid/pid of the SyncHandler
thread is getting corrupted.  This change has Looper check for
these values changing from their original defaults and, if there
is a problem, resetting them and logging a WTF.  Hopefully this
will avoid crashing the process, while also giving us more
helpful error reports about what is going on.

Change-Id: Iff06d575951fb8c06e2a3c31141f2907a715eb81
core/java/android/os/Looper.java