Merge "Apps shouldn't be disabling StrictMode checks." into rvc-dev am: 4d96602de0 am: 2101337142

Change-Id: Ie8dab6648d55ac488905e24a3e1bf58c2c1357c9
This commit is contained in:
Jeff Sharkey
2020-06-01 14:53:35 +00:00
committed by Automerger Merge Worker

View File

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