From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +H7OBWQFZWN0VAEAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 13:28:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oJLhBGQFZWPeUAEAG6o9tA (envelope-from ) for ; Fri, 04 Nov 2022 13:28:20 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BC69123586 for ; Fri, 4 Nov 2022 13:28:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqvnt-0001iK-Pn; Fri, 04 Nov 2022 08:28:10 -0400 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 1oqvnm-0001ft-Lv for guix-patches@gnu.org; Fri, 04 Nov 2022 08:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqvnl-0007n5-Q9 for guix-patches@gnu.org; Fri, 04 Nov 2022 08:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqvnl-00073b-LO for guix-patches@gnu.org; Fri, 04 Nov 2022 08:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH v3 1/8] gnu: Add linux-libre-waydroid. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Nov 2022 12:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Julien Lepiller Cc: Maxime Devos , Ludovic =?UTF-8?Q?Court=C3=A8s?= , "51737@debbugs.gnu.org" <51737@debbugs.gnu.org>, Liliana Marie Prikler , phodina Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.166756484027074 (code B ref 51737); Fri, 04 Nov 2022 12:28:01 +0000 Received: (at 51737) by debbugs.gnu.org; 4 Nov 2022 12:27:20 +0000 Received: from localhost ([127.0.0.1]:52026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqvn6-00072c-3o for submit@debbugs.gnu.org; Fri, 04 Nov 2022 08:27:20 -0400 Received: from cyberdimension.org ([80.67.179.20]:55760 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqvn3-00072Q-Cf for 51737@debbugs.gnu.org; Fri, 04 Nov 2022 08:27:18 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id df14d96d; Fri, 4 Nov 2022 12:22:22 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 3de1c4a0; Fri, 4 Nov 2022 12:22:22 +0000 (UTC) Date: Fri, 4 Nov 2022 13:26:52 +0100 From: Denis 'GNUtoo' Carikli Message-ID: <20221104132652.418038da@primary_laptop> In-Reply-To: <20221104040308.770e2853@primary_laptop> References: <6DHjUMqjMoW-JFxyBmViVrNgl6CjM63WJ5vn4bejvkbXWdkQa_NSI1l2lfluy4q_PMSinz3DdOq5mM5oVsuoHsrDzMKEqjcUTQ_R7NpAYp0=@protonmail.com> <95979f80d53295fa999af83919909ee786fde125.camel@telenet.be> <8fzx37ONySCMqGXHR4oPO5rd9PWHkHEZVvAb7fGF4EY8pcYugP0Sc8WyO2odhu5SJBfPDbnjkOjxga5n91wMcEKWdSOYYlYKX-ITndH2WUM=@protonmail.com> <9768fe9c925723795a7b9c24504cfec57f5bfde4.camel@gmail.com> <20221104040308.770e2853@primary_laptop> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Jl3bx1/_rOF7FMoX7nUEuMr"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667564899; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=s4A1qF/QKBEZnIOIf4aOiM+TQB288E35baPHPsd/Zrc=; b=QGvNUB0KzcOP2Do9VdrcIQfV5yMICWZIfOjzXiNqYE68yk9Nih+/CWcZnxKglgeTJE0VCU vCD7HQU2Ih49H8p8bio3gjVMp3jcZXWvRqQk72uXa6Rq1ljnuFBOWI74RDeKCAwrL7zOzz QtpYG6nMkL29brdTHRdrwoTzS3976TRLA1wsMMI2n+CYsbEGlUKFA2SZnMlHs/hH1ugKMa R/K+H8h1zLL9tr6atLYbjqKRSM1IEwKMNBmp8/FxwxkKm8vx1eanJ8FMKX3MZvs8YJoTwd colIHOPxFH2A9zCEp2Uk/oxeEjRx4M1aVFoJftR5R0tOpfmPFTw/4P7U4u4iVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667564899; a=rsa-sha256; cv=none; b=Dg8CXzy6AXCZwpOcDWAg6C1X7aNOukc7NadiiBzCd9Fs0uIlerRVstiOTN6gUY/pl8IthB TfNf6xM8oladbWBno2LlufDFbO3Mty6HaGwQBGWfBJS8D9SrzFdrEX55MR0UPzhObeiUuZ UHvNU8reToNLZPIhWY3UWOwGN8h6ez0nUbUL145xy80X1BSOhLTzFA+YEQh0E0bwQ9d/vL e3rXozLn25/shGvfBGwdA3xjGiYkrCXe8XaOPcFddZrAvjVNHrpzlqQiEdNBHONIWQajKp kfXv1WpuHq81UVbElyVA1Q+SXqh94Ghy7sODZ9pu0henF2RLHpuNcPIrB6iYMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BC69123586 X-Spam-Score: -3.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0sc1pTZJUQZ4 --Sig_/Jl3bx1/_rOF7FMoX7nUEuMr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 4 Nov 2022 04:03:08 +0100 Denis 'GNUtoo' Carikli wrote: > (1) Use GNU/Linux and Guix to make that FSDG compliant image. I found projects that have test code for binder under GNU/Linux[1][2], however it seems to require selinux. For getting a shell, it uses lxc directly[3]: > def shell(args): > if status(args) !=3D "RUNNING": > logging.error("WayDroid container is {}".format(status(args))) > return > command =3D ["lxc-attach", "-P", tools.config.defaults["lxc"], > "-n", "waydroid", "--"] > if args.COMMAND: > command.append(args.COMMAND) > else: > command.append("/system/bin/sh") > subprocess.run(command, env=3D{"PATH": os.environ['PATH'] + > ":/system/bin:/vendor/bin"}) Though it uses Android specific paths. If we add a symlink from /bin/sh to /system/bin/sh, it might work. So it's probably not that hard to somehow generate an image where the non-android specific functions could at least work for testing. It might also be possible to use that as a starting point to later on switch to Android images built with Guix. As for building applications, beside the technical part that Julien is working on as far as I understand, there is also the practical issue of finding applications that are easy to review (without tons of dependencies and so on) and that could work in Waydroid (Silence requires a telephony stack to be useful, and Waydroid doesn't seem to have one). We started doing code review long time ago in Replicant[4] but I didn't manage to complete a single review yet due to the lack of time. References: ----------- [1]https://github.com/hiking90/binder-linux [2]https://github.com/hungys/binder-for-linux [3]https://github.com/waydroid/waydroid/blob/main/tools/helpers/lxc.py [4]https://redmine.replicant.us/projects/replicant/wiki/F-DroidAndApplicati= ons Denis. --Sig_/Jl3bx1/_rOF7FMoX7nUEuMr Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmNlBQwACgkQX138wUF3 4mM+AxAAokCadmapeGNvsLoACwqCrxG8PJWKFdHYpeJM5BPjK60OSM9BfKVY4sWW MwAqOmbQlPKDi3Gu/8ofz9pwnX/ttFpL7sTqA6EnZnTkBrA9VLXeqaiasqW4fXi0 7Y40lKLy9z4P3s8A7rlrlls9RLkgLhi07qWkGCiLrqydEHaSQDfYfBT3/HzH4f6Q KNJVgucxa0ZTBcgI26wQzlLUlpdgnxegeZPoCmm60rfqpFR5N2B/ACLcCjaQf6Ek L7fnWj3573IpTAc2R3sTWKyUd3zyd5Ek9hZujbIwilGC+r/zkZIyOd3ElKM/pisi dn0VEdfK2z2av6qvMrA9dx3jPbSTGFjXhdUwUxhpwnV8FzFnzjUMLIvGuovh+zp0 kzHu6C7Q6GFFtz4r+4LXfOfYURDD7qVRLFML6Jqa42JmR5YZOaD8OW9QH/5HMsk0 8gQX4QTS48g8vgDMP9z43Rn7x0NCRJaOLEe/7sQlX/nFFsPBrP5FXpI9oR2Y1arz /DkAgFc3CkzHeb6c3WncnaE16jdpVa+TUHwQ9qkMQXYvGQ1R1bsjKoQEXqWMz7pQ CakOT3roTgYDkSP0RUF6x54PYCWtt/dLLryemC0OnsWtvBGUXLWOJeBY5rnKcBFd v85PnE38MB6IunBMvD0x5zGWHAg0HQG6AlY8ch+xk2xMNlagRRc= =9a// -----END PGP SIGNATURE----- --Sig_/Jl3bx1/_rOF7FMoX7nUEuMr--