yashsingh1/xdaforums huggingface dataset:
[ONE General] spicediablo:
Because fastboot is the official factory image. I know I'm being paranoid but I just prefer using official sources..

---------- Post added at 07:42 AM ---------- Previous post was at 07:41 AM ----------

So you didn't run the last command, instead just flash system?
[ONE General] Heisenberg:
The recovery flashable version is official too, it's directly from CM, only a hell of a lot easier to accomplish. You're just making things harder for yourself.

Transmitted via Bacon
[ONE General] 3's&7's:
B/c I borked the phone erroneously flahing an aosp ota w/ak kernel instead of stock (learnes this am that is a NoNo!!!). Firmware was "Unknown"...total mess, nandroids were fubar, no choice.
[ONE General] spicediablo:
I wanted to learn how to do through fastboot. Anyway, previously using nexus 4,i can flash the factory image by manually flashing boot, system, radio etc. Will I be able to do so with cm11s by extracting the zip and manually fastbooting system, boot etc... I believe your fastboot update cm11s is equivalent to this?
[ONE General] Heisenberg:
Just follow the directions in the guide at the start of this thread if that's the way you want to do it.

Transmitted via Bacon
[ONE General] spicediablo:
Looks like I'm not getting the answers I want in this thread. Have to ask some other experts in other thread... Cheers.
[ONE General] 3's&7's:
Using the full eclipse / SDK package, and updating tools allowed me to fastboot flash. I was using minimal adb before this and failing on .system (too large msg).

I was fine after this going file by file or update all at once. The OP's method worked great, I also tried a run all script...either case it was the fully updated adb that was the fix.
[ONE General] spicediablo:
Will try to install the full package. Thanks!
[ONE General] 3's&7's:
NP, I learned a lot from this recent incident. I much more comfortable now using adb commands.
[ONE General] spicediablo:
Actually I've been using adb quite often to flash factory images for my nexus 4., never failed me until now...

Update: It is still giving me same error after I installed the adb based on the instructions given in this thread:

http://xdaforums.com/showthread.php?t=2788632

I think I'll just flash system.img and other images manually. Been trying for 2 days without any luck...
[ONE General] Heisenberg:
What exactly do you want me to say? I answered your question.

Transmitted via Bacon
[ONE General] spicediablo:
Sorry if I offended you sir but I was just trying to solve my fastboot problem...Cheers
[ONE General] Rider63:
Clear, fast, easy!

Very good job, thank you :D
[ONE General] jackpollard:
Great job in this tutorial, should be the 1st place for anyone looking to root/ROM.
[ONE General] Haters_Gonna_H8:
how do i apply Vonnegut's My_Backup auto script?

does is still work on XNPH38R?​
[ONE General] Spannaa:
1. Flash the zip whilst in TWRP recovery

2. Yes
[ONE General] Jax Teller:
Where is this script located?[emoji4]

Sent from my Nexus 7 powered by SlimKat
[ONE General] Spannaa:
There's a link to it in the first post.

The whole post is essential reading so...

Sent from my OnePlus One...
[ONE General] RCT1:
I'm seeing that many of the S3 users are surrendered to the power of oneplus! ?
[ONE General] 3's&7's:
...and G3 users. I'm going to pay off my at&t model and just eat the loss. Oneplus blows it out of the water.
[ONE General] trobbs:
So let's say I'm starting with a brand new Oneplus and intend to unlock the bootloader, root, and install TWRP.

At what point in the procedure would I enable device encryption?
[ONE General] Heisenberg:
Enabling device encryption can seriously screw with your phone if it's modified. My advice: don't do it.

Transmitted via Bacon
[ONE General] trobbs:
Okay thanks for the super fast response. The reason I had considered it is because by searching around it appeared that all the kinks have been worked out. Hopefully CM12 will have proper support for it, given that google intends to have everyone using encryption with 5.0. :D
[ONE General] aliguu:
hi just making sure that the guides in op still works on a brand new OPO and had updated to 38R?
[ONE General] Spannaa:
Yes, apart from 8. How To Flash The XNPH33R Fastboot Images where you'd obviously substitute cm-11.0-XNPH38R-bacon-signed-fastboot.zip for cm-11.0-XNPH33R-bacon-signed-fastboot.zip
[ONE General] th3xeroeagle:
hey, why is it that when I type fastboot oem device-info it says

when I try to do fastboot oem unlock it says finished OKAY in my cmd then it resets the phone and it goes directly to the twrp recovery. after when I reboot into bootloader and do step 8 it says "device not unlocked cannot flash or erase" .... however I just installed cDroid rom on it :S I don't know what to do to unlock the bootloader anymore
[ONE General] Heisenberg:
I've seen quite a few people encounter this problem (the seemingly spontaneous locking of the bootloader), I can't remember the solution but it's been discussed in the q&a section so have a look there. If you still have TWRP installed though, you can still install ROMs, kernels, mods, etc. As long as TWRP is still present you can operate as you usually would. Just make sure the 'update cm recovery' option in Developer Options is unchecked though because if you lose TWRP you're screwed (unless you find a fix for your locked bootloader).

Transmitted via Bacon
[ONE General] th3xeroeagle:
thank you, flashing this fixed this for me http://xdaforums.com/oneplus-one/development/mod-reset-unlock-tamper-bit-t2820912
[ONE General] trobbs:
I downloaded the 38R files, cm-11.0-XNPH38R-bacon-signed-fastboot.zip, from the official CM website. I want to flash my new phone tomorrow (when it arrives) to 38R fresh before I even bother trying to OTA. Since this has "fastboot" in the filename, I assume I can't flash it with TWRP.

Is that correct? If so, is there a way to modify the file or another zip to flash it in TWRP?

Timmaa, I know you've provided instructions how to flash this file in Fastboot, but I was hoping for something simpler. Thanks!
[ONE General] Heisenberg:
You're right in thinking that that zip can't be flashed in TWRP, it is only compatible with fastboot. But, there is a recovery flashable version of 38R in this thread:

http://xdaforums.com/showthread.php?t=2906746

All you need to do is perform a full wipe (system/data/cache/dalvik cache) and then flash the zip. Backup your apps first of course.

Transmitted via Bacon
[ONE General] ken_alpha24:
Hi I just unlocked my device with this tutorial. I didn't lose any of my data while unlocking the bootloader.... Am I doing something wrong? lol
[ONE General] Heisenberg:
Are you certain it succeeded? Are you certain it wasn't already unlocked?

Transmitted via Bacon
[ONE General] ken_alpha24:
I'm certain it succeeded I just don't know if it was unlocked from the beginning or not...
[ONE General] nzwizard:
Hi

Will the Oneplus One continue to update after root? or will updates stop?

If it does update do I need to restore root?

Thanks
[ONE General] Heisenberg:
You'll still receive OTA updates even if you have root, as long as you're running CM11S you'll receive OTA updates. You can even install an OTA with TWRP recovery. Root is lost during the update process but all you need to do is flash it again afterwards. But, if you have any modified/missing system files, the OTA will fail.

Transmitted via Bacon
[ONE General] neos_83:
Got a question regarding flashing an OTA.

I have some stock apps frozen via titanium and have xposed installed with some modules. Rooted of course but stock kernel, and TWRP for recovery.

Will I still be able to flash OTA? Im already on 38R but just wondering for the next update.
[ONE General] neos_83:
Another question, does that flash the 16GB or 64GB data partition?
[ONE General] Heisenberg:
You need to unfreeze the system apps, and you need to uninstall the Xposed Framework, other than that you should be good to go.

Transmitted via Bacon
[ONE General] Heisenberg:
To my knowledge it doesn't flash the userdata partition.

Transmitted via Bacon
[ONE General] adam_ridzuan:
hi..

10. How To Backup & Restore Your EFS Partition

how can i know if my efs partition is corrupted?
[ONE General] Heisenberg:
You'll definitely know if your EFS is corrupted, the phone will be unstable, you'll have no signal, and your IMEI will have disappeared.

Transmitted via Bacon
[ONE General] pocii:
Very thorough guide. Thanks for this and I'm glad I backed up my EFS. peace of mind!
[ONE General] cobrin:
Quick question ???

First of all it worked a treat (your guide on reflashing a stock rom) thanks again..

I have a question regarding a command when flashing a stock rom, specifically:

fastboot update -w

what does this mean, I see it relates to the rom.zip and where it's located, just would like to know what it does. Curious is all...
[ONE General] Spannaa:
The -w is the wipe flag and it erases userdata and cache

So: fastboot update -w cm-11.0-XNPH38R-bacon-signed-fastboot.zip updates your rom to 38R and wipes your userdata & cache
[ONE General] cobrin:
Ah now I understand thankyou for the explanation. ;)
[ONE General] 2551990:
This thread = perfection..!!!

Thank you op..!!! You rock..!!!:):):)
[ONE General] jgve:
Clueless user

I have the Oneplus One and I'm reading all the cool things that you guys do with it and I want to try and do it as well. I read the Guide, the how to and all that and it all sounds foreign to me. I read kernel, rom, fastboot and all those new words and I have no idea what they are. I know nothing about flashing but I want to try and do it. I am just struggling understanding the whole thing. Is there anyone out there patient enough to walk me through it?
[ONE General] Heisenberg:
There's too much information for anyone to actually walk you through it. But, there are many fantastic resources available online so all it'll take is a little searching and then a lot of reading. A great place to start would be the XDA Encyclopedia.

Transmitted via Bacon
[ONE General] Aavion:
[MENTION=4153349]timmaaa[/MENTION] may you add this to your tut?

Enable Cm's integrated superuser in stock rom (survives ota updates):

- Flash this via recovery:

https://docs.google.com/file/d/0B9zgutQLF14HUlJReXM0NE9TU1k/edit?usp=docslist_api

- Reboot, you are now rooted!

To access the superuser settings menu:

- Open terminal

- Type:

su

setprop persist.sys.root_access=3

- Done. Superuser settings menu is now visible in settings (turned on dev settings required).

If you want to stay rooted after ota updates, just make sure, NOT to opt for automatic re-root through recovery. The backup-script in userspace does the magic at first boot. Only need to reflash after factory reset.

Gesendet von meinem 1+ One
[ONE General] CBpbxEcmecmBeH:
The link is "strange"... It leads to the inside of the zip, with no option to download :)
[ONE General] Heisenberg:
Which link?

Transmitted via Bacon
[ONE General] CBpbxEcmecmBeH:
Sorry... It's from the comment before :) the flashable zip file
[ONE General] Heisenberg:
You need to open the link on a desktop browser and you'll see the download button which downloads the zip.

Transmitted via Bacon
[ONE General] Heisenberg:
Thanks for the suggestion but I'm going to stick with just one method for gaining root access. This is for two reasons, the method I already describe is much simpler, plus I've seen multiple people having problems with using the built-in Superuser.
[ONE General] DynamicDusa:
Hi Fantastic guide!

I just got my OnePlus yesterday from t-Dimension which shipped with ColorOS. I am a knoob at this so just making sure!

To install CM11s do you recommend to follow all 10 sections of your guide? as in do you need the custom kernal / TWRP etc?
[ONE General] Heisenberg:
All you really need to do is this: unlock the bootloader, install TWRP recovery, install CM11S. The easiest way for you to install CM11S will be by using Calkulin's stock rooted 44S ROM from our development section.

PS. Please don't quote the entire OP on XDA, it really clogs up the page. Can you please edit it out of your post for me? Thanks.

Transmitted via Bacon
[ONE General] DynamicDusa:
[MENTION=4153349]timmaaa[/MENTION]

Apologies - just deleted that quote!

So steps 1,3 & 4 from your guide? with 4 pointing to a ROM like Calkulin's Rom or the Rom i downloaded from CM website: cm-11.0-XNPH38R-bacon-signed-fastboot.zip
[ONE General] Heisenberg:
You want to do steps 1-4 (all four). And then just flash Calkulin's ROM. You can use 'cm-11.0-XNPH38R-bacon-signed-fastboot.zip' if you really want to but you can't just flash that with your recovery, you need to use fastboot (Section 8 of my guide).

Transmitted via Bacon
[ONE General] Spannaa:
As Calkulin's roms only contain the system folder & boot.img it might be better to use the fastboot zip because the other partitions on CM11S are different to those on ColorOS
[ONE General] Heisenberg:
Yeah that's a good point, I hadn't thought of that.

Transmitted via Bacon
[ONE General] omenbass:
Quick heads up...

Just received my OPO last night and today got right into unlocking the bl and rooting with the OPO toolbox. Not sure if it's because I was booting into recovery with the extended power menu or not, but philz was not sticking after it booted. I tried about 4 times and it just wouldn't take. So I flashed TWRP and then powered down before booting into recovery and everything went fine. btw the toolbox vs was 4 and I wasn't updated to 11Syet.

PS I LOVE THIS PHONE! It'll take a lot for me to go back to samsung...a whole lot more than a gimmicky curved edge!
[ONE General] Heisenberg:
Is there a reason you're posting that in this thread specifically?

Transmitted via Bacon
[ONE General] DynamicDusa:
Thanks guys [MENTION=4153349]timmaaa[/MENTION]

I started with the guide but got stuck at installing the ADB drivers - did some reading around and *i think* its because my machine has USB3.0 . Tried a few work arounds and didnt work so getting hold of a pc with USB2.0 on this weekend hopefully so will resume then.

Once you have followed 1-4 - then used step 8 to put the ROM on, in the future when I want to put other ROMS on am I right in thinking you just follow step 8? i.e when CM release the Android L version in a month or so and they will have that ROM available from the website.

Cheers
[ONE General] Heisenberg:
I use usb 3.0 and I don't seem to have any issues, but as usual YMMV.

What ROM/build is currently on your device?

Transmitted via Bacon
[ONE General] DynamicDusa:
[MENTION=4153349]timmaaa[/MENTION]

Yeah im not an expert as you can tell haha - just saw a bunch of other people had similar issues with USB3.0

What is happening is I installed ADB and fastboot when I go into cmd prompt for the first command 'fastboot devices' I get zlich..no error just returns me to the prompt.

How can I check what ROM/Build is on there at the moment?

Phone just arrived from Honk Kong and had the default Color OS installed.
[ONE General] Heisenberg:
Ok if you have ColorOS on it you definitely need to follow steps 1-4 and then step 8 to get CM11S on it. Once you've done that though you shouldn't need to use step 8 again because you should receive OTA updates.

Transmitted via Bacon
[ONE General] DynamicDusa:
Thank you - I will give it a go on the weekend (sucks as the phone is just laying there doing nothing!)

p.s hows your OnePlus going? being from Aus - do you receive any drop outs/wifi signal issues/or 4 g problems?
[ONE General] Heisenberg:
I have two of these phones, no issues whatsoever.

Transmitted via Bacon
[ONE General] DynamicDusa:
Great! last question (for now!) [MENTION=4153349]timmaaa[/MENTION]

I have the 64GB version of the OnePlus - a few threads I have read seemed to have ended up with a 16gb version after they have done this. DO you know if this will work for the 64gb version? i.e keep it 64GB!
[ONE General] Heisenberg:
You should have no problems, but if you do you just need to fastboot flash the right 64gb userdata image. I should have a link in my index thread.

Transmitted via Bacon
[ONE General] DynamicDusa:
[MENTION=4153349]timmaaa[/MENTION] when I look in the contents of 'cm-11.0-XNPH38R-bacon-signed-fastboot.zip' they are 2 userdata images as per picture

userdata.img

userdata_64.img

shall I remove the Userdata.img one?
[ONE General] Heisenberg:
No, just leave it exactly as it is. If you end up with botched storage you can just extract the 'userdata_64.img' and flash it.

fastboot flash userdata userdata_64.img

Transmitted via Bacon
[ONE General] LukasMartin:
Help

I have a problem, i waned to root my OPO and I think I did everything I was supposed to do.

I did the adb and fastboot stuff (both eventually recognised the device). Then i flashed the twrp recovery and tried to start into recovery but my phone is stuck on the 1+ powered by android screen... I really don't know what to do, i redid every stepp at least 10 times (always returning my phone to stock)... once I had another screen where I had glitchy rainbow colors for a sec before the phone went black .. any help is hugely appreciated
[ONE General] Heisenberg:
What recovery are you flashing?

Transmitted via Bacon
[ONE General] LukasMartin:
By now i tried 3 different Versions of the twrp recovery (2.8.1.0. 2.7.1.0 2.7.1.1) I think i tried the cwm? recovery as well at one point.
[ONE General] Heisenberg:
Try CWM and Philz and report back. Also, please attempt the latest TWRP again and copy/paste the text from the command prompt here so I can have a look.

Transmitted via Bacon
[ONE General] LukasMartin:
Booja, philz finally worked, I don't know why but, it worked. When i used the twrp recovery prompt looked like this:

C:\opo root\android-sdk-windows\platform-tools>adb devices

List of devices attached

5cb94d12 device

C:\opo root\android-sdk-windows\platform-tools>adb reboot bootloader

C:\opo root\android-sdk-windows\platform-tools>fastboot devices

5cb94d12 fastboot

C:\opo root\android-sdk-windows\platform-tools>fastboot erase recovery

erasing 'recovery'...

OKAY [ 0.028s]

finished. total time: 0.028s

C:\opo root\android-sdk-windows\platform-tools>fastboot flash recovery openrecov

ery-twrp-2.7.1.1-bacon.img

target reported max download size of 536870912 bytes

sending 'recovery' (9054 KB)...

OKAY [ 0.286s]

writing 'recovery'...

OKAY [ 0.165s]

finished. total time: 0.452s

C:\opo root\android-sdk-windows\platform-tools>fastboot reboot

rebooting...

finished. total time: 0.005s

C:\opo root\android-sdk-windows\platform-tools>adb reboot recovery

C:\opo root\android-sdk-windows\platform-tools>

thank you so much!
[ONE General] Heisenberg:
Cool. If you want to try TWRP again you can insert the 'fastboot format cache' command directly after you flash the recovery. It may or may not work but it's worth a shot if you do prefer TWRP like me.

Transmitted via Bacon
[ONE General] sanjsrik:
Amazing guide, just a small point...

I'm new here, so apologies if this is unfounded, but shouldn't you be very explicit here and actually tell people that after they boot into fastboot that they should be connected to their PC with a cable? The steps are very clear but if, as a newbie, tried to execute that I'd wonder why nothing was going to my device from my PC without being told that I had to connect to the device with a cable.

Yes, I know, I'm being MASSIVELY pedantic, but I had to read this 3-4 times and finally realized this is what you meant. I'm coming form a rooted Note 3 so I get the whole connection between a PC and device. Just saying, please update the step 1 to be very explicit for the newbies.
[ONE General] Heisenberg:
You make a very good point, I thought I had included that step bit I guess I didn't. I'm gonna edit the OP, thanks for the heads up, appreciate it.

Transmitted via Bacon
[ONE General] sanjsrik:
You're awesome

Wow, you just literally made my day. I promise I wasn't being a smart aleck and I appreciate you taking the advice.

On a related note, you may want to repeat that step on all of your points. Just to be on the safe side, it's a newbs guide. Never take anything for granted.

Actual story:

Years ago, I was doing tech support for a software company that made CD-ROMs (yes, it's THAT old of a story). I had a very irate user call up and scream bloody murder at me for 5 minutes straight using every curse word in the book. I let him rant. After he took a breath, I asked him what he did:

ME: What did you type?

HIM: I typed F Setup, like it says in the manual, and nothing happens, absolutely nothing, your F software is a piece of S!!! (and so on)

ME: (sat thinking for a moment), did you put the CD in the drive before you typed Setup?

The phone went dead about a millisecond later.

My mother used to say, "Never underestimate the power of stupid". I've lived by that motto my entire life and spell out the most obvious things when I write instructions for anyone. Sometimes people will get annoyed, other times, you never know what they'll forget to do.

Thanks for taking the advice. I do appreciate the quick and honest feedback.

FYI, I KNOW I will be posting newbie questions for you in future, so I only beg your patience and know I'm not a newbie at flashing devices, just a newbie at flashing a One Plus.
[ONE General] Heisenberg:
I'm all for constructive criticism, I didn't think you were being a smart aleck. While you were writing your reply I actually did revise all sections of the OP.

I can totally empathise with you in regards to that story, I've worked in tech support too (different industry, electronic security), and it makes you realise just how ignorant people can be. You're welcome to post any question you like, and thanks very much for the feedback!

Transmitted via Bacon
[ONE General] kmarc33:
Hi [MENTION=4153349]timmaaa[/MENTION]

I wanted to clarify something and ask a question. I got my OPO about a week ago. I did 3 OTA upgrades to get up to 44S. I then followed your guide to unlock, install TWRP and rooted. Took me over an hour to get that done, 50+ minutes to get the stupid USB drivers to recognize the phone, 10 minutes to follow your guide. No real issues with your guide (I also had the same "when do I plug this in" question but guessed right ;). Nice job, thanks. However, I've been having a problem (it's been reported by others on JIRA (bacon-389) for several months, it's still open). Anyway, I've had a similar problem in the past with a different phone that was fixed with a clean flash. So now I'm back to your guide and I'm reading #8. I read in the Official CM 11S thread that the -w is what does the full wipe and you commented that wiping the sdcard shouldn't be relevant. I agree, I've been using CM for quite a few years and never needed to wipe the sdcard.

So, my question: I don't have a lot of fastboot experience, I've been using recovery-flashable zips. I think I can do a full backup with TiBu to the sdcard, follow #8 but leave off the -w. My question is about wiping. Normally in TWRP I would wipe /system as well as factory reset, and cache/dalvik. Do I need to wipe anything before following #8? Does #8 wipe everything, like /system? Because doing an install without wiping /system is asking for issues. I want to get this right. That way, if the issue still exists, I can report with a logcat.

Thanks for any advice/confirmation that you can do.
[ONE General] Heisenberg:
In regards to your comment about never having to wipe the sd card before, you're right, during a ROM flash you generally don't need to wipe your sd. But, what Section 8 entails isn't as simple as just a ROM flash, that process is designed to take your phone back to a completely stock state, and it flashes much more than just the system (just look at the list of commands). But, if you're not aiming to go back to completely stock then the choice is yours to leave off the -w part of the last command.

Now, when flashing a ROM it's always good practice to wipe system, data, cache, and dalvik cache. In this instance I believe those partitions are wiped during the flash but I personally would still wipe system, data, cache, and dalvik cache before doing this. It's just extra insurance against a "what if" scenario, and it only takes a minute.

Transmitted via Bacon