yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] andresgvc:
Thaks

Worked.....Great.

UPDATE:

After reboot again:

(bootloader) Device tampered: true

(bootloader) Device unlocked: false

(bootloader) Charger screen enabled: false

OKAY [ 0.018s]

finished. total time: 0.019s

Any help?
[ONE Android Development] lavafire:
Anyone tried this with 44S version of CM11S?
[ONE Android Development] Lanchon:
thanks OP for these scripts and the testing work.

since this involves a dangerous operation, could you please include a section in the OP with the firmware version list that this was tested on?

thank you again for your work!
[ONE Android Development] Lanchon:
confirmed to work on 38R

thanks!
[ONE Android Development] Lanchon:
i just tested ok on 38R. also checked that the bootloader in 38R and 44S is the same, so it *should* work for you.

for whats worth, my bootloader is:

$ sha1sum emmc_appsboot.mbn

aee6aeefbb7c775351e90873f37d6c978d5340d1 emmc_appsboot.mbn
​
[ONE Android Development] bluegrass55:
The more I read the more confused I'm becoming.

I'm 44s and following the instructions I can get either the bootloader or tamper to false but not both.

I want to return the phone for a refund.

Which is better, Tamper false or bootloader false?

Thanks.
[ONE Android Development] androizers:
Same here, I read this guide almost 15 times, and everytime I got even more confuse than the previous one!!!

I don't know what to do??
[ONE Android Development] AngeredNumber:
Can confirm it unlocks the bootloader on 44s using OnePlusOne-OnlyBootloaderToggle.zip. Now my device is exactly how i want it. Thank you for your hard work!! Very much appreciated! :D:D
[ONE Android Development] runkle6:
same situation here.

after temporarly booting recovery, flashing zips and check device-info via fastboot, everything is false, BUT after rebooting again, device-info via fastboot shows tampered true! so the bit isnt set permanently in my case, i tried it different times. dont know what to do!

my opo does not redirect sounds through the ear piece and doesnt recognises any simcard - so i cant use it and i want to give it back and have my money back. i fear with tampered true they wont give me.

any help please?
[ONE Android Development] mchauhan:
Same with me.

Where did you ordered the phone?

I am in India and I received the device just two days ago.
[ONE Android Development] androizers:
Its not what you think!

The moment u enter the fastboot, ur device will get temper cuz from a OEM point of view, any person who boot into bootloader is abviously gonna change the system settings or unlocking the bootloader!

No other work can be done in fastboot mode when device is locked!

So other than unlocking bootloader, the moment uh enter the fastboot, temper bit becomes true! xD

But no worries, OnePlus stated that neither rooting nor unlocking the bootloader will void ur warranty!

So do whateva u want! [emoji3] [emoji106]

---------- Post added at 01:33 AM ---------- Previous post was at 01:31 AM ----------

Was u able to boot recovery temporarily in 44s??

Mine was not working, so have to have to use 'fastboot oem unlock'..! :(
[ONE Android Development] musklor:
You saved my opo thx a lot
[ONE Android Development] lvikel2:
i cant flash zip

because i have CWM CYNOGEN

and i cant flash TWRP or something else becayse the devuce loced and tampred true
[ONE Android Development] Criton30:
my bootloader is unlocked, what status should my tamper flag have? true or false?
[ONE Android Development] Mnt-XDA:
Does not matter.

If you can flash recovery and make root , that flag is not important...
[ONE Android Development] Criton30:
I use AK kernel, and in synapse I can chage this, Syanpse show me now Tamper: true
[ONE Android Development] vikrant82:
Probably the biggest thanks that I owe to a thread on XDA. Guys, if you are seriously juggling between lollipop roms, kitkat roms and twrp backups. Its very important you backup your EFS partition. Somehow I had them backed up and I got saved because of this thread. OEM unlock was tossing me into recovery and I had no way to flash my EFS. Had an anxious day with "Unknown baseband version". For some reason TWRP seems to mess up the baseband and EFS every now and then (specifically when I am switching Lollipop and Kitkat backups)
[ONE Android Development] zard:
Hi, how do you backup the EFS partition? Using TWRP? Can do it in Phil's CWMR?
[ONE Android Development] Xoib:
This is the nearest solution to answer : http://xdaforums.com/oneplus-one/help/bootunlocker-locker-fly-oem-unlock-t2995207
[ONE Android Development] Lanchon:
readers here might be interested in this...

The TWRP Password Protection Thread

http://xdaforums.com/android/software-hacking/twrp-password-protection-thread-t2990816
​
[ONE Android Development] vikrant82:
The link is already there on my post.
[ONE Android Development] D0M1N13:
Does this work after I already unlocked my bootloader ? Also, will this work on 33R and later versions ? What about versions before 30O?
[ONE Android Development] P1nGu1n_:
Yes, yes, yes. ;)
[ONE Android Development] rweddy1:
I cannot get this to work, my bootloader is locked & TWRP is installed, but I am getting boot loops.

When I try fastboot boot recovery.img I get "FAILED (remote:	Device not unlocked cannot boot)"

Any ideas?
[ONE Android Development] P1nGu1n_:
Like the error says, your bootloader is locked so you can't perform that action.

(It used to work, but this actually shouldn't be possible so they fixed it in CM11s-30O)
[ONE Android Development] rweddy1:
So any ideas how to get my bootloader unlocked since the command "fastboot oem unlock" does not work?
[ONE Android Development] Lanchon:
what can you boot and are you root there?
[ONE Android Development] rweddy1:
I am boot looping but I can get in fastboot & no root installed. I thought I was unlocked (wasn't) then installed TWRP and then tired to re-flash stock recovery with no luck
[ONE Android Development] Lanchon:
again, what can you boot and are you root there?

recovery? which? root?

locked fastboot is no use for anything.
[ONE Android Development] mysterio619:
willl the bootloader toggle and tamper bit toggle work with 44s firmware?
[ONE Android Development] NuLLV01D:
Yes it works
[ONE Android Development] mysterio619:
Thanks a lot.....my efs partition is corrupted...i have no imei or baseband and ..tried all methods none of them work for me.....i hope this saves me from void warranty.
[ONE Android Development] NuLLV01D:
It Sure Did Work for Me. Never Had EFS Corruption Issues. Its always advised to take a backup anyways.
[ONE Android Development] mysterio619:
no i meant the efs was corrupted before by flashing color os so my last hope was sending it for warranty........this script hopefullly saves and hope i am eligible for device replacement
[ONE Android Development] NuLLV01D:
Oh, I Thought It Got Corrupted After You Tried this. Sorry Then
[ONE Android Development] hAMMERlized:
hey guys,

after some searching in other boards I finally came to this topic. so I have the following issue:

everytime I try to unlock my bootloader in the CMD with "fastbood oem unlock" I receive the message that everything is okay but my phone instantly reboots into recovery (twrp 2.8.4.1), without typing "fastboot reboot",which means the bootloader is still locked and I can't flash back to stock Rom for example (getting error message when trying to flash that bootloader is still locked).

I have red the introduction and it seems that this script may help me out of this. so the question is, do I simply have to flash the "oneplus one boot unlocked. zip" to fix that problem? just asking before I am gonna brick my phone or something like that.

by the way, my device was already unlocked once and rooted. at the very beginning as I have got the phone.

thanks in advance.
[ONE Android Development] lollaz:
infos

Hi Fellas,

just a quick question about this mod:

i received my OPO yesterday, turned on, driver installed, unlocked and twrp recovery installed.

in fastboot oem device-info it was showing both TRUE in tampered and unlocked.

All good but..

i was trying to relock the OPO like all my previous Nexus devices for give it to a friend of mine meanwhile he is waiting his new opo..

Tampered: true

Unlocked: false

with twrp installed.

Then we try to unlock again to flash new custom lollipop rom with fastboot oem unlock

tampered: true

Unlocked: False

again, and again, and again.

We cannot boot in twrp by fastboot but we have custom recovery already istalled and we flash this mod via recovery.

All good:

Tampered: false

Unlocked: true

Is it ok? or the both sentence should be TRUE? or just the unlocked one should be set on true and its ok for flashing everything else?

If i tried to flash again the mod it reverts states in:

tamepered: True

Unlocked: False

and we have to fla**** again to obtain the unlocked status.

(my doubt is that at first fastboot oem unlock bot tempered and unlocked were set on TRUE and now he are not..)

Thanks for helping and sorry for my english :)

Lollaz
[ONE Android Development] CBpbxEcmecmBeH:
I think somewhere in the thread it was explained, that once you boot to bootloader, automatically the tamper bit becomes true, because why else would you boot to bootloader, unless you wanna tamper ;) and so, I don't think you should worry about that one. Just unlock it if you want to change the firmware (backup first of course)
[ONE Android Development] lollaz:
If is it ok to have tampered on false and unlocked on true.. Well :) ok!

My purpose is why on first oem unlock they were both true and now not :)

.. Im thinkin.. What if i do another oem unlock to change the tampered status to true? :D

Thanks again

Lollaz
[ONE Android Development] SkandaH:
[MENTION=5381511]Mnt-XDA[/MENTION]

Thanks for making such elaborate post. I have just posted about YU Yureka unlock & tamper bits here & started a thread here, which is nothing but a copy of yours with required adjustments.

Hope you don't mind anything.

:highfive:
[ONE Android Development] MickyMax:
Unlocking bootloader by booting a custom recovery doesn't seem to work in last OTA (44S).

Someone can confirm it's now impossible to unlock bootloader without wipe (in 44S)?
[ONE Android Development] zard:
I was new to this and tried it out last month when I first received my 16GB OPO. It seemed that script could not unlock bootloader without wipe even though I had already unlocked by oem command before. I didn't bring it up thinking I might have done some steps wrong.
[ONE Android Development] Lanchon:
wrong. you just need root.
[ONE Android Development] MickyMax:
OK. But to have root I need to unlock bootloader first.
[ONE Android Development] Lanchon:
that is an overarching declaration of which you have no proof
[ONE Android Development] crashbyte1203:
I cant get the scripts onto my phone. my bootloader is locked, I use "fastboot oem unlock" but it won't work. I don't have an OS but I can get into tw recovery
[ONE Android Development] xela-yuki6:
I start off with both flags set to true (tamper and unlocked). Upon flashing the zip (OPO-BootUnlocker.zip) I get confirmation that bootloader has been switched from unlocked to locked and that tampered flag has been set to false. Good. That's what I'm after. However when I go back into fastboot and run fastboot oem device-info I get the notification that the tampered flag is true, which is not what I want, right? Can anyone help me out here?
[ONE Android Development] P1nGu1n_:
Haven't tried it myself, but I've read that once you enter fastboot the tamper flag gets set to true. Just don't enter fastboot after setting it to false.
[ONE Android Development] Lanchon:
this doesn't happen to me. if i set tamper to false it stays that way. the bootloader theoretically could set tamper whenever it sees locked set to false; but AFAI remember, it doesn't.
[ONE Android Development] Ollie_17:
Hi i unlocked by bootloader but have now relocked it, how do i get the tampered bit to return to false?
[ONE Android Development] tmcpnet:
Use Synapse app from play store.
[ONE Android Development] Ollie_17:
It says no UCL as i unlocked the bootloader again but the tamper bit is still false
[ONE Android Development] tmcpnet:
You need to flash UKM:

http://xdaforums.com/android/software/zip-synapse-script-universal-kernel-t2736986
[ONE Android Development] gopiraj_m:
Since the 44S update, one has to be bootloader unlocked to get root, AFAIK!

If not, can anyone confirm this mod worked on un-rooted and locked Bootloader CM 11S, 44s/ 05Q builds?
[ONE Android Development] rakesh595160:
Can i reset the temper flag of my device here find the details as below..

C:\Users\ACER\Desktop\android-sdk-windows\platform-tools>fastboot oem device-inf

o

...

(bootloader) Device tampered: true

(bootloader) Device unlocked: true

(bootloader) Charger screen enabled: false

OKAY [ 0.006s]

finished. total time: 0.007s

C:\Users\ACER\Desktop\android-sdk-windows\platform-tools>
[ONE Android Development] Polarfuchs:
Just use the 3rd downlad on the first page. "Download Tamper bit toggle only zip"
[ONE Android Development] Mnt-XDA:
Yes, from cwm ..it should
[ONE Android Development] Mnt-XDA:
It is possible -- fastboot boot <custom_recovery.img from your PC>

then you can flash the zip...
[ONE Android Development] rahulrai:
It would be great if you can neatly write down the steps....it will be of gr8 help.
[ONE Android Development] Mnt-XDA:
Please tell me that is the output of command -- fastboot oem device-info -- for your phone.

and what status you like to set for both flags ? We will then tell ou the steps.
[ONE Android Development] jamesst20:
Worked flawlessly on my OnePlus One.

Thanks!
[ONE Android Development] jdk2:
From complete stock, out of the box ROM, used the fastboot boot suggestion and worked exactly as the OP described.

Thanks very much for the easier-than-it-should-be solution. Great work!
[ONE Android Development] rahulrai:
Is it like

-> 1st we root the phone using this http://xdaforums.com/oneplus-one/development/oneplus-one-toolkit-manudroid19-gui-t2807418

-> then we install custom recovery &

-> at last we should do as mentioned in this forum to flash the zip to unlock bootloader without wiping data

and if I have to flash back to stock CM 11S then should I just flash the downloaded file from https://cyngn.com/products/oneplusone/ through custom recovery?

Please correct my steps as it will be my first time rooting & unlocking bootloader this way,I'm used to samsung's Odin & pretty easy ways. Thx will follow....
[ONE Android Development] r8zer:
You can not flash a custom recovery without unlocking bootloader. What you should do is a simple one download the SU.apk and store on your internal phone storage. Then fastboot boot recovery ( your recovery name here.IMG). Then flash this script file which will unlock the bootloader. Then fastboot flash recovery recovery.IMG then boot into that then install the SU.apk. job done.
[ONE Android Development] neles86:
this mod works excellent!. Thanks again!
[ONE Android Development] rahulrai:
[MENTION=1036857]r8zer[/MENTION] u mean to say i flash the custom recovery .img file through the stock recovery & later flash the unlocker script through custom recovery to unlock bootloader. & lastly to flash superuser .zip through custom recovery?
[ONE Android Development] r8zer:
No u can not flash through stock recovery.

U need to boot into the custom recovery without flashing it first. If you do it this way you will not wipe data before hand.

Eg

Fastboot boot recovery (recovery.img) this is whatever your recovery image is called.

Wait about 30 secs and it will boot into the custom recovery without flashing it.

You then run the unlock tamper script. This will make you bootloader unlocked without losing data.

Then after this you can flash the custom recovery.

Fastboot flash recovery recovery.IMG

Then you can install the SU.apk and backup your ROM as well.

Hope this helps.
[ONE Android Development] rahulrai:
Ok please guide me as to how you rooted your phone and installed custom recovery without unlocking bootloader and not losing any data.
[ONE Android Development] Heisenberg:
He just told you exactly how to do that step by step. Did you not read his post?

Sent via Bacon
[ONE Android Development] andybfmv96:
What's the point if our warranty isn't void?..
[ONE Android Development] Knight-Rider:
Originally after flashing the zip twice through TWRP temp via sideload it everything showed false. Setup my phone I thought this had worked but when I finished setting up my device and went back to download mode and verified via fastboot oem device-info and tempered was true. Not sure what the deal is but it's frustrating lol.
[ONE Android Development] r8zer:
Yes u flashed twice u have reset the tamper flag.
[ONE Android Development] Knight-Rider:
It's not reset though, I went back into download mode and it shows as true even after it was showing false.
[ONE Android Development] rahulrai:
[MENTION=4153349]timmaaa[/MENTION] u shud have read what I wrote. [MENTION=1036857]r8zer[/MENTION] pls advise what are the steps to root. And then to unlock bootloader.
[ONE Android Development] Heisenberg:
I did. And I also read what [MENTION=1036857]r8zer[/MENTION] wrote. He wrote the instructions you're asking for. Read them again, they explain everything.

Sent via Bacon
[ONE Android Development] rahulrai:
which is the part telling abt the rooting process...may be my english is bad.
[ONE Android Development] Shounak Gupte:
my OPO 64 is stuck in the boot loop with tampered: true and unlocked:false.

i cannot seem to unlock the device to run a recovery.

i dont have TWRP installed. any solutions?
[ONE Android Development] jamesst20:
Does it still work with the release of new bootloader with OxygenOS ?

Edit : Dumped partition, checked offset in HxD and it seems to be the same. I will try running the script.
[ONE Android Development] danielsinnema:
It still works on latest build of CM11S

Hi all,

I can happily confirm that this method still works on CM11S. (XNPH05Q 64GB)

I flashed the zip via TWRP recovery and it successfully unlocked my bootloader.

"Fastboot oem unlock" wouldn't work because of TWRP.

Thank you so much for creating this.

Best regards,

Daniel
[ONE Android Development] if-else-endif:
Hi to all.

Now I have:

(bootloader) Device tampered: true
(bootloader) Device unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.017s]
finished. total time: 0.021s

I wanted to flash custom recovery, but have a trouble

D:\Soft\Android\sdk\platform-tools>fastboot flash recovery openrecovery-twrp-2.8.0.1-bacon.img
target reported max download size of 1073741824 bytes
sending 'recovery' (12314 KB)...
OKAY [ 0.392s]
writing 'recovery'...
FAILED (remote: Device not unlocked cannot flash or erase)
finished. total time: 0.401s

Then i want to boot to recovery and change the "unlock bit" but have the same trouble.

D:\Soft\Android\sdk\platform-tools>fastboot boot openrecovery-twrp-2.8.0.1-bacon.img
downloading 'boot.img'...
OKAY [ 0.396s]
booting...
FAILED (remote: Device not unlocked cannot boot)
finished. total time: 0.436s

What i`m doing wrong?

This method don`t work on cm12s?
[ONE Android Development] Lanchon:
this is what you are doing wrong:

"Device not unlocked cannot flash or erase"

"Device not unlocked cannot boot"
[ONE Android Development] if-else-endif:
Thnx, captain.

This is what i want, to unlock the phone w/o wipe of data.

There are only Q in QA thread...
[ONE Android Development] Lanchon:
then dont try to fastboot boot or flash because the whole point of fastboot oem lock is NOT being able to do that!

you cant unlock without wipe, unless you are rooted or have a custom recovery. if you are rooted this is the wrong thread, so search.

if you are nither, you might want to google adb backup
[ONE Android Development] if-else-endif:
Thx. This is the answer that i want.
[ONE Android Development] Mhaddy:
Hey guys, running SlimSaber and want to keep it but relock my OPO. I've been running into some trouble with not being able to run fastboot OEM lock command as noted in this thread and it's been suggested this script may help.

Any thoughts?
[ONE Android Development] Lanchon:
DONT DO THIS! you should ONLY lock it with a STOCK and WORKING recovery, otherwise you might not be able to unlock again.

note: with stock recovery, unlocking again will require full device erase.

locking with custom recovery adds problems and zero security, so dont do it!

but without root, locked, and with stock recovery you wont be able to upgrade your OS. you will need to unlock, ie: a full wipe.

so what you want to do is not recommended at all.
[ONE Android Development] Filko84:
Need help!

I am stuck at boot logo.

Can't load custom or stock recovery.

Fastboot is working but i get this:

(bootloader) Device tampered: true

(bootloader) Device unlocked: false

(bootloader) Charger screen enabled: false

OKAY [ 0.005s]

finished. total time: 0.005s

Fastboot oem unlock only restarts the phone and not working.

fastboot boot xxxxx-recovery.img failed because the bootloader is locked.

Can somebody help?
[ONE Android Development] Lanchon:
wow all this bootloader relocking is really making a mess, i wonder why people do it
[ONE Android Development] Filko84:
I am in this position after update. Phone stuck at boot logo, no recovery and locked!!!!

Searching from 8 hours for fix but nothing is working.
[ONE Android Development] Lanchon:
you mean you were fully stock, and this happened during an OTA?
[ONE Android Development] Filko84:
The phone is China version and was delivered with Cyanogen preinstalled.

As I know the only difference is software so they remove the Color OS and put Cyanogen.
[ONE Android Development] waterdaan:
What did you do, to get in this situation?
[ONE Android Development] Filko84:
OTA update.
[ONE Android Development] waterdaan:
What happens if you do

adb reboot recovery
[ONE Android Development] Polarfuchs:
You could try this zip from one plus which they use in the RMA process. It deletes all files because it unlocks the phone. https://s3.amazonaws.com/oneplussupport/ONEPLUS+ONE-FIX-Windows.zip

Gesendet von meinem A0001
[ONE Android Development] waterdaan:
Not possible, because of

(bootloader) Device tampered: true

(bootloader) Device unlocked: false
[ONE Android Development] Polarfuchs:
You mean it can't run OEM unlock? Because it is flagged as tempered?

Gesendet von meinem A0001
[ONE Android Development] waterdaan:
Yep

Can't

---------- Post added at 12:30 AM ---------- Previous post was at 12:27 AM ----------

Might be connected with this

http://xdaforums.com/showpost.php?p=60668194&postcount=197
[ONE Android Development] Filko84:
Now I have a hard brick :)

It found qualocomm drivers and flash something. No It is not starting at all.

Black screen, found in device manager as Qualocomm HS-USB Diagnostinc 9006
[ONE Android Development] Lanchon:
lol he said he is stuck at boot logo. no recovery, no android. and OEM lock. if this is true, your only hope is a leaked ColorOS image you can find here in xda. this image is signed in such a way that can be flashed from the qualcomm bootloader embedded in the SoC. you'll need crappy windoze to do it though.
[ONE Android Development] waterdaan:
How can you not have a recovery?
[ONE Android Development] Lanchon:
i dont know what will happen to your lets call it EFS partition in the process, though.
[ONE Android Development] Filko84:
I do not know but I can't boot in recovery with vol down+power.

Now I am back to fastboot mode after flashing ColorOS with Qualocomm driver.

But the problem remains.. Can't boot to android, do not have recovery?!?
[ONE Android Development] waterdaan:
What happens if you do

adb reboot recovery

And is this still the same?

fastboot oem device-info
[ONE Android Development] Filko84:
adb can't find device attached!

But toolkit see device in fastboot mode?!

fastboot oem device-info is same.