| 5 May 2023 |
kranzes | so this might work too | 15:27:37 |
kranzes | who knows | 15:27:39 |
matthewcroughan - 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 - nix.zone | ...
androidmk = prebuilt: pkgs.writeText "Android.mk" (''
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
...
| 15:28:02 |
matthewcroughan - nix.zone | I guess I could just get the zettle app and prebuild it in myself | 15:28:26 |
matthewcroughan - nix.zone | there just isn't a reliable way to fetch APKs | 15:28:32 |
matthewcroughan - nix.zone | This is why it is very much worth simply giving up and using the proprietary software for the highly proprietary platform | 15:28:57 |
matthewcroughan - nix.zone | Because it's not free, and pretending it's free is only going to lead to unreliability, failure and tons of headache | 15:29:13 |
matthewcroughan - nix.zone | The way the prebuilt module option works is on .apk files, but what is the OpenGapps format? | 15:34:43 |
matthewcroughan - 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:55 |
matthewcroughan - 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 - nix.zone | We could ideally then add prebuilt.format = "apk" or prebuilt.format = "flashable-zip" and make it generic | 15:35:15 |
atemu12 | 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 - nix.zone | Ah, 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 | Why do you need to integrate it into the build process at all? | 15:42:26 |
atemu12 | Just flash it once and be done | 15:42:31 |
matthewcroughan - nix.zone | I want to get rid of the imperative step | 15:42:54 |
matthewcroughan - nix.zone | Flash one thing instead of two | 15:43:09 |
matthewcroughan - 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 - nix.zone | I wonder if we can just add this to flavors/lineageos/lineage-19.1/repo.json | 15:46:06 |
matthewcroughan - nix.zone | and then make a module option that patches the repo.json file prior to usage | 15:46:23 |
matthewcroughan - nix.zone | * and then make a module option that patches the repo.json file prior to usage, for all flavors | 15:46:27 |
atemu12 | 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 | You don't need to patch any repo.jsons | 15:47:47 |
atemu12 | Those are just for getting all the stuff the regular build requires in order | 15:48:06 |
matthewcroughan - nix.zone | Is it possible to compose with the existing module options? | 15:48:11 |
atemu12 | Just add the source.dir and patch the device file according to the guide | 15:48:30 |
matthewcroughan - nix.zone | OH | 15:48:40 |
matthewcroughan - nix.zone | You mean like source.dir."vendor/gapps" sort of thing? | 15:49:01 |
atemu12 | Yup | 15:52:43 |