!UUYziobKGGxpovWyAN:nixos.org

Robotnix

232 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix70 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
27 Jan 2025
@atemu12:matrix.orgAtemu 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.orgAtemuhttps://wiki.lineageos.org/signing_builds#using-a-script20:56:23
@atemu12:matrix.orgAtemu * 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.eupentaneIf 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.eupentaneYou can find the script here: https://github.com/LineageOS/scripts/blob/main/key-migration/migration.sh20:57:10
@atemu12:matrix.orgAtemuOops, I had the wrong link20:57:10
@atemu12:matrix.orgAtemuNo wait, I didn't20:57:44
@atemu12:matrix.orgAtemu^^'20:57:51
@cyclopentane:aidoskyneen.eupentaneIt's the same but slightly different anchors20:57:55
@autra:trancart.euautraThanks! Is it compulsory even if I don't plan to relock the bootloader and I'm fine with the warning at boot?20:58:04
@cyclopentane:aidoskyneen.eupentaneIt's needed if you want to keep your data20:58:16
@cyclopentane:aidoskyneen.eupentaneIf you're okay with wiping your phone, then you don't need to migrate keys20:58:28
@atemu12:matrix.orgAtemuSigning isn't cumpulsory though; I don't sign my builds for instance and just use test keys20:58:32
@autra:trancart.euautraok so if I understand correctly, either I keep my signed build but follow the migration instruction, or I rebuild with signing disabled.21:00:21
@atemu12:matrix.orgAtemuNo, you need to migrate either way21:00:34
@atemu12:matrix.orgAtemuSigning cannot be disabled I think21:00:45
@cyclopentane:aidoskyneen.eupentaneWait a sec, there seems to be some confusion as to what "signing" means here:21:01:10
@atemu12:matrix.orgAtemuIt falls back to test keys which are effectively unsigned because the private key is public but technically still a signature21:01:12
@cyclopentane:aidoskyneen.eupentane

When you build a LineageOS image, the system image is cryptographically signed. There are three options for the keys the image can be signed with:

  • the official LineageOS keys (release-keys). We don't have access to them, so the only images signed with these keys are the official LineageOS builds.
  • the test keys (test-keys). These keys are publicly available, and Robotnix uses them by default.
  • your own release keys.
21:03:24
@cyclopentane:aidoskyneen.eupentaneWhen you run LineageOS and install apps that save stuff to your phone, that data is somehow "coupled" to the keys your LineageOS install was signed with (don't ask me about the details though). If you try to boot a LineageOS install with an image that was signed with different build keys than the ones your user data was coupled to, it will complain and not boot.21:04:52
@cyclopentane:aidoskyneen.eupentane* When you run LineageOS and install apps that save stuff to your phone, that data is somehow "coupled" to the keys your LineageOS install was signed with (don't ask me about the details though). If you try to boot a LineageOS install with an image that was signed with different build keys than the ones your user data was coupled to, it will complain and not boot (I believe).21:05:58

Show newer messages


Back to Room ListRoom Version: 6