yashsingh1/xdaforums huggingface dataset:
[ONE General] RalphLauren:
you do not need to use it per se.

Flash the files separately using fastboot as states in OP
[ONE General] andybfmv96:
am i missing something? i thought the radio files were missing.

Or is the "modem NON-HLOS.bin" the radio?
[ONE General] vamshi88:
Done, worked well.

---------- Post added at 11:13 PM ---------- Previous post was at 11:10 PM ----------

worked.
[ONE General] EddyOS:
Might have to re-write the OP! :D
[ONE General] vamshi88:
:highfive:

One mistake i made was I flashed the zip with both the Userdata and userdata_64 files, and rightly so got an error saying "no sd card found" and "could not create the downloads folder" when trying to download few files from chrome. To rectify all i did was wiped dalvik and cache.:cowboy:
[ONE General] EddyOS:
OK, I suppose I could repackage the fastboot files to have one for 16GB and one for 64GB users to avoid the issue...I'll have a look
[ONE General] RalphLauren:
modem NON-HLOS.bin

sbl1.mbn

sdi.mbn

emmc_appsboot.mbn

rpm.mbn

tz.mbn

logo.bin

these files belong to "radio" according to flash-radio.sh
[ONE General] andybfmv96:
Ohh. Okay thanks. Sorry about that. In have no way of even opening the file. Thanks though
[ONE General] rickyx32:
Just for clarification, if I delete the userdata.img file from the zip using WinRAR, could I then use it on my sandstone black without issue?

Edit: It wouldn't let me flash the zip as a whole using "fastboot flash -w cm-11.0-XNPH25R-bacon-signed-fastboot.zip". I didn't do anything to the zip and I downloaded it again just in case. The error said something about not finding the image filename. I extracted the files and was able to flash each file manually though. The zip and the extracted files where in the same directory in the platform tools, so I don't understand what could be wrong?
[ONE General] vamshi88:
I just reflashed the whole thing again no problem.

"Fastboot -w update cm-11.0-XNPH25R-bacon-signed-fastboot.zip"

just delete the userdata.img file from the zip if you have a 64gig version. it will give a warning something like no signed version of images are found but it will be ok.

then reflash the Custom recovery and root. :D

[MENTION=2258271]EddyOS[/MENTION] I forgot to mention, i used this "Fastboot -w update cm-11.0-XNPH25R-bacon-signed-fastboot.zip" to flash this zip
[ONE General] rickyx32:
Ah, that explains it, thanks man.
[ONE General] EddyOS:
I'm sure the command is wrong. try fastboot flash zip -w cm-11.0-XNPH25R-bacon-signed-fastboot.zip and see what happens if you want...
[ONE General] EddyOS:
Ah, right! I was sure it didn't look right! :D I correct the OP
[ONE General] EddyOS:
OK, I did the 'fast' flash in fastboot and it doesn't flash the radio images, just the IMG files. Just so you all know
[ONE General] EddyOS:
See post #61 for new links :)
[ONE General] rickyx32:
Okay, I'll give it a go.
[ONE General] rickyx32:
[MENTION=2258271]EddyOS[/MENTION] It didn't work, "error: failed to load 'cm-11.0-XNPH25R-bacon-signed-fastboot': No such file or directory". I do have the system path and it started, but it quit on me at that point. Here's the log :)
[ONE General] EddyOS:
Think I know the problem. I'm sure it's cause I missed the file extension off of the ZIP file. I'm gonna try it myself this evening and if it works I'll upload a new version. Thank you :)
[ONE General] _OverKill_:
wow great download now
[ONE General] aditya2603d:
Can I just download the particular userdata_64G.img and flash because I have already downloaded the file from official cyngn website and I don't want to download the entire image again. I am on a capped bandwidth and I don't want to waste my bandwidth plus my broadband gives me download speed of 60 KBps. It's time consuming. Hope you understand
[ONE General] Spannaa:
I've zipped and attached userdata_64G.img for you - extract it and put it in the same folder as the other files from the fastboot zip ;)
[ONE General] aditya2603d:
Thanks buddy. You made my day:o:):highfive:
[ONE General] cdkg:
These links are great but they seem to be for the 64gb only.

Could some one please be kind enought to post a working link for "cm-12.0-YNG1TAS17L-bacon-"signed-fastboot_16GB"?

Thanks
[ONE General] Spannaa:
The fastboot zips are for both the 16GB and 64GB versions.

To update a 16GB model you just use userdata.img instead of userdata_64G.img

All of the other partitions are the same on both versions.

Sent via Bacon...
[ONE General] cdkg:
Spannaa,

Great info, thanks for your help
[ONE General] oopstairs:
Your 64 gb opo will be 16 gb opo. Been there done that
[ONE General] krunal1981:
system.img file missing

i am unable to return to stock . when i run the command to flash system.img . an error message appears " system.img is missing"
[ONE General] ogrillion:
Command is fastboot flash system system.img

Just making sure you typing it right.
[ONE General] _ASSASSIN_:
you probably have to flash it manually rather than using a flash-all.bat file.
[ONE General] PhillyFlyer:
I bricked my device. Luckily, I knew just enough about this stuff that I could get myself out of it.

But lets make something very clear here....the fact that you can't take TWO minutes, maybe ONE, to rewrite the OP instructions properly so that inexperienced flashers do not end up bricking their devices for good is absolutely mind blowing. I can't understand why you the OP does not make it clear, step-by-step, hold your hand like a baby "CLEAR".....that all zips must be extracted and the run-all batch should be ran only when that is complete, because the only way to get another shot at reviving your phone is a tricky and crappy method at best while "seeing in the dark" with no screen-on and uninstalling/installing qualcomm drivers foreign to most up-to-date machines. It makes no sense that a procedure like this is up and available to all and a "disclaimer" that you are not responsible is enough to wash your hands clean of peoples misinterpretation of your flashing procedure. It is irresponsible, and I know we all flash at our own risk ---- but it is not enough to provide this tool with a disclaimer, without providing the proper instructions.
[ONE General] Renosh:
Same situation that happened to me recently unzipped once didn't counter-check additional zips and used the flashall.bat and bricked my phone. Black screen and unresponsive only thing that worked was usb was detecting my phone as qsb.... when pressing power and volume down. Luckily the unbrick guide on this forum was easy enough to get my phone up and running.
[ONE General] EddyOS:
If you don't quote me, the OP (who doesn't check this thread often as I don't have an OPO any more and haven't since the last edit) I'm not to know the guide is flawed. If someone can explain, in sensible terms, what needs changing I'll do it. At the time of the last edit, what I posted WAS correct and was confirmed as working by more than one user so I've had no need to change it since...
[ONE General] Spannaa:
Remove "fastboot reboot-bootloader" between each step and the .bat file will be ok - it's this line that's causing the bricks.

The ping lines aren't necessary either.

fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash aboot emmc_appsboot.mbn
fastboot flash LOGO logo.bin
fastboot flash modem NON-HLOS.bin
fastboot flash recovery recovery.img
fastboot flash rpm rpm.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash oppostanvbk static_nvbk.bin
fastboot flash system system.img
fastboot flash tz tz.mbn

then if you have the 64GB model

fastboot flash userdata userdata_64G.img

or if you have the 16GB model

fastboot flash userdata userdata.img

then

fastboot reboot

Sent from Marrakech via Bacon...
[ONE General] EddyOS:
Is there a newer image out while I'm at it? I won't do all the older packages (so will probably remove them)

EDIT: Found the newest image so will update OP in a bit :)

EDIT 2: There appears to be only 1 userdata file so I'm guessing it's 64GB-only as there is no longer a 16GB model?

EDIT: Actually, if there is just one file which seems to cover all of it surely you just flash it using

fastboot update zip cm-12.0-YNG1TAS2I3-bacon-signed-fastboot.zip

Correct?
[ONE General] Spannaa:
AFAIK, userdata.img is still just for the 16GB model and shouldn't be used for the 64GB version. userdata_64G.img can be extracted from the last CM11S fastboot zip and used for the 64GB model.

In theory fastboot update zip cm-12.0-YNG1TAS2I3-bacon-signed-fastboot.zip should work but there are reports of this failing to update some partitions so it's more reliable to flash the partitions separately.

Sent from Marrakech via Bacon...
[ONE General] Renosh:
At the second step for

2. Extract factory image, it would be a good idea to mention that there's an additional zip in the 64GB version that should be extracted. It's the one that has system, username, boot... etc. I didn't check recently and the reboots triggered by your script really screwed me up.

Had to do the lengthy unbrick process so include a link to that it would be helpful for people
[ONE General] EddyOS:
Sounds pretty logical. I'll pull the userdata_64G.img from an older ZIP and re-do the OP
[ONE General] nunoovidigal:
I Have 2 simple questions:

I am running CM 12.1 Nightlies and I have TWRP installed! I want to buy OP2, but before, I want to return my OPO to stock so I can sell it.

So, my 2 simple questions are:

By following this GUIDE, will TWRP be deleted in the end?

Will the phone be able to receive further OTA updates?

In a nutshell, will my OPO be in an out of the box state by the time I finish following this GUIDE?

I would really appreciate a clarifying answer. Thank You!
[ONE General] Spannaa:
If you fastboot flash every partition including recovery and then relock your bootloader, you'll be just about the same as out of the box.

You don't need to relock your bootloader to receive OTA's though...

Sent from Marrakech via Bacon...
[ONE General] waterdaan:
Thanks
[ONE General] oupavoc:
Can someone please let me know the last official build? Thanks
[ONE General] Spannaa:
A quick search would have found that it's YNG1TAS2I3

Sent via Bacon...
[ONE General] EddyOS:
I've removed all links until new ZIPs are confirmed as working OK but will endeavour to get the OP updated in the next week or so

:)
[ONE General] Welizaki:
Can i return to CM11S?
[ONE General] EddyOS:
Shouldn't be an issue, but I can confirm the new version of the ZIP works as I flashed it on my new OPO this evening. Links going up tomorrow
[ONE General] EddyOS:
OP updated the latest CM12S images, should all be fine now
[ONE General] Goronok:
Thanks, appreciate the new images and updated OP :)
[ONE General] EddyOS:
To add, I used the new package to go back to CM12 from Oxygen and it all went without a hitch so you should all be fine now!
[ONE General] GioRega23:
thank you. best guide for reset the OPO
[ONE General] Flak:
The fastboot reboot isn't in the bat file. Is it supposed to happen automagically after it flashes userdata_64g.img?
[ONE General] Spannaa:
If there's no fastboot reboot line then your device won't reboot automatically.

Try turning it off and then back on again after you've exited the script...

Sent via Bacon...
[ONE General] Flak:
Yep, I know that. Was just letting EddyOS know that there was no reboot line in the bat file.
[ONE General] EddyOS:
I wasn't sure whether to put it in or not, cause people were saying the older scripts were causing issues. I'm happy to add it back in, though, if it's required

Or, just add the line to the script and keep it safe for emergency purposes! :D
[ONE General] Avi416:
Firmware Version

Hi, Just wanted to ask something. My Oneplus one says it's up todate and the build number is not YNG1TAS2I3, but YNG1TAS2XK. I just want to know if this should be like this or if I am running a diffirent version of cm12. (I recived the phone a few days ago so no roms or root installed)
[ONE General] santoshvaza:
I have downloaded the fastboot zip from https://cyngn.com/support

http://builds.cyngn.com/factory/bacon/cm-12.0-YNG1TAS2I3-bacon-signed-fastboot.zip

which didnot had fastboot flash userdata userdata_64G.img file in it, should i skip this ?

i am on cm12,1 and want to goto stock and lock bootloader

i have 64 gb indian opo
[ONE General] Jman135:
I'm on the same cm OS version as you....2xk ..... Why is no one else on this version.... I also just purchased my opo. Not sure if this is relevant but the new global opo does not have the cyanogen branding anymore but it is still running cm. That is the case with me. Anyway, have you found out anything more about this rare cm 12.0 version we have
[ONE General] Spannaa:
Factory reset will do pretty much the same thing as fastboot flashing userdata.

Curious as to why you want to re-lock your bootloader though - it's not necessary and, if you're passing on your device to a new user, it could well cause problems for them if they want to unlock it again.
[ONE General] Jman135:
I guess this is the most current version of cyanogen os ,which is not cyanogen mod. It is however the most current version or so I was told by a user on reddit.[emoji4]
[ONE General] EddyOS:
Will update to CM 12.1 once the fastboot images are available, or if someone can PM me when the link is available I'll get to it ASAP!
[ONE General] Spannaa:
[MENTION=2258271]EddyOS[/MENTION]

cm-12.1-YOG4PAS1N0-bacon-signed-fastboot.zip
[ONE General] EddyOS:
Cheers, I just tried to edit the original file name on the CM site - obviously didn't work! :D

Is this still classed as CM12.1S or is this just generic CM12.1 now?
[ONE General] Spannaa:
I assume it's CM OS12.1 as the last one was CM OS12

There's been no official announcement though and the OTA update appears to have been removed.

Cyanogen/OnePlus are great at PR :laugh:
[ONE General] EddyOS:
OP updated with new images :)

Nice that this time they included both userdata files
[ONE General] Stek90:
Where did you find the fastboot images linked in OP?

Thanks! :rolleyes:
[ONE General] EddyOS:
[MENTION=2948558]Spannaa[/MENTION] posted the link a few posts up and I repacked it to the 16GB and 64GB
[ONE General] aukdrck:
Mate I'm going to try this method. Can i skip step 4 to keep my bootloader unlocked? Thanks for the Guide BTW.
[ONE General] Spannaa:
Yes, of course ;)

There's no reason to re-lock your bootloader - you'll only have problems later if you need to unlock it again...
[ONE General] aukdrck:
Everything went smoothly. Thanks heaps.
[ONE General] Stek90:
I just read that update was pulled and than cyanogen has just rolled out a sightly different ota (http://cyanogen-ota-bacon.somee.com). Could you provide the new factory image?

Edit: here is the new fastboot image.

http://builds.cyngn.com/cyanogen-os.../cm-12.1-YOG4PAS1N0-bacon-signed-fastboot.zip
[ONE General] EddyOS:
It's the same build version so no need to change what I've already done (unless someone can actually confirm it's different)

EDIT: It's a new link in that it's not the same ZIP so I will re-do them just in case
[ONE General] Spannaa:
Yep, look at the incremental version number ;)

Just WinMerged the two releases and there are four files in \system that are different

\system\bin\vold

\system\bin\install-recovery.sh

\system\recovery-from-boot.p

\system\build.prop
[ONE General] EddyOS:
OP updated with new images :)
[ONE General] santoshvaza:
Only factory reset ?

U know what it did?, it wiped my entire internal storage, now i phone is as good as new :)
[ONE General] Spannaa:
Yep, as I said, factory reset will do pretty much the same as fastboot flash userdata userdata_64G.img to your data partition.
[ONE General] twowheeler:
Why does the image provided by cyanogen only has one userdata.img file? No difference between 64 and 16gb?
[ONE General] EddyOS:
The image has both in it, at least this 12.1 one does. My repacks only have the relevant one for your device in it
[ONE General] vicky2131:
the 64gb userdata has some issues(fails to write)!! i had another 64gb userdata and it flashed perfectly. Thanks for your work man
[ONE General] EddyOS:
Can anyone else confirm this? Did you check the md5 after download to make sure they match?
[ONE General] Renosh:
Thanks for packing the zip into one section [MENTION=2258271]EddyOS[/MENTION] makes the risk of bricking almost non existent if someone uses the flashall.bat after unzipping the file.
[ONE General] kavsko:
Hello.

Chrome browser is blocking this file from downloading, claiming it has malware in it.

Can anyone else confirm this?

Thanks for your work.
[ONE General] Spannaa:
Chrome is wrong - I can confirm that there's no malware in the zip.

Sent via Bacon...
[ONE General] imakshaymishra444:
Cannot unlock bootloader!

when i type fastboot oem unlock in cmd the phone reboots shows 1+ powered by android screen then turns of and then again the same screen and it goes on forever...... while the cmd says waiting for device

sSomeone please help! [MENTION=1032410]spanna[/MENTION] [MENTION=2258271]EddyOS[/MENTION]
[ONE General] EddyOS:
Sounds like the drivers aren't installed, but I honestly don't know. Perhaps ask in Q&A?
[ONE General] Spannaa:
Yep, sounds like a drivers issue.

This guide might help ;)

EDIT: Was your bootloader ever unlocked and, if so, have you locked it again?
[ONE General] imakshaymishra444:
Fixed it using this awesome guide http://xdaforums.com/oneplus-one/general/tool-oneplusrecovery-tool-v1-0-restore-t2991851

Thanks for quick reply :)
[ONE General] avong:
Thanks for the guide and thanks for the command lines incase i wanted to do it manually
[ONE General] fabische:
Thanx Bro for this tutorial. It saved my ass.
[ONE General] callimi:
the same for me
[ONE General] callimi:
thank you for this Guide

unfortunately i'm stuck on the 4th stage.

Basically the link you provide indicate to flash the OnePlusOne-BootUnlocker.zip file on CWM or TWRP recovery.

But now i have the Cynanogen Recovery since i proceed with step 1,2,3 !

When i try to install, i get the following message :

E:footer is wrong

Signature verification failed

Installation aborted

what should i do ?

PS :

When running the command "fastboot oem device-info" i get the following result :

<bootloader> Device tampered: true

<bootloader> Device Unlocked: true

<bootloader> Charger screen enable: false"

<bootloader> Display panel:

i'm wondering why the last line is empty
[ONE General] Spannaa:
You can't flash the reset zip via stock recovery.

Curious as to why you want to do this anyway - it doesn't affect warranty.

Sent from my OnePlus 2
[ONE General] callimi:
thank you for your answer

i basically have battery issue since i install COS12.1 (my battery only last for 10 hours)

I try plenty things but nothing had worked.

i therefore want to reinitialize totally my phone .

you say that i can't flash the reset zip via stock recovery, why this guide is telling to do the step 4?
[ONE General] Spannaa:
I don't know why...

It's not necessary to re-lock the bootloader though - Cyanogen wouldn't provide fastboot zips if it did as you wouldn't be able to use them!
[ONE General] Stek90:
Hello guys. Could anybody provide me the "mixer_paths.xml" file of this factory image? You can find it in system/etc. Thank you

Inviato dal mio A0001 utilizzando Tapatalk
[ONE General] Bradl79:
can i delete fastboot flash recovery recovery.img so i can keep twrp
[ONE General] Spannaa:
Yes.

Sent from my OnePlus 2
[ONE General] scedeov:
I have a question guys. If I don't want to lock my bootloader, can I just dirty flash the COS12.1 over a Custom ROM using TWRP?

...sent from my Motorola C115 running CM 12.1
[ONE General] Fstop:
[MENTION=2258271]EddyOS[/MENTION] thank you for a good guide to restoring OnePlus One to stock. Script didn't work on Slackware-Linux, but not a problem just followed the script manually. Did a 'fastboot oem lock' don't quite understand Guide to toggle the 'Tamper' switch....

The phone is going to someone who will probably never use a custom rom & I'm just a OnePlus One fan & noob.
[ONE General] EddyOS:
That tamper flag is more for if you're returning it for RMA/refund. If you connect your phone in fastboot and type 'fastboot oem device-info' you'll see the tamper status. The part on my guide resets that so it doesn't read true
[ONE General] Fstop:
What about a .conf file edit?

Thank you; Understand that part (concept is clear), just not the how to instructions..... Understand there is a script, can I just unzip the script and manually toggle the tamper bits back to 0? Using either fastboot or adb tools? Just little bitty code lines or terminal config file edit as root? :fingers-crossed: If i find anything clean simple way to toggle those bits will post here.
[ONE General] EddyOS:
Rather than using 'fastboot oem lock', copy the ZIP to the phone and then boot into TWRP (fastboot boot twrp.img) after flashing the factory image and then apply the ZIP and it'll relock the bootloader and reset the tamper bit but leave you with the stock recovery
[ONE General] FirstBurst:
this is great! Just what I was looking for, just in case.
[ONE General] xda-amg:
No! Dirty flash should not be done when changing your ROM to another one (For example COS to another custom rom).

For the same ROM, but different versions, it may work...
[ONE General] sjau:
Thanks, this helps.

However two suggestions for the shell script.

Better to use

#!/usr/bin/env bash

as Shebang line and

set -e

just right after the Shebang line

Rationale:

Not on every system the binary to a shell is located in /bin/. Also it makes more sense to specify which shell to use. In this case I'd rather use Bash because of the -e shell option. The -e option exists the script on an error. Basically you flash a bunch of files and IMHO you don't wanna reboot if there was an error occuring first.
[ONE General] champ14:
thanks for sharing . I too was planning to go back on stock.
[ONE General] neisor:
[MENTION=2258271]EddyOS[/MENTION] you saved me here with my OnePlus One! I could not boot it up but your tutorial helped me and I have my phone back and working! Thank you!
[ONE General] EddyOS:
Can someone post the link to the signed fastboot images once available? Links I've seen so far don't work...

TIA

:)
[ONE General] anshumangoyal:
I want to revert to Original Rom, but also I want to keep my phone rooted. Is this a good choice? I have played a lot with so many roms and now, want to move back to stock but rooted one. What should I do here. If I leave the temper flag as it is, am i in rooted mode and flash a zip file?
[ONE General] Spannaa:
AFAIK, it's not been released yet but I'll let you know as soon as I find it ;)
[ONE General] EddyOS:
Cheers dude! :D
[ONE General] anshumangoyal:
The Tricks given here are too confusing. Is there any easy way available. I have been able to revert to stock rom, but my boot loader is still locked and temper flag is set as well. I want to come back to full stock with no root as I need to return this phone to service center.
[ONE General] neisor:
https://cyngn.com/support Do you mean these ones? (The OnePlus One signed fastboot zips are at the bottom of the webpage.)

God bless you.
[ONE General] Spannaa:
Yes, that's where they'll appear but they're the old YOG4PAS1N0 zips, not the new YOG4PAS2QL updates.
[ONE General] neisor:
Oh, right, sorry, my mistake.
[ONE General] sowad9:
Does this work for the latest android? Marshmallow?
[ONE General] ruthvik179:
Which zip should I flash from the thread u posted for resetting the tamper bit there are 3 zips[IMG="as you can see there are three zips"]http://imgur.com/eUAl8af[/IMG]

Which one should I flash
[ONE General] EddyOS:
New image is out so doing new packages as we speak. On slower broadband this week so won't be quick to upload so bear with me!
[ONE General] EddyOS:
To relock bootloader and reset tamper bit, flash the first one. The others do one or the other
[ONE General] EddyOS:
New YOG4PAS2QL images in the OP :)
[ONE General] spicediablo:
Where did you get these? They are not in the cyanogen support website?
[ONE General] Spannaa:
You're right, Cyanogen haven't updated their links yet but, if you look at the file links, it's not hard to work out what the links to the new files are:

http://builds.cyngn.com/factory/bacon/cm-12.1-YOG4PAS2QL-bacon-signed-fastboot.zip

Tapatalked via OnePlus 2