From 75f21b60eeb62cbc0c013e35f01e18eea940a448 Mon Sep 17 00:00:00 2001 From: Oreste Salerno Date: Fri, 7 Oct 2022 18:57:26 +0200 Subject: [PATCH] Remove check for the notification listener permission in LocalSessionHandler.java There is no need for this permission if MEDIA_CONTENT_CONTROL is granted. The correct check is already done in AlexaAutoClientService.java (for both MEDIA_CONTENT_CONTROL and notification listener permission). --- .../modules/mediaManager/LocalSessionHandler.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/aacs/android/service/core-service/src/main/java/com/amazon/alexaautoclientservice/modules/mediaManager/LocalSessionHandler.java b/aacs/android/service/core-service/src/main/java/com/amazon/alexaautoclientservice/modules/mediaManager/LocalSessionHandler.java index b817cc9e7..89e42e524 100644 --- a/aacs/android/service/core-service/src/main/java/com/amazon/alexaautoclientservice/modules/mediaManager/LocalSessionHandler.java +++ b/aacs/android/service/core-service/src/main/java/com/amazon/alexaautoclientservice/modules/mediaManager/LocalSessionHandler.java @@ -44,11 +44,6 @@ public LocalSessionHandler() { } public void onCreate(Context context) { - if (!NotificationListener.isEnabled(context)) { - Log.w(TAG, - "Notification Listener permission is required for this feature to work, please provide the permission and restart the app to use Local Media Source controlling through Alexa"); - return; - } mMediaSessionManager = (MediaSessionManager) context.getSystemService(Context.MEDIA_SESSION_SERVICE); if (mMediaSessionManager == null) { Log.w(TAG, "MediaSessionManager is null, something went wrong");