yashsingh1/xdaforums huggingface dataset:
[ONE General] Salty Wagyu:
OP: Will you be adding in a list of commands to run for those who have downloaded cm-11.0-XNPH25R-bacon-signed-fastboot.zip?
[ONE General] EddyOS:
I did but you don't need them now I've repacked the factory images
[ONE General] Nxpx:
YOU SIR ARE A Legend !!! I BRICKED MY PHONE TRYING TO INSTALL COLOROS,IT WIPED MY WHOLE PHONE,ONLY THING LEFT WAS FASTBOOT, YOUR FILES FIXED MY PHONE IN 2 MINUTES, Have my thanks !!!
[ONE General] SleemLDJ:
This is the best thread yet. Clicking flashall.bat returned my phone to stock 25R which after then, I updated with the OTA file. Super.

Works so well that this morning, another small incremental 9mb OTA came in. So works well.
[ONE General] TheAtheistReverend:
I keep getting the same errors when trying to restore to stock (see attached photo)

I followed the instructions to the "T" but can't get past the Android screen with the 1+ logo on it.

Halp!

p.s. Please forgive me, it has been a long time since I have used any of this stuff.
[ONE General] drshan:
I can't even get to that part most of the time.
[ONE General] Dibbyo123:
Is this method for Chinese OPO ?

I have OPO but its dont have any Cyanogen written in the Back case..

will this method work ?
[ONE General] EddyOS:
Yes it should do :)
[ONE General] nermolov:
Does this work fine with 64GB versions? I remember that previously there were slightly different files.

EDIT: Nevermind I'm blind
[ONE General] rogue123x:
How to check bootloader status for OPO?

I used the OPO toolkit for this. My TWRP recovery is still there. How do I remove it?

Also I pressed LOCK in the toolkit but I'm still not sure if the bootloader is locked or not. I am guessing that if I can flash my SuperSU file still from twrp recovery that it is still unlocked. But is there a way to be sure?

Is that why I cannot remove the TWRP recovery?
[ONE General] rebokz:
Can this be done with any custom recovery installed? also will it replace the recovery with stock cyanogen recovery?
[ONE General] ChainFires Son:
Yes this will make your device go back to the cyanogenmod recovery.:D

To the author of this thread thank you so much for putting this thread together!
[ONE General] greggjturner:
Anyone got a new link to Colour.zip
[ONE General] Raagh:
ll this process erase my internal storage?
[ONE General] Spannaa:
Yes, your OP2 didn't have any files on it's internal storage when it came out of the box so obviously...

Tapatalked via OnePlus 2
[ONE General] Raagh:
ty, another question. im having a really strange problem , i flashed cm13 snapshot from a rooted COS12.1 ( twrp 3.0.0) i got to bootloop, so i got back to recovery and restored my backup, when it booted i found I lost google play services and a few apps that work with then(g+,hangouts,chrome,etc), pretty strange. i went back into recovery and flashed latest COS12.1( i always have the zip in my internal) bootloop again. i cant not flash anything, it only gets me to bootloop, i went back to twrp 2.8.7 restored again , same problem. i even tried to reinstall COS12.1 and/or google apps on top of my restored(failed) backup but its not working.

do you think that doing this process ll overwrite the issue that im facing?
[ONE General] Spannaa:
Yes.

Make sure your PC is setup for adb/fastboot first.
[ONE General] ZETREK:
with my little knowledge i think your problem might be from your twrp..i always use twrp 2860 for flashing,never had a problem..

but yesterday i deciced to go back to COS11 44s, coz i'm tired and bored to flash many custom rom and restore my apps.

oh btw i use the same methode fom the op and always success..

cheers
[ONE General] Raagh:
hey guys so i did this procedure and everything seems to be working fine, im back to stock. the only thing im worried is that the BAT actually failed, when it was deleting user_data it failed and the phone restarted, but cyanogen os booted correctly and there is nothing on the internal memory.

should i worry? should i root it again and put twrp or not ?
[ONE General] alanapone:
Hi Guys and Gals...

Recently got a OPO from a mate who had it unlocked etc however my banking app doesn't allow use on rooted devices so my question is two fold really. I did a quick search but have not found any way to make the app run on rooted devices, does anyone else have an experience similar to mine and if so did you solve it or did you flash back to stock and secondly, is this the most current rom etc? if so. i'll be flashing mine asap as the banking app is vital for my day to day running. Thanks for any help in advance :D
[ONE General] kvaju:
Sometimes Whatsapp and Lastpass give me a warning about rooted device, and when I flash stock COS, sometimes it gives me the same warning too, not always. I'm not 100% sure, but I think on latest build from this thread it gives me the same warning. Try it, and see if that app will work, I dont use it.
[ONE General] bg260:
Cm12 is a virtually partitioned rom. I think twrp 3.0.0 was designed for that. Sounds like one of your partitions got fried.
[ONE General] Software Guru:
Thanks man, easy to follow instructions

Worked a treat
[ONE General] rachit011:
i am runing into a severe issue of bootloop while app optimizing process...i even tried repartitioning but after 2-3 days again ran into the problem...will this help solving the issue??
[ONE General] pat99:
[MENTION=2258271]EddyOS[/MENTION]

Does Reset the tamper flag method still works?
[ONE General] kushal.purkar:
I was flashing YOG7DAS2K1 by fastboot images to update to MM. I have done this many times. But I am stuck at boot logo. what should i do?
[ONE General] Spannaa:
Did you use the right userdata.img?

How long have you been on the boot logo?

Any error messages in the command window when you were fastboot flashing?
[ONE General] kushal.purkar:
I never use userdata ever. I have data in phone. No error. Only warning as "target reported max download size of 1073741824 bytes"

Its half an hour. I am still stuck at boot logo.
[ONE General] Spannaa:
What rom were you on before you fastboot flashed YOG7DAS2K1?

It's important because you still have the data from that rom and it may be incompatible.
[ONE General] kushal.purkar:
I was on ZNH0EAS26M. new update was released AKA 2JK. And i was rooted and xposed was installed. Thats why i decided to go back to YOG7DAS2K1 and flash OTA zip for 2JK. But now stuck at bootloop after YOG7DAS2K1 only.
[ONE General] spicediablo:
Perhaps you can try rebooting into twrp and flash the incremental without rebooting system first.

Sent from Oneplus²
[ONE General] Spannaa:
So you reverted from a CM OS13 rom back to a CM OS12 rom - you probably need to wipe data/factory reset due to incompatible data.

If you've fastboot flashed recovery.img from the fastboot zip, you'll have stock recovery but if you grab the latest official TWRP and fastboot boot twrp-3.0.2-0-bacon.img, you'll have temporary TWRP and can wipe data without wiping your internal storage and then reboot system.
[ONE General] spicediablo:
[MENTION=2948558]Spannaa[/MENTION],what if he reboots into stock recovery from fastboot? Will he be able to flash incremental?

Sent from Oneplus²
[ONE General] kushal.purkar:
I have tried that, no Luck. Cleaned data w/o internal storage from twrp. OPtimizing now.

Thank you [MENTION=2948558]Spannaa[/MENTION]

---------- Post added at 09:24 PM ---------- Previous post was at 09:24 PM ----------

I have tried that, no Luck. Cleaned data w/o internal storage from twrp. OPtimizing now.

Thank you [MENTION=2948558]Spannaa[/MENTION]
[ONE General] Spannaa:
I don't know!

If he gets YOG7DAS2K1 to boot and has TWRP but isn't rooted then possibly...
[ONE General] superiscch:
Did you guys succeed in flashing the incremental update? I always get a fingerprint error
[ONE General] spicediablo:
In that case, to upgrade, we need to take titanium backup or risk losing our data...

Sent from Oneplus²
[ONE General] swayjd:
Hey guys, was on ZNH0EAS26M. I Flashed TWRP in order to root. Installed SuperSU.

Then got the OTA but can't isntall it and I suppose I need to go to stock recovery in ZNH0EAS26M.

Does anyone know where I can get the stock cyanogenOS recovery in ZNH0EAS26M?

Thanks in advance.
[ONE General] drmuruga:
I flashed YOG7DAS2K1 signed zip via twrp and flashed YOG7DAS2K1 COS 12 stock recovery then after boot into system again flash YOG7DAS2K1 signed zip via stock recovery then boot into system . NOW I AM IN COMPLETE STOCK AND FLASH COS 13 UPDATE ZIP . I'M IN STOCK COS 13 , WITHOUT PC. IS IT CORRECT?

Thanks to

http://xdaforums.com/oneplus-one/general/guide-how-to-flash-cos-13-update-t3355622
[ONE General] Spannaa:
Since there's no mention of a recovery.img in any of the COS13 OTA zips, stock recovery will be the same as in the last CMOS12 release.

You can extract it from the YOG7DAS2K1 fastboot zip.
[ONE General] swayjd:
Tried that, but I get the release keys error.

It says I'm on YOG7DAS2K1 when in fact I'm on ZNH0EAS26M.

I think I'm gonna have to reset the whole thing because I tried editing the update-script to remove the verification and thus forcing the incremental to flash but now it doesn't boot. I can still get into recovery but that's it.
[ONE General] eLjethro:
can you upload it again please?
[ONE General] waterdaan:
Make sure you update cyanogenmod recovery if you update from YOG7DAS2K1 to ZNH0EAS26M.

You can find that switch in developers options
[ONE General] Nakulkhanna:
Hey guys the link given on the first page for factory image of "YOG7DAS2K1 64GB" isn't working.

when I open, it says the file has been removed.

So can someone plz provide me the new link ? I wanna go back to full stock.

TIA.
[ONE General] Spannaa:
You can download the fastboot zip from the first post of this thread and fastboot flash it's contents manually by following the instructions in post #1 here.
[ONE General] m3nt:
I am thinking to go back to CM11s 44s, currently on marshmallow OTA which I received 2 days ago but it has alot of bugs and battery life isn't that amazing. I downloaded stock fastboot image of cm11s, my question is how safe is it to flash it via fastboot if I am on marshmallow now, is it too risky? Can I get into bootloops, soft bricks etc. I know how to flash it because I flashed cos 12.1 few times without problems but never actually changed or downgraded android versions.
[ONE General] Spannaa:
There's always risk involved when you switch ROMs but, if you use the fastboot zip and fastboot flash all partitions, the risk is minimal.
[ONE General] Slevin_Gaius:
Need help CM13 brick my opo

Hi all,

Need advice on OPO recovery, my phone is currently bricked, phone was encrypted due to company regulations. Performed the CM 13 OTA update encountered "Decryption Unsuccessful" tried to revert back to CM 12 still no improvement. I am at a loss. Can anything be done to recover the OS as I did'nt back up my data prior to the update since all this while never had an issue with the updates?

Hope that I don't have to use the dreaded "factory reset" option.
[ONE General] vicky2131:
[MENTION=2258271]EddyOS[/MENTION] can you please update to the latest firmware?

COS13 factory image is available here --> https://cyngn.com/support
[ONE General] jijishthomas:
this link isn't working anymore. kindly provide a new link to download the files. thanks in advance
[ONE General] fozzie:
The link directly above your post is what you should be using i.e. the main Cyanogen support site. If you want older versions, then you want to be in a different thread. (http://xdaforums.com/oneplus-one/general/official-cm11s-roms-ota-updates-t2906746).
[ONE General] Nakulkhanna:
thanks for the help brother... The thread you mentioned also has Signed flashable zips, so if i wipe everything (factory data and cache) and do a clean flash from cyanogen recovery, so will it work? and go back to all stock?

Currently i am on stock CM 12.1 rom but its rooted and unlocked bootloader.

there is an OTA available for my phone but its not being installed. i thought its because of twrp so then i removed twrp and installed CM recovery.. still the OTA doesnt installs. i also tried and locked the bootloader using fastboot but still not being installed.
[ONE General] Spannaa:
Flashing a signed flashable zip via stock recovery should be fine.

It would have worked if you'd flashed it via TWRP too.
[ONE General] Nakulkhanna:
thanks a lot :)

so after flashing... It will be all stock, right ?
[ONE General] Spannaa:
It should be, if you wipe data.

Using a fastboot zip is always the best option to return completely to stock though, but you can't do this now as you've re-locked your bootloader, and this often means it can't be unlocked again (some users have reported soft bricks when trying to do this).
[ONE General] Nakulkhanna:
oh i see... i didnt know that else i wouldn't re-lock it.

so if i use the command "fastboot oem unlock" it wont unlock now?
[ONE General] Spannaa:
It may do, but it may not - it's a risk you take if you decide to try it.
[ONE General] 0firuz:
In Linux (at least in Ubuntu), just copy and paste this in a terminal:

sudo fastboot flash modem NON-HLOS.bin&&sudo fastboot flash sbl1 sbl1.mbn&&sudo fastboot flash dbi sdi.mbn&&sudo fastboot flash aboot emmc_appsboot.mbn&&sudo fastboot flash rpm rpm.mbn&&sudo fastboot flash tz tz.mbn&&sudo fastboot flash LOGO logo.bin&&sudo fastboot flash oppostanvbk static_nvbk.bin&&sudo fastboot flash recovery recovery.img&&sudo fastboot flash system system.img&&sudo fastboot flash boot boot.img&&sudo fastboot flash cache cache.img&&sudo fastboot flash userdata userdata_64G.img
[ONE General] EddyOS:
Sorry I've been away, using an iPhone now! I'll get this done this evening and update the OP
[ONE General] EddyOS:
OP updated with latest CM13 images, please let me know if there's any issues
[ONE General] mr_pablo:
I am looking to go back to stock.

If I follow this guide, will I be able to get OTA updates without issue? I know that when I manually updated COS, OTA updates stopped working due to verification issues.

Also, can anyone in the UK confirm stock COS works with Android Pay?

ps CM13 is COS right?
[ONE General] sfxdude:
Can confirm that stock CM13 (as downloaded here: https://cyngn.com/support/) works with android pay - I've just followed this guide and it works fine now. Also worth noting that after I flashed all the images I had no need to reset the tamper bit as it seemed to sort itself out.
[ONE General] mr_pablo:
when I run the .bat file, the cmd prompt is stuck on "waiting for device"

Using ADB is fine, so I assume the drivers are OK?

What could be the problem?

EDIT - nvm, managed to fix it using the BRT to install new ADB and Fastboot drivers
[ONE General] Mr.Ak:
searching everywhere but couldn't find any guide to unlock bootloader on official Cos13.If anybody has successfully unlocked his bootloader/rooted/flashed twrp on official cm13 then kindly guide the same to me.

Thank You.

Regards,

Mr.Ak
[ONE General] Spannaa:
Use the same method as for COS12 and don't double post.

There's a great guide here
[ONE General] skedone:
i have issue every time with 64gb version one the userdata file was named wrong for the bat file, and second after rename it fails to erase the user area so does not flash it ?
[ONE General] wavee3461:
bootloops ..?

hi, thanks for this guide, I tried this guide because my opo randomly entered in bootloop, I made all the steps but is still in bootloop (and can't boot into recovery, even twrp) .

I also tried flashing cm12s(couldn't boot to any recovery)but still I occour a bootloop, coloros( could boot into twrp) and at the initial android setup i got this error "invalid nv partition" and then it shuts off, in all those cases i could access fastboot, guys please help me D:
[ONE General] shamlou:
I done it . Its awesome .

thank you for upload seprate 16 and 64 version .
[ONE General] S03iT:
does this lock your boot-loader and do you lose root privilege ?? am thinking to do this just to use Android Pay :/
[ONE General] sfxdude:
Yes, I've lost root. I've heard people do it with systemless root but tbh the only thing I used root for was adblocker which I'm coping without.
[ONE General] ghpk:
thanks for the thread.

I bought a pre-owned One plus yesterday, it was running Stock ROM, still I flashed the stock one after full wipe.

Had issues with drivers while flashing, and thanks to friends here for posting their findings, Without much efforts I was able to flash the Rom

and phone is working fine.

Now its time to root and install multi-ROM
[ONE General] S03iT:
Thanks a ton for this simple tutorial [MENTION=2258271]EddyOS[/MENTION] but after i was able to successfully flash and reboot, everything worked fine except battery. for some reason battery is draining quick and my phone is getting really hot. when i try to access the battery settings, i get error message saying "unfortunately, settings has stopped."

i wanted to reflash again with ZIP file downloaded from the cynogen source but it seems like there are some file missing, like system.img, recovery.img, cache.img and userdata_64.img Can you advice me where could i get these files ??
[ONE General] Spannaa:
No need to quote the whole of the first post ;)

You need to download the signed fastboot zip if you want the 'missing' images - the signed zip doesn't contain recovery, cache or userdata but it does contain system (it's compressed into system.new.dat).
[ONE General] S03iT:
Thanks a ton [MENTION=2948558]Spannaa[/MENTION], I realised it after I post the comment. I have managed to successfully take it to stock and this time battery setting works as well. Hopefully everything has went well.

I flashed everything manually and had a trouble with userdata_64 so had to do userdata for 16 and after it was success then 64
[ONE General] Spannaa:
That was risky...

fastboot flash userdata userdata_64G.img is only for 64GB devices

fastboot flash userdata userdata.img is only for 16GB devices

Still, you got away with it ;)
[ONE General] alakyr:
guys cm-13.1-ZNH2KAS1KN is finally avaible
[ONE General] Spannaa:
And has been for three days ;)
[ONE General] alakyr:
yeah I know I still see the thread name with the old build and no one mentioned it in the last pages
[ONE General] Spannaa:
That'll be because [MENTION=2258271]EddyOS[/MENTION] doesn't have a OPO anymore and nobody has pinged him to tell him that there's a new version.
[ONE General] EddyOS:
Is there one?

EDIT: Yes there is. Update coming!
[ONE General] EddyOS:
OP updated, sorry it took so long!

Any issues please let me know :)
[ONE General] ludidzora:
I'm right now on official OxygenOS 2.1.4, so my Bootloader is unlocked. Can I use this methode to back safely to CM? Tnx.
[ONE General] tylerhorsman:
Really need some help. Was running CM13 nightlies, most recently installed 2016/07/01 without issues. I wanted to go back to stock for Pokemon Go and Miitomo and followed this guide. When trying to flash my phone in command prompt it goes fine except when flashing 'system' it says that "FAILED remote: data too large"

Any help would be awesome, thanks!

EDIT:

Running 64GB version
[ONE General] Renosh:
You'll have to find a newer fastboot zip, you can either do a search on Google or wait I provide you the one I use when I'm home
[ONE General] Thristle:
any mirrors for those images? what is the source?

one drive mirror is horribly slow for me
[ONE General] tylerhorsman:
That would be awesome, I have tried to search online without much luck...
[ONE General] Renosh:
Here is the fastboot/adb file that I use

Make sure you choose which directory it installs during installation and command line can be accessed with the MAF32 application in the folder you install in and just start typing commands
[ONE General] tylerhorsman:
Thank you!
[ONE General] vj218:
I have a notification on my phone that this update is readily available. I am rooted and have TWRP recovery version 2.65. Can I flash a file via TWRP? If so which one?
[ONE General] Spannaa:
If it's an OTA update zip then no, you can't flash it via TWRP.

If you want to update, download the latest version of TWRP and the latest full signed flashable rom zip.
[ONE General] vj218:
Will I lose root?
[ONE General] anagramgenius:
You can always flash supersu zip in twrp to gain root.
[ONE General] Spannaa:
Yes but, as [MENTION=5795078]anagramgenius[/MENTION] said, you can flash the SuperSU zip straight after the rom zip to get root back.
[ONE General] vj218:
How about my data, will Iose it as well? Also, I have to flash it using fastboot correct?
[ONE General] Spannaa:
Fastboot flash the latest TWRP and then boot directly into TWRP and flash the latest signed flashable zip and the SuperSU zip.

You should really wipe data as well as caches if you're upgrading from COS 12 so you'll lose your apps and their associated data & messages etc. but not your pictures, music, videos etc.
[ONE General] danielg141:
Would anyone have a file for the latest cyanogen os recovery image?
[ONE General] sabilb:
thanks! a couple of notes (ran this successfully on Ubuntu 14.04):

* had to sudo root terminal (fastboot devices would answer 'no permissions fastboot' otherwise)

* had to run last command twice (flash userdata) to have this working and was starting to feel a bit nervous to be honest, so in case it helps, here is the terminal output:

%fastboot flash userdata userdata_64G.img

target reported max download size of 1073741824 bytes

erasing 'userdata'...

FAILED (remote: failed to erase partition)

finished. total time: 10.059s

%fastboot flash userdata userdata_64G.img

target reported max download size of 1073741824 bytes

erasing 'userdata'...

OKAY [ 1.329s]

sending 'userdata' (141075 KB)...

OKAY [ 4.421s]

writing 'userdata'...

OKAY [ 2.496s]

finished. total time: 8.246s
[ONE General] Spannaa:
You can extract it from one of the zips in post #1
[ONE General] danielg141:
I tried downloading and then extracting the zip but couldn't find the recovery file?
[ONE General] Spannaa:
:confused: I've just downloaded ZNH2KAS1KN 64GB (cm-13.1-ZNH2KAS1KN-bacon-signed-fastboot_64GB.zip) from the first post to check, and it does contain recovery.img
[ONE General] danielg141:
Would you have the path of where you found the file?
[ONE General] Spannaa:
There is no path, just open the zip and recovery.img is inside...
[ONE General] danielg141:
Got it! I had downloaded the wrong file before, but when I downloaded the one you suggested, there it was!!

Thanks
[ONE General] Spannaa:
[MENTION=2258271]EddyOS[/MENTION] The ZNH2KAS254 signed fastboot zip is available if you fancy updating post #1 again ;)
[ONE General] nanokha:
hi there master... greetings.

what about undone the repartitioned oppo u707 so i can return my oppo to the original condition.

thanks
[ONE General] Spannaa:
Wrong forum - this is for the OnePlus One.
[ONE General] pritambhadane:
could you pls upload only flash all .bat here
[ONE General] Spannaa:
Since you've quoted the whole of the first post, you may have noticed the list of fastboot flash commands.

Copy and paste all of these into a new notepad++ file and save it as flash-all.bat

Job done.
[ONE General] EddyOS:
I'll get on it this evening. Sorry I'm so long in updating this thread! :D
[ONE General] EddyOS:
OP updated to latest ZNH2KAS254 build. Please let me know if anything is wrong! :)
[ONE General] cregi:
So just running the flash-all script, the phone should be like out the box, right? It will flash the rom, and the recovery.

What about the tamper bit? i read the thread about it but it's not clear enough for me, what should I flash or what script should I run ro reset this tamper bit?

thank you for this post! it's great!

It is suppose that i have to flash the OnePlusOne-BootUnlocker.zip file via recovery TWRP before to do all the process to restore explained in this post?
[ONE General] YourGraveyard:
Thank you so much for this thread/how to on reflashing the original firmware. You just saved another life:good:
[ONE General] vj218:
How do I upgrade coming from 13.0 ZNHOEAS2JK? I am rooted with TWRP 2.6 installed.

Is there a file I can flash via TWRP and still retain root access?

Thanks, VJ
[ONE General] anagramgenius:
Flash this http://builds.cyngn.com/factory/bacon/cm-13.1.1-ZNH2KAS2X1-bacon-signed-704f3ea59b.zip

As long as you have twrp, no need to worry about root. Just flash supersu zip.
[ONE General] vj218:
Will I lose data?