aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPo Lu2023-08-01 21:06:06 +0800
committerPo Lu2023-08-01 21:06:06 +0800
commite41349dd93ffec2b1e383cb4c4dfdb59f6e7edac (patch)
tree0fcd44202d335331c554ebab0730467329729ad0 /doc
parentb022398b8f0a03f0e1b3ec8df41a439cdbe5bd19 (diff)
downloademacs-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 'doc')
-rw-r--r--doc/emacs/android.texi15
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/emacs/android.texi b/doc/emacs/android.texi
index 0330e9b5890..4b8f36a65eb 100644
--- a/doc/emacs/android.texi
+++ b/doc/emacs/android.texi
@@ -219,6 +219,15 @@ containing files provided by external programs (@pxref{Android
219Document Providers}.) 219Document Providers}.)
220@end itemize 220@end itemize
221 221
222 Despite ordinary installations of Android not having files within
223the (normally read-only) root directory named @file{content} or
224@file{assets}, you may want to access real files by these names if the
225Android installation in use has been customized. These files will
226conflict with the aformentioned special directories, but can
227nevertheless be accessed by writing their names relative to the
228``parent'' directory of the root directory, as so illustrated:
229@file{/../content}, @file{/../assets}.
230
222 The external storage directory is found at @file{/sdcard}. The 231 The external storage directory is found at @file{/sdcard}. The
223other directories are not found at any fixed location (but see below), 232other directories are not found at any fixed location (but see below),
224although the app data directory is typically symlinked to 233although the app data directory is typically symlinked to
@@ -268,10 +277,8 @@ System -> Apps -> Special App Access -> All files access -> Emacs
268 277
269 After you disable or enable this setting as appropriate and grant 278 After you disable or enable this setting as appropriate and grant
270Emacs the ``Files and Media'' permission, it will be able to access 279Emacs the ``Files and Media'' permission, it will be able to access
271files under @file{/sdcard} as usual. 280files under @file{/sdcard} as usual. These settings are not present
272 281on some proprietary versions of Android.
273 These settings are not present on many proprietary versions of
274Android.
275 282
276@node Android Document Providers 283@node Android Document Providers
277@section Accessing files from other programs under Android 284@section Accessing files from other programs under Android