!UUYziobKGGxpovWyAN:nixos.org

Robotnix

240 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix74 Servers

Load older messages


SenderMessageTime
2 Jan 2025
@atemu12:matrix.orgatemu12You first gotta figure out how to do it with AOSP and then just inject that declaratively via robotnix20:28:31
@countoren:matrix.orgcountorenyes that will be one way, but if you would like to add custom configurations/services we might want something like robotnix.rc that will be written from the expression directly20:30:13
@atemu12:matrix.orgatemu12Sure, feel free20:30:34
@atemu12:matrix.orgatemu12to build that20:30:39
@countoren:matrix.orgcountorenI might go to this direction20:30:59
@atemu12:matrix.orgatemu12There's precedent for stuff like this in e.g. the webviews20:31:01
@countoren:matrix.orgcountorennot 100% sure20:31:05
@atemu12:matrix.orgatemu12Or system APK handling20:31:10
@atemu12:matrix.orgatemu12I'd recommend you try to do it via a Magisk overlay first though for quicker iteration20:31:35
@countoren:matrix.orgcountorenthe cool thing about that you will be able to cross compile you own services if you want and just run them from robotnix.rc20:32:21
@oak:universumi.fioak 🏳️‍🌈♥️Usually with Android it's not that easy, or I mean you need to provide build scripts on how to build the thing as part of the Android tree20:33:29
@countoren:matrix.orgcountorenat work for me it was as straightforward as that20:34:13
@countoren:matrix.orgcountorenand I am able to access wifi, serial from the service without any other config20:34:58
@countoren:matrix.orgcountorenusing crossPkgs, pkgsStatic20:36:03
@oak:universumi.fioak 🏳️‍🌈♥️Properly packaging a native low-level Linux-daemon for Android is a process which involves multiple kinds of steps, for example you need to provide the necessary SELinux policy in addition to other things20:36:26
@countoren:matrix.orgcountorenyes we had to do that too20:37:13
@oak:universumi.fioak 🏳️‍🌈♥️Builds done with pkgsStatic won't use the Android's bionic libc, but instead something that is provided by nixpkgs, statically built into the binary20:37:52
@atemu12:matrix.orgatemu12nix-daemon when?20:38:23
@countoren:matrix.orgcountorenyep20:38:51
@oak:universumi.fioak 🏳️‍🌈♥️For quick hacking that is probably fine, but if you want to properly package software for Android System then it should be built as part of the Android tree20:39:10
@oak:universumi.fioak 🏳️‍🌈♥️For example if you are actually aiming to productize something officially20:39:21
@atemu12:matrix.orgatemu12I mean, we'd just use the nixpkgs ones and add the selinux rule to allow the Nix store just like on Fedora20:39:45
@atemu12:matrix.orgatemu12Or perhaps add a permission for apps to use it20:40:02
@countoren:matrix.orgcountorenit will be the actual differences20:40:27
@countoren:matrix.orgcountoren* what will be the actual differences20:40:37
@countoren:matrix.orgcountoren* what will be the actual differences?20:40:47
@atemu12:matrix.orgatemu12I think we're squarely in the "hacking stuff" field rather than anything close to "productise" or "officially"20:41:00
@atemu12:matrix.orgatemu12I think they mean to build whatever software you want to run as a daemon against the AOSP sources such that it's like the other daemons in Android20:41:56
@atemu12:matrix.orgatemu12When in Rome, do as the Romans do20:42:05
@oak:universumi.fioak 🏳️‍🌈♥️Build done inside the Android tree will use the same compilers and other same tooling that is used to build the rest of the system20:42:33

Show newer messages


Back to Room ListRoom Version: 6