| 27 Jan 2025 |
autra | ok I'm just suprised by what you said (new devices only need the device dir update), because my experience with android build is that you need the whole lineage os tree to build, but I guess I'll see all these downloads later ;-) | 09:53:01 |
atemu12 | The updater really is just thatz an updater | 09:53:53 |
atemu12 | * | 09:54:00 |
atemu12 | The sources for the build are fetched via nix | 09:54:18 |
atemu12 | The updaters just generate lockfiles | 09:54:34 |
autra | ok thanks! So I've launched the nix-build comamnd and my config evaluates correctly now, and indeed, it seems that I'm now downloading the entire internet ;-) | 10:06:24 |
atemu12 | Yeah it's a ~70GiB download | 10:34:07 |
atemu12 | That's much preferable to the couple hundred gigs you'd normally have to download though | 10:34:48 |
atemu12 | Make sure you've set the correct androidVersion | 10:34:58 |
autra | yep, currently on 14 just to check if everything is ok, then I'll switch to 15 | 10:38:48 |
autra | ouch I thought that with 32Gb of ram, it'll be enough to build, but no :-( | 11:11:00 |
atemu12 | You need 3-4GiB per thread | 15:45:01 |
atemu12 | And your tmpdir must be on large enough persistent storage | 15:45:30 |
atemu12 | I don't know the exact size off the top of my head for new versions of AOSP but it should be around 30-50GiB | 15:46:29 |
atemu12 | * | 15:47:01 |
autra | It peaked around 25-30, but I solved it by adding a temporary swap file ;-) It was enough to avoid the oom killer | 20:43:26 |
autra | the build worked like a charm :-) | 20:43:40 |
atemu12 | Neat :) | 20:43:49 |
autra | on "https://docs.robotnix.org/installation.html", step 5, it mentions a ./flash-all.sh, but I don't have this file. A sideload is ok right? | 20:44:25 |
atemu12 | I usually just flash ota | 20:44:52 |
autra | ota works whichever os I was on, provided it's the same major version? | 20:45:34 |
atemu12 | Your SPL needs to be the same or higher | 20:47:08 |
atemu12 | But if you're not wiping data, you need to run a migration script | 20:47:21 |
atemu12 | And it needs to have been LOS before I think | 20:47:37 |
atemu12 | cyclopentane ⭔: figured out that you can relatively easily skip SPL checks by modifying the OTA zip's META-INF/android/something/metadata* files | 20:48:26 |
atemu12 | And changing the SPL level | 20:48:34 |
pentane ⭔ | (META-INF/com/android/metadata and META-INF/com/android/metadata.pb respectively) | 20:49:24 |
pentane ⭔ | best to use a hex editor on the latter one | 20:49:40 |
atemu12 | Yeah emacs was complaining about encoding when I did it yesterday but I managed to make it work by selecting raw | 20:50:16 |
pentane ⭔ | But that shouldn't matter rn since our only supported distribution is LineageOS anyway, and our LineageOS SPL is up to date | 20:51:15 |