aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorPo Lu2023-02-21 15:28:06 +0800
committerPo Lu2023-02-21 15:28:06 +0800
commit7aa4ffddd842e495d1ae388afff12075317ecb07 (patch)
tree9ba8cb2c232665ee59113494f7e35eeb33ab8619 /java/debug.sh
parentd197d7349121b972d50e37d66017567bf6cba652 (diff)
downloademacs-7aa4ffddd842e495d1ae388afff12075317ecb07.tar.gz
emacs-7aa4ffddd842e495d1ae388afff12075317ecb07.zip
Update Android port
* doc/emacs/android.texi (Android Startup): Document `content' special directory. * java/debug.sh (is_root): Improve /bin/tee detection. * java/org/gnu/emacs/EmacsNative.java (EmacsNative): New function `dup'. * java/org/gnu/emacs/EmacsOpenActivity.java (EmacsOpenActivity) (checkReadableOrCopy, onCreate): Create content directory names when the file is not readable. * java/org/gnu/emacs/EmacsService.java (EmacsService) (openContentUri, checkContentUri): New functions. * src/android.c (struct android_emacs_service): New methods. (android_content_name_p, android_get_content_name) (android_check_content_access): New function. (android_fstatat, android_open): Implement opening content URIs. (dup): Export to Java. (android_init_emacs_service): Initialize new methods. (android_faccessat): Implement content file names.
Diffstat (limited to 'java/debug.sh')
-rwxr-xr-xjava/debug.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/debug.sh b/java/debug.sh
index 30e5a94eee5..f07bb98ed7d 100755
--- a/java/debug.sh
+++ b/java/debug.sh
@@ -281,7 +281,7 @@ else
281 # Upload the specified gdbserver binary to the device. 281 # Upload the specified gdbserver binary to the device.
282 adb -s $device push "$gdbserver" "$gdbserver_bin" 282 adb -s $device push "$gdbserver" "$gdbserver_bin"
283 283
284 if (adb -s $device pull /system/bin/tee /dev/null &> /dev/null); then 284 if adb -s $device shell ls /system/bin/tee; then
285 # Copy it to the user directory. 285 # Copy it to the user directory.
286 adb -s $device shell "$gdbserver_cat" 286 adb -s $device shell "$gdbserver_cat"
287 adb -s $device shell "run-as $package chmod +x gdbserver" 287 adb -s $device shell "run-as $package chmod +x gdbserver"