[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.2.13.25.1); Why don't you test TRAMP on Android 7.0?
From: |
積丹尼 Dan Jacobson |
Subject: |
Re: tramp (2.2.13.25.1); Why don't you test TRAMP on Android 7.0? |
Date: |
Sat, 27 May 2017 11:34:13 +0800 |
Cellphones are now the most common computer,
and Android is now the most common cellphone,
so let's get tramp working on it again for heaven's sake.
>>>>> "MA" == Michael Albinus <address@hidden> writes:
MA> I would need more information. Could you set tramp-verbose to 6, rerun
MA> your test, and send me the debug buffer?
Here it is. I removed the CR(^M)s.
My goal was to simply do dired of /sdcard.
It just hangs upon doing C-x C-d /adb::/sdcard
and has to be interrupted with C-g.
;; GNU Emacs: 25.1.1 Tramp: 2.2.13.25.1 -*- mode: outline; -*-
10:55:22.598183 tramp-adb-handle-file-truename (4) # Finding true name for
‘/adb::/’
10:55:22.598542 tramp-adb-handle-file-truename (4) # True name of ‘/’ is ‘/’
10:55:22.599639 tramp-adb-get-ls-command (5) # JIDANNI Says a suitable ‘ls’
command is ‘ls’
10:55:22.610698 tramp-adb-maybe-open-connection (3) # Opening adb shell
connection...
10:55:22.612761 tramp-adb-maybe-open-connection (6) # adb shell
10:55:52.615105 tramp-adb-maybe-open-connection (3) # Opening adb shell
connection...failed
10:55:52.616744 tramp-adb-handle-file-truename (4) # Finding true name for
‘/adb::/’
10:55:52.616985 tramp-adb-handle-file-truename (4) # True name of ‘/’ is ‘/’
10:55:52.619120 tramp-adb-parse-device-names (6) # adb devices
10:55:52.626207 tramp-adb-parse-device-names (6) #
List of devices attached
GAAxxxxxxxxxxxx device
Process adb finished
10:55:52.626663 tramp-adb-send-command (6) # ls -d -l //; echo
tramp_exit_status $?
10:55:59.980030 tramp-file-name-handler (1) # Interrupt received in operation
(file-attributes /adb:://)
ls -d -l //; echo tramp_exit_status $?
drwxrwxrwt 25 root root 1320 1970-06-09 02:25 //
tramp_exit_status 0
ASUS_Z012D:/ $
10:57:51.686785 tramp-adb-send-command (6) # ls -d -l /sdcard; echo
tramp_exit_status $?
10:59:58.990226 tramp-file-name-handler (1) # Interrupt received in operation
(file-attributes /adb::/sdcard)
ls -d -l /sdcard; echo tramp_exit_status $?
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 /sdcard -> /storage/self/primary
tramp_exit_status 0
ASUS_Z012D:/ $
10:59:58.990568 tramp-file-name-handler (1) # Interrupt received in operation
(file-exists-p /adb::/sdcard)
ls -d -l /sdcard; echo tramp_exit_status $?
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 /sdcard -> /storage/self/primary
tramp_exit_status 0
ASUS_Z012D:/ $
11:02:25.340538 tramp-adb-handle-file-truename (4) # Finding true name for
‘/adb::/storage/self/primary’
11:02:25.340888 tramp-adb-handle-file-truename (5) # Check /storage
11:02:25.341932 tramp-adb-send-command (6) # ls -d -l /storage; echo
tramp_exit_status $?
11:02:37.594447 tramp-file-name-handler (1) # Interrupt received in operation
(file-attributes /adb::/storage)
ls -d -l /storage; echo tramp_exit_status $?
drwxr-xr-x 4 root root 80 2017-05-27 04:55 /storage
tramp_exit_status 0
ASUS_Z012D:/ $
11:02:37.594799 tramp-file-name-handler (1) # Interrupt received in operation
(file-truename /adb::/storage/self/primary)
ls -d -l /storage; echo tramp_exit_status $?
drwxr-xr-x 4 root root 80 2017-05-27 04:55 /storage
tramp_exit_status 0
ASUS_Z012D:/ $
11:02:37.595077 tramp-file-name-handler (1) # Interrupt received in operation
(file-directory-p /adb::/storage/self/primary)
ls -d -l /storage; echo tramp_exit_status $?
drwxr-xr-x 4 root root 80 2017-05-27 04:55 /storage
tramp_exit_status 0
ASUS_Z012D:/ $
See, I can do this in the *shell* buffer:
11:02 ~$ adb shell
ASUS_Z012D:/ $ pwd
pwd
/
ASUS_Z012D:/ $ ls
ls
ls: ./init: Permission denied
ADF init.asus.thermald.rc oem
APD init.asus.usb.rc persdata
...
1|ASUS_Z012D:/ $ ls -l -d /sdcard
ls -l -d /sdcard
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 /sdcard -> /storage/self/primary
ASUS_Z012D:/ $ echo $0
echo $0
/system/bin/sh
But for some reason TRAMP cannot.
Here is my .emacs:
(require 'tramp)
(require 'tramp-adb)
(setq tramp-verbose 6)
(defun tramp-adb-get-ls-command (vec)
(with-tramp-connection-property vec "ls"
(tramp-message vec 5 "JIDANNI Says a suitable `ls' command is `ls'")
"ls")) ;; in my ASUS stock Android 7.0:
;; --color=auto means detect if output is a tty, --color=never just
means --color
I even tried C-x C-f /adb::/selinux_version
It just hangs until C-g.
ls -d -l /selinux_version; echo tramp_exit_status $?
-rw-r--r-- 1 root root 78 1970-01-01 08:00 /selinux_version
tramp_exit_status 0
ASUS_Z012D:/ $
But I can do
$ cat /selinux_version
cat /selinux_version
asus/WW_Phone/ASUS_Z012D:7.0/NRD90M/14.2020.1704.38-20170512:user/release-keysASUS_Z012D:/
$
fine.
Maybe TRAMP is waiting for a newline?
- Re: tramp (2.2.13.25.1); Why don't you test TRAMP on Android 7.0?,
積丹尼 Dan Jacobson <=