]> git.eshelyaron.com Git - emacs.git/commit
Improve efficiency of checking for access to authority documents
authorPo Lu <luangruo@yahoo.com>
Mon, 14 Aug 2023 05:15:08 +0000 (13:15 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 14 Aug 2023 05:15:08 +0000 (13:15 +0800)
commit9fb00904f959a7e94cf992acb3a96e78a05e719c
tree9b5d11af74a58b42066f3795da87389de1b4a011
parent3895f882337ade7744cf7964d9bab5d79d4aa059
Improve efficiency of checking for access to authority documents

* java/org/gnu/emacs/EmacsService.java (checkContentUri): Take a
string instead of a byte array.  Then, use
checkCallingUriPermission, in lieu of opening the file.
* src/android.c (android_check_content_access): Delete unused
function.
(android_init_emacs_service): Adjust for changes to
checkContentUri's signature.
* src/androidvfs.c (android_get_content_name): Return the file
name in a new buffer.
(android_check_content_access): Adjust correspondingly.
(android_authority_name): Verify NAME is a valid JNI string.
java/org/gnu/emacs/EmacsService.java
src/android.c
src/androidvfs.c