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

@@ -25,6 +25,14 @@ JNIEXPORT jstring JNICALL Java_android_content_Context_native_1get_1apk_1path
JNIEXPORT void JNICALL Java_android_content_Context_native_1updateConfig
(JNIEnv *, jclass, jobject);
/*
* Class: android_content_Context
* Method: nativeOpenFile
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_android_content_Context_nativeOpenFile
(JNIEnv *, jclass, jint);
#ifdef __cplusplus
}
#endif