OSDN Git Service

Monkey: request am to show the ANR dialog
authorVairavan Srinivasan <vairav@codeaurora.org>
Sat, 22 Jan 2011 02:00:52 +0000 (18:00 -0800)
committerVairavan Srinivasan <vairav@codeaurora.org>
Sat, 22 Jan 2011 02:00:52 +0000 (18:00 -0800)
Default return value of 1 from appNotResponding was to show the
ANR dialog in eclair. However, recent version of android's am
interpret 1 as to wait. Fix is to change the default return
value from 1 to 0.

Change-Id: I6620ef54309f1d30ef18a2b60d73b346c2446f93

cmds/monkey/src/com/android/commands/monkey/Monkey.java

index 68fb2a5..a1f3060 100644 (file)
@@ -337,9 +337,9 @@ public class Monkey {
                 synchronized (Monkey.this) {
                     mAbort = true;
                 }
-                return (mKillProcessAfterError) ? -1 : 1;
+                return (mKillProcessAfterError) ? -1 : 0;
             }
-            return 1;
+            return 0;
         }
     }