Guide Flashing a Cyanogen OS factory image using fastboot

  1. eranm5
    Jelly Bean Oct 11, 2014

    eranm5 , Oct 11, 2014 :
    This tutorial will instruct you on how to flash a bacon-signed-fastboot Cyanogen OS factory image on your OnePlus One.

    Fastbooting a factory image is the best way to completely wipe your phone. You will leave no traces of usage after fastbooting. This will bring your phone to a factory-fresh state. Currently the safest way to wipe your phone before selling it or giving it to somebody else.

    OPTIONAL - Make a full backup. This procedure wipes your phone of everything. All your files, media and data will be gone.

    Your bootloader has to be unlocked in order to do this.

    0.5. Boot into fastboot mode: POWER+VOLUME-UP

    1. Download the latest factory image (from the fastboot images section) and extract its contents in the platform-tools folder (or any other directory with the adb/fastboot files in it)

    2. Hold down shift + right click in the folder with the files and click "open command line here"

    3. Type in all these commands in order one at a time (some of them may take some time so be patient)

    fastboot flash modem NON-HLOS.bin
    fastboot flash sbl1 sbl1.mbn
    fastboot flash dbi sdi.mbn
    fastboot flash oppostanvbk static_nvbk.bin
    fastboot flash aboot emmc_appsboot.mbn
    fastboot flash rpm rpm.mbn
    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 (or userdata_64G.img)

    Be aware: The COS12 factory image may not have a userdata_64G.img file. In that case, you will have to download the CM11S ZIP (same link) and use the userdata_64G image file from there. If you flash a 16GB data partition on a 64GB phone, your will have 16GB of internal storage.

    fastboot reboot

    Boot back into fastboot mode and relock your bootloader by executing fastboot oem lock.

    That's it! Your phone is now in factory state! You can now sell it or dump it without worrying about your precious data. Enjoy!

    Feel free to PM me if you need any sort of help :)
    Last edited: Apr 30, 2016

    daracsy, fozknots, mevicks and 148 others like this.
  2. peteryu
    KitKat Oct 11, 2014

  3. blisside
    KitKat Oct 13, 2014

  4. Aaahh
    Marshmallow Oct 13, 2014

    Aaahh , Oct 13, 2014 :
    No, the before animation.

  5. kp1234
    Community Veteran Oct 13, 2014

    PRK.R, sandeepa544, malay_v7 and 4 others like this.
  6. neodimiun
    Eclair Oct 13, 2014

    radster72 and darby pup like this.
  7. paulissimo
    KitKat Oct 13, 2014

  8. seether84
    Jelly Bean Oct 13, 2014

    seether84 , Oct 13, 2014 :
    It will not help you in all situations.

    If it works it means you didn't had serious problems, trust me :D

  9. daenex
    Honeycomb Oct 13, 2014

    daenex , Oct 13, 2014 :
    Thanks. Hope I dont have to use it. But lets see.

    I endorse it to be pinned.

    radster72 and Slfling like this.
  10. seether84
    Jelly Bean Oct 13, 2014

    seether84 , Oct 13, 2014 :
    It's just the way how to flash a factory image on most every android device. You can probably find it in every language forum here :D

    Maybe you would be better off searching next time

    netr0pa, radster72 and KausXP like this.
  11. Adam Krisko
    NA Community Consultant Staff Member Oct 14, 2014

    Adam Krisko , Oct 14, 2014 :
    I've pinned this for now in this forum. I'll look into moving it into Dev or cm11s in a little bit.

    fozknots, PRK.R, 7827124044 and 5 others like this.
  12. wiltatu810
    Gingerbread Oct 14, 2014

    wiltatu810 , Oct 14, 2014 :
    Thanx for the fastflash, I'm gonna keep this on hand

  13. blisside
    KitKat Oct 14, 2014

  14. Lunatasian
    KitKat Oct 14, 2014

  15. Deactivated User
    Oct 14, 2014

    viknesh10 and radster72 like this.
  16. mansa
    Jelly Bean Oct 14, 2014

    mansa , Oct 14, 2014 :
    Please note I can't enable the USB debugging within the phone so will this method still apply as I'm stuck on the bootloop.
    Question is whats the difference between bacon-signed-fastboot.zip and bacon-boot-debuggable.img?
    And would I be updated to 38r afterwards?
    Last thing, I keep seeing wiping the delvik cache is needed, how do I do this?

    Last edited: Oct 14, 2014

  17. mydroid
    KitKat Oct 14, 2014

    mydroid , Oct 14, 2014 :
    told u this phone is won't die unless its a pure hardware failure....

  18. sam355
    Cupcake Oct 14, 2014

    sam355 , Oct 14, 2014 :
    the command prompt says , "waiting for device " , even though the phone is hooked up and the computer recognized it

    viknesh10 and radster72 like this.
  19. fahimnycusa
    Jelly Bean Oct 14, 2014

    radster72 likes this.
  20. akulajek
    Cupcake Oct 14, 2014

    7827124044 and radster72 like this.