Skip to content

Instantly share code, notes, and snippets.

@cinnamondev
Last active March 9, 2023 01:35
Show Gist options
  • Save cinnamondev/824e73e6b0458f423470296f072ae623 to your computer and use it in GitHub Desktop.
Save cinnamondev/824e73e6b0458f423470296f072ae623 to your computer and use it in GitHub Desktop.
GM1920 FLASHING DO NOT USE - UNFINISHED. PLEASE SEE TGRAM CHAT FOR ACTUAL PROCESS.

Oneplus 7 Pro 5G Resource List (EE5G, UK)

UNFINISHED, DO NOT USE.

A set of resources because telegram is annoying and sooner or later my install will probably break, and thats probably why you're here (or you're trying to install the ROM)

Preparation

BEFORE YOU START!

YOU NEED TO BACKUP NOW. What we are about to do is going to ERASE everything, not just settings or apps. The bootloader will also be re-locked temporarily. Please go ahead and move copies of your hot takes somewhere else before continuing!

Checklist

You need:

  • Driver verification DISABLED (Feel free & reccomended to re-enable afterwards)
  • ONEPLUS USB Drivers
  • QUALCOMM USB Drivers (You need this for MSM)
  • The MSM Download Tool (You need this for a CLEAN base.)
  • The Google USB Driver (This is for ADB/FastBoot) and Android Debug Tools (adb/fastboot)
  • An internet connection
  • A computer (Windows, as thats what the MSM tool and drivers use. [Linux/MacOS/DOOM 1993] compat. is unlikely and untested!)
  • A USB-C cable capable of data.
  • Hope and persistence.

MSM RESET & UPGRADE

It is expected you now have all the things on the checklist. Good luck! NOTE: Some people say the MSM isn't needed and you can start from local update to the same ver if you are already on OOS10. IMO, if you are going to be doing this, it doesnt hurt, plus this is a lot more concrete and removes many if any other variables.

  1. Turn off your phone COMPLETELY, unplug the phone USB-C connection but have the cable prepared on the host end, as you will need to be ready to connect this quickly.
  2. Open the MSM Download Tool
  3. HOLD DOWN BOTH VOL+ AND VOL- WHILE WHILE CONNECTING THE USB-C TO THE PHONE. DO NOT RELEASE THIS!
  4. Press "Start" on the MSM tool, if you dont start getting a moving bar and things happening then you might have messed up the timing. Unplug, restart and shut down and repeat from 2
  5. Omg wow! MSM tool is now wiping your phone! I sure hope you backed up!
  6. Once done, your phone will turn on.... hopefully. Go quickly through the setup process, you do not need any log ins.
  7. Unlock Developer Mode (Settings -> About Phone -> Build Info - tap it 10 times or so? It should tell you when you're a developer.)
  8. Go to developer settings and enable USB Debugging and OEM unlocking, as well as any other convenience features IE advanced reboot.
  9. Go to System -> Update and begin downloading the latest OOS. All this will end up with you on the latest and greatest incredibly outdated OOS/Android 10. But don't reboot like it tells you once it's done!
  10. Go to your computer and open a terminal (cmd, powershell), hopefully its still plugged into your phone. You are now going to type adb reboot bootloader (or you can do this via the phone, if you enabled advanced reboot, or via vol- + power on cold boot.)
  11. Welcome to the bootloader! We now need to unlock it, as our MSM reset locked it even if it was unlocked before. Type fastboot oem unlock. This is going to show a prompt on your phone, use the volume keys as up/down and the power button as select to accept the changes. This will be the 2nd time your phone has been wiped, I sure hope you made a backup because its definetely gone now haha.
  12. Go through the setup process again, but this time it's android 10! Do the whole developer mode, usb debug enable stuff again from step 8, mind you don't (and can't) enable OEM unlocking as it's now unlocked.

Flashy flash time

The process I'm going to describe is for the YAAP ROM, as not many ROMs support guacamoleg, and alternatives like KOSP/Flamingo do not intend to support it for the time being. If you want to try with other ROMS and know what you're doing from here, why not? IIRC you need the Dora kernel. But also, if you're not smart and prepared to deal with more crashes than this will probably cause, just use YAAP. It's a pretty good relatively stock/pixel-like experience.

TBF

HELP!!

If you're here, going to guess it didn't work. You can keep trying this from MSM with little worry, but if you feel like you need support, you should join the Telegram chat.

Credits

Most of the credit goes to Adrian, John Galt and Joe Cowboy in the Oneplus 7 Pro 5G - GM1925/GM1920 Telegram chat. Their work on this effort has been amazing to see. Further credit goes to many of the other members of this telegram chat.

Custom/Unspecialized ROMS.

It's entirely possible to use almost any ROM really. However, the process for roms that don't support guacamoleg/guacamoles is a process from the early times of the community that worked on getting new ROM for this phone and is incredibly unstable and annoying to do. Nevertheless, it's still possible. With a LOT of leeway with "possible".

Huge thanks to Joe Cowboy for finding this and making this possible!

Supported Models
GM1920
GM1925

Current Issues
- Sim/modem dies if you have NO SIM installed! Please have a SIM installed, deactivated, or active, doesn't matter. (This keeps IMEI in place)
- Auto rotation is flipped meaning Cam and other camera apps may take photos upside down. You can install the fix module but modem may randomly die if you're using it (although I haven't had issues with the new module with the new 5G props and Dora SSR v1 SDCardFS. I can even remove SIM and modem doesn't die) (https://t.me/c/1242885883/25427)

Should work on most rooms. I have YAAP booted and had EvaKernel and Dora booted on it. Modem sticks when rebooting, rotation fixed, all is well.

1.  Back up phone data first! All data will be lost!
2.  On your PC launch MSMTool, make sure your device is connected and click Start to install EU 5G firmware. (https://forum.xda-developers.com/t/debrand-conversion-sprint-oneplus-7-pro-5g-to-european-fw.4042583/)
3.  The phone will reboot once done. Then setup the phone.
4.  Enable Developer Options (press the build number in about phone 7 times) under about phone.
5.  Go to Developer Options
       A. Enable OEM Unlocking
       B. Enable Advanced Reboot
       C. Enable USB debugging
6.  Go To Setting System and update the phone to Android 10
7.  DO NOT click the Reboot button once done!!! This is NOT to allow the phone to reboot into system and finish the update.
8.  Reboot the phone into bootloader and at the command prompt of your PC type the following using Platform-Tools make sure USB cable is plugged in.
      A. fastboot flashing unlock
9.  The phone will wipe the data after unlocking the bootloader
8.  Once it's done; hold down the Volume Up, Volume Down and Power keys and Reboot into bootloader (issue commands)
      A. fastboot boot twrp.img
9.  Once in TWRP click Wipe and click "Format Data" and type yes
10. Click the home key to go back to the first menu click Reboot
11. Reboot into Bootloader (issue command)
      A. fastboot boot twrp.img
12. Copy the Modded Sprint Modem image over and put it in the TWRP folder by dragging and dropping it into the folder. (https://t.me/c/1242885883/24599)
     A. From the command prompt run: adb shell
     B. Once in the shell change to the directory:  cd /sdcard/TWRP/ (CAPITALS MATTER)
     C. Once in the TWRP directory run the following command: dd if=modem.Sprint.Mod2.img of=/dev/block/bootdevice/by-name/modem_b
13. Click the home key to go back to the first menu click Reboot and then System
14. You will have to set the phone up once again.
15. Enable Developer Options (press the build number in about phone 7 times) under about phone.
16.  Go to Developer Options
       A. Enable OEM Unlocking
       B. Enable Advanced Reboot
       C. Enable USB Debugging
17. Once done install com.android.engineeringmode.V1.01.apk (https://www.apkmirror.com/apk/oneplus-ltd/engineermode/engineermode-v1-01-0-171117173719-25c8842-release/engineermode-v1-01-0-171117173719-25c8842-android-apk-download/)
18. Go to the phone dialer and dial *#801#
19. Enable full port mode and make sure your phone is plugged into your USB on your computer (you might need to install Qualcomm Drivers, ADB drivers, or Google drivers)
20. On your computer launch QPST EFS Explorer
      A. Once QPST shows the folders go down to policyman and click on it in the left hand panel.
      B. In the Right hand panel the two files you will need to back up are carrier_policy.xml and device_config.xml (drag these onto your desktop or something, back these up!)
      C. Drag and drop the modded carrier_policy.xml and device_config.xml into the right hand panel and overwrite the old files (https://t.me/c/1242885883/24598 and https://t.me/c/1242885883/24597) (EU carrier_policy https://t.me/c/1242885883/25339)
21. Once you are done hold down the power button and reboot into bootloader  (issue command)
      A. fastboot boot twrp.img
22. Once TWRP is loaded and the Explorer window opens Drag the the following files from the payload dumped images.
      A. Download the latest Pixel Experience from here for the OnePlus7Pro: https://sourceforge.net/projects/rajan-pe/
      B. Dump the payload.img and copy the files into the TWRP folder.
      C. Download the latest Oneplus 7 Pro GM1917 Global Android 11 image (https://otafsg-cost-az.coloros.com/OnePlus7Pro/OnePlus7ProOxygen_21.P.42_GLO_0420_2202112205/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.P.42_GLO_0420_2202112205/OnePlus7ProOxygen_21.P.42_OTA_0420_all_2202112205_8689376.zip)
      D. Dump the payload.img and copy all the files into the TWRP folder except the following:
         abl.img, devcfg.img, xbl.img, boot.img, dtbo.img, odm.img, system.img, vbmeta.img, vendor.img
23. From the command promp run: adb shell
     A. Once in the shell change to the directory:  cd /sdcard/TWRP
     B. Write images to phone using terminal:
        dd if=aop.img of=/dev/block/bootdevice/by-name/aop_b
        dd if=bluetooth.img of=/dev/block/bootdevice/by-name/bluetooth_b
        dd if=boot.img of=/dev/block/bootdevice/by-name/boot_b
        dd if=cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_b
        dd if=cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_b
        dd if=dsp.img of=/dev/block/bootdevice/by-name/dsp_b
        dd if=dtbo.img of=/dev/block/bootdevice/by-name/dtbo_b
        dd if=hyp.img of=/dev/block/bootdevice/by-name/hyp_b
        dd if=india.img of=/dev/block/bootdevice/by-name/india_b
        dd if=keymaster.img of=/dev/block/bootdevice/by-name/keymaster_b
        dd if=LOGO.img of=/dev/block/bootdevice/by-name/LOGO_b
        dd if=odm.img of=/dev/block/bootdevice/by-name/odm_b
        dd if=oem_stanvbk.img of=/dev/block/bootdevice/by-name/oem_stanvbk_b
        dd if=qupfw.img of=/dev/block/bootdevice/by-name/qupfw_b
        dd if=reserve.img of=/dev/block/bootdevice/by-name/reserve_b
        dd if=storsec.img of=/dev/block/bootdevice/by-name/storsec_b
        dd if=system.img of=/dev/block/bootdevice/by-name/system_b
        dd if=tz.img of=/dev/block/bootdevice/by-name/tz_b
        dd if=vbmeta.img of=/dev/block/bootdevice/by-name/vbmeta_b
        dd if=vendor.img of=/dev/block/bootdevice/by-name/vendor_b
        dd if=xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_b
24. Download the Magisk v24.2 apk and rename the extension to zip (https://github.com/topjohnwu/Magisk/releases/download/v24.2/Magisk-v24.2.apk)
25. Click Install button in TWRP and install Magisk.zip
26. Wipe Dalvik and Click the home button
27. Click Reboot then Reboot Recovery
28. The phone will reboot into Pixel Recovery and format the data and reboot system once again
29. The phone will sit for a bit and then Google will pop up then turn into a G.  It will take a bit before it boots into.
30. Set the phone up.
31. Install Magisk v24.2 apk onto the phone and launch Magisk and it will aks you to reboot the phone to finish setting up.
32. Install an application like FX File Explorer Plus v8.0.3.0 ARM64. (https://www.apkmirror.com/apk/nextapp-inc/fx-file-explorer/fx-file-explorer-8-0-3-0-release/fx-file-explorer-the-file-manager-with-privacy-8-0-3-0-android-apk-download/)  It has a root explorer with a built in text editor. (You may have to click the hamburger menu in the top left corner, hit settings, and hit Developer/Root mode for the "System (Root)" option to show up)
33. Launch the application and click on Root and then click on vendor folder.  In the upper hand right hand corner of the app press the three little dot icon
34. Remount the partition Read - Write
35. Click on Build.prop file and open it with the FX Text editor and change the following to (Change dsds to dsdv and change 0 to 1)
    A. persist.radio.multisim.config=dsdv OR ssss (ssss if you're using single sim)
    b.
# For special ro override property 0: not support 1:nsa 2:sa 3: 1+2
ro.vendor.radio.5g=3
# add new property for 5G
persist.vendor.radio.5g=1
persist.vendor.radio.5g_mode_pref=1
persist.vendor.radio.5g_mode_pref_0=1
persist.vendor.radio.5g_mode_pref_1=1
36. Save the file and reboot the phone
37. Once rebooted, check that SIM is working, that your IMEI is detected, and that VoLTE and other SIM related functions are working.38. Head to the SIM section of settings (where VoLTE, Roaming, etc is) and make sure Preferred Network Type is set on 5G, if it only shows LTE, then look for a option in Settings called Radio Info (you may need QuickShortcutMaker or a phone dialer code to access) and set the bands to NR/LTE/TDSCDMA/CDCMA/EvDO/GSM/WCDMA (select this one, it should default to the one mentioned after this after a reboot) or NR/LTE/TDSCDMA/GSM/WCDMA
39. Once rebooted, check that SIM is working, that your IMEI is detected, and that VoLTE and other SIM related functions are working.
40. If they are, reboot to bootloader
      A. fastboot boot twrp.img
41. Once TWRP is booted up
      A. Click Cancel on the PIN screen (if you have one. TWRP CANNOT DECRYPT ANDROID 12).
      B. Plug in an external USB drive or OTG connector with a storage device plugged in
      C. Hit Backup, swipe to dismiss any prompts, hit Select Storage and select your external storage device
      D. Select EFS and Modem, deselect boot, then swipe to backup. This backups the working modem state so if you ever lose it, you can easily restore it.

Flashing Dora
1. Flash Dora SSR v1 through FKM (https://t.me/c/1242885883/25569)
Or flash latest Dora (sdcardfs or nonsdcardfs depending on rom)

NO PC TWRP
1. Boot into TWRP via fastboot boot twrp.img
2. ADB Push, move via MTP or have the file on an external drive and flash the TWRP Installer zip. THIS REMOVES PE RECOVERY! (https://dl.twrp.me/guacamole/)
3. Reboot to recovery
4. Reflash Magisk after this as the TWRP Installer removes it. You should have working Magisk and TWRP installed as recovery

You can now carry around a USB flash drive with an OTG (USB C to female USB A) connector with your drive plugged in so every time modem dies, you can quickly restore your working modem. (You have to do this every time you reboot if you have the sensor-config module installed which fixes rotation/auto rotation issues)




Everytime modem breaks, you have to boot into TWRP by fastboot boot twrp.img and restoring via a USB OTG or booting into TWRP that you installed to replace PE recovery and restoring via a USB OTG


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment