summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/providers/downloads/OpenHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/OpenHelper.java b/src/com/android/providers/downloads/OpenHelper.java
index 4b051be5..8124df97 100644
--- a/src/com/android/providers/downloads/OpenHelper.java
+++ b/src/com/android/providers/downloads/OpenHelper.java
@@ -30,6 +30,7 @@ import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
+import android.os.StrictMode;
import android.provider.Downloads.Impl.RequestHeaders;
import android.util.Log;
@@ -49,11 +50,14 @@ public class OpenHelper {
intent.addFlags(intentFlags);
try {
+ StrictMode.disableDeathOnFileUriExposure();
context.startActivity(intent);
return true;
} catch (ActivityNotFoundException e) {
Log.w(TAG, "Failed to start " + intent + ": " + e);
return false;
+ } finally {
+ StrictMode.enableDeathOnFileUriExposure();
}
}