aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec1.c
diff options
context:
space:
mode:
authorPo Lu2023-10-15 13:10:34 +0800
committerPo Lu2023-10-15 13:11:37 +0800
commit93104cff532f932bcea65d02a59c916767a31645 (patch)
tree20070ee4cb8500824fceef285bd4b104ada3748b /exec/exec1.c
parenta3fd382f3fe803e0b61c5353e9b5bdaf4d1e564e (diff)
downloademacs-93104cff532f932bcea65d02a59c916767a31645.tar.gz
emacs-93104cff532f932bcea65d02a59c916767a31645.zip
Correctly receive files through Android DND
* java/org/gnu/emacs/EmacsService.java (getUsefulContentResolver) (getContentResolverContext): New functions which return a content resolver from an EmacsActivity, if at all possible. (openContentUri, checkContentUri): Probe or open URIs through such content resolvers. Probe URIs by opening them if merely testing permissions fails, for DND URIs do not make checkCallingUriPermission return true. * java/org/gnu/emacs/EmacsWindow.java (onDragEvent): Address potential crash. * src/androidvfs.c (android_check_content_access): Circumvent JNI dynamic method dispatch. (android_authority_name): Guarantee NAME is never a directory.
Diffstat (limited to 'exec/exec1.c')
0 files changed, 0 insertions, 0 deletions