!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
27 Jan 2025
@atemu12:matrix.orgatemu12 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:matrix.orgatemu12And changing the SPL level20:48:34
@cyclopentane:aidoskyneen.eupentane ⭔ (META-INF/com/android/metadata and META-INF/com/android/metadata.pb respectively) 20:49:24
@cyclopentane:aidoskyneen.eupentane ⭔best to use a hex editor on the latter one20:49:40
@atemu12:matrix.orgatemu12 Yeah emacs was complaining about encoding when I did it yesterday but I managed to make it work by selecting raw 20:50:16
@cyclopentane:aidoskyneen.eupentane ⭔But that shouldn't matter rn since our only supported distribution is LineageOS anyway, and our LineageOS SPL is up to date20:51:15
@autra:trancart.euautraSPL is secondary program loader, right? How do you check the version?20:51:54
@cyclopentane:aidoskyneen.eupentane ⭔Security patch level20:52:06
@atemu12:matrix.orgatemu12It's your current build number20:52:08
@autra:trancart.euautraah!20:52:11
@cyclopentane:aidoskyneen.eupentane ⭔it's a date of the format YYYY-MM-DD20:52:22
@autra:trancart.euautraI was very very off :lauging:20:52:22
@autra:trancart.euautrayes20:52:25
@cyclopentane:aidoskyneen.eupentane ⭔If you try to sideload an OTA zip via the recovery which has a lower (i.e. earlier) SPL than your currently installed system, it will refuse to flash the OTA zip20:53:08
@cyclopentane:aidoskyneen.eupentane ⭔If that's the case you need to manually edit the SPL in these two files to match the SPL of your currently installed system20:53:40
@autra:trancart.euautraok got it!20:54:03
@autra:trancart.euautraIf I only go forward, the flash is enough right?20:54:33
@atemu12:matrix.orgatemu12No20:54:45
@atemu12:matrix.orgatemu12This is about signing keys20:54:48
@atemu12:matrix.orgatemu12They're encoded in the system app metadata for some reason20:55:03
@atemu12:matrix.orgatemu12So if you change ROMs, you must change the singing keys20:55:20
@atemu12:matrix.orgatemu12 cyclopentane ⭔ migrated her phone from and to offical LOS keys a few times, so it works fine but you do need to do it beforehand 20:55:51
@atemu12:matrix.orgatemu12https://wiki.lineageos.org/signing_builds#using-a-script20:56:23
@atemu12:matrix.orgatemu12 * cyclopentane ⭔ migrated her phone from and to offical LOS keys a few times, so it works fine but you do need to do it before flashing 20:56:40
@cyclopentane:aidoskyneen.eupentane ⭔If you want to keep your data, you need to run a key migration script to change the keys on your userdata partition from the LineageOS release keys to the test-keys (the ones Robotnix uses per default), as described here: https://wiki.lineageos.org/signing_builds#test-keys-to-official-or-vice-versa20:56:46
@cyclopentane:aidoskyneen.eupentane ⭔You can find the script here: https://github.com/LineageOS/scripts/blob/main/key-migration/migration.sh20:57:10
@atemu12:matrix.orgatemu12Oops, I had the wrong link20:57:10
@atemu12:matrix.orgatemu12No wait, I didn't20:57:44
@atemu12:matrix.orgatemu12^^'20:57:51
@cyclopentane:aidoskyneen.eupentane ⭔It's the same but slightly different anchors20:57:55

Show newer messages


Back to Room ListRoom Version: 6