From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65207: 30.0; More instructions for how to build Android emacs, are needed Date: Thu, 10 Aug 2023 22:59:17 +0800 Message-ID: References: <87sf8rw8ka.fsf@gmail.com> Reply-To: Po Lu 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="17585"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65207@debbugs.gnu.org To: Johan =?UTF-8?Q?Wid=C3=A9n?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 17:00:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qU799-0004OT-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 17:00:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU78v-0002nz-Oh; Thu, 10 Aug 2023 11:00:05 -0400 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 1qU78s-0002nY-Sj for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 11:00:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU78s-0004LP-Js for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU78s-0007II-DC for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65207 X-GNU-PR-Package: emacs Original-Received: via spool by 65207-submit@debbugs.gnu.org id=B65207.169167958227979 (code B ref 65207); Thu, 10 Aug 2023 15:00:02 +0000 Original-Received: (at 65207) by debbugs.gnu.org; 10 Aug 2023 14:59:42 +0000 Original-Received: from localhost ([127.0.0.1]:43823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU78Y-0007HB-8S for submit@debbugs.gnu.org; Thu, 10 Aug 2023 10:59:42 -0400 Original-Received: from sonic310-14.consmr.mail.bf2.yahoo.com ([74.6.135.124]:39528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU78V-0007Gv-DJ for 65207@debbugs.gnu.org; Thu, 10 Aug 2023 10:59:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691679572; bh=W/ehZznUrktiYUMt++0xWtwiYNX4FTf7ClK+RPN4BIQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=dMC5MQMfP4ARUR05Dw40HfxYXVVTJ/u8TA5tcFGDYTAnuaCxQgWOWzb0KO8Kl7Akp7ycj2C+A1TNz+WXDbOq8yT1kq1h4r0GpzT0G/6eyrRmq7sHFVAemPp8y5l93axJSLKRp5h42E0mH9Er8KqK5ITGkqv/H6zqKrHgVUKGk5JtwWhmw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TZ6AnwbJ2DiTpZXV9mt9QxiaWPe6k7WpjPUfr9bR 3vZNy5ApEcoaDlfnzuYCJRm37mZlVGIkWuMRQa4YW7gs7ietNMOM93J28b2CLawkUxWRKOv5NtcT YWu.cnqMaYwmn8dfj8Gyw0JmJW6uM1KawBEJX4avjSJrKJT_xNgxL6tIL1sqMuEe7Lvg9aAFcMTY 26s16E0IdEqJKp7B2PxLbVI3raGr1UXhF.wBZT_kmZLlXlnr0GrsUovHwwmhLEnub5YIdUn6iKRt ZkR3WqQFRd_5Iep4pKmFDMaBFy7G3kyC_acsduING5JsKOjt83MjQ.xOc4GHkC5gwlHy1WQ7tyIM 2pfrZ.2vjbmpVwVa7aVXJ2cu5L6sH_ISE67sDjoUuMLr32mKCGDUgxSjaNtNzBvbTYH5PB3QakB2 SdXY_h2fu66L31JXxfw4eeaZQPpjYsHkF9AzlTL.01 X-Sonic-MF: X-Sonic-ID: 366f6346-2b69-4f59-883d-686dbd685de2 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Thu, 10 Aug 2023 14:59:32 +0000 Original-Received: by hermes--production-sg3-69654d8bd-7fcnj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c04722d773989ed44d1e6c6d4d1bf974; Thu, 10 Aug 2023 14:59:28 +0000 (UTC) In-Reply-To: <87sf8rw8ka.fsf@gmail.com> ("Johan =?UTF-8?Q?Wid=C3=A9n?="'s message of "Thu, 10 Aug 2023 11:23:41 +0200") X-Mailer: WebService/1.1.21695 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267141 Archived-At: Johan Wid=C3=A9n writes: > Note: This is a request for an enhancement of the emacs version 30 > documentation. I am writing this submission in emacs 29.1, so the > current environment details are irrelevant.=20 > > I needed to build and run the Android emacs APK, to try and track > down a bug. As I am a novice regarding building Android apps, > finding out how to do this required considerable effort. I therefore > suggest that information similar to what I include below, is added as > an appendix to java/INSTALL.=20 > > First I suggest that the emacs repo top level README or INSTALL > should include a reference to java/INSTALL. Perhaps something like > this:=20 > > * For instructions on how to build Android emacs, see . > /java/INSTALL. Eli already did this, I think. > Here is now my build and run instructions:=20 > > I am using Ubuntu, so these instructions are Ubuntu specific, but > should be easily adaptable to other linux based distributions. Note > that Android Studio, Android SDK, Android NDK can be downloaded > from the software provider, if they are not available in your linux > distributions package manager.=20 > > I first installed Android Studio. It is available in the Ubuntu snap > store:=20 > > * sudo snap install android-studio > > I then ran Android Studio to set it up, and also tried to build a sample > project. I believe that at this point $HOME/Android with important > subdirectory $HOME/Android/Sdk/build-tools/33.0.1 was added to > my $HOME directory. See below why this was important.=20 > [Further instructions elided.] While I don't oppose explaining the process in more detail, we should not recommend using Android Studio, as it is proprietary software. Google's binaries for the Android SDK and NDK are themselves free software built directly from public source code. We should instead describe how they can be obtained or built individually, without using Android Studio or the Sdkmanager. (The Sdkmanager demands users sign a scareware EULA before downloading anything, even free software that is available separately.) My understanding is that for Debian and Trisquel users, it is merely a matter of installing a few packages from their default package repositories, whereas the process for other GNU/Linux distribution is more involved. TIA.