From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [tramp-adb] su? Date: Fri, 01 Mar 2013 22:23:32 +0100 Message-ID: <87k3pqizl7.fsf@gmx.de> References: <878v681avs.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362173026 18330 80.91.229.3 (1 Mar 2013 21:23:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 21:23:46 +0000 (UTC) Cc: =?utf-8?Q?J=C3=BCrgen_H=C3=B6tzel?= , emacs-devel@gnu.org To: Neal Becker Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 01 22:24:10 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBXR2-0003aw-5m for ged-emacs-devel@m.gmane.org; Fri, 01 Mar 2013 22:24:08 +0100 Original-Received: from localhost ([::1]:47506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBXQg-0007Kp-UX for ged-emacs-devel@m.gmane.org; Fri, 01 Mar 2013 16:23:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBXQc-0007K7-RB for emacs-devel@gnu.org; Fri, 01 Mar 2013 16:23:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBXQZ-0005cm-JG for emacs-devel@gnu.org; Fri, 01 Mar 2013 16:23:42 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:51666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBXQZ-0005cS-AG for emacs-devel@gnu.org; Fri, 01 Mar 2013 16:23:39 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.12]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MP3Jh-1U8Uko2KBj-006Mdg for ; Fri, 01 Mar 2013 22:23:37 +0100 Original-Received: (qmail invoked by alias); 01 Mar 2013 21:23:36 -0000 Original-Received: from p57BB9843.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.67] by mail.gmx.net (mp012) with SMTP; 01 Mar 2013 22:23:36 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+F9s5JF9KF9ryOsW4aJhsjNHPyCfJJSSgE+xMgxG vt1FcVuigSeSVr In-Reply-To: (Neal Becker's message of "Fri, 01 Mar 2013 06:55:35 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157471 Archived-At: Neal Becker 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 " 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.