Following the official guide, I ended up with the following error on the phone display:
E:Package is for product xz2c but expected H8324
(Just for completeness, this is what I got on my computer:)
$ adb sideload lineage-19.1-20221230-nightly-xz2c-signed.zip
serving: 'lineage-19.1-20221230-nightly-xz2c-signed.zip' (~47%) adb: failed to read command: Success
A thread on reddit pointed out that the recovery must be upgraded too, although there aren’t any specific instructions to be found.
$ adb reboot bootloader
$ fastboot devices
AB123C4DEF fastboot
$ fastboot flash boot lineage-19.1-20221230-recovery-xz2c.img
target reported max download size of 805306368 bytes
sending 'boot_b' (65536 KB)...
OKAY [ 2.571s]
writing 'boot_b'...
OKAY [ 0.361s]
finished. total time: 2.932s
Volume Down
+ Power
buttons (you can release them when the phone vibrates, indicating power on). $ adb devices
List of devices attached
AB123C4DEF unauthorized
Then navigate in the menu to Advanced
→ Enable ADB
. Now you should get:
$ adb devices
List of devices attached
AB123C4DEF recovery
Apply update
→ Apply from ADB
.$ adb sideload lineage-19.1-20221230-nightly-xz2c-signed.zip
Total xfer: 1.00x
To my surprise, I didn’t end up with 47% this time. Anyway, the phone showed two steps being done and it took quite a while. Be patient.
Reboot system now
.Note: I don’t use gapps, so the steps above don’t cover those. See the official guide instead.
Tagged with: LineageOS
Written: 2023-02-05