!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
2 Jan 2025
@atemu12:matrix.orgatemu12Fair point17:19:20
@atemu12:matrix.orgatemu12Please send a PR :)17:19:30
@atemu12:matrix.orgatemu12I don't know about Google's spyware but Magisk: Yes17:20:08
@atemu12:matrix.orgatemu12https://github.com/nix-community/robotnix/pull/26617:20:23
@atemu12:matrix.orgatemu12https://github.com/nix-community/robotnix/issues/1417:20:33
@atemu12:matrix.orgatemu12(I think you'd know more about embedding gapps into AOSP than I do given you've worked in the industry :) )17:22:09
@oak:universumi.fioak 🏳️‍🌈♥️Yeah they did it in one project in the past but I don't have access to the project's Android tree anymore so I could check how it was done17:22:54
@oak:universumi.fioak 🏳️‍🌈♥️It looks like you just need to unzip the GApps bundle, and copy some files to right places during the build17:25:42
@oak:universumi.fioak 🏳️‍🌈♥️and remove few apps from the build if you don't want to have two Contacts, Calendar, etc. apps17:27:13
@atemu12:matrix.orgatemu12I'm sure there's a pre-made vendor/gapps module somewhere17:27:36
@countoren:matrix.orgcountorendo we have way right now to change init.rc on the device?18:50:42
@countoren:matrix.orgcountorenfrom a module in robotnix?18:50:58
@atemu12:matrix.orgatemu12I'm sure there is19:02:16
@atemu12:matrix.orgatemu12But not from robotnix itself19:02:32
@oak:universumi.fioak 🏳️‍🌈♥️You could patch how the init.rc is being built from the source files20:25:30
@oak:universumi.fioak 🏳️‍🌈♥️IIRC init.rc or at least some of those configuration files are generated by combining mulitple source files from Android source tree20:27:32
@atemu12:matrix.orgatemu12Generally with most of this stuff the answer is yes because all we really do is wrap the AOSP build process in a Nix drv20:28:11
@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

Show newer messages


Back to Room ListRoom Version: 6