implement file sharing by file descriptor

Using custom gdbus code, as libportal doesn't expose the raw
org.freedesktop.portal.OpenURI.OpenFile method.
This commit is contained in:
Julian Winkler
2024-08-29 13:51:08 +02:00
parent 265ac895d3
commit f3092fd4bd
9 changed files with 240 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package android.content;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
public class SearchRecentSuggestionsProvider extends ContentProvider {
public void setupSuggestions(String s, int i) {}
@@ -20,4 +21,14 @@ public class SearchRecentSuggestionsProvider extends ContentProvider {
public int delete(Uri uri, String selection, String[] selectionArgs) {
throw new UnsupportedOperationException("Unimplemented method 'delete'");
}
@Override
public String getType(Uri uri) {
throw new UnsupportedOperationException("Unimplemented method 'getType'");
}
@Override
public ParcelFileDescriptor openFile(Uri uri, String mode) {
throw new UnsupportedOperationException("Unimplemented method 'openFile'");
}
}