!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
27 Jan 2025
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)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.21:04:52
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)* 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
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)

In that case, you have two options:

  • you can wipe your userdata partition and start over with the new keys
  • or you can migrate your userdata from the keys of your old install to your new install
21:06:15
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978) in your case, you probably had an official LineageOS build install first, and now your userdata is coupled to the official LineageOS release-keys. If you want to install a robotnix-built LOS image with the test-keys, you need to run the migration script to change your keys from release-keys to test-keys. 21:08:10
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)

What I did was:

  • enable rooted debugging; run adb root
  • copy migration.sh to the phone
  • run stop inside adb shell to shut down all user-facing system components
  • run ./migration.sh unofficial inside the adb shell
  • quit the ADB shell and run adb reboot recovery
  • sideload the Robotnix-built OTA zip
21:10:13
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Man, we should write a guide about this some day :D21:10:47
@atemu12:matrix.orgatemu12Yes, PRs welcome :)21:10:59
@autra:trancart.euautra thanks cyclopentane โญ” and Atemu it's really clear! 21:11:18
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)happy to hear that :)21:11:30
@atemu12:matrix.orgatemu12:)21:11:36
@autra:trancart.euautraI can have a go at documenting that. Good first contrib ;-)21:11:48
@autra:trancart.euautrais it related to the avb keys in step 4ย of https://docs.robotnix.org/installation.html ?21:12:03
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)isn't AVB disabled on Lineage by default?21:12:55
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)

The following instructions are specific to Pixel phones using either the Vanilla or GrapheneOS flavors. For LineageOS, please refer to upstream device-specific documentation on how to install LineageOS builds on your device.

Ah yes, seems to be that way

21:13:06
@atemu12:matrix.orgatemu12No that's for when you've signed your own build with your own key and want to enable verified boot21:13:19
@atemu12:matrix.orgatemu12That's generally not recommended for LOS though21:13:39
@atemu12:matrix.orgatemu12And I don't know whether AVB even works on the FP321:13:51
@atemu12:matrix.orgatemu12I know that it doesn't on FP4....21:13:58
@autra:trancart.euautraIt would be surprising it works on FP3 then.21:14:21
@atemu12:matrix.orgatemu12No I IIRC they just fscked up with the FP421:14:39
@atemu12:matrix.orgatemu12* No IIRC they just fscked up with the FP421:14:44
@atemu12:matrix.orgatemu12Could be that they didn't with the FP321:14:54
@autra:trancart.euautrayou know what? I think it might explain one time I lost all my data ๐Ÿ˜†21:15:00
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Lol21:15:09
@autra:trancart.euautrabecause I didn't know about that. 21:15:18
@autra:trancart.euautra(no big deal, because I can reconstruct about everything, just time lost)21:15:38
@atemu12:matrix.orgatemu12That sounds more like you enabled AVB without setting your keys 21:15:52
@atemu12:matrix.orgatemu12When I meant "broken" I meant that (IIRC) it doesn't properly verify the boot and you can just boot anything21:16:20
@autra:trancart.euautraThanks again!21:19:44
@autra:trancart.euautraI'll try that but tomorrow, because some stuff are not meant to be attempted too late at night ๐Ÿ˜„21:20:28

Show newer messages


Back to Room ListRoom Version: 6