yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] thisisapoorusernamechoice:
I'm currently updating from 302 to 700, I'll know soon.
[General Questions and Answers] thisisapoorusernamechoice:
I'm rooted on 700 with your supplied patched boot.img, thank you very much
[General Questions and Answers] sajattack:
It might be a bit late, but I think the missing piece of the puzzle was my super.img. Uploading that now after I successfully restored with it.

Your rollback zip is a good find too!
[General Questions and Answers] sajattack:
I accidentally rebooted while flashing xbl QQ 😭
[General Questions and Answers] Kreuger:
Can we please get some more detailed steps than this? There's no indication of what the "reference" zip file is. I thought it would be the payload but that should be a .bin? Also how do I use the flash script? What exactly am I flashing with it? The extracted boot.img file? Are there arguments for it? I tried flashing a patched version of .700 and now have a bootloop. I want to get back to the stock so that I can flash PixelOS instead. These are the most vague instructions I have ever seen.

Edit: Okay i downloaded the zip (it took a while and was not done when I originally made the post) which had the payload.bin in it. I used payload dumper and it stopped with the message "corrupt xz file". Do I need to worry about that? I assume that I only need the boot.img.
[General Questions and Answers] thisisapoorusernamechoice:
Do you have a CPH2513 or CPH2515? Are you ok with wiping and losing all your saved stuff or are you looking to avoid having to do that?

Edit: Is your bootloader unlocked?
[General Questions and Answers] mavericwhites:
Hello Hackerryyy!!

Rooting the Nord Plus N30 can be challenging without compatible TWRP or custom firmware. Consider waiting for community support or exploring alternative rooting methods specific to your device. For more information, check out butcher dubai.
[General Questions and Answers] Kreuger:
2513. There's nothing on the device to lose because it is not my daily driver. And yes, the bootloader is unlocked.
[General Questions and Answers] thisisapoorusernamechoice:
I've got a new N30 LineageOS build up on my public OneDrive folder, I'll have it up on Sourceforge later today hopefully. I haven't even had the chance to test it myself yet because I've been traveling for work all week. Thus I'm hesitant to just post the download link for all know it'll break phones. But let me know if you want it, I'll share
[General Questions and Answers] dumdedumda:
Any luck on extracting the N30 vendor blobs and incorporating them into your build?
[General Questions and Answers] thisisapoorusernamechoice:
Oh yeah, I was able to do that, plus I switched some driver files in the kernel repo to Nord 30 specific ones. I've got a LineageOS build dated 20240708 up on my sourceforge and I'll upload crDroid soon if it's worth doing so. I've been away from work so literally as I type this this is the first chance I'm getting to test my latest build.
[General Questions and Answers] thisisapoorusernamechoice:
Ugh neither of the 20240708 builds boot. Btw the attached bash file restore.sh seems to work to restore stock in an automated fashion in conjunction with the signed download file I mention in the post I'm replying to.

You just have to use payload-dumper-go to extract the downloaded payload.bin. There should be 41 img files, it's important my_company.img and my_preload.img are present. You probably have to chmod a+x restore.sh to get it to work. I don't know any syntax but I'm sure this should be able to run as a batch file in windows too.

You need to start in normal bootloader mode, i.e. either adb reboot bootloader or fastboot reboot bootloader or simply hold down both volume buttons with the power button. Run the bash file, it'll take care of the rest including (necessarily) rebooting into fastbootd partway through which takes a few moments, be patient. It's going to say some scary looking things for the my_variousNames images, stuff like deleting partition, resizing, sending sparse, these are all normal and good, don't be worried.

When the restore.sh script is done, on the phone click English (unless you're going to use one of the other available languages!) and follow the prompts to format data. I've tested a few times now. Added bonus (at least from my point of view, feel free to disagree) this method, whether done with the script or manually with all the equivalent commands, does NOT seem to re-lock your bootloader.

I have another idea on how to overhaul the kernel. Bear with me, I do do a lot of work on this stuff whenever I can.
[General Questions and Answers] logiccircuit:
Me following your activities on this thread:
[General Questions and Answers] Slim K:
Windows Batch and Bash are not the same and many tools you use in shell scripts (like sed or cat) cannot be used normally in batch files. Another problem is the use of functions which are not as streamlined in batch.

Attached is a restore.sh translated to restore.bat for windows compressed to .zip (cuz XDA don't allow .bat attachments).

Make sure the Fastboot command is defined in your %path% or launch the .bat in the same folder where fastboot.exe/AdbWinApi.dll/AdbWinUsbApi.dll and the rest of the content of payload_dumper is.
[General Questions and Answers] zoom3zoom:
Thank you so much for this guide!

I am able to restore my Nord N30 again using this simple restore.sh script along with the signed package from your prior post: https://oxygenos.oneplus.net/8444_sign_CPH2513_11_A_OTA_0250_all_ChRDc5_10100001.zip
[General Questions and Answers] thisisapoorusernamechoice:
I'm seriously glad it worked for you too. Just a heads up everyone, July update incoming (see attached).
[General Questions and Answers] logiccircuit:
Out of curiosity, I just went to check for updates on my system.

It greeted me with the attached image: A request to enable the network for Google Play Services. Notice that it hasn't been able to check for updates since June 28 (since I disabled Play Services)

It looks like the system update is using Play Services Google Services Framework, and it can't check otherwise. So if you really really want to avoid updates for a bit, this might be a possibility. It's not an option for everyone, obviously.
[General Questions and Answers] thisisapoorusernamechoice:
That's really, really interesting about the play services thing, excellent trick, thank you for sharing!

As expected, the July update download file from the Oxygen Updater app is only an incremental update, the last full update file is from the April update. That means I'm not entirely sure how we're going to root this latest version; I won't be able to attempt it before this weekend.
[General Questions and Answers] logiccircuit:
After some poking about, it's specifically the Google Services Framework that the updater uses.
[General Questions and Answers] logiccircuit:
The payload.bin file for this update (on the 2513 anyway) only has 4 files in it: imagefv.img, splash.img, xbl.img, and xbl_config.img. No boot.img this time around. Unless the updater does some extra trickery, maybe it won't be a problem?
[General Questions and Answers] thisisapoorusernamechoice:
I originally had the 2515 and have only recently been working with the 2513. I know mix and matching boot.img's on the 2515 was guaranteed to fail, and I thought I had heard bad things about trying the same on the 2513. I might be able to try testing the available .700 magisk-patched kernel today on the latest update but my gut instinct is telling me the new way OnePlus, Oppo, and T-Mobile all do things means I'm going to throw a boot loop. I really hope I'm wrong.
[General Questions and Answers] g96818:
you're not wrong. the 2513 and 2515 boots diverged awhile back. not sure if they recombined now.
[General Questions and Answers] thisisapoorusernamechoice:
Trying to use the available magisk-patched 700 boot image put my 2513 in a boot loop. I used my restore.sh method to wipe and return to stock again. Oh well
[General Questions and Answers] logiccircuit:
Does the normal method fail as well, by (re)-patching the boot.img on the new build?
[General Questions and Answers] g96818:
That asshole that caused me to closed my thread probably won't show his stupid face around here anymore so here are the stock 700 & 901 boots for 2513.

WARNING: Don't try them on a 2515 phone and complain the phone is looping..
[General Questions and Answers] g96818:
don't use magisk canary (27004) to update, revert back to ver 27002. 27004 gave me issues when updating from 700 to 901. you can update magisk after updating to 901.
[General Questions and Answers] thisisapoorusernamechoice:
Are you saying you recommend using magisk canary in general? I was using the regular, stable channel when I was rooted on 700.

Thank you for supplying the stock boot images!!
[General Questions and Answers] g96818:
yes canary works better. canary creates the boot back up so you can update without a computer. regular doesn't
[General Questions and Answers] thisisapoorusernamechoice:
Thank you so much!!! I am on .901, rooted, used Magisk canary 27004 on your provided .901 boot image and the patched img worked on my CPH2513.
[General Questions and Answers] g96818:
Don't post that. Everyone needs to patch it themselves using canary so magisk can create a stock backup to use when you take ota updates.
[General Questions and Answers] Dr.Pagan:
Hi....Also i brick mine too and cant find the stock firmware for flash it, specially boot.img. Anyone have a link or img.?
[General Questions and Answers] mingkee:
can you try Nord CE 3 Lite boot?
[General Questions and Answers] hackeryy:
Oh no, sorry to hear that! I haven't been able to root it yet either, haven't had the time to look more into it yet. Please do share your steps if you figure it out! I will do the same.

That's unfortunate, it sounds like a lot of people are having this issue. Would be helpful if someone would release a video or a guide for rooting this specific model.

Hey it sounds like a lot of people are having issues rooting this phone. I'm still confused about how to root it since there is not an injected boot image available here: https://www.oneplus.com/global/support/softwareupgrade

Could you provide some more guidance on the steps I would take to root it through PC, without the image? I would also be willing to create a video/guide for rooting this model to help others who are having the same issue.

Could I copy the boot image from my phone and use that in place of the injected boot image? How would that be done? I'm following the instructions in this video btw
[General Questions and Answers] Inovumia:
I just picked up this phone and am also stuck trying to find root. Since no flashfile seems to be available or any boot.img, best way to obtain such a thing seems to be from https://xdaforums.com/t/guide-get-official-ota-download-link-ota-link-collection.4312787/. Unfortunately, I already updated my phone; so I was not able to find any sort of link or domain to download the OTA update files.
[General Questions and Answers] hackeryy:
That's part of the issue, because the model launched so recently, the ROM files are not yet available.

This is the response I got from OnePlus support when I requested the ROM files, for recovery purposes:

"Since the device has been launched recently, the ROM files are not available on our official website or they are not available with us hence I request you to wait for the update to be released manually and you will be notified once it is rolled out to your device."

Thank you, I'll give it a try. As a workaround I got a raspberry pi, to ssh into, to get a root kernel on my Android.
[General Questions and Answers] bibikalka:
Do you mind providing here the info for N30 from the actual physical box that the phone came in?

Here is an example I am looking for:

Date: 05/XX/2023 H/W: 11 S/W: CPH2515_13.1.0.520(EX01)
[General Questions and Answers] hackeryy:
H/W and S/W are not listed on the box. But here's the information from About Device:

Date (from box): 2023.05.04

Hardware Version: CPH2513_11

Build Number: CPH2513_13.1.0.572(EX01)
[General Questions and Answers] bibikalka:
OK - thanks! Looks like your H/W version is also 11. They have the 2nd SIM disabled in the plastic tray, and also in the firmware for CPH2515. I guess if you are able to root, and dump all your partitions, one could enable the 2nd SIM module back.
[General Questions and Answers] bizkit_120:
You are absolutely head of the game 😄 you have everything ready except boot img... .. really nothing we can do until OP officially release full stock firmware
[General Questions and Answers] Inovumia:
KernelSU's APK lists CPH2513 as unsupported. Kernel version is 5.4.210-qgki-g97eb6f689037, and since there are no 5.4 kernels, I'm fairly sure we still need the boot image to flash.
[General Questions and Answers] Inovumia:
From KernelSU's readme: "KernelSU officially supports Android GKI 2.0 devices(with kernel 5.10+), old kernels(4.14+) is also compatible, but you need to build kernel yourself".

Now, from android.com you can obtain android common kernels for android12-5.4 and android11-5.4; so the first problem is identifying which android kernel version the device has (I'm still conflicted if this matters, but there are the two distinctly different android versions available for download) and then building it. That seems slightly out of my comfort zone, but seems like it should work for this device.
[General Questions and Answers] thedkl:
my phone came with android 13 so i'm not sure android12-5.4 and android11-5.4 would work.
[General Questions and Answers] Inovumia:
The kernel version and android version are completely separate. KernelSU's has an in depth readme about it.
[General Questions and Answers] g96818:
@hackeryy @Inovumia

I'll post something tomorrow on how to root CPH2513. For now, install the latest ota using sytem updater.

you need to be on the CPH2513_13.1.0.601(EX01) version

BTW, KernelSU will not work. Stupid OneMinus disabled the fastboot command to make it work even if you have the kernel
[General Questions and Answers] Inovumia:
Solid, looking forward to reading about what you've found!
[General Questions and Answers] bibikalka:
Can you do CPH2515_13.1.0.520(EX01) ?
[General Questions and Answers] g96818:
sorry, mis-read. wrong rom. I have something, but can't be certain it's for CPH2515
[General Questions and Answers] g96818:
@hackeryy @Inovumia

https://xdaforums.com/t/nord-n30-5g-cph2513-root-guide.4612143/
[General Questions and Answers] hackeryy:
Thank you so much for making this guide! I'm on vacation right now without access to my android, but I will test it out when I get back.
[General Questions and Answers] g96818:
Deleted
[General Questions and Answers] hackeryy:
I tried this on the .520 build and it didn't hard brick the phone (I can still access the OS and the bootloader) but I can't connect to wifi (when I turn wifi on, it doesn't detect any networks and then the wifi turns off by itself).

Magisk did not store a stock backup. Does anyone have a boot image for the .520 build? I can send it in to OnePlus for repair, but I would rather re flash it myself, since I still have access to the OS and bootloader.
[General Questions and Answers] g96818:
Your previous post said you are on .572. I have the .520 boot that I can send you, but it won't work either.

Would be good if you mentioned you flashed the wrong boot version as the reason it didn't work.
[General Questions and Answers] hackeryy:
Yes you're right I'm on a .572, apologies for the confusion. And yes, the reason it didn't work is because I flashed the wrong boot image, as I did not have a .572 boot image available. It was my fault. Does anyone have a .572 boot image available or do I need to send the phone in to be repaired?
[General Questions and Answers] g96818:
can you double check your phone model? 2513 or 2515?
[General Questions and Answers] hackeryy:
Yes

CPH2513
[General Questions and Answers] g96818:
ok. was hoping you actually had 2515 since i have .572 for 2515.
[General Questions and Answers] hackeryy:
Shucks
[General Questions and Answers] bibikalka:
Did you bootloader unlock 2515 ? Are the unlock tokens being provided already?
[General Questions and Answers] DatJP001:
Hello everyone.
[General Questions and Answers] g96818:
No one is reporting they need unlock tokens
[General Questions and Answers] bibikalka:
Which 2515 versions are these? Even Metro N30 versions don't need tokens? Anybody with a Metro N30 version cares to chime in?
[General Questions and Answers] g96818:
The 2515 boot files I have are from the metro people.

Maybe you should just try unlocking the bootloader first
[General Questions and Answers] bibikalka:
So the phone gets its bootloader unlocked, but stays SIM locked?

Can any of 2515 Metro people confirm the unlock and what is happening there? Is the phone working OK, just rooted and still waiting for a SIM unlock?
[General Questions and Answers] g96818:
That is two completely different things. Look for an app on your phone to sim unlock it. Sim unlock has nothing to do with bootloader unlock, but you can only sim unlock before bootloader unlock since it's a carrier app that gets deleted after bootloader is unlocked.

At the end of the day, it's your decision what you want to do. I don't have that model so I can't help you at the end of the day.
[General Questions and Answers] Tigerevo:
I think did link right this was from 2515 .600 stock boot and magisk delta patched from my metro version . https://drive.google.com/file/d/1KWIEVJ9Cx9pe7BLMpdFkbLxj1adMaZ3e/view?usp=drivesdk
[General Questions and Answers] Tigerevo:
Has anyone tried flashing 2513 full rom to 2515 with unlocked bootloader? May 2515 vs 600 is rooted but trying to restore factory with root to moms 2515 vs 623 .
[General Questions and Answers] nodevderrick:
I recently bought a N30 ( cph2515 ) from T-Mobile.

The sales associate shared the firmware.zip file in Google Drive.

Firmware files for OnePlus are supposed to be provided by the retailer, I thought. Maybe you can get a copy of your devices firmware from the store where you purchased the device.
[General Questions and Answers] hackeryy:
My Nord N30 is rooted with an older version, but I don't have an update image. Can someone please assist? If I try to update it from the settings, I will brick my phone, won't I?
[General Questions and Answers] hackeryy:
From Oneplus Support:

"I am reaching out to address your inquiry regarding the availability of the OS image or firmware file for the OnePlus Nord N30. We appreciate your interest in optimizing your device's software experience. However, I regret to inform you that we do not provide OS images or firmware files for the OnePlus Nord N30. Our focus is on delivering regular software updates to enhance the performance, security, and features of your device. These updates are designed to ensure that you have the best user experience while using your OnePlus Nord N30."

Am I going to brick my (rooted) phone if I try to update it through the settings?
[General Questions and Answers] nodevderrick:
Sorry, but I don't know if you'll bring your phone or not.

And, If OnePlus doesn't provide the firmware for the N30, Dana at T-Mobile in Rainbow City does.
[General Questions and Answers] hackeryy:
Any way you can share the zip file with me so I have it?
[General Questions and Answers] nodevderrick:
email currently.derrick@gmail.com from the account you want me to share the Google drive link to.
[General Questions and Answers] logiccircuit:
drive.google.com/drive/folders/180S8WDCQ7e-BWimjg8ip-5i-2pLTcYW5?usp=sharing

The full 622 zip, and a boot.img file extracted from it.

EDIT: Also, the 14.0.0.201 update.
[General Questions and Answers] thisisapoorusernamechoice:
This is for the CPH2513 correct?

I have the CPH2515 (Nord N30) and I'm trying to get a LineageOS device tree together for this device. I already have the kernel ready to go. I really would like to be able to use one of the CPH2513 boot.img files to be able to root my device so I can start pulling partition size info and manifest files and stuff from the rooted device, but I've been seeing some bad results mixing and matching CPH2513 and CPH2515 boot.img.
[General Questions and Answers] logiccircuit:
Correct, it's the CPH2513 files. The zips were pulled from the internet using the third-party Oxygen Updater app. The img files came out of the zips.

I've also got a CPH2513, and I'm very excited to hear about Lineage development. I hate the stock firmware.
[General Questions and Answers] thisisapoorusernamechoice:
I need this file and Google Drive won't let me download it.

I'm trying to build LineageOS for the Nord N30. I have the CPH2515. This is exactly what I need. I've already got a device tree and kernel repo going https://github.com/rosand25/android_kernel_oneplus_sm6375 https://github.com/rosand25/android_device_oneplus_ossi

I just need partition info and an unambiguous list of proprietary files, all of which I think I need root for. There are no other full firmware files for the CPH2515 that I'm aware of. Your assistance would be infinitely appreciated, I have usable accounts on any cloud storage service you might care to use. Thank you in advance!
[General Questions and Answers] logiccircuit:
I was able to retrieve the file. I've put it in the same Gdrive as the other files I provided previously:

n30 - Google Drive

drive.google.com

It's an incremental update, not a full. It might not have all the files you need.

It came from firmwarefile.com, not directly from OnePlus as implied.
[General Questions and Answers] nodevderrick:
request to currently.derrick@gmail.com using the address where you would like to receive the firmware.zip file or try this link:

https://www.dropbox.com/scl/fi/2y8g..._OTA.zip?rlkey=2lieo6xnk73d9eum9cjbxh9fd&dl=0
[General Questions and Answers] nodevderrick:
Link to Dropbox: firmware.zip download:

https://www.dropbox.com/scl/fi/2y8g..._OTA.zip?rlkey=2lieo6xnk73d9eum9cjbxh9fd&dl=0
[General Questions and Answers] thisisapoorusernamechoice:
Can anyone with a rooted N30 get me the contents of the following directories (folders): vendor/bin and /odm/bin

I need them to build LineageOS
[General Questions and Answers] logiccircuit:
n30 - Google Drive

drive.google.com

They're in the 14_201 folder, since that's the version my phone uses.

There's two files, vendor-bin.tar.gz and odm-bin.tar.gz.
[General Questions and Answers] thisisapoorusernamechoice:
Wait are you rooted on 14? Do you have access to a PC running Linux? If not no big deal disregard this.

If you do and you're willing to help me here, you might be onto something big here. I'd need you to

git clone https://github.com/rosand25/android_device_oneplus_ossi

and open the folder in the terminal. To make sure you're in the right folder, if you run the command

ls

you'd see the same folders and files listed as opening that github link in a browser. At that point, with your phone connected to the Linux PC with adb enabled and authorized, you'd run

./extract-files.sh

which should pull all the files needed to make a complete vendor repo for our device. I've been trying to do so with mine, but a) I've got the CPH2515 which is stuck on 13 for the time being and b) more importantly I can't root my device yet so I can't pull all of these files the way I'm pretty sure you will be able to.

Basically this but with our device instead of the one in the article: https://wiki.lineageos.org/devices/dre/build/#extract-proprietary-blobs

If you can do all this I believe I can stop wasting time messing around with LineageOS 20 and skip straight to 21.
[General Questions and Answers] atomic_hedgehog:
I have a rooted CPH2513 on Android 14. Will that work? I tried running the extract-files.sh and got:

Unable to find helper script at ./../../../tools/extract-utils/extract_utils.sh

. BTW, I was able to root my phone by downloading my firmware using https://github.com/oxygen-updater/oxygen-updater and extracting it with https://github.com/cyxx/extract_android_ota_payload . Maybe you could download the firmware for CPH2515 with that app?