Merge "Apps shouldn't be disabling StrictMode checks." into rvc-dev

This commit is contained in:
Jeff Sharkey
2020-06-01 14:16:54 +00:00
committed by Android (Google) Code Review

View File

@@ -1451,7 +1451,7 @@ public final class StrictMode {
* *
* @hide * @hide
*/ */
@UnsupportedAppUsage @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q, publicAlternatives = "Apps must always use {@code content://} Uris when sharing data")
public static void enableDeathOnFileUriExposure() { public static void enableDeathOnFileUriExposure() {
sVmPolicy = sVmPolicy =
new VmPolicy( new VmPolicy(
@@ -1469,7 +1469,7 @@ public final class StrictMode {
* *
* @hide * @hide
*/ */
@UnsupportedAppUsage @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q, publicAlternatives = "Apps must always use {@code content://} Uris when sharing data")
public static void disableDeathOnFileUriExposure() { public static void disableDeathOnFileUriExposure() {
sVmPolicy = sVmPolicy =
new VmPolicy( new VmPolicy(