From: Michael Albinus <michael.albinus@gmx.de>
To: Neal Becker <ndbecker2@gmail.com>
Cc: "Jürgen Hötzel" <juergen@archlinux.org>, emacs-devel@gnu.org
Subject: Re: [tramp-adb] su?
Date: Fri, 01 Mar 2013 22:23:32 +0100 [thread overview]
Message-ID: <87k3pqizl7.fsf@gmx.de> (raw)
In-Reply-To: <kgq4vk$vou$1@ger.gmane.org> (Neal Becker's message of "Fri, 01 Mar 2013 06:55:35 -0500")
Neal Becker <ndbecker2@gmail.com> writes:
Hi Neal,
> I'm not familiar with the code. But here are a couple of thoughts:
>
> 1. Always issue su and if it doesn't work, ignore the error
Well, I have applied a patch to tramp-adb.el which
* Performs "su <user>" if user is given in the file name
* Raises an error if this command fails.
With this, the usual "/adb::" still works, and "/adb:root@:" works if
the device supports it.
(My examples assume, that the host name is optional if there is exactly
one device connected via adb)
> 2. Isn't it true that adb push/pull runs with root privledge? I
> haven't tested,
> but I don't recall ever seeing permission denied when doing adb push.
Don't know. Let's see what other people report. Maybe you must call
"adb root" outside Emacs in advance; but I really don't know ...
Best regards, Michael.
prev parent reply other threads:[~2013-03-01 21:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 15:08 [tramp-adb] su? Neal Becker
2013-02-28 19:44 ` Michael Albinus
2013-03-01 11:55 ` Neal Becker
2013-03-01 21:23 ` Michael Albinus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3pqizl7.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=juergen@archlinux.org \
--cc=ndbecker2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.