Loading core/java/android/app/NotificationManager.java +1 −6 Original line number Diff line number Diff line Loading @@ -231,12 +231,7 @@ public class NotificationManager if (notification.sound != null) { notification.sound = notification.sound.getCanonicalUri(); if (StrictMode.vmFileUriExposureEnabled()) { //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()); } notification.sound.checkFileUriExposed("Notification.sound"); } } fixLegacySmallIcon(notification, pkg); Loading core/java/android/net/Uri.java +1 −1 Original line number Diff line number Diff line Loading @@ -2342,7 +2342,7 @@ public abstract class Uri implements Parcelable, Comparable<Uri> { * @hide */ public void checkFileUriExposed(String location) { if ("file".equals(getScheme())) { if ("file".equals(getScheme()) && !getPath().startsWith("/system/")) { StrictMode.onFileUriExposed(this, location); } } Loading Loading
core/java/android/app/NotificationManager.java +1 −6 Original line number Diff line number Diff line Loading @@ -231,12 +231,7 @@ public class NotificationManager if (notification.sound != null) { notification.sound = notification.sound.getCanonicalUri(); if (StrictMode.vmFileUriExposureEnabled()) { //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()); } notification.sound.checkFileUriExposed("Notification.sound"); } } fixLegacySmallIcon(notification, pkg); Loading
core/java/android/net/Uri.java +1 −1 Original line number Diff line number Diff line Loading @@ -2342,7 +2342,7 @@ public abstract class Uri implements Parcelable, Comparable<Uri> { * @hide */ public void checkFileUriExposed(String location) { if ("file".equals(getScheme())) { if ("file".equals(getScheme()) && !getPath().startsWith("/system/")) { StrictMode.onFileUriExposed(this, location); } } Loading