[OnePlus 9 Pro] perelax:
Many LineageOS users are aware that the 19.1 Android 12 install guide is no longer held on the Lineage Wiki.

LineageOS 20.1, Android 13, is on the Wiki, but I prefer 12. I compared source files between Android 12 and 13, and the changes I found, especially in radio, were mostly limiting in terms of customizing source code.

In regards to OnePlus stock firmware, the changes from 12 to 13 offer no bug or performance improvements; just 'security' updates, so again, I stayed at 12.

I decided to compile a working set of files and instructions for the original LineageOS 19.1 Android 12 Rom:

Archive LineageOS 19.1 Install

1. If you would like to update your firmware, visit OnePlus Smartphone Software Update and download the latest firmware.

Updating the firmware requires the use of the MSM Tool and a Windows PC:

**be sure to read the notes below before following the video**

You will need to gather a couple items before using the MSM Tool:

Get the Microsoft account information for the Windows box you will be using. You will need the Microsoft Recovery Key.

Boot into bios and turn secure boot off.

Finish booting the PC and enter recovery key.

Open the command prompt as administrator and enter:

bcdedit /set testsigning on

Turn off real-time virus scanning.

Start the MSM Tool as shown in the video. I chose O2 as my

selection on an LE2125 Global device.

You have to hold both volume buttons at the same time, and then plug

the device into USB. When it says 'connected', select start.

When you see 'Downloading' you may release the volume buttons.

When your device begins to reboot you may disconnect it.]

Open the command prompt and enter:

bcdedit /set testsigning off

Reboot the PC and enter bios.

Turn secure boot back on.

Re-enter recovery key after boot.

Turn virus scanning back on.

2. Clone repo files, then extract vendor-boot.zip, twrp.zip, recovery.zip.

git clone https://gitlab.com/perelax/archived-lineageos-install-oneplus-9-pro.git

**NOTE**

If necessary, enable oem unlock in Developer Settings.

In order to enable OEM Unlocking, the after-boot-start-up-wizard must complete. WIFI is necessary for the update, so be sure to set up the WIFI connection during the initial boot wizard.

The after-boot wizard appears as a blue banner in the notifications

banner.

adb reboot bootloader

In fastboot enter:

fastboot oem unlock

The device will reboot.

You must now re-navigate the initial-boot setup wizard, enable Developer Options and USB Debugging again.

If you need an archived LineageOS ROM, please visit:

Lineage Build Archive

**NOTE**

Copy/Paste copy-partitions-20220613-signed.zip to sdcard

This can be done at least 2 ways:

A. In terminel, enter:

adb push copy-partitions-20220613-signed.zip /sdcard/

OR

B. Simply copy/paste file into storage:

View attachment 6066680

Reboot to bootloader and boot to TWRP:

adb reboot bootloader

In fastboot enter:

fastboot boot twrp-3.7.0_11-0-lemonadep.img

In TWRP:

Select Wipe -> use default settings, deselect Data/Storage so that copy-partitions doesn't get removed.

Select Install -> Choose the copy_partitions file

Swipe to install

Select Reboot -> bootloader

In fastboot enter:

fastboot flash dtbo dtbo.img &&
fastboot flash vendor_boot vendor_boot.img &&
fastboot flash boot lineage-19.1-20221025-recovery-lemonadep.img &&
fastboot reboot recovery

In recovery, sideload the LineageOS ROM. I chose the December 27, 2022 Nightly Build as my install. The date must be newer than the recovery zip or the install may get rejected due to downgrade.

Change the file name to your ROM file.

adb sideload lineage-19.1-20221227-nightly-lemonadep-signed.zip

Example:

View attachment 6066682

**NOTE**

You may encounter an error on reboot stating that the system is corrupt. Select factory reset and it should boot into LineageOS.

Suggestion/corrections are welcome.

Perelax