Holger Wenzel <[email protected]> writes: > Hello Michael,
Hi Holger, > 1. tramp-adb-prompt at orginal value > tramp-adb-prompt is a variable defined in `tramp-adb.el'. > Its value is "^[#\\$][[:space:]]+" > * tramp-adb find-file root directory > #+begin_src emacs-lisp > (setq tramp-verbose 6) > (find-file "/adb::/") > #+end_src > [[elisp:(insert-buffer%20"*debug%20tramp/adb%20nil*")][;; GNU Emacs: > 23.3.3 Tramp: 2.2.2 -*- mode: outline; -*- > 00:49:57.567468 tramp-adb-maybe-open-connection (3) # Opening adb > shell connection... > 00:49:57.568299 tramp-adb-maybe-open-connection (6) # > /opt/android-sdk-update-manager/platform-tools/adb shell > 00:50:05.977100 tramp-accept-process-output (3) # Opening adb shell > connection...done > 00:50:05.977292 tramp-file-name-handler (1) # Interrupt received in > operation (file-attributes /adb::/)elisp:(insert-buffer "*debug > tramp/adb nil*")]] Yep. The prompt shall be customizable as said in the last message. > 2, tramp-adb-prompt with adapted value > tramp-adb-prompt is a variable defined in `tramp-adb.el'. > Its value is "^~[[:space:]]+[#\\$][[:space:]]+" > > * tramp-adb find-file root directory > #+begin_src emacs-lisp > (setq tramp-verbose 6) > (find-file "/adb::/") > #+end_src > #+results: > : #<buffer /adb::/> > [[elisp:(insert-buffer%20"*debug%20tramp/adb%20nil*")][;; GNU Emacs: > 23.3.3 Tramp: 2.2.2 -*- mode: outline; -*- > 01:09:45.009001 tramp-adb-maybe-open-connection (3) # Opening adb > shell connection... > 01:09:45.009843 tramp-adb-maybe-open-connection (6) # > /opt/android-sdk-update-manager/platform-tools/adb shell > 01:09:48.096896 tramp-wait-for-regexp (6) # > * daemon not running. starting it now on port 5037 * > * daemon started successfully * > ~ # > 01:09:48.097236 tramp-adb-maybe-open-connection (3) # Opening adb > shell connection...done > 01:09:48.097398 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.156758 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:09:48.158167 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.216730 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:09:48.218139 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.276865 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:09:48.278383 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.336756 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:09:48.337481 tramp-adb-handle-file-writable-p (5) # not implemented > yet (Assuming /data/data is writable) :/ > 01:09:48.338428 tramp-adb-handle-file-writable-p (5) # not implemented > yet (Assuming /data/data is writable) :/ > 01:09:48.338820 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.396656 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:09:48.397495 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:09:48.456738 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # elisp:(insert-buffer "*debug tramp/adb nil*")]] I do not see a failed command. OTOH, I do not see "ls -l /", which ought to retrieve the contents of the directory. Maybe, there were cached values. For a clean test it is always recommended to apply "M-x tramp-cleanup-connection" in advance. This kills the connection buffer (as you have done manually) AND removes all cache values. > * tramp-adb dired root directory and clicking on one directory (data) > #+begin_src emacs-lisp > (kill-buffer "*debug tramp/adb nil*") > (dired "/adb::/") > #+end_src > #+results: > : #<buffer /adb::/> > [[elisp:(insert-buf;; GNU Emacs: 23.3.3 Tramp: 2.2.2 -*- mode: outline; -*- > 01:12:03.468187 tramp-adb-send-command (6) # ls -a -l /; echo > tramp_exit_status $? > 01:12:03.523674 tramp-wait-for-regexp (6) # > ls -a -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 . > drwxr-xr-x 14 root root 0 Sep 7 19:34 .. > drwxr-xr-x 3 root root 0 Sep 7 19:34 acct > drwxrwx--x 1 system cache 2048 Sep 8 12:28 cache > dr-x------ 2 root root 0 Sep 7 19:34 config > lrwxrwxrwx 1 root root 17 Sep 7 19:34 d -> > /sys/kernel/debug > drwxrwx--x 1 system system 2048 Jul 15 16:54 data > -rw-r--r-- 1 root root 118 Jan 1 1970 default.prop > drwxr-xr-x 13 root root 1220 Sep 7 19:34 dev > lrwxrwxrwx 1 root root 11 Sep 7 19:34 etc -> /system/etc > -rwxr-x--- 1 root root 98336 Jan 1 1970 init > -rwxr-x--- 1 root root 1677 Jan 1 1970 init.goldfish.rc > -rwxr-x--- 1 root root 14845 Jan 1 1970 init.rc > -rwxr-x--- 1 root root 3029 Jan 1 1970 init.sapphire.rc > -rwxr-x--- 1 root root 3029 Jan 1 1970 init.trout.rc > drwxrwxr-x 6 root system 0 Sep 7 19:34 mnt > dr-xr-xr-x 96 root root 0 Jan 1 1970 proc > drwx------ 2 root root 0 Aug 21 00:15 root > drwxr-x--- 2 root root 0 Jan 1 1970 sbin > drwxrwx--x 7 system system 1024 Aug 29 07:52 sd-ext > lrwxrwxrwx 1 root root 11 Sep 7 19:34 sdcard -> /mnt/sdcard > drwxr-xr-x 13 root root 0 Sep 7 19:34 sys > drwxr-xr-x 1 root root 2048 Aug 28 21:04 system > -rw-r--r-- 1 root root 25 Jan 1 1970 ueventd.ds.rc > -rw-r--r-- 1 root root 0 Jan 1 1970 ueventd.goldfish.rc > -rw-r--r-- 1 root root 3882 Jan 1 1970 ueventd.rc > lrwxrwxrwx 1 root root 14 Sep 7 19:34 vendor -> > /system/vendor > tramp_exit_status 0 > ~ # > 01:12:03.524021 tramp-adb-send-command (6) # ls -d -a -l /. /..; echo > tramp_exit_status $? > 01:12:03.580714 tramp-wait-for-regexp (6) # > ls -d -a -l /. /..; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 /. > drwxr-xr-x 14 root root 0 Sep 7 19:34 /.. > tramp_exit_status 0 > ~ # > 01:12:03.585079 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:12:03.640778 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # > 01:12:15.049298 tramp-adb-send-command (6) # ls -d -l /data; echo > tramp_exit_status $? > 01:12:15.089801 tramp-wait-for-regexp (6) # > ls -d -l /data; echo tramp_exit_status $? > drwxrwx--x 1 system system 2048 Jul 15 16:54 /data > tramp_exit_status 0 > ~ # > 01:12:15.090859 tramp-adb-send-command (6) # ls -d -l /data; echo > tramp_exit_status $? > 01:12:15.144759 tramp-wait-for-regexp (6) # > ls -d -l /data; echo tramp_exit_status $? > drwxrwx--x 1 system system 2048 Jul 15 16:54 /data > tramp_exit_status 0 > ~ # fer "*debug tramp/adb nil*")]] Looks OK to me. > * tramp-adb dired other directory > #+begin_src emacs-lisp > (kill-buffer "*debug tramp/adb nil*") > (dired "/adb::/data") > #+end_src > [[elisp:(insert-buffer "*debug tramp/ad;; GNU Emacs: 23.3.3 Tramp: > 2.2.2 -*- mode: outline; -*- > 01:13:23.078933 tramp-adb-handle-file-truename (4) # Finding true name > for `/adb::/data' > 01:13:23.079153 tramp-adb-handle-file-truename (5) # Check /data > 01:13:23.079581 tramp-adb-send-command (6) # ls -d -l /data; echo > tramp_exit_status $? > 01:13:23.122946 tramp-wait-for-regexp (6) # > ls -d -l /data; echo tramp_exit_status $? > drwxrwx--x 1 system system 2048 Jul 15 16:54 /data > tramp_exit_status 0 > ~ # > 01:13:23.123540 tramp-adb-handle-file-truename (4) # True name of > `/adb::/data' is `/data' > 01:13:23.124046 tramp-adb-send-command (6) # ls -d -l /data; echo > tramp_exit_status $? > 01:13:23.180760 tramp-wait-for-regexp (6) # > ls -d -l /data; echo tramp_exit_status $? > drwxrwx--x 1 system system 2048 Jul 15 16:54 /data > tramp_exit_status 0 > ~ # > 01:13:23.185372 tramp-adb-send-command (6) # ls -d -l /; echo > tramp_exit_status $? > 01:13:23.240735 tramp-wait-for-regexp (6) # > ls -d -l /; echo tramp_exit_status $? > drwxr-xr-x 14 root root 0 Sep 7 19:34 / > tramp_exit_status 0 > ~ # b nil*")]] > Does this tell you more? In this scenario, I do not see what is going wrong. Could you please show also the misbehaviour for it? Is it that the contents of "/data" is not shown? > Kind regards, > Holger Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
