summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2011-03-15 14:38:02 -0700
committer Dianne Hackborn <hackbod@google.com> 2011-03-15 14:38:02 -0700
commit1ab43775d8134d652a7d27f2d79c569653e47f1a (patch)
treed8a16e671f2836ece09cdc9829efc51db2eb1d03
parentcf3004a46eabb49f3eee483067e75aef7b0a69e7 (diff)
Improve error reporting for issue #3183612
java.lang.SecurityException: Neither user 1209 nor current process has android.permission.WAKE_LOCK. Change-Id: I465972ab91b007e04b2ac62550f78583956a4048
-rw-r--r--core/java/android/os/Looper.java3
-rwxr-xr-xservices/java/com/android/server/am/ActivityManagerService.java5
2 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/os/Looper.java b/core/java/android/os/Looper.java
index 994c242f35af..2a66616adf86 100644
--- a/core/java/android/os/Looper.java
+++ b/core/java/android/os/Looper.java
@@ -139,7 +139,8 @@ public class Looper {
Log.wtf("Looper", "Thread identity changed from 0x"
+ Long.toHexString(ident) + " to 0x"
+ Long.toHexString(newIdent) + " while dispatching to "
- + msg.target + " " + msg.callback + " what=" + msg.what);
+ + msg.target.getClass().getName() + " "
+ + msg.callback + " what=" + msg.what);
}
msg.recycle();
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index ddd99f4d6425..d004034f597f 100755
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -6667,8 +6667,9 @@ public final class ActivityManagerService extends ActivityManagerNative
addErrorToDropBox("wtf", r, null, null, tag, null, null, crashInfo);
- if (Settings.Secure.getInt(mContext.getContentResolver(),
- Settings.Secure.WTF_IS_FATAL, 0) != 0) {
+ if (r != null && r.pid != Process.myPid() &&
+ Settings.Secure.getInt(mContext.getContentResolver(),
+ Settings.Secure.WTF_IS_FATAL, 0) != 0) {
crashApplication(r, crashInfo);
return true;
} else {