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

Commit 7c858285 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

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

parents c767a1f9 a5086b43
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -231,7 +231,12 @@ public class NotificationManager
        if (notification.sound != null) {
        if (notification.sound != null) {
            notification.sound = notification.sound.getCanonicalUri();
            notification.sound = notification.sound.getCanonicalUri();
            if (StrictMode.vmFileUriExposureEnabled()) {
            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);
        fixLegacySmallIcon(notification, pkg);