OSDN Git Service

Work on issue #36869295: com.qti.qualcomm.datastatusnotification...
authorDianne Hackborn <hackbod@google.com>
Wed, 5 Apr 2017 00:23:14 +0000 (17:23 -0700)
committerDianne Hackborn <hackbod@google.com>
Wed, 5 Apr 2017 20:39:40 +0000 (13:39 -0700)
...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

index 4cbfb27..e4a422d 100644 (file)
@@ -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);