commit | 333394a6c1766ea0158d7558e0a2204750f1c09e | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu Mar 23 16:11:25 2017 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Fri Mar 24 10:29:05 2017 -0700 |
tree | 13387d26b91a1448db085fbf4bec5573ea54d74c | |
parent | 90a96507f6c44d1a2fe6513e6521a3fb40eb9243 [diff] |
Fix issue #34855227: Bg check Android O: Able to start... ...service after receiving broadcast in background A new UidRecord should start out idle, not non-idle. Test: added CtsAppTestCases:.ActivityManagerTest#testBackgroundCheckBroadcastService Change-Id: Ib04e11b95958477eaba1e421fd901f9cd1ee705a
diff --git a/services/core/java/com/android/server/am/UidRecord.java b/services/core/java/com/android/server/am/UidRecord.java index 48a1a1a..5a847fb 100644 --- a/services/core/java/com/android/server/am/UidRecord.java +++ b/services/core/java/com/android/server/am/UidRecord.java
@@ -87,6 +87,7 @@ public UidRecord(int _uid) { uid = _uid; + idle = true; reset(); }