From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dov Grobgeld Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 19 Feb 2023 11:24:58 +0200 Message-ID: References: <912677799.460919.1676709333977@mail1.libero.it> <87zg9bjrfi.fsf@yahoo.com> <2083511697.508112.1676757486753@mail1.libero.it> <87mt5ajtbr.fsf@yahoo.com> <1002927807.523870.1676797315058@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28085"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , "emacs-devel@gnu.org" To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 19 10:25:53 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pTfxB-00079J-Jf for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Feb 2023 10:25:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTfwa-0005n4-Nh; Sun, 19 Feb 2023 04:25:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTfwY-0005mr-M1 for emacs-devel@gnu.org; Sun, 19 Feb 2023 04:25:15 -0500 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTfwW-00014q-SO for emacs-devel@gnu.org; Sun, 19 Feb 2023 04:25:14 -0500 Original-Received: by mail-lf1-x130.google.com with SMTP id c33so470979lfv.8 for ; Sun, 19 Feb 2023 01:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=17YTOB6u3+Ssi3Z/NJ0wi0qsRdMjrPE8ZgHRR3h3yUY=; b=CNe4B/AAS/S1XWDHlD3Sext1SpWLwqhKe0ZM2bhnkDH/v00froK2ZvGPR6CQQjGhht G7XJmmEb4FKaiJ6Dfj9Y2oODPEhEhOL2XIKmFarYkIcoYXcOKfplDYMlPMtcSrYQva6i xburR8pDDNverhu4WKfuan2rRu3A6WhUXGt0ZFjiJQC2uV6SGDUPw3eH7yqTj7JKugW/ a+N7kG6ENodgBDMMWvqDjpJu+inN7sxK7CjUBCaoBU5Spice1MOZj8i3pL8mCasctjaw qFOY4FRTAp7VefI9aYcT4CqmOWmpS8FtHOp0lOPAFGR5LJQkElIwxlkfCivdfU2ADerg D24g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=17YTOB6u3+Ssi3Z/NJ0wi0qsRdMjrPE8ZgHRR3h3yUY=; b=39aV5c9lnaAY9+mgn8JV+htjB9Y7maJcpsL3Y7i7X+1+5GsZcm5jDCf4kgF93CyNNE yMfGR6GatMblqVdj7juMsG5i5GsLOm6XzWsaWgmLobAHMxHS8zZu5/m01PuMAGGxhAvk cZ9cIkO47TrjCIot1q+fjqyOyqct+J4bEEvsiTsP5a1DDInnrDvf3BU7M2/KIxWUacrg eKSfKCgw8PjCRj8wtRXmGSiOth8ADqK3z//h9roVAime+aJiYDBQgUVnTnjTdSbhvUBU jHYYrSlYwpb3aiZ3wbJieKGoH6xw5sZCGuFs+OnMRh5/ukxSA/Xp4t2ufjTpWmnEQ7Vq 00vg== X-Gm-Message-State: AO0yUKVrKJFugkJTcwT4vBbAh9wmsDduHwAcZkvtD4lJiJ64Ab5Yz0k3 40Jdv7YcIkv7yQbMFrYCM8cv/nrgcdnsS50cSmU= X-Google-Smtp-Source: AK7set/fr3ouIWy6tjsvYK1p055bV2vNN3IVMwW4vPVniF7zDVwZM/MPElBDWyn13dSJTxAuNGe0AUWpNrs6FuBJSJo= X-Received: by 2002:a19:ad0d:0:b0:4d5:ca32:6fa1 with SMTP id t13-20020a19ad0d000000b004d5ca326fa1mr389720lfc.0.1676798710193; Sun, 19 Feb 2023 01:25:10 -0800 (PST) In-Reply-To: <1002927807.523870.1676797315058@mail1.libero.it> Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=dov.grobgeld@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303545 Archived-At: Finally something that I can answer. :-) To use adb on Linux you need to do the following: 1. Enable debug mode on the android device. The way you do this depends on the device, but it typically involves tapping five to seven times on the system about kernel version. Look for it on the web. 2. After enabling debug mode looking for "USB debugging" on the device and turn it on. 3. Connect the android device to the computer by cable. 4. Run `adb shell` on your computer. This will fail to connect because of permissions. 5. On the android device you will get a popup asking whether you want to allow usb debugging from your computer. Confirm this. 6. Back in the computer terminal do a `killall adb` to remove the previous adb process (it installs itself as a server). And redo it. 7. You will now have a shell into your device. :-) You can use adb to copy files `adb push` and `adb pull` to the device. You can also use `adb logcat` and filter the output by regexps. Hope this helps! Looking forward to using emacs on my android tablet! Dov On Sun, Feb 19, 2023 at 11:02 AM Angelo Graziosi wrot= e: > > > > Il 19/02/2023 03:13 Po Lu ha scritto: > > > > As it says, you should read the node ``Android Environment'' in the > > Emacs manual. This notification is displayed to prevent Emacs from > > being killed after entering the background. > > I did but many things are still unclear.. > > > Copying an init.el from another system is best done through the system > > file manager or by copying the files into Emacs's home directory via th= e > > external storage. > > > > Here the file manager does not show Emacs directory.. or at least I canno= t find it.. It is unclear the last sentence: from Emacs I can visit a file,= say in /sdcard/Download/, but HOW copy it in Emacs, say in ~/? > > > File managers on most proprietary versions of Android refuse to display > > Emacs's home directory, because they are more keen to display > > advertisements than to actually manage files. > > ..so this way could be unusable here... > > > > First, try with an up to date build. > > Let's wait for an F-Droid update, then.. > > > > > adb logcat | grep android_run_debug_thread > > > > to run the above or similar I should install adb on GNU/Linux (Mint in my= case)? and how to connect the device? with its cable? I never did this bec= ause I transfer files via ssh and similar.. BTW, I have adb installed in Te= rmux on the same device.. I wonder if I can use that.. > > In any case, > Thanks! >