From b62c7c9109f1be41bcc73823509cb718bc613fd6 Mon Sep 17 00:00:00 2001 From: hanyuhang Date: Thu, 20 Aug 2020 12:20:14 +0800 Subject: [PATCH] getInputDispatchingTimeoutLocked:increase ANR input dispatching time for cn.xuexi.android --- .../java/com/android/server/am/ActivityManagerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 9c074951..dc8bed11 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -12214,6 +12214,10 @@ public final class ActivityManagerService extends ActivityManagerNative } public static long getInputDispatchingTimeoutLocked(ActivityRecord r) { + if (r.packageName.equals("cn.xuexi.android")) { + // Log.d(TAG,">>> getInputDispatchingTimeoutLocked cn.xuexi.android 10sec"); + return 10*1000; + } return r != null ? getInputDispatchingTimeoutLocked(r.app) : KEY_DISPATCHING_TIMEOUT; } -- Gitee