From 88583ddfe68a88a0d475a2ed5c02267317472bbb Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Wed, 12 Feb 2020 16:55:32 -0800 Subject: [PATCH] Reduce app-ops settle time to match more what the user expects while still preventing thrashing on app launch. Fixes: 149432350 Test: Pure settings change Change-Id: I5fa519afa9886e9f969d0150ed8ff75aeba93ef3 --- .../core/java/com/android/server/appop/AppOpsService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/appop/AppOpsService.java b/services/core/java/com/android/server/appop/AppOpsService.java index 06561f57f4956..8992561c25000 100644 --- a/services/core/java/com/android/server/appop/AppOpsService.java +++ b/services/core/java/com/android/server/appop/AppOpsService.java @@ -411,9 +411,9 @@ public class AppOpsService extends IAppOpsService.Stub { Slog.e(TAG, "Bad app ops settings", e); } TOP_STATE_SETTLE_TIME = mParser.getDurationMillis( - KEY_TOP_STATE_SETTLE_TIME, 30 * 1000L); + KEY_TOP_STATE_SETTLE_TIME, 5 * 1000L); FG_SERVICE_STATE_SETTLE_TIME = mParser.getDurationMillis( - KEY_FG_SERVICE_STATE_SETTLE_TIME, 10 * 1000L); + KEY_FG_SERVICE_STATE_SETTLE_TIME, 5 * 1000L); BG_STATE_SETTLE_TIME = mParser.getDurationMillis( KEY_BG_STATE_SETTLE_TIME, 1 * 1000L); }