| 5 May 2023 |
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 |
matthewcroughan - nix.zone | That's actually astoundingly easy | 15:55:31 |
matthewcroughan - nix.zone | Any idea what the branches mean? They have sigma tau etc, I am not sure if this is the size of the package or the android support version | 15:57:12 |
matthewcroughan - nix.zone | I'm going to assume based on the commits (I can't find docs) that it's related to the android support version | 15:58:29 |
matthewcroughan - nix.zone | And that sigma is android 12 | 15:58:36 |
matthewcroughan - nix.zone | source.dirs."vendor/gapps".src = builtins.fetchGit {
rev = "d547c376983cc644b5a6b4e7ed1fd59984f5569c";
ref = "sigma";
url = "https://gitlab.com/MindTheGapps/vendor_gapps.git";
allRefs = true;
};
| 15:58:46 |
matthewcroughan - nix.zone | This would then be the total code needed to add gapps to the build process | 15:58:54 |
kranzes | is MindTheGapps the right one you want? | 16:09:15 |
kranzes | and Sigma is the right variant? | 16:09:19 |
matthewcroughan - nix.zone | I don't care what it is as long as it provides the google play services for Android 12 | 16:10:24 |
matthewcroughan - nix.zone | I won't know until I try it since I can't find documentation on what the branch names mean | 16:10:35 |
kranzes | It's how many google bloatware to include | 16:11:00 |
matthewcroughan - nix.zone | And I'm stuck at "fetching Git repository", because Nix builtin fetchers failing to resolve? | 16:11:05 |