$ adb shell touch '/sdcard/file\ with\ spaces\ in\ name' $ EMACSLOADPATH=~/.emacs_/tramp/lisp/: /usr/bin/emacs -Q /adb::/sdcard/
drwxrwx--- 1 root everybody 3452 07-07 08:50 Recordings drwxrwx--- 1 root everybody 3452 07-26 09:36 Ringtones D -rw-rw---- 1 root everybody 0 08-03 03:18 file\\ with\\ spaces\\ in\\ name drwxrwx--- 1 root everybody 3452 08-03 04:35 jidanni drwxrwx--- 1 root everybody 3452 08-02 16:57 osmtracker (the D file is red colored.) x runs the command dired-do-flagged-delete... 05:57:26.310665 tramp-adb-send-command (6) # ls -1 -d -l /sdcard/file\\\ with\\\ spaces\\\ in\\\ name; echo tramp_exit_status $? 05:57:26.361842 tramp-wait-for-regexp (6) # ls -1 -d -l /sdcard/file\\\ with\\\ spaces\\\ in\\\ name; echo tramp_exit_status $? ls: /sdcard/file\ with\ spaces\ in\ name: No such file or directory tramp_exit_status 1 ///506255827f0472569443de0a36e4bb55#$ 05:57:26.366497 tramp-adb-send-command (6) # rm /sdcard/file\\\ with\\\ spaces\\\ in\\\ name; echo tramp_exit_status $? 05:57:26.393550 tramp-wait-for-regexp (6) # rm /sdcard/file\\\ with\\\ spaces\\\ in\\\ name; echo tramp_exit_status $? rm: /sdcard/file\ with\ spaces\ in\ name: No such file or directory tramp_exit_status 1 ///506255827f0472569443de0a36e4bb55#$ 05:57:26.394697 tramp-adb-barf-unless-okay (1) # File error: Couldn’t delete /adb::/sdcard/file\ with\ spaces\ in\ name rm: /sdcard/file\ with\ spaces\ in\ name: No such file or directory $ set ro.build.version.release ro.system.build.version.sdk ro.product.bootimage.brand ro.product.bootimage.model $ echo $@|xargs -n 1 adb shell getprop 12 31 samsung SM-A136U tramp-version is a variable defined in ‘tramp-cmds.el’. Its value is "2.5.3" Anyway, do test on samsung android 12.