From 2f8e3788f39d52f9c750cfb2053c10b928b8e94a Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 4 Apr 2017 17:23:14 -0700 Subject: [PATCH] Work on issue #36869295: com.qti.qualcomm.datastatusnotification... ...is not Bg Check compliant Make the exception message include the state of the app's UidRecord to help debug what is going on. Test: boot and ran Change-Id: Ie829265c7979ccabf8bae0bc6521bd9a7357d77f --- services/core/java/com/android/server/am/ActiveServices.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 4cbfb275fd32..e4a422d06b38 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -369,7 +369,8 @@ public final class ActiveServices { } // This app knows it is in the new model where this operation is not // allowed, so tell it what has happened. - return new ComponentName("?", "app is in background"); + UidRecord uidRec = mAm.mActiveUids.get(r.appInfo.uid); + return new ComponentName("?", "app is in background uid " + uidRec); } } finally { Binder.restoreCallingIdentity(token); -- 2.11.0