From 7e5d9b381bf2c24c9545ed7416aeab925c4e03c2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 19 Oct 2020 12:11:10 +0000 Subject: [PATCH] support incoming content:// URIs pointing to OBF files The whole "handle import" plumbing is already in place to handle both file:// and content:// URIs for OBF files. The `ObfImportTask` gets an `InputStream` from the `ContentResolver` already. `handleContentImport` defers to the `handleFileImport` for which helper to instantiate. Supporting content:// URIs here means this import can happen via `FileProvider` and other `ContentProvider` instances. My use case is offline sharing of OBF files as handled by F-Droid Nearby Swap. Users can select which installed OBF files to share, then nearby users can connect to the device via Bluetooth or local WiFi to get the files. --- OsmAnd/AndroidManifest.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index d762e0a261..1f24b948b1 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -247,6 +247,7 @@ + @@ -262,6 +263,7 @@ +