yashsingh1/xdaforums huggingface dataset:
[ONE General] spicediablo:
Thanks bro. This links looks better.;)
[ONE General] Spannaa:
The packages in the first post contain the same files.

[MENTION=2258271]EddyOS[/MENTION] has just split them into different zips for the 16GB & 64GB versions and added a batch file to make flashing the contents easier.

Tapatalked via OnePlus 2
[ONE General] thielek:
Thanks!

After scouring the interwebs for the easiest way to do this (there aren't many), this was by far the best and easiest.

Just wanted to say thanks!
[ONE General] donk165:
Hi there, so I've had some fun on the CM12.1 CAF builds from Sultanxda but I'd like my phone to be able to use some apps which detect root and also maybe even bootloader unlock on my banking app. If I follow this guide, can I skip the relock bootloader step to test my banking app and if I can't use the apps, can I then do the step I skipped if the app requires it?

Thanks!
[ONE General] Bradl79:
will this re lock the bootloader
[ONE General] Spannaa:
Yes, I'd recommend not re-locking your bootloader unless it's absolutely necessary as it often can't be unlocked again via fastboot.

Yes, unless you remove the line from the bat file.

EDIT: No ;)

Tapatalked via OnePlus 2
[ONE General] Bradl79:
i don't see the line code in the .bat file to lock it
[ONE General] Spannaa:
Ahhh, the bootloader re-locking line has been removed - that means it doesn't re-lock the bootloader now.

Good :good:
[ONE General] Spannaa:
[MENTION=2258271]EddyOS[/MENTION] - there's a new fastboot zip ;)

cm-12.1-YOG4PAS3JL-bacon-signed-fastboot.zip
[ONE General] EddyOS:
Ta! Time to start again! :D
[ONE General] EddyOS:
I never used a relocking line in the script, I always used the separate script to relock and reset the tamper bit linked in the OP
[ONE General] Spannaa:
Apologies mate - I've seen so many bat files that have, I assumed wrongly that yours was one of them!
[ONE General] EddyOS:
That's cool! Just re-doing the ZIPs and I'll get them uploaded ASAP
[ONE General] androizers:
Where does these comes from. Totally unexpected. Is this the same as 2QL with new build no, or they do have something new in them.?
[ONE General] Spannaa:
From Cyanogen - it's 2QL with the new OTA update added.

Just a security fix and a Google search bar fix AFAIK.
[ONE General] androizers:
Thanks for squeezing out the link. Downloading now. Will let u know some other noticeable changes if any.!
[ONE General] EddyOS:
OP updated with new packages :)
[ONE General] jhewm16:
I have a persistent problem across multiple (purposeful) bricks and resets to stock and versions of android (stock 11s to custom 5.1.1) - after around 20 seconds of no touchscreen activity while not plugged into the computer, the phone completely reboots, and from then on the wifi is forever 'turning on' but never gets there. Anyone have any initial thoughts?
[ONE General] Bradl79:
silly ?, but can i replace the stock recovery with a twrp recover if i just rename to recovery.img and so i will get twrp instead of stock
[ONE General] Renosh:
Check this

http://xdaforums.com/showpost.php?p=63611589&postcount=914

If you're having similar problems to what I stated in that post attempt erasing those partitions and flash modem again, no need to switch persist or anything try those commands should work afterwards. Let me know if it helps
[ONE General] EddyOS:
Yes, so long as you don't relock the bootloader obviously!
[ONE General] jhewm16:
Thank you so much, it worked like a charm!

Edit: Still dont have wifi and if i want to flash a different rom, do i have to do this again?
[ONE General] Bradl79:
lol i sure don't plan too, as long as u keep removing the scripts, b/c i only use ur return to stock fw. thank u for the great job and making it so easy.
[ONE General] EddyOS:
You could use the script I include in the package and then just reflash TWRP afterwards as well, it'll work either way :)
[ONE General] flameonfzn:
can i flash the zip file via twrp instead of extracting the image and flashing it by fastboot ?
[ONE General] Spannaa:
No, that won't work as it's not a flashable zip.
[ONE General] Sv1ngen:
Thanks man. Worked nicely :)
[ONE General] RealViking:
this worked nicely. but one issue i do have.

when i shall end a call after taking the phone away from my ear. the screen stays black. and even using the power button to try and for it back on do not work.

Have to do a full phone force restart. Is there a way to fix this ?

its really annoying. :)
[ONE General] Anghirrim:
Thanks, it worked perfectly!

I had to flash the userdata twice as it failed erasing it the first time, but else, it worked like a charm.

Optimizing apps now.
[ONE General] vahesalu:
Thank you, so helpful, very much appreciated!

Thank you very much, you've made it all so very nice! Mucho Gracias
[ONE General] shaneliao23:
This is problem with your phone modem.. This happens sometimes when flashing a custom ROM or even if you revert from lollipop to KitKat and visa versa.

The fix is either to find the correct modem for you model and flash it or flash stock CM11S KitKat and then upgrade to CM12S then 12.1S. It should be up and working and fine
[ONE General] EddyOS:
You're welcome, but you don't need to quote the entire OP ;)
[ONE General] AztechXX:
Hello Eddy, (or anyone else :) )

I have a one plus one 64 gigas unlocked & rooted with TWRP as recovery. ( cyanogen version 12.1-YOG4PAS2QL)

I would like to put my phone back to a non rooted phone with default recovery witch update in OTA (like a non modified one) [as if I had bought a new one in a shop]

I have downloaded the file "cm-12.1-YOG4PAS1N0-bacon-signed-fastboot.zip " from "https://cyngn.com/support" to the folder where I extracted your zip file [the one in the first post for 64 gigas]).

Can I extract the "cm-12.1-YOG4PAS1N0-bacon-signed-fastboot.zip" there and then execute your "flash-all.bat" command?

The aim would be to directly arrived to the last version of cuanogen and have an ota ready, locked , "normal" phone.

Thanks a lot for all infos. I
[ONE General] RealViking:
ah so then its correct what i found googling and saw on OPO forum. saw someone saying to flash the 44s modem . witch i found here on xda to :)

If i flash just a new modem. will that remove or reset anything on my phone ?
[ONE General] shaneliao23:
No it won't erase anything. But its recommended to flash the stock cm11s Rom and then dirty flash 12s and 12.1s this way you can avoid and partitions from further corruption.. But this way your phone will be erased.
[ONE General] RealViking:
ah i see. any idea where i can find the stock cm11s that will work with OTA etc. i can give that a try... :)

can just as good survie an erase now then later down the road so. :)
[ONE General] Spannaa:
Yes you can, but the script won't re-lock your bootloader.

All of the stock roms are mirrored here.
[ONE General] RealViking:
is it cm-11.0-XNPH44S-bacon-signed-fastboot.zip that is the 11s i should use then? and would it work the same metod as this treat here describes ?
[ONE General] Spannaa:
You can use that or the slightly newer cm-11.0-XNPH05Q-bacon-signed-fastboot.zip - they're both CM11S and both should be OK using the method in post #1
[ONE General] doru15:
Amazing guide. Got my OPO recovered from bootloop.
[ONE General] AztechXX:
Thanks a lot Spanaa,

I have to say that your answer gave a little light in the fog where i am walking, thank you very much.

If you allow me a last question :

Would the fact to keep an "unlocked" phone would have any consequence on any futur OTA update ?
[ONE General] atulclassic:
why stock kernel min freq jumping to 2.5 Ghz in synapse after updating to 3JL

using stock kernel with synapse.
[ONE General] Spannaa:
No, an unlocked bootloader doesn't affect OTA updates.

:confused: I didn't think Synapse worked on the stock kernel...
[ONE General] AztechXX:
I just anted to say a bog thank to everyone.

It worked like a charm.

My phone is now to the last cyaonogen , OTA working.

Thanks a lot,
[ONE General] foreverandroid:
Just updated to YOG4PAS3JL. All my apps are working fine except Nokia Here map which doesn't work. Anyone has similar issue? I hope its the app problem cause I do a clean installed with system image.
[ONE General] mihai2xk:
I am already on 12.1 stock rom but i have unlocked bootloader and twrp recovery installed.

What i have to do and what i don't have to do from 1st post for 100% stock

What is the order of steps to follow?

Thanks
[ONE General] mihai2xk:
I found this:

"I never used a relocking line in the script, I always used the separate script to relock and reset the tamper bit linked in the OP"

and this:

"To relock bootloader and reset tamper bit, flash the first one. The others do one or the other"

The question is: can i relock bootloader and reset the tamper with first script or no?

Second question: it's safe to use the second and the third script because it says "not tested yet" ?
[ONE General] Spannaa:
If you're talking about the zips in the OnePlus One Unlocker: Reset Unlock & Tamper Bit thread, you should ask there, but I don't see any reason to re-lock your bootloader - your warranty isn't void if it's unlocked.
[ONE General] mihai2xk:
In my country warranty is void if it's unlocked.

The phone is purchased thru a local store.

Stupid rules...
[ONE General] androizers:
Does someone have weird Nav Bar like this one. This seems to have effect right from the N10 build, and still acting like bug in 3JL.

Moreover, on every reboot, the Nav Bar resets to Stock Nav Bar.

View attachment 3540769

Currently using HW keys. Anyone have a work around for this issue?
[ONE General] pranshubatra707:
Is this the latest version of cm12.1? I got this out of the box today
[ONE General] RealViking:
oh perfect.. i will give this a try this weekend. :) . Really appreciate the help. making me little safer not screwing it up hehe ;)
[ONE General] Renosh:
Go to Settings > Display > Expanded desktop and set that particular app to show nothing
[ONE General] androizers:
No, it's happening for every app in landscape mode. Games work only in landscape mode, so it's an issue. Perhaps it's working normal in portrait mode.
[ONE General] Renosh:
You'll have to do a factory reset and maybe after that reflash using the OP instructions to get a proper clean flash and check if the issue persists. I don't have any of the issues you've described
[ONE General] danyprasad:
any news oneplus one android M official CM update?
[ONE General] RealViking:
flashing seems to worked perfectly to 11S and updating OTA working nicely . gotten 4 alrady up to 12 :) . going to be nice to have OTA back.
[ONE General] androizers:
I've already factory flashed it 2 times. And for some reason, I think its the DPI, the default is 480 and I was using 440. Since I've reverted back, the issue haven't been seen. I'll keep an eye on it, and will report back if it persist again.!

Thanks for the suggestion tho.?
[ONE General] hughfollett:
I had that on kitkat too. Stock rom and nightlies.. It's dpi independent AFAIK and no fix other than reboot
[ONE General] AlexMirrors:
I love this script [MENTION=2258271]EddyOS[/MENTION]. It's simply perfect.
[ONE General] Ilkinsky:
I have an OPO chinese version and it is not able to join the operator network.

I followed the procedure and steps defined at the beginning of this thread but my phone is not able to join the carrier's network because I am not able to make or recibe calls. The phone does not even recognize any operator. I have already tried the SIM card on anther phone and it works perfectly.

Cheers.
[ONE General] Vinnyxda:
Thanks for the guide :good:
[ONE General] androizers:
U're right. It's independent on dpi, I got it too recent on default dpi.

Seems like, this latest release has bought enough bugs for me. First was call reception (breaking voice for other person) and now this corrupted Nav Bar..

Let's see, what cyanogen do for Marshmallow.
[ONE General] idan_mosseri:
Hi. I have followed your guide and i worked great.

Now i cant seem to reinstal costume recovery.

I havent done the fourth step it the guide "4. Reset the tamper flag/lock the bootloader".

Do you know what is the cause?

How can i fix it?

Thanks in advance ;)
[ONE General] Spannaa:
Read section #2 in the first post of [MENTION=4153349]Heisenberg[/MENTION]'s How-To Guide For Beginners and follow it exactly ;)
[ONE General] vicky2131:
This version doesnt have the Color os modem(this has global modem so 3g wont work). You need to flash chinese os modem alone. Look for it somewer and flash it
[ONE General] idan_mosseri:
thanks. ill try it now.
[ONE General] idan_mosseri:
worked like a charm! thanks

worked like a charm! thanks :)
[ONE General] Ilkinsky:
Thank you Vicky2131, I have been flashing several modems and still have not found the right one that allows me to use it as a phone. I will keep looking for it.

Cheers.
[ONE General] Ilkinsky:
Hi Idan_mosseri,

Did you install the international modem?

Would you please tell where did you find it or where can I download it?

Thanks in advance.

Cheers.
[ONE General] fajabird:
From my previous devices (galaxy nexus) I know that fastboot is able to flash the whole content of a factory-image-zip file at one like this:

"fastboot update cm-12.1-YOG4PAS3JL-bacon-signed-fastboot.zip"

This works for example with the older cm-11.0-XNPH05Q-bacon-signed-fastboot.zip image but fails for all newer images beginning with cm12S and cm12.1S, e.g. cm-12.1-YOG4PAS3JL-bacon-signed-fastboot.zip with the following error:

Device version-trustzone is ''.

Update requires 'TZ.BF.2.0-2.0.0123'.

BTW. TWRP is able to verify the trustzone-version correctly (example log output: "Comparing TZ version TZ.BF.2.0-2.0.0123 to TZ.BF.2.0-2.0.0123" , i.e. means "success") when running a update.zip which contains that check, its only fastboot failing on this.
[ONE General] ferrylin:
It worked great.

However, I want to root my device and therefore I need TWRP. As I have problems to boot into TWRP after flashing it, I wonder if I could just exchange the recovery.img with a twrp.img and do the whole process again the way described here, just with a different recovery.img. You think this would work?
[ONE General] che586:
in great trouble

hi eddy i am in great trouble somehow i managed to screw my opo...

the problem is my cell is not recognizing my sim card....n its rebooting continiously.....

can you help me with this...

cell is conneting to wifi now...

the cell dsnt reboot if its conneted to power source....

n boot even if its fully charged.....:(
[ONE General] Spannaa:
Yes, you can do that but the reason you're having problems booting into TWRP is probably down to the way you're rebooting the first time after flashing it.

Instead of fastboot reboot, power your phone off by long pressing the power button and then boot into TWRP using the power + volume down button combination. This will make TWRP 'stick'.

Tapatalked via OnePlus 2
[ONE General] ferrylin:
Thanks for your advice. Unfortunately it doesn't work. I started a new thread about this problem so I don't hijack this thread anymore.

http://xdaforums.com/oneplus-one/general/boot-twrp-flashing-t3270001
[ONE General] Spannaa:
Just checking: You have switched off "Update recovery with system updates" in Settings > Developer Options haven't you?

Full instructions are given in section #2 of [MENTION=4153349]Heisenberg[/MENTION]'s How-To Guide For Beginners.
[ONE General] Sir_gpm:
I got my opo totally stock, just factory reset it. But then from time to time it reboot itself. Any advice?
[ONE General] ferrylin:
Yes, I have turned it off and I've done it exactly like it is described in section #2 of [MENTION=4153349]Heisenberg[/MENTION]'s How-To Guide For Beginners: After flashing the TWRP image I don't do 'fastboot reboot', instead I disconnect it from USB and power off the phone and start it with 'power'+'volume down'.

It still just turns off when I start it the described way.
[ONE General] saebinz:
I was on the latest nightly bacon builds for CM and eventually my camera started having focus issues while recording video and also would often have a weird lighting shift in the middle of most pictures. I figured the camera was just dieing and ignored it. Then the nightly builds started (without warning) for Marshmallow and then I started having constant OS issues every update. Waited about a month and its still crap.

Then I ran into this guide to restore my phone to stock build (ready to send in for the camera repair or just get a new phone). Tada, camera is fixed and OS is stable. Thanks for the guide, done with nightlies.
[ONE General] kingsathurthi:
fastboot flash userdata userdata_64G.img

Without this command can I flash IMG files into my OPO

Bcz I want my datas...
[ONE General] Spannaa:
Yep, fastboot flash the other images and, if you don't want your data partition wiped, miss out the fastboot flash userdata. If you're using TWRP and you want to keep it, miss the fastboot flash recovery too.

Tapatalked via OnePlus 2
[ONE General] kingsathurthi:
Thank u bro
[ONE General] AAB4K:
Hey OP! I need a little help. Can you send me/upload stock Cyanogen Recovery from this package (3JL)? I am trying to flash OTA but I only have 44S' recovery and its not accepting it. I just need recovery, so don't want to download entire fastboot package. Thanks in advance :D
[ONE General] Cameldrugs:
Nice, you safed my anus. I accidently wiped ****ing everything in my phone and had no OS installed and everything was ****ed. After long cryharding I've finally made it with your guide, thanks alot!
[ONE General] kewinhdorff:
hey one quick question.

i have seen different gudies on how to flash back to stock rom with fastboot. but in some guides the order of the fastboot commands are different :eek: does it matter in which order you flash them?

---------- Post added at 07:08 PM ---------- Previous post was at 07:01 PM ----------

is this the right order to fastboot flash ? the order in OP is different. in OP userdata is the last one ?:eek:

and i have read that locking bootloader and then unlocking it again can screw up your device? :eek:
[ONE General] Spannaa:
The order doesn't matter, just don't reboot until you've finished.

Locking your bootloader again often means it can't be unlocked again and some users have reported soft bricks when trying to.

Tapatalked via OnePlus 2
[ONE General] kewinhdorff:
okey thank you very much! :D

i see ill keep away from that then :) i had no intentions of locking it. knowing it is just for my common knowledge :)
[ONE General] EddyOS:
Can someone let me know when the new packages are available? I've seen the OTA but not the fastboot ZIP yet
[ONE General] Spannaa:
Will do mate - it's not available yet ?

Tapatalked via OnePlus 2
[ONE General] johncase:
Will it remove any personal data?
[ONE General] Spannaa:
Yes if you fastboot flash userdata...

Tapatalked via OnePlus 2
[ONE General] kayodante:
I did this procedure without a backup internal storage D:

Só that did not have any really important files there because I lost everything

LOL ?

Enviado de meu A0001 usando Tapatalk
[ONE General] Renosh:
Next time you should do the command manually and skip the userdata command, takes longer but you can avoid situations like these [emoji32]

Also editing the flash-all and flash-all.sh and removing the flash userdata command will do the same. I did it once too and nowadays that serves as a reminder to take my time [emoji16]
[ONE General] kayodante:
I had already read it, but it was after doing the procedure. Anyway, thanks for listening. Hahaha

Enviado de meu OnePlus One usando Tapatalk
[ONE General] qug:
Bookmarked, thank you for this information.
[ONE General] Spannaa:
[MENTION=2258271]EddyOS[/MENTION] Cyanogen have finally got around to releasing the new images:

https://cyngn.com/support

Tapatalked via OnePlus 2
[ONE General] EddyOS:
Nice one, I'll get on it ASAP :)

:good:
[ONE General] EddyOS:
OP updated to latest images, any issues please let me know

:D
[ONE General] danielsinnema:
It used to be unsafe to use the "flash all batch file". It worked flawlessly for me now, thanks!
[ONE General] EddyOS:
Issue with links, new ones uploading and OP to be updated accordingly
[ONE General] EddyOS:
Found another issue but now the ZIPs work. Uploading final version and will update OP once ready. :)

EDIT: OP updated with correct guide
[ONE General] rickyx32:
Excellent work bro :) A double-click is all it takes now!1
[ONE General] haimn:
By the way, you don't have to lock the bootloader and flash the stock in order to do RMA, because OnePlus One not lose its warranty when you flash custom rom... They said it in their forums.
[ONE General] Xephrey:
Any idea why I keep getting 'Operation not permitted' when I try to do anything? All the permissions are set, everything's in the directory. I had this issue unlocking too.
[ONE General] sharingspider:
Yo
[ONE General] Xephrey:
Whenever I run fastboot oem unlock, it doesn't unlock. What am I missing? One time it seems as though it did unlock cause running the bat file didn't say it wasn't unlocked. Instead it said that three files were missing and the process couldn't complete. I wonder if I can return this thing as-is with everything wiped, but unlocked / rooted and get my full refund. I'm pulling my hair out trying to do this - tried all sorts of GUIs / Walkthroughs / links with no results.

error: cannot open 'NON-HLOS.bin'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: cannot open 'sbl1.mbn'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: cannot open 'sdi.mbn'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: cannot open 'emmc_appsboot.mbn'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: cannot open 'rpm.mbn'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: cannot open 'tz.mbn'

rebooting into bootloader...

OKAY [ 0.006s]

finished. total time: 0.006s

error: cannot open 'logo.bin'

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

error: failed to load 'cm-11.0-XNPH25R-bacon-signed-fastboot.zip': No such file

or directory

Press any key to exit...

What am I doing wrong?

Then I just try this since other people seemed to have success with it:

C:\Users\Chris\Desktop>Fastboot -w update cm-11.0-XNPH25R-bacon-signed-fastboot.

zip

target reported max download size of 536870912 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

--------------------------------------------

Bootloader Version...:

Baseband Version.....:

Serial Number........: blahblahblah

--------------------------------------------

checking product...

OKAY [ 0.003s]

sending 'boot' (5798 KB)...

OKAY [ 0.186s]

writing 'boot'...

FAILED (remote: Device not unlocked cannot flash or erase)

finished. total time: 0.204s
[ONE General] sharingspider:
What r u trying to do? Have u unlocked bootloader of any device before? Are dev options enabled? Do u have adb files?
[ONE General] Xephrey:
Yes to all of those things. I'm trying to go back to 100% stock. Might just have to sell as-is. Good thing it's rare.
[ONE General] E_n_T:
I did try. Worked fine until i started to mess around in phone. All kinds of FC.

Skickat från min One via Tapatalk
[ONE General] Xephrey:
Solved!

I was able to unlock and flash everything I needed finally! I had to fastboot boot <local TWRP form PC> where I was able to sideload a tamper / unlock toggler as showcased in this thread:

http://xdaforums.com/oneplus-one/development/mod-reset-unlock-tamper-bit-t2820912

I detailed my whole process in my thread here:

http://xdaforums.com/oneplus-one/help/operation-permitted-t2837213

Thanks for the help!
[ONE General] knzzz:
It always stops during formatting /userdata. A warning window popped up. I forgot the exact wordings but it says that partition (in hex) cannot be read. After that I have to reflash the image without wiping in order to boot my phone.

I can also wipe and format in TWRP or Philz recovery. But doing this wont fix the issue.

Can anyone help?

Edited: Here is the warning message. In English it "0x00403927 command reference 0x00000010 memory. That memory cannot be read. Click "OK" to end the program"