itsnebulalol / modempatcher

Band 77 patcher for the OnePlus 9 and 9 Pro.
10 stars 2 forks source link
modem oneplus patcher qpst root

Modem Patcher

Band 77 patcher for the OnePlus 9 and 9 Pro.

What and why?

OnePlus has band 77 disabled on the OnePlus 9 and 9 Pro. The original way to enable band 77 used QPST. QPST only seems to work on OxygenOS, and requires Windows. If you don't use OOS, or don't use Windows, this script can patch the modem file with the necessary changes.

Requirements

  1. OnePlus 9 or 9 Pro (tested on 9 Pro on Android 13 with lineageOS)
  2. Unlocked bootloader
  3. Python 3
  4. Android platform-tools (adb and fastboot)

How to use

Warning Bootloop risk!! On the latest version of LineageOS, my device bootloops after flashing the custom modem. It will only be fixed after erasing the device (flashing stock modem will not fix)! Please be careful, and always have a backup on hand.

Having issues?

This script may not be perfect, and may not work on every device. Before, we pulled the modem image a second time so we have a backup. You can run fastboot flash --slot=all modem modem.bin.bak in bootloader to flash the backup.

Lost the backup? Add the -u flag to the script to unpatch the modem.bin, and you can flash it again.

Credits