Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5086b43 authored by Dan Sandler's avatar Dan Sandler
Browse files

Temporarily remove file:// Uri checks in Notification.sound.

Bug: 26895798
Change-Id: I83034ab812108a5f692bbb608faf5951682f212e
parent bc0ce990
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -231,7 +231,12 @@ public class NotificationManager
        if (notification.sound != null) {
            notification.sound = notification.sound.getCanonicalUri();
            if (StrictMode.vmFileUriExposureEnabled()) {
                notification.sound.checkFileUriExposed("Notification.sound");
                //notification.sound.checkFileUriExposed("Notification.sound");
                if ("file".equals(notification.sound.getScheme())) {
                    Log.w(TAG, "notify: warning: file:// Uri exposed through Notification.sound: "
                                + notification.sound,
                        new Throwable());
                }
            }
        }
        fixLegacySmallIcon(notification, pkg);