How To Guide PROPER CPH2451 Root and Update instructions

Search This thread

KingCoder

Member
May 7, 2015
32
4
Can anyone assist with getting my device recognised in fastboot?

So I managed to OEM unlock the device fine from fastboot it was recognised by my PC however when I went to setup the pin on the device it didn't work so the guide says run OEM lock in fastboot, though when I come to do this no matter what I do I cannot get the pc to see the device in fastboot, it works when the phone has booted into the OS but not fastboot.

I've tried everything, changed drivers, uninstalled drivers, installed OnePlus driver package, changed USB cables, booted into fastboot from adb CMD prompt, factory reset phone etc etc but nothing works.

Now I'm stuck in between my phone not being able to be setup correctly and not being able to OEM lock to try re-adding with the pin setup so it's just unusable, any advice greatly appreciated.
 

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Can anyone assist with getting my device recognised in fastboot?

So I managed to OEM unlock the device fine from fastboot it was recognised by my PC however when I went to setup the pin on the device it didn't work so the guide says run OEM lock in fastboot, though when I come to do this no matter what I do I cannot get the pc to see the device in fastboot, it works when the phone has booted into the OS but not fastboot.

I've tried everything, changed drivers, uninstalled drivers, installed OnePlus driver package, changed USB cables, booted into fastboot from adb CMD prompt, factory reset phone etc etc but nothing works.

Now I'm stuck in between my phone not being able to be setup correctly and not being able to OEM lock to try re-adding with the pin setup so it's just unusable, any advice greatly appreciated.
It not OEM unlock . IT is fastboot flashing unlock
 

MrSteelX

Senior Member
Jan 24, 2013
676
262
OnePlus 9
OnePlus 11
Can anyone assist with getting my device recognised in fastboot?

So I managed to OEM unlock the device fine from fastboot it was recognised by my PC however when I went to setup the pin on the device it didn't work so the guide says run OEM lock in fastboot, though when I come to do this no matter what I do I cannot get the pc to see the device in fastboot, it works when the phone has booted into the OS but not fastboot.

I've tried everything, changed drivers, uninstalled drivers, installed OnePlus driver package, changed USB cables, booted into fastboot from adb CMD prompt, factory reset phone etc etc but nothing works.

Now I'm stuck in between my phone not being able to be setup correctly and not being able to OEM lock to try re-adding with the pin setup so it's just unusable, any advice greatly appreciated.
The issue is pc. Open device manager with phone connected in fastboot mode. You will see a yellow triangle pointing at the problem.
 

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Can anyone assist with getting my device recognised in fastboot?

So I managed to OEM unlock the device fine from fastboot it was recognised by my PC however when I went to setup the pin on the device it didn't work so the guide says run OEM lock in fastboot, though when I come to do this no matter what I do I cannot get the pc to see the device in fastboot, it works when the phone has booted into the OS but not fastboot.

I've tried everything, changed drivers, uninstalled drivers, installed OnePlus driver package, changed USB cables, booted into fastboot from adb CMD prompt, factory reset phone etc etc but nothing works.

Now I'm stuck in between my phone not being able to be setup correctly and not being able to OEM lock to try re-adding with the pin setup so it's just unusable, any advice greatly appreciated.

This might help you
 

g96818

Senior Member
Dec 27, 2014
878
383
Can anyone assist with getting my device recognised in fastboot?

So I managed to OEM unlock the device fine from fastboot it was recognised by my PC however when I went to setup the pin on the device it didn't work so the guide says run OEM lock in fastboot, though when I come to do this no matter what I do I cannot get the pc to see the device in fastboot, it works when the phone has booted into the OS but not fastboot.

I've tried everything, changed drivers, uninstalled drivers, installed OnePlus driver package, changed USB cables, booted into fastboot from adb CMD prompt, factory reset phone etc etc but nothing works.

Now I'm stuck in between my phone not being able to be setup correctly and not being able to OEM lock to try re-adding with the pin setup so it's just unusable, any advice greatly appreciated.
You need to be in bootloader not fastboot
 

KingCoder

Member
May 7, 2015
32
4
Thanks for all your replies.

Apologies mixing up terms, yes I used Flashing Unlock as per the guide and I was in Bootloader.

I just can't understand why I was able to unlock the phone but now cannot get it recognised to be able to lock it again.

I windows the device showed up as a OnePlus 11 phone in device manager once it's booted, through in Bootloader mode it is not recognised at all, there is no device with yellow cross needing attention.

I've tried manually installing the Google ADB drivers as legacy devices but they just sit there in device manager as stopped devices regardless of what mode the phone is sitting in when plugged in.

Not sure where to go now.
 

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Thanks for all your replies.

Apologies mixing up terms, yes I used Flashing Unlock as per the guide and I was in Bootloader.

I just can't understand why I was able to unlock the phone but now cannot get it recognised to be able to lock it again.

I windows the device showed up as a OnePlus 11 phone in device manager once it's booted, through in Bootloader mode it is not recognised at all, there is no device with yellow cross needing attention.

I've tried manually installing the Google ADB drivers as legacy devices but they just sit there in device manager as stopped devices regardless of what mode the phone is sitting in when plugged in.

Not sure where to go now.
Make sure USB debug it on in developer option
 

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Yep definitely is as I was able to run ADB flashing unlock successfully.

I have even tried removing device authorisations on the phone then running usb debug mode again so the phone recognises the pc again and authorises it but it still didn't work in Bootloader mode.
I truely didn't know you can run adb flashing unlock...I always done through fastboot...I learned something today
 

g96818

Senior Member
Dec 27, 2014
878
383
Yep definitely is as I was able to run ADB flashing unlock successfully.

I have even tried removing device authorisations on the phone then running usb debug mode again so the phone recognises the pc again and authorises it but it still didn't work in Bootloader mode.
I would try a different computer. This is odd and I’ve never heard of it before. Your computer should recognize it since it had to have worked to unlock it.

Maybe try updating the driver and picking a different driver to install
 

KingCoder

Member
May 7, 2015
32
4
I would try a different computer. This is odd and I’ve never heard of it before. Your computer should recognize it since it had to have worked to unlock it.

Maybe try updating the driver and picking a different driver to install
Crazy one this is, it works when it's fully booted but doesn't work in Bootloader mode anymore, is driving me insane, is there anything I can do with it? Can I re-write the Bootloader when the phone is booted to start again with it ? Is that possible?
 

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Crazy one this is, it works when it's fully booted but doesn't work in Bootloader mode anymore, is driving me insane, is there anything I can do with it? Can I re-write the Bootloader when the phone is booted to start again with it ? Is that possible?
What windows you using on your computer..? You have platform tools installed in C drive..? Have you tried..put phone into fastboot.. have device manager open...plug in phone... you should see Android device show up with an exclamation ...click on that ..up date drivers...have disc...you want to install Android Bootloader Interface
 
Last edited:

KingCoder

Member
May 7, 2015
32
4
What windows you using on your computer..? You have platform tools installed in C drive..? Have you tried..put phone into fastboot.. have device manager open...plus in phone... you should see Android device show up with an exclamation ...click on that ..up date drivers...have disc...you want to install Android Bootloader Interface
Windows 10, yeah latest platform tools installed onto root of c drive.
 
  • Like
Reactions: Canuck Knarf

Canuck Knarf

Senior Member
Dec 19, 2015
582
168
Google Pixel 6 Pro
OnePlus 10 Pro
Try what i told you you should be on Bootloader interface as for me ..I'm on win 11... make sure you say let me pick from list
 

Attachments

  • Screenshot (2).png
    Screenshot (2).png
    1.7 MB · Views: 29
  • Screenshot (3).png
    Screenshot (3).png
    1.8 MB · Views: 25
  • Screenshot (4).png
    Screenshot (4).png
    1.8 MB · Views: 24
  • Screenshot (5).png
    Screenshot (5).png
    1.8 MB · Views: 26
  • Screenshot (6).png
    Screenshot (6).png
    1.8 MB · Views: 26
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    For those who accidentally flashed a patched init_boot over the boot file, here are the stock boot files:

    CPH2451_11.A.06 boot image:
    Stock boot
    SHA-1: 901EC0F5A2ECAF0F0B5472BA50A2C7B857C6D932
    MD5: 96FFEAFC046C3F6B80B706694A46213B

    CPH2451_11.A.07 boot image
    Stock boot
    SHA-1: FCB9964D9547363AB524C10BA2E15AAE8899DBC1
    MD5: DCFED50F37E79C272C954C9F6F1F82E2

    I have Oneplus 11 I used to have root on OxygenOS 13 A.09
    *I uninstalled Magisk by restoring img from Magisk to update to OxygenOS 13 A.10 after the update completed
    *I rebooted to fast boot and did fastboot boot init_boot_patched.img instead of flashing with the write command "" fastboot flash init_boot init_boot_patched.img ""

    ** I got the error " FAILED (remote: 'Failed to load/authenticate boot image: Bad Buffer S " and the phone stuck on fastboot —-
    I did fastboot set_active a and the phone booted, i rebooted back to fastboot and flashed with the wrong command again 😢
    "" fastboot flash boot init_boot_patched.img ""

    I did flash the init-boot, to both boot A and B
    --------------------------------------------------------------------------------------------------------------
    I know my mistake, i flashed a patched init_boot over the boot image , right now i am on oxOS A10
    following this https://forum.xda-developers.com/t/proper-cph2451-root-and-update-instructions.4556839/page-17
    I flashed boot_b.img and the device booted to Black screen and rebooted no OS

    there are 2 flies boot_b.img and boot_a.img is there a way to flash these separately or what does that mean

    also if please share the boot img CPH2451 OxygenOS 13 A.10 full Boot.img maybe flashing this will fix it

    please any help is much appreciated
    1
    Yeah that caught me off guard too! A.22 sounds so much simpler haha also, you can update your phone and then extract it using a terminal emulator BEFORE you root the inactive slot.

    Example, if you're in slot a and updated slot b?

    Su (enter)
    dd if=/dev/block/by-name/init_boot_b of=/sdcard/Documents/init_boot.img (enter)


    This command would extract init_boot from your b slot and save it to your Documents folder, swap letters if it's A slot. THEN root your inactive slot 👍
    It's much easier with Partitions Backup app

    Screenshot_2023-05-20-13-57-33-03_ad82801e3b9c518a21dbcc47ca1dcefb.jpg
    1
    It's much easier with Partitions Backup app

    View attachment 5915091
    Is this the one by Wanam? I was just looking around on apkmirror since i couldnt find a github or anything. I know we cant directly link to stuff like that but i was just curious.
    1
    It's much easier with Partitions Backup app

    View attachment 5915091
    Had no idea this existed 😮 Thanks for that heads up, I'm always doing things the hard way lol
    1
    Here

    And the Post in CDA
    Good deal, I saw this post and figured it was the same. Thanks
  • 12
    This is for the CPH2451 Rom, but should also work for other roms.

    I have returned my device so I will not be updating this with future updates.

    I have validated these instructions work for CPH2451 NA version so it's your choice to follow it or not.

    Not my fault if your phone bricks.


    Phase 1: Unlocking the bootloader

    WARNING: This will erase all data on your phone.

    WARNING: Netflix will not work after bootloader unlock. OnePlus's fault.

    Step 1: Complete the initial setup. You don't have to waste time signing into anything.

    Step 2: Go into Settings and scroll down to About Device.

    Step 3: Scroll down and tap on Version.

    Step 4: Tap 7 times on Build number.

    Step 5: Go back to settings and go to Additional settings.

    Step 6: Go into Developer options and tap on OEM unlocking and USB debugging.

    Phase 2: Installing drivers

    Step 1: Install everything here,except for OPLocalUpdate_For_Android12.apk. Save that for later.

    https://www.androidfilehost.com/?w=files&flid=334530

    Phase 3: Recognizing the phone and unlocking the bootloader.

    Step 1: Connect the phone to the PC and accept the prompt on your phone. Don't worry if it doesn't show.

    Step 2: If you installed all the drivers correctly, then from any folder on your computer, hold Shift and right click your mouse and select Open PowerShell window here. Use CMD if you have issues.

    Step 3: Type the following code and if you didn't get the prompt earlier, then accept the prompt after entering this code.

    Code:
    adb devices

    You should get something like this:

    Code:
    List of devices attached
        6g73s2t1        device

    Step 4: Reboot to bootloader

    Code:
    adb reboot bootloader

    Step 5: Type the following code and you should get something similar like step 3. Skip to Step 7 if you do. Continue to Step 6 if you don't.

    Code:
    fastboot devices

    Step 6: On your computer, right click This PC and select Manage.

    Look for a yellow triangle. It probably says Android device.
    Right click it and select Update driver.
    Select Browse my computer for drivers.
    Select Let me pick from a list of available drivers on my computer.
    You should have a list of Google or Samsung bootloader drivers or adb drivers or similar.
    This just install one and see if the triangle disappears, if not they try another until it disappears.
    Retry the code above and it should work.

    Step 7: Type the following to unlock the bootloader

    Code:
    fastboot flashing unlock

    WARNING: You might not be able to set your pin, password, fingerprint, and face unlock due to Oneplus incompetence.

    Step 8: Let your phone do it's thing, don't worry about the Orange State warning message after it restarts. This is normal.

    Step 9: Set up the phone, but don't waste your time logging into anything until you can successfully set up a pin or password. Skip to Step 11 if you can set up a pin or password. Continue to Step 10 if it hangs up on the second entry.

    Step 10: Skip everything, enable USB debugging and reboot back into the bootloader.

    This is the annoying part. You need to lock and unlock as many times as it takes for the pin or password setup to work. You might need to toggle the OEM unlocking switch in between lock and unlock cycles.
    Use the following to lock the bootloader and then repeat all of Phase 1 and 3 as many times as it takes.

    Code:
    fastboot flashing lock

    Step 11: Go ahead and setup your phone or continue to Phase 4.

    Phase 4: Rooting

    Step 1: Download and install KernelSU.

    https://github.com/tiann/KernelSU/releases

    Step 2: Open the app to find the Kernel version to download.

    Should be something similar to 5.15.41-android...........
    NOTE: This number is old and will change with each update so use what your phone says.

    Step 3: Take the first 3 sets of numbers and download and save the corresponding boot.img.gz file somewhere convenient.

    https://github.com/tiann/KernelSU/releases

    Using the example above, you will download this file: ksu-10647-Image-android13-5.15.41_2022-05-boot.img.gz
    This file will change with each app update so use the latest available that matches your phone in Step 2.

    Step 4: Extract the .img file.

    Step 5: Reboot to bootloader.

    Code:
    adb reboot bootloader

    Step 6: BOOT the kernel. DO NOT EVER FLASH THIS PHONE!

    Code:
    fastboot boot ksu-10647-Image-android13-5.15.41_2022-05-boot.img

    You essentially have temp root at this point.

    Step 7: Download and install Magisk Canary or Delta. I used Delta. Stable does not work.

    https://github.com/topjohnwu/Magisk

    Step 8: Open KernelSU and select the middle Superuser tab

    Step 9: Scroll down and toggle Magisk

    Step 10: Open Magisk and perform a direct install.

    Step 11: Install safetynet-fix-v2.4.0-MOD_1.2

    https://github.com/displax/safetynet-fix/releases

    Step 12: Clear the data from Playstore app and any Google app that has issues.

    Step 13: Enjoy!

    Netflix:

    Netflix does work, but DRM will drop from L1 to L3. However, I'm not prepared to release the fix yet cause I don't want you guys using my Netflix account.

    Realistically, since I no longer have this phone, I can't test it anymore so those who don't have a working OP10 or OP10T, you're SOL for now.

    For those who do still have a rooted OP10 or OP10T with working Netflix, then download Swift Backup, back up the app settings from your OP10 or OP10T and restore the files on the OP11.

    https://play.google.com/store/apps/details?id=org.swiftapps.swiftbackup&hl=en_US&gl=US

    WARNING: IF YOU GIVE THE BACKUP FILES TO SOMEONE ELSE, THEN THEY WILL HAVE ACCESS TO YOUR NETFLIX ACCOUNT!

    OTA Updates:

    I have returned my device so this will be the only post I'm making for updates. Follow the Non-PC Method for future updates.

    Color/Oxygen OS android 13 update

    CPH2451_11.A.07 NA Update & ROOT

    CAUTION!
    Not my fault if your phone breaks.

    WARNING!!!
    Issues I've seen on previous devices:
    - A few people have had bootloop issues due to using the wrong rom on the wrong phone. (e.g. Installing the Global ROM on a NA, EU, IN, or CN model)
    - If you have "FLASHED" the patched boot vice "BOOT" at anytime prior to this, then you can NOT use OTA unless you want to bootloop or end up in EDL and wipe the phone.

    I can't help you if your phone doesn't update properly.

    -----------------------------------------------------------------------------------------

    NA CPH2451_11.A.07 OTA Incremental update:
    Official: https://android.googleapis.com/packages/ota-api/package/11ca82d836bbd2530659d57bca236d2da0caf5dd.zip
    Mirror: https://www.androidfilehost.com/?fid=4279422670115720937
    SHA-1: 11CA82D836BBD2530659D57BCA236D2DA0CAF5DD
    MD5: D0A498CBDC3DABB491FD2EC061CD05C0

    OnePlus Local Update Tool (OPLocalUpdate_For_Android12.apk). Works on 13.
    Mirror: https://www.androidfilehost.com/?fid=15664248565197176984
    SHA-1: 80707A75F7FA9E1864E84C7C7C270175A9FEC129
    MD5: ADF932B2FD4C2A2B379C9427197B6B6A

    Two methods are available, PC and non-PC. I refer the non-PC method since it's much easier and it hasn't failed me yet so I'm just going to post instructions for that. If you screw up and lose root, then repeat Phase 4 for the PC method.

    -----------------------------------------------------------------------------------------

    Non-PC Method

    See Warning above.

    Step 1: You must unroot first. You don't have to completely remove Magisk, just restore images. Open Magisk, click uninstall magisk, and only click restore images. DO NOT REBOOT!

    Step 2: Install OTA update using the OPLocalUpdate app or through the stock system update. DO NOT REBOOT!

    Note: Skip to the next section if you want to back up the new stock boot.img, init_boot.img, and persist.img files before rooting the update.

    Step 3: Open Magisk and install to inactive slot. Reboot.

    -----------------------------------------------------------------------------------------

    For those who followed other directions to FLASH the patched init_boot, then reflash the stock init_boot using the same directions you previously used to flash the patched file.

    Follow Phase 4 to root.

    CPH2451_11.A.06 init_boot image:
    Stock
    SHA-1: 40F29889D68305B87ED8C0936F57F3F18A3A71D0
    MD5: BF310CAEE6B1F176CA0A138BC3DB65CC

    CPH2451_11.A.07 init_boot image
    Stock
    SHA-1: 22010F8F186F1438FFFEEC186014515F0C674F54
    MD5: 592D48E06F7F4494937445F9910C1CC0

    Saving the stock boot, init_boot, and persist images after OTA updates:

    Connect your phone to your PC and run the following codes using CMD or Powershell and save the files to your computer.

    The new boot files will be either the _a.img or _b.img files, depending on which slot the update is installed to. You can save both and look to see which slot magisk is patching when you install to the inactive slot to know which are the new boot images. There is only one persist img file and it supposedly changes with each update so make sure you save it.

    Code:
    adb shell
    su
    dd if=/dev/block/by-name/boot_a of=/sdcard/boot_a.img
    dd if=/dev/block/by-name/boot_b of=/sdcard/boot_b.img
    
    dd if=/dev/block/by-name/init_boot_a of=/sdcard/init_boot_a.img
    dd if=/dev/block/by-name/init_boot_b of=/sdcard/init_boot_b.img
    
    dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

    GPay no longer works, but Wallet does.
    4
    So I would just need to do a full unroot, Flash the init_boot.img from the OP, do the update and then before I root again pull my own init_boot.img so I have a copy for the next update? And repeat next time?
    Read the entire first post as well as all the spoilers to know to do.
    3
    For those who accidentally flashed a patched init_boot over the boot file, here are the stock boot files:

    CPH2451_11.A.06 boot image:
    Stock boot
    SHA-1: 901EC0F5A2ECAF0F0B5472BA50A2C7B857C6D932
    MD5: 96FFEAFC046C3F6B80B706694A46213B

    CPH2451_11.A.07 boot image
    Stock boot
    SHA-1: FCB9964D9547363AB524C10BA2E15AAE8899DBC1
    MD5: DCFED50F37E79C272C954C9F6F1F82E2
    3
    Yes, I've done this for the OP11. I was freaking out for a bit though; it took a while to get the phone to take a password/PIN when the bootloader was unlocked, but when I came back to a locked bootloader, it wouldn't take a password in THAT state. I finally realized that if I unlock, DON'T give it a password, then lock again, it took a password.

    So the solution might be the go to you undesired state, DON'T put in a password, and then your desired state will. Whole lot of good that knowledge will do me now. lol
    Yes.
    I set up the phone without any lock password nor pin.
    Unlocked bootloader (only one time), rooted and then I set up my screen lock and fingerprints without problem and without need to lock and unlock several times.
    3
    @JPower123 @cabagekiller

    I took my SIM card from my OP8 and put it in my OP11 and I had everything working fine until I rooted my phone. I took my SIM card out of my OP11 put it my OP8 and everything worked. Put it back into my OP11 and I couldn't make a phone call, no data by the way this is AT&T.

    I contacted AT&T and they told me that OP11 is NOT on their registered list of certified phones for their network. I asked to speak to a supervisor and he assured me that it is NOT on the list. This point I said I'm going to give you my IMEI number and I want you to try to couple it to my SIM card. They agreed to try and my phone has been working ever since. It is NOT on the certified list but it does work on the network you just have to tell them to replace your IMEI number on their end