WebTrickz
TRENDING
  • How to Turn Off and Restart iPhone 15
No Result
View All Result
  • Reviews
  • Editorials
  • Social Media
    • Facebook
    • Twitter
    • YouTube
    • Messenger
    • Instagram
    • Snapchat
    • WhatsApp
    • TikTok
  • Apps
  • How To’s
  • Apple
  • iPhone
  • Google
  • Android
  • Mac
  • Security
  • About Us
    • About Us
    • Contact Us
    • Privacy Policy
  • Reviews
  • Editorials
  • Social Media
    • Facebook
    • Twitter
    • YouTube
    • Messenger
    • Instagram
    • Snapchat
    • WhatsApp
    • TikTok
  • Apps
  • How To’s
  • Apple
  • iPhone
  • Google
  • Android
  • Mac
  • Security
  • About Us
    • About Us
    • Contact Us
    • Privacy Policy
No Result
View All Result
WebTrickz
No Result
View All Result
Home Android

How to Unbrick and Restore OnePlus One to Cyanogen OS 12 Stock Firmware [Fastboot Method]

Mayur Agarwal by Mayur Agarwal
March 1, 2022
in Android, How To's

The much-awaited Cyanogen OS 12 for OnePlus One was released earlier today through an OTA update and the flashable zip file is available as well. Since then a lot of OPO users are looking to update their device to CM12 which one can update easily by installing the update manually using stock recovery. The process isn’t straightforward if one wants to update to CM 12 from Oxygen OS. Unfortunately, several OPO users have bricked their device some or another way while trying to update it. In case, you’ve bricked OnePlus One or it’s stuck in a boot loop then our guide below will help you bring your lovable phone back to an alive state.

12_blog_body

This process allows you to flash the official Cyanogen OS 12 (based on Android 5.0.2 Lollipop) factory image on OnePlus One and restore it back to factory state. The guide is pretty easy and doesn’t require using any commands or a toolkit. A simple script will let you automatically flash the stock firmware on OnePlus One in a few minutes. If you have a custom recovery installed or your phone is rooted then that will be switched to default state as well.

Note: This process will WIPE entire data on your phone, including the data on internal storage. Before proceeding, make sure your phone is charged and you’ve taken a backup of your important data such as photos, media, files, etc.

Guide to Flash CM12 Factory Image on OnePlus One in Windows

1. Download OnePlus One CM12 factory image “cm-12.0-YNG1TAS0YL-bacon-signed-fastboot.zip” (fastboot flashable package).

2. Download and install Universal ADB Driver for Windows.

3. Extract the contents of the fastboot.zip package to a folder.

4. Download the flashing tools package. It contains Fastboot & ADB files.

5. Extract the contents of the “cm-12.0-YNG1TAS0YL-bacon-signed-fastboot.zip” file into the above-extracted factory image folder. It should look like this:

29-01-2015-16-31-082

6. Boot OnePlus into fastboot mode – To do so, power off the phone. Then press the Power and Volume UP key simultaneously. The phone should show a “Fastboot Mode” screen as shown below.

OnePlusOne-Fastboot

7. Connect the phone to the PC via USB cable.

8. Now Run the flash-all.bat file by double-clicking on it.

9. A command window will open up and the flashing procedure will start. (Do Not disconnect the device during flashing)

29-01-2015 13-51-402

10. After installation is done, the CMD window will close automatically.

11. Disconnect the USB cable, and boot the phone normally by long-pressing the Power button.

That’s it! You have restored OnePlus One to the official and latest Cyanogen OS 12 ROM.

Points to be noted:

  • Flashing over fastboot is possible on locked bootloaders as these are officially signed images.
  • Flashing won’t change the lock/unlock status of your bootloader. It will remain locked/unlocked like before.

Also See: How to Manually Install Cyanogen OS 12 (CM12S) on OnePlus One

Tags: AndroidBootloaderFastbootGuideLollipopOnePlusWindows 8
ShareTweetSend
Previous Post

How to Manually Install Cyanogen OS 12 (CM12S) on OnePlus One

Next Post

Google outs Handwriting Input App for Android – scribble away to glory!

Mayur Agarwal

Mayur Agarwal

Mayur Agarwal, the founder and editor of WebTrickz, is a tech enthusiast with a Bachelor's degree in Computer Applications and over a decade of writing experience. His passion for technology and gadgets inspires him to create insightful How To's and troubleshooting guides.

Next Post

Google outs Handwriting Input App for Android - scribble away to glory!

Comments 50

  1. Miguel Palau says:
    10 years ago

    Hey guys just read the flash-all.bat file the very first command it has it oem unlock

    So it will unlock the bootloader everytime

    Reply
  2. Geek Teenager says:
    10 years ago

    You guys have saved my life! I accidently wiped everyting including my OS from my OPO, thanks to you guys i was able to easily get my OPO back up and running! I can\’t thank you guys enough!

    Reply
    • Mayur says:
      10 years ago

      Glad to be of help to you! Cheers 🙂

      Reply
  3. ganesh says:
    10 years ago

    HI, will i lose the data from my phone by doing so?
    if Yes how to recover , as i cant boot into my OPO

    Reply
    • Mayur says:
      10 years ago

      Yes, you’ll loose all the data on your phone. If you can’t really boot then sadly you’ve to loose your data.

      Reply
  4. ammar says:
    10 years ago

    can this method be use to revert back to stock rom cm 11s from stock rom cm 12s

    Reply
  5. Zamek says:
    10 years ago

    I get a \”Not found\” for the Download at point 4. Any body else?

    Reply
    • Mayur says:
      10 years ago

      Link updated

      Reply
  6. Louis says:
    10 years ago

    I am unable to locate fastboot.zip of step 3 and therefore I am missing flash-all.bat. It is not included in cm-12.0-YNG1TAS0YL-bacon-signed-fastboot.zip. What am I missing here???
    Thanks anyway

    Reply
  7. vamsi says:
    10 years ago

    i am unable to find flash-all.bat file to flash opo.thus unable to continue

    Reply
    • Randy says:
      10 years ago

      Same here. Is there a solution?

      Reply
  8. Rx says:
    10 years ago

    Where the heck Is fastboot.zip??? and flash-all.bat? can you be more specific??

    Reply
  9. Akshat says:
    10 years ago

    For all those people who cant find flashall.bat files and stuff

    Open command prompt and manually install every file.

    Reply
    • avaknin says:
      10 years ago

      The flash-all.bat file is indeed missing.
      Can you please explain what do you mean by \”manually install every file\”?
      I see the flash-radio.sh file. Do I need to perform all the 8 fastboot commands listed there?

      Reply
  10. avaknin says:
    10 years ago

    Finally I managed to make it work. Here is what I did
    1. I put the phone into a fastboot mode
    2. I had to find USB 2.0 socket is requires (didn’t work for me with USB 3.0). Few seconds and the PC recognized the phone
    3.installing files is still impossible. I had to unlock the device: fastboot oem unlock
    4. the phone automatically responded by changing the screen, and after few seconds a question in Chinese. I tapped the right (gray) option and the wiping started.
    5. The phone restarted, and I put it again in fastboot mode.
    6. Then I ran the following commands:
    fastboot flash modem NON-HLOS.bin
    fastboot flash sbl1 sbl1.mbn
    fastboot flash dbi sdi.mbn
    fastboot flash aboot emmc_appsboot.mbn
    fastboot flash rpm rpm.mbn
    fastboot flash oppostanvbk static_nvbk.bin
    fastboot flash tz tz.mbn
    fastboot flash LOGO logo.bin
    fastboot flash boot boot.img
    fastboot flash cache cache.img
    fastboot flash recovery recovery.img
    fastboot flash system system.img
    fastboot flash userdata userdata.img
    fastboot reboot

    Reply
    • hari says:
      10 years ago

      Works perfectly. thank you very much

      Reply
    • shaimay says:
      10 years ago

      but where do I do this? I tried it in the command prompt but it says that the command wasn\’t recognized..

      Reply
    • Joe says:
      10 years ago

      This worked for me also!! Thanks much! For those who are still stuck, please create a file named \”flash-all.bat\”, edit the file and save the commands above in the file.

      Reply
      • alon says:
        9 years ago

        thank you very much man you just saved me
        accidentlly removed the os and inatalled the cyanogenmod recovey instead of twrp and thoght thats it all is gone but you saved me man thank you very much.

        Reply
    • Guy says:
      9 years ago

      working! thanks!!!

      Reply
  11. Alexis says:
    10 years ago

    My PC says the fastboot command is not recognized. How do I fix this issue so I can get my phone back?

    Reply
  12. bob says:
    10 years ago

    Thanks avaknin, flash-all.bat missing for me also.

    Reply
  13. Lauren says:
    10 years ago

    flash-all.bat is missing for me too, When I run fastboot flash NON-HLOS.bin i get \”error: cannot open \’NON-HLOS.bin\’\” please help!

    Reply
  14. Namit lulla says:
    10 years ago

    Go to the adb fastboot folder where you have extracted all the files, the adb.fastboot zip and also the cyanogen fastboot zip and open a command prompt over there in the same folder by clicking shift and right key and then open command prompt here. Then copy paste the commands from the top comment and paste it there and wait for the magic to happen. 😀

    Reply
  15. Amit says:
    10 years ago

    This post has been a saviour! Thanks a lot.. Yes its true that the flash-all.bat file is missing.

    I also lost my data, but at least got the bloody BRICK to work!

    As someone has mentioned above..

    1) Open command prompt in that folder by pressing Shift key + Right click.
    2) Right click on the top of the command prompt, click on edit and then paste the command mentioned below.
    – There are 2 methods to paste files in Command
    http://www.techsupportalert.com/content/how-copy-and-paste-windows-command-prompt.htm

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

    Hope this helps in addition to the stuff mentioned above!

    Reply
    • kingdew11 says:
      10 years ago

      i followed these steps and failed.
      In the command prompt this message appears several times :

      Device not unlocked cannot flash or erase.

      Is it that i skipped the fastboot oem unlock part?

      How do i do that? Please help! 🙁

      Reply
      • kingdew11 says:
        10 years ago

        THESE FREAKING WORKSSS. thanks. I didnt unlock the something at the first place so it didnt work.

        I then simply keyed in \”fastbook oem unlock\” in the command prompt and my phone has rebooted(back into the 1+ Powered by android screen and stuck there but its alright)

        Now, something has been unlocked in my phone but idk what tefuck is that but i dont care,

        then I boot phone to fastboot mode once again and proceed with copying those commands into command prompt and pressed enter at the final command \”fastboot reboot\” and my damn brick is gone and phone rebooting normally.

        thanks alot guys

        Reply
    • kishor says:
      9 years ago

      thanks man it really works!!!!

      Reply
  16. david says:
    10 years ago

    One problem with this method is the userdata.img file is for 16gb model. I successfully used this method, then installed slimsaber 5.1.1. everything looked good, until I found that my storage had dropped to 12.7gb. you must replace the userdata.img file with the userdata_64G.img file available at the link below to get your full 64gb back.

    Reply
  17. Chai says:
    10 years ago

    5.1.1 is a rolling disaster for the OnePlusOne. Even with nano gapps, the battery life is half what it was on 4.2.2.

    I think the word for this is \”craptastic\” .

    Reply
  18. Aaron says:
    10 years ago

    David the link you put above this provides me with the 16gb model data over the 64gb as expected?

    Reply
  19. Hemanthv says:
    10 years ago

    Hey Guys! My phone is not working from 7 days. 🙁 it says \”error while searching for networks\” and the sim does not work. (P.S even the IMEI number was missing before I could put it back to stock, now the IMEI number is showing after flashing stock CMS.

    Still I am not able to get my sim to work on this phone 🙁 could someone please help me out 🙁

    Reply
  20. abdulrahman says:
    10 years ago

    my dvice cant show fast boot mode ,, cant switch on and go to fast mode help

    Reply
  21. StarLord says:
    9 years ago

    Many thanks for the links and article – My OnePlus One was screwed up after the OxygenOS1.03 patch update, and things coming back in order now that I\’ve fastboot flashed it down to Cyanogen12 … Looking forward to putting marshmellow CM13 next 😉

    Reply
  22. Shyam says:
    9 years ago

    Hello guys,
    I recently broke my OPO screen and installed a new screen with frame myself. Since then my phone turns on only when connected to a charger and is stuck in the boot screen. I was able to get into fastboot mode when connected to a PC via USB and was able to flash all images as mentioned above. But on rebooting I was still stuck on the boot screen. If the phones not getting any power then it won\’t even turn on. Can anyone help me please!!!

    Reply
  23. krndevil says:
    9 years ago

    cant find some of the files in cm-12.0-YNG1TAS0YL-bacon-signed-fastboot.zip

    Reply
    • krndevil says:
      9 years ago

      flash-all.bat is missing
      what to do help?

      Reply
  24. Noonas says:
    9 years ago

    open notepad then paste this :
    fastboot oem unlock
    fastboot flash modem NON-HLOS.bin
    fastboot flash sbl1 sbl1.mbn
    fastboot flash dbi sdi.mbn
    fastboot flash aboot emmc_appsboot.mbn
    fastboot flash rpm rpm.mbn
    fastboot flash oppostanvbk static_nvbk.bin
    fastboot flash tz tz.mbn
    fastboot flash LOGO logo.bin
    fastboot flash boot boot.img
    fastboot flash cache cache.img
    fastboot flash recovery recovery.img
    fastboot flash system system.img
    fastboot flash userdata userdata.img
    fastboot reboot
    then save it as :Flash-All.bat
    and for One+1 64 gb change the ‘userdata.img’ with ‘userdata_64G.img’ after download it and put it in folder,you can download it here:

    this link of David.

    Reply
    • Akostor says:
      9 years ago

      Good Comment, but better do the unlock part seperate

      Which means, go into the adb-fastboot folder you created, press SHIFT + Right Click and open command prompt. then put in: fastboot oem unlock

      wait for it to reboot and then
      launch the flash-all.bat which should have all those commands in it:

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

      Hope this helps and thank you lots for this article + the commands, which actually helped me more 😉 😀

      Reply
      • Akostor says:
        9 years ago

        ~edit
        after fastboot oem unlock

        wait for it to reboot and then put it back into fastboot

        Reply
  25. suprith says:
    9 years ago

    hi All,
    i got below error for userdata.img, can someone help pls?

    C:\\Users\\Suprith\\Desktop\\adb_fastboot>fastboot flash userdata userdata.img
    target reported max download size of 1073741824 bytes
    erasing \’userdata\’…
    FAILED (remote: failed to erase partition
    )

    Reply
  26. Akash says:
    9 years ago

    i have done everything right, i fastbooted and unlocked oem and even downloaded cm 12 put it into fastboot mode and then ran the flashall.bat file, my phone gets flashed but for some reason it is still stuck in the boot loop and i cant seem to get out of it, i was running previously on cm13 sultan rom and one day it shut down all by itself and got stuck in a boot loop! nothing seems to work. Please do help!

    Reply
    • gfrewqpoiu says:
      9 years ago

      I have the same problem as you akash, I haven\’t found any solution, even flashing a new rom via fastboot doesn\’t fix the bootloop. also was running sultans rom and now it seems like my device is bricked. When installing zips via TWRP the phone also reboots.

      Reply
  27. Mohan Kumar says:
    9 years ago

    A perfect way to revert from Oxygen to Cyanogenmod. Thank you very much Mayur for sharing this

    Reply
  28. Dave Min says:
    9 years ago

    Please help, I\’m sort of a noob with all this. Whenever I unlock the bootloader, the phone reboots to the TWRP page. Then, when I try to enter the other command prompts, I get errors saying the bootloader is locked. Arghh.

    Reply
  29. Zerolive says:
    9 years ago

    For those who are unable to find flash-all.bat file I have got the solution. Just go to notepad and copy the following codes there. and save the file in .bat format.. Then just copy the file to the extracted loaction and then run it.. Then you should be able to flash your phone.
    Code:
    fastboot flash modem NON-HLOS.bin
    fastboot flash sbl1 sbl1.mbn
    fastboot flash dbi sdi.mbn
    fastboot flash aboot emmc_appsboot.mbn
    fastboot flash rpm rpm.mbn
    fastboot flash oppostanvbk static_nvbk.bin
    fastboot flash tz tz.mbn
    fastboot flash LOGO logo.bin
    fastboot flash boot boot.img
    fastboot flash cache cache.img
    fastboot flash recovery recovery.img
    fastboot flash system system.img
    fastboot flash userdata userdata.img
    fastboot reboot

    Reply
  30. sravan reddy says:
    9 years ago

    thank u so much sir its working well

    Reply
  31. srAVAN says:
    9 years ago

    it showng waitng ffor device bt it is not tectectng

    Reply
  32. Me says:
    8 years ago

    The \”fastboot oem unlock\” isnt working!
    How ever after rebooting i check with \”fastboot oem device-info\” and it says its not unlockt. Repeated it 100 times. but i cant unlock this fastboot any advice?

    Reply
  33. Daniel Rodrigues says:
    2 years ago

    Dude may God bless you and ur family. Thanks for the tip.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Stories

ios 18

iOS 18: How to Add Screen Record to Control Center on iPhone

March 30, 2025
ios photos logo

iOS 18: How to Clear Recently Viewed Photos on iPhone

December 27, 2024
ios photos logo

How to Find Your Favorite Photos in iOS 18 on iPhone

December 30, 2024
ios 18

How to Reset Control Center to Default in iOS 18.1 on iPhone

April 2, 2025
iphone 16 pro max always-on display

How to Turn Off Always-On Display on iPhone 16 Pro & 16 Pro Max

November 11, 2024
ios 18

How to Find Recently Deleted Photos in iOS 18 on iPhone

December 30, 2024
apple iphone 16 pro

How to Close Apps on iPhone 16, 16 Pro, and 16 Pro Max

October 22, 2024

Trending Stories

  • Apple iphone 16

    How to Turn Off and Restart iPhone 16, 16 Pro, and 16 Pro Max

  • How to Put Your iPhone 16 on Vibrate or Silent Mode

  • How to Turn Off & Restart iPhone 15, 15 Pro, and 15 Pro Max

  • How to Turn Off Most Relevant Comments on Facebook

  • 4 Ways to Remove the Floating Home Button on iPhone

  • About Us
  • Contact Us
  • Privacy Policy
  • Advertise

© 2025 WebTrickz. All Rights Reserved.

No Result
View All Result
  • Reviews
  • Apps
  • How To’s
  • Android
  • Google
  • iPhone
  • Mac
  • About Us
  • Contact Us
  • Privacy Policy

© 2025 WebTrickz. All Rights Reserved.