From f6491e1d43e8cd6c2b3bce6de517a1eaf82f08bb Mon Sep 17 00:00:00 2001 From: Geoffrey Pitsch Date: Wed, 19 Apr 2017 15:21:56 -0400 Subject: Log when an app targeting O does not specify a channel Bug: 37485692 Test: runtest systemui-notification Change-Id: Iffe6a016dfd399c39e0acb281f454271ef13f7fd --- .../com/android/server/notification/NotificationManagerService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 8a6a940e6669..9d33e01d20e2 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3203,6 +3203,8 @@ public class NotificationManagerService extends SystemService { return; } else if (channelId == null && shouldWarnUseChannels(pkg, notificationUid)) { // STOPSHIP TODO: remove once default channel is removed for all apps that target O. + Log.e(TAG, "Developer Warning for package " + pkg + + ", no channel specified for posted notification: " + notification); doDebugOnlyToast("Developer warning for package \"" + pkg + "\"\n" + "Posted notification should specify a channel"); } -- cgit v1.2.3-59-g8ed1b