OSDN Git Service

Compute correct rejected time
authorPhilip P. Moltmann <moltmann@google.com>
Thu, 26 Apr 2018 18:01:08 +0000 (11:01 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Thu, 26 Apr 2018 18:01:08 +0000 (11:01 -0700)
Fixes: 78632929
Test: atest FrameworksServicesTests:AppOpsServiceTest
            CtsPermissionTestCases:AppOpsTest

Change-Id: I34e1de6658c89c40cae3a8bb6e9fdb4e7fd80795

core/java/android/app/AppOpsManager.java

index 13389e3..dcf4eec 100644 (file)
@@ -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;