From 3080fb7c9e6e933745b128b5191a5ff5c66a923a Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 1 Jun 2020 15:54:41 +0000 Subject: [PATCH] Revert "Apps shouldn't be disabling StrictMode checks." This reverts commit 14e961870a18f2fda768906fb14d900df2036346. Reason for revert: satayev@ Bug: 156336269 Change-Id: Ic0d3a650156c06f58fce4c28157191f4497469f0 --- core/java/android/os/StrictMode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/StrictMode.java b/core/java/android/os/StrictMode.java index 57561af0e2f83..02b822a99f2ad 100644 --- a/core/java/android/os/StrictMode.java +++ b/core/java/android/os/StrictMode.java @@ -1451,7 +1451,7 @@ public final class StrictMode { * * @hide */ - @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q, publicAlternatives = "Apps must always use {@code content://} Uris when sharing data") + @UnsupportedAppUsage public static void enableDeathOnFileUriExposure() { sVmPolicy = new VmPolicy( @@ -1469,7 +1469,7 @@ public final class StrictMode { * * @hide */ - @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q, publicAlternatives = "Apps must always use {@code content://} Uris when sharing data") + @UnsupportedAppUsage public static void disableDeathOnFileUriExposure() { sVmPolicy = new VmPolicy(