From 76f04073f9a69bea351c3afeb3671782f35bed4a Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Thu, 26 Apr 2018 11:01:08 -0700 Subject: [PATCH] Compute correct rejected time Fixes: 78632929 Test: atest FrameworksServicesTests:AppOpsServiceTest CtsPermissionTestCases:AppOpsTest Change-Id: I34e1de6658c89c40cae3a8bb6e9fdb4e7fd80795 --- core/java/android/app/AppOpsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java index 13389e35943cd..dcf4eec80e69b 100644 --- a/core/java/android/app/AppOpsManager.java +++ b/core/java/android/app/AppOpsManager.java @@ -1571,7 +1571,7 @@ public class AppOpsManager { long time = 0; for (int i = 0; i < _NUM_UID_STATE; i++) { if (mRejectTimes[i] > time) { - time = mTimes[i]; + time = mRejectTimes[i]; } } return time;