diff options
| author | Po Lu <luangruo@yahoo.com> | 2023-02-10 18:57:51 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2023-02-10 18:57:51 +0800 |
| commit | a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9 (patch) | |
| tree | abbb940a86dfc835ff22ec40d5387ea4a20a9e55 /java/debug.sh | |
| parent | 60270d8ee30ee15b5ed74ac211b7cb35c58ad3f3 (diff) | |
Update Android port
* doc/emacs/android.texi (Android Windowing): Remove yet another
limitation.
* java/debug.sh: Make this work on systems which prohibit
attaching to app processes from adbd.
* java/org/gnu/emacs/EmacsCopyArea.java (perform): Avoid
creating copies whenever possible.
* java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView):
Remove SurfaceView based implementation and use manual double
buffering with invalidate instead.
* java/org/gnu/emacs/EmacsView.java (EmacsView, handleDirtyBitmap)
(raise, lower, onDetachedFromWindow): Adjust accordingly.
* java/org/gnu/emacs/EmacsWindow.java (windowUpdated): Remove
function.
* src/sfntfont.c (sfntfont_open): Set font->max_width correctly.
Diffstat (limited to 'java/debug.sh')
| -rwxr-xr-x | java/debug.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/java/debug.sh b/java/debug.sh index 7008664c049..2e95f9738c7 100755 --- a/java/debug.sh +++ b/java/debug.sh @@ -267,10 +267,14 @@ if [ -z "$gdbserver" ]; then gdbserver_bin=/system/bin/gdbserver else gdbserver_bin=/data/local/tmp/gdbserver + gdbserver_cat="cat $gdbserver_bin | run-as $package sh -c \ + \"tee gdbserver > /dev/null\"" # Upload the specified gdbserver binary to the device. adb -s $device push "$gdbserver" "$gdbserver_bin" - adb -s $device shell chmod +x "$gdbserver_bin" + # Copy it to the user directory. + adb -s $device shell "$gdbserver_cat" + adb -s $device shell "run-as $package chmod +x gdbserver" fi # Now start gdbserver on the device asynchronously. @@ -286,10 +290,9 @@ if [ -z "$gdbserver" ]; then else # Normally the program cannot access $gdbserver_bin when it is # placed in /data/local/tmp. - adb -s $device shell $gdbserver_bin --once \ - "+/data/local/tmp/debug.$package.socket" \ - --attach $pid >&5 & - gdb_socket="localfilesystem:/data/local/tmp/debug.$package.socket" + adb -s $device shell run-as $package "./gdbserver" --once \ + "0.0.0.0:7654" --attach $pid >&5 & + gdb_socket="tcp:7654" fi # Wait until gdbserver successfully runs. |
