tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with tramp-adb


From: Holger Wenzel
Subject: Problems with tramp-adb
Date: Tue, 6 Sep 2011 22:28:54 +0200

Hi,

I've started using tramp-adb to access files on my rooted HTC Sapphire, running Android 2.3.5.

adb is version 1.0.26, tramp 2.2.2, emacs 23-3 and tramp-adb.el the version from June 10th from github.

I followed the instructions in the Readme and top of tramp-adb.el to hook it into tramp.

In my first attempt, emacs hung after I tried

(find-file "/adb::/")
  
Looking at the prompt from my adb-shell 

address@hidden ~ $ adb shell                                                      
~ #                            


and comparing this with the regexp for this in tramp-adb.el

 "^[#\\$][[:space:]]+" 

it appeared it didn't match.

Changing this into  

 (defconst tramp-adb-prompt "^~[[:space:]]+[#\\$][[:space:]]+"
  "Regexp used as prompt in ADB shell.")

to reflect the tilde at the beginning of the prompt got me one step further.

(dired "/adb::/") 

gives me a buffer called /adb::/<2> with the content of the root of my Android file system.

 /adb::/:
  drwxr-xr-x   14 root     root             0 Sep  5 14:42 .
  drwxr-xr-x   14 root     root             0 Sep  5 14:42 ..
  drwxr-xr-x   14 root     root             0 Sep  5 14:42 /.
  drwxr-xr-x   14 root     root             0 Sep  5 14:42 /..
  drwxr-xr-x    3 root     root             0 Sep  5 14:42 acct
  drwxrwx--x    1 system   cache         2048 Sep  6 13:26 cache
  dr-x------    2 root     root             0 Sep  5 14:42 config
  lrwxrwxrwx    1 root     root            17 Sep  5 14:42 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  5 14:42 dev
  lrwxrwxrwx    1 root     root            11 Sep  5 14:42 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  5 14:42 mnt
  dr-xr-xr-x   97 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  5 14:42 sdcard -> /mnt/sdcard
  drwxr-xr-x   13 root     root             0 Sep  5 14:42 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  5 14:42 vendor -> /system/vendor

A buffer called *tramp/adb nil* is also created that has the following content

                drwxr-xr-x   14 root     root             0 Sep  5 14:42 /

When I try to open one of the files in dired, I get 

          dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer

When I try to open another but the root directory, I get:



File /adb::/ is read-only on disk.  Change buffer mode? (y or n) 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]