[OnePlus Nord N10 5G Guides, News, & Discussion] twindragon6:
Download and install the drivers for your device or at least Google's driver.

Download and unzip platform-tools (For ADB) somewhere you can find it like

C:\platform-tools\

Use CMD as an admin:

Microsoft Windows [Version 10.0.19045.2193]

(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd\

C:\>cd platform-tools

C:\platform-tools>

Get the Google USB Driver | Android Studio | Android Developers

The Google USB Driver is required to perform adb debugging on Windows with Google devices.

developer.android.com

SDK Platform Tools release notes | Android Studio | Android Developers

Android SDK Platform-Tools is a component for the Android SDK.

developer.android.com

Android Debug Bridge (adb) | Android Studio | Android Developers

Find out about the Android Debug Bridge, a versatile command-line tool that lets you communicate with a device.

developer.android.com

Enable developer options on your device toggle ADB debugging enabled, OEM Unlock Enabled

type adb devices in the CMD window and grant access for ADB (CHECK THE BOX!) on your device.

Configure on-device developer options | Android Studio | Android Developers

Learn how to configure system behaviors that help you profile and debug your app performance.

developer.android.com

UNLOCK THE BOOTLOADER:

C:\platform-tools>adb reboot bootloader

C:\platform-tools>fastboot oem unlock

(T-Mobile has extra steps)

https://www.oneplus.com/support/answer/detail/op588

This phone is compatible with ARM64 VNDKLITE A/B GSI Images

Pick one and download it.

Treble-Enabled Device Development A/AB ROMS

Treble-Enabled Device Development A/AB ROMS

xdaforums.com

Generic System Image (GSI) list

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com

Some Recommended ROMs:

Releases · phhusson/treble_experimentations

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com

https://github.com/phhusson/treble_experimentations/releases/download/v416/system-squeak-arm64-ab-vndklite-gapps-secure.img.xz

https://xdaforums.com/t/unofficial-crdroid-r-mod-crdrom11.4269719/

https://sourceforge.net/projects/treblerom/files/crDRom11/2022.03.30/crdrom-v316-220330-arm64-bgZ-lite.img.xz/download

https://xdaforums.com/t/gsi-official-12-1-phh-corvusos-vs4-0-leviathan.4415529/

https://sourceforge.net/projects/tipzbuilds/files/GSIs/CorvusROM/Official/20221015/Corvus_vS4.0-Leviathan-treble_arm64_ab_vndklite-Gapps-Official-0103.img.xz/download

Download and Extract the Stock Firmware for Your Phone

(In this example I'll be using 11.0.7.BE86AA for the BE2026 YOURS MAY BE DIFFERENT!!!)

Software Upgrade - OnePlus.com

Get the latest OxygenOS updates for your device.OxygenOS is always evolving. Learn about the latest features and improvements, and get even more out of your device.

www.oneplus.com

https://oxygenos.oneplus.net/OnePlusN10Oxygen_14.O.37_OTA_0370_all_2207061538_b507495088804473.zip

Extract the payload.bin with payload-dumper-go.exe or payload_dumper.py

Releases · ssut/payload-dumper-go

an android OTA payload dumper written in Go. Contribute to ssut/payload-dumper-go development by creating an account on GitHub.

github.com

GitHub - vm03/payload_dumper: Android OTA payload dumper

Android OTA payload dumper. Contribute to vm03/payload_dumper development by creating an account on GitHub.

github.com

This will give you the *.img files for flashing. If your device has a higher level fimware for example 11.0.8.BE86AA;

the only way to get the *.img files is to fastboot boot to a TWRP.IMG and dump the firmware with a pull command or use Oxygen Updater with advanced options.

Oxygen Updater

Oxygen Updater is an open-source app for OnePlus devices that allows you to install official OTA (over-the-air) updates ASAP. Ensure your device is up-to-date — it's quick, easy, and free!

oxygenupdater.com

Twrp_3.5.2-10_EduardoA3677-billie_OxygenOs11_Android11.img | by EduardoA3677 for OnePlus Nord N10 5G

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

C:\platform-tools>adb reboot bootloader

C:\platform-tools>fastboot boot Twrp_3.5.2-10_EduardoA3677-billie_OxygenOs11_Android11.img

C:\platform-tools>ROOT_TWRP_ADB_DUMP.BAT

Flashing a GSI requires a bone stock firmware, no root, no magisk, no mods! We are going to want to disable encryption and verification so the GSI doesn't freak out and can see the host files like on a virtual machine.

Put boot.img, dtbo.img, recovery.img, vbmeta.img and vbmeta_system.img in C:\platform-tools>

FLASH STOCK BOOT AND VBMETA (ROOT AND FLASH BLANK VBMETA LATER!!!):

If you extracted the firmware:

fastboot flash --disable-verity --disable-verification boot_a boot.img

fastboot flash --disable-verity --disable-verification dtbo_a dtbo.img

fastboot flash --disable-verity --disable-verification recovery_a recovery.img

fastboot flash --disable-verity --disable-verification vbmeta_a vbmeta.img

fastboot flash --disable-verity --disable-verification vbmeta_system_a vbmeta_system.img

fastboot flash --disable-verity --disable-verification boot_b boot.img

fastboot flash --disable-verity --disable-verification dtbo_b dtbo.img

fastboot flash --disable-verity --disable-verification recovery_b recovery.img

fastboot flash --disable-verity --disable-verification vbmeta_b vbmeta.img

fastboot flash --disable-verity --disable-verification vbmeta_system_b vbmeta_system.img

DO BOTH SLOTS!!!

If you dumped the firmware:

fastboot flash --disable-verity --disable-verification boot_a boot_a.img

fastboot flash --disable-verity --disable-verification dtbo_a dtbo_a.img

fastboot flash --disable-verity --disable-verification recovery_a recovery_a.img

fastboot flash --disable-verity --disable-verification vbmeta_a vbmeta_a.img

fastboot flash --disable-verity --disable-verification vbmeta_system_a vbmeta_system_a.img

fastboot flash --disable-verity --disable-verification boot_b boot_b.img

fastboot flash --disable-verity --disable-verification dtbo_b dtbo_b.img

fastboot flash --disable-verity --disable-verification recovery_b recovery_b.img

fastboot flash --disable-verity --disable-verification vbmeta_b vbmeta_b.img

fastboot flash --disable-verity --disable-verification vbmeta_system_b vbmeta_system_b.img

DO BOTH SLOTS!!!

For flashing the GSI we have to use FastbootD not Fastboot!!!

FASTBOOTD:

Execute the below command to boot your device to the FastbootD Mode (It will look like recovery mode.)

fastboot reboot fastboot

Time to Flash the ROM

FOR GSI IMAGES:

--AB devices--

fastboot devices (IS THE PHONE CONNECTED? MAKE SURE USB DEBUGGING IS ENABLED UNDER DEVELOPER OPTIONS?)

fastboot reboot fastboot (FASTBOOTD NOT FASTBOOT!)

fastboot getvar is-userspace (SHOULD BE YES!)

fastboot erase system_a

fastboot erase system_b

fastboot flash system_a "(GSI System Name of Firmware File)".img (Corvus_vS4.0-Leviathan-treble_arm64_ab_vndklite-Gapps-Official-0103.img)

fastboot flash system_b "(GSI System Name of Firmware File)".img

fastboot --set-active=b

fastboot -w

fastboot --set-active=a

fastboot -w

reboot to recovery (Use Menu)

Wipe Everything (The Bottom One)

Reboot From the menu to start the phone.

ONLY IF YOU GET THIS ERROR WHEN FLASHING!

Resizing 'system_a' FAILED (remote: 'Not enough space to resize partition')

fastboot: error: Command failed

fastboot delete-logical-partition product_a

fastboot delete-logical-partition product_b

Then Continue From:

fastboot flash system_a "(GSI System Name of Firmware File)".img (Corvus_vS4.0-Leviathan-treble_arm64_ab_vndklite-Gapps-Official-0103.img)

Generic system images | Android Open Source Project

source.android.com

After Android Setup Completes (JUST DO A QUICK AND DIRTY ONE JUST IN CASE!)

adb reboot bootloader

(FLASH BLANK VBMETA NOW!)

fastboot flash --disable-verity --disable-verification vbmeta_a vbmeta.img

fastboot flash --disable-verity --disable-verification vbmeta_system_a vbmeta_system.img

fastboot flash --disable-verity --disable-verification vbmeta_b vbmeta.img

fastboot flash --disable-verity --disable-verification vbmeta_system_b vbmeta_system.img

Start the phone

Install Magisk via ap apk

Releases · topjohnwu/Magisk

The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.

github.com

Patch the bootloader from the installed GSI and then reboot to the bootloader once you have copied the patched images to your computer.

boot_patched_a.img

boot_patched_b.img

FLASH boot_a AND boot_b!

fastboot flash --disable-verity --disable-verification boot_a boot_patched_a.img

fastboot flash --disable-verity --disable-verification boot_b boot_patched_b.img

From the menu start the phone.

Build and install an overlay for functional adaptive brightness etc.

GitHub - phhusson/vendor_hardware_overlay: This includes hardware-specific overlays for Treble ROM

This includes hardware-specific overlays for Treble ROM - phhusson/vendor_hardware_overlay

github.com

How to create an overlay?

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com

Change the value of an app's resources at runtime | Android Open Source Project

source.android.com

Empty vbmeta files and dump script batch file below.