diff options
| author | Po Lu | 2023-08-01 21:06:06 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-01 21:06:06 +0800 |
| commit | e41349dd93ffec2b1e383cb4c4dfdb59f6e7edac (patch) | |
| tree | 0fcd44202d335331c554ebab0730467329729ad0 /src/android.h | |
| parent | b022398b8f0a03f0e1b3ec8df41a439cdbe5bd19 (diff) | |
| download | emacs-e41349dd93ffec2b1e383cb4c4dfdb59f6e7edac.tar.gz emacs-e41349dd93ffec2b1e383cb4c4dfdb59f6e7edac.zip | |
Update Android port
* doc/emacs/android.texi (Android File System): Describe how to
access real files named /assets or /contents if so required.
* java/org/gnu/emacs/EmacsService.java (validAuthority):
* src/android.c (android_init_emacs_service):
* src/android.h: New function.
* src/androidvfs.c (android_saf_valid_authority_p): New
function. Wrap the Java function.
(android_saf_root_stat, android_saf_root_access): Don't return
success if no authority by vp->authority's name exists.
(android_saf_tree_from_name): Check validity of string data
before giving it to JNI.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index 8440fb9bc75..945bd649c18 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -284,6 +284,7 @@ struct android_emacs_service | |||
| 284 | jmethodID delete_document; | 284 | jmethodID delete_document; |
| 285 | jmethodID rename_document; | 285 | jmethodID rename_document; |
| 286 | jmethodID move_document; | 286 | jmethodID move_document; |
| 287 | jmethodID valid_authority; | ||
| 287 | }; | 288 | }; |
| 288 | 289 | ||
| 289 | extern JNIEnv *android_java_env; | 290 | extern JNIEnv *android_java_env; |