!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
5 May 2023
@kranzes:matrix.orgkranzesso this might work too15:27:37
@kranzes:matrix.orgkranzeswho knows15:27:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @atemu12:matrix.org
matthewcroughan - nix.how: Ah, indeed it only installs the one APK
Ah some of the interesting bits are in modules/apps/prebuilt.nix
15:27:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
...
androidmk = prebuilt: pkgs.writeText "Android.mk" (''
  LOCAL_PATH := $(call my-dir)

  include $(CLEAR_VARS)
...
15:28:02
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI guess I could just get the zettle app and prebuild it in myself 15:28:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonethere just isn't a reliable way to fetch APKs15:28:32
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThis is why it is very much worth simply giving up and using the proprietary software for the highly proprietary platform15:28:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneBecause it's not free, and pretending it's free is only going to lead to unreliability, failure and tons of headache15:29:13
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone The way the prebuilt module option works is on .apk files, but what is the OpenGapps format? 15:34:43
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonewhen you get OpenGapps it comes not as an apk, but as a zip that you flash in TWRP. What is this format called/15:34:55
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * when you get OpenGapps it comes not as an apk, but as a zip that you flash in TWRP. What is this format called?15:34:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone We could ideally then add prebuilt.format = "apk" or prebuilt.format = "flashable-zip" and make it generic 15:35:15
@atemu12:matrix.orgatemu12
In reply to @matthewcroughan:defenestrate.it
when you get OpenGapps it comes not as an apk, but as a zip that you flash in TWRP. What is this format called?
It's a flashable zip containing an open recovery script IIRC
15:41:37
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneAh, so these things are designed to run in a recovery environment, and couldn't be executed or integrated into the Android build process?15:42:00
@atemu12:matrix.orgatemu12Why do you need to integrate it into the build process at all?15:42:26
@atemu12:matrix.orgatemu12Just flash it once and be done15:42:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI want to get rid of the imperative step15:42:54
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneFlash one thing instead of two 15:43:09
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone Atemu: Oh also I'm not using AOSP12, I'm using LineageOS, do you think this changes anything about the StackOverflow you sent me? 15:44:44
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone I wonder if we can just add this to flavors/lineageos/lineage-19.1/repo.json 15:46:06
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneand then make a module option that patches the repo.json file prior to usage 15:46:23
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * and then make a module option that patches the repo.json file prior to usage, for all flavors 15:46:27
@atemu12:matrix.orgatemu12
In reply to @matthewcroughan:defenestrate.it
Atemu: Oh also I'm not using AOSP12, I'm using LineageOS, do you think this changes anything about the StackOverflow you sent me?
Nah
15:47:37
@atemu12:matrix.orgatemu12You don't need to patch any repo.jsons15:47:47
@atemu12:matrix.orgatemu12Those are just for getting all the stuff the regular build requires in order15:48:06
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIs it possible to compose with the existing module options?15:48:11
@atemu12:matrix.orgatemu12Just add the source.dir and patch the device file according to the guide15:48:30
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneOH15:48:40
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone You mean like source.dir."vendor/gapps" sort of thing? 15:49:01
@atemu12:matrix.orgatemu12Yup15:52:43

Show newer messages


Back to Room ListRoom Version: 6