[Samsung Galaxy Note 10 ROMs, Kernels, Recoveries, ] Rocky7842:
Pre-Install Instructions

Warning: The following instructions will unlock the bootloader and wipe all userdata on the device.

Connect the device to a Wi-Fi network.

Enable Developer Options by pressing the “Build Number” option in the “Settings” app within the “About” menu

From within the Developer options menu, enable OEM unlock.

Power off the device, and boot it into download mode:

With the device powered off, hold Volume Down + Volume Up and connect USB cable to PC.

Now, click the button that the onscren instructions coorelate to “Continue” and/or “Unlock Bootloader”.

Your device will reboot, you may now unplug the USB cable from your device.

The device will demand you format userdata, please follow the onscreen instructions to do so.

Run through Android Setup skipping everything you can, then connect the device to a Wi-Fi network.

Re-enable Development settings by clicking the “Build Number” option 10 times, in the “Settings” app within the “About” menu, and verify that “OEM Unlock” is still enabled in the “Developer options” menu.

Installing LineageOS for the first time

Flash lineage recovery

Only the provided lineage recovery will be supported, using TWRP might result in a possible data loss!!

If using Odin rename the lineage recovery image for your model to recovery.img and add it to a .tar archive using e.g 7zip.

If using Heimdall use: "heimdall flash --RECOVERY recovery.img --no-reboot"

Boot lineage recovery

IMPORTANT: Do not boot into system again before booting recovery, or system will restore stock recovery!

If using Odin, untick auto-reboot before flashing.

After flashing, reboot by pressing Volume Down and Power for approximately 7 seconds, immediately hold Volume Up and Power to boot recovery

IMPORTANT: As of OneUI 3 your device needs to be connected to a PC via USB cable in order to be able to

boot recovery via Volume Up, Bixby and Power.

Factory reset using Factory reset -> Format data/factory reset

Warning: Unlike TWRP this will also erase internal storage!

Sideload LineageOS by enabling sideload via Apply Update -> Apply from ADB

Then run "adb sideload <path to your lineage.zip>" on your PC

Optional: Sideload GApps and magisk by repeating above step with their zip/apk.

Magisk

As this ROM has a working ramdisk sideloading the magisk apk is enough, just as it is

on every other device, no bootimage with magisk included or installing to recovery is needed!

I also strongly recommend to use Lygisk instead,

which is a fork of Magisk that aims to improve support for devices with FBE that can't (and shouldn't anyways!) decrypt userdata in recovery,

this will also fix OTAs getting stuck while having installed Magisk.

Safetynet

The safetynet on this ROM can pass basic integrity, but not CTS.

Due to the official stance of LineageOS team, and spoofing the build fingerprint may causes issues because Android uses build fingerprint changes as a signal to clear and rebuild several caches, I will not put the modifications in the ROM itself. Instant I'll put the information here, you can choose to do it or not.

To pass CTS:

We have to install Magisk(or Lygisk), then install both Universal SafetyNet Fix and MagiskHidePropsConf modules.

Reboot, enter adb shell.

In adb shell, type in "props". Now Magisk should ask you for su, accept it.

Type in "1". Which is edit device fingerprint.

Type in "samsung/d1xks/d1x:12/SP1A.210812.016/N971NKSU2HVG7:user/release-keys".

Type in "y" to confirm.

Type in "n" to avoid reboot now.

Type in "b" to go back to main menu.

Type in "5". Which is add/edit custom props.

Type in "n". Which is new custom prop.

Type in "ro.build.version.security_patch".

Type in "2022-07-01".

Type in "y" to confirm.

Type in "y" to reboot.

Now the security patch date and build fingerprint should be what we set, and Safetynet should pass now.