yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 General] Mrx65:
Thank you so much for reply

I already flashed original Oxygen OS 3.1 zip via twrp, so I've new clean stock OS.

Does anyone can give a link for modified supersu suitable for OOS 3.1 or for a guide for rooting my device/system ...??

Thank you in advance

Inviato dal mio Nexus 7 utilizzando Tapatalk
[OnePlus 2 General] Spannaa:
Look at the bottom of post #1 in the Mirrors for official Oxygen OS ROMs and OTA updates thread ;)
[OnePlus 2 General] Mrx65:
Thank you so much, I" ll try it asap

Inviato dal mio Nexus 7 utilizzando Tapatalk
[OnePlus 2 General] Mrx65:
Great, now I' ve a rooted "stock" system :good:

Maybe editing point 4 of 1st post of this thread should be appreciated... ;)

Thanks
[OnePlus 2 General] Spannaa:
If you think a thread needs updating, pm the author, explain why and hopefully, it'll happen ?
[OnePlus 2 General] Mrx65:
After flashing of modified supersu zip for OOS 3.1 (v. 2.78), today I entered in SuperSU app and a popup asked for updating of supersu binaries...

I already updated app to v. 2.79 via play store...

What I've to do...??

Thanks...

Inviato dal mio Nexus 7 utilizzando Tapatalk
[OnePlus 2 General] Spannaa:
If it says you need to update the binaries then you need to do it - just follow the on-screen instructions.
[OnePlus 2 General] Manish Salian:
Hello people can some one here please help me to recover back my one plus two

It isn't booting up.. Bootloader is locked and can't access recovery.. When I boot into recovery noting is displayed but it vibrates when power button is used.. It can boot into Fastboot mode.. I tried mega unbrick method 1 and 3 from one plus form.. The process ends successfully but still doesn't boot into recovery..I even tried to unlock the bootloader but it says oem unlock. Disabled.. Any solution??
[OnePlus 2 General] Joshisripad27:
Sir

I unlocked boot loader..instaled custom twrp...installed cm14.1...now today got news that oneplus is giving out oxygen os 3.5.5 via ota..i downloaded oxygen os 3.1.0 and sideloaded it using adb .now i had the device in my hand...fully functional. But with the twrp recovery..so in order to get update via ota..i needed to install stock recovery which o downloaded and flashed it. Then i used command fastboot oem lock

It locked oem

But now stock recovery doesnot show.up....

Actually when i go to recovery.mode...only one.plus logo comes up and is stuck like that..

I can go to fastboot mode...but cannot flash recovey..as it says..device is locked..and can't even unlock oem...

When i use fastboot oem unlock..the logo comes back.....and doesn't go till i force power off the device

And device dont even boots normally..to start the device i need to go to fastboot mode and give command fastboot continue to start the device

Plz help me out

Thanks in advance
[OnePlus 2 General] Spannaa:
It would have been a lot easier to just download OOS 3.5.5 and flash it via TWRP!

As you've locked your bootloader again and can't boot up to enable OEM unlocking, I suspect you'll need to use the Qualcomm recovery package to revive your device.
[OnePlus 2 General] Joshisripad27:
Thanks sapna

I had even manually installed adb drivers on my pc..so whenever i connected my mobile to the pc..i automatically got detected as an adb device..so what i did was allowed the battery to drain out completely.. Then connected to the pc..it then somehow got detected as a bulk device and i installed quolcomm drivers..and followed unbrick procedure..and thankfully got back my stock recovery .then i sideloaded oos 3.1.0 successfully.?
[OnePlus 2 General] minhas729:
I followed every step carefully. Managed to install twrp and root..

But if i try to do a full wipe for custom ROM installation. Twrp says "unsuccessful" and red lines say "failed to mount cache"

No matter what i do in recovery, this error remains there. Sometimes functions get successful sometimes not.

Example of the error with a successful wipe of only cache is attached.

But I can't do a full wipe of system (except internal ofc). I have been rooting and using custom ROMs from ages but its the first time i m getting such issue.

Twrp is 3.0.2-2 even I thought it may be a bad download but flashing the fresh image new of image via twrp although successful but not helpful, as i get same error in this one as well

Anyone can guide or come with a solution. Please
[OnePlus 2 General] danielkzlai:
Thank you for your reply! I was stuck in booting and all I had to do was flash the correct version of SuperSU! Thanks for saving me hours and hours of time!
[OnePlus 2 General] osrox:
How to backup EFS ?

My OnePlus2, had missing IMEI#2 which was fixed today by a OOS 3.5.7 patch, released on OnePlus forums.

I'm planning to install RR ROM 7.1.1, so want to backup the EFS properly this time.
[OnePlus 2 General] Spannaa:
Via root terminal:

dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst1 of=/data/media/0/modemst1.bak
dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst2 of=/data/media/0/modemst2.bak

Or there's a flashable zip here that will backup your EFS partitions (modemst1 & modemst2). It also includes a Restore_EFS.bat file that can restore your EFS via fastboot.
[OnePlus 2 General] 0v3rl0rd:
Besides the code You mentioned (let's call it ver1):

dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst1 of=/data/media/0/modemst1.bak
dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst2 of=/data/media/0/modemst2.bak

I found these two. ver2:

dd if=/dev/block/mmcblk0p17 of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/mmcblk0p18 of=/sdcard/modemst2.bin bs=512

and ver3:

dd if=/dev/block/mmcblk0p10 of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/mmcblk0p11 of=/sdcard/modemst2.bin bs=512

If not to much trouble, could You please explain the differences, and which one to use?
[OnePlus 2 General] Spannaa:
The first is for the OP2 and selects the partitions to copy using their by-name symlinks.

The second is also for the OP2 but selects the partitions by their actual blocks.

The third is similar to the second but is for the OPO

You can use either the first (obviously, because I wouldn't have posted if otherwise) or the second.
[OnePlus 2 General] 0v3rl0rd:
Thanks for helping out :)

I'm not that well into Android and other Linux related technicalities - You mentioned a "by-name symlink" - is that some kind of a shortcut to a certain file or what?

In the "blocks" way of selecting partitions, the "bs=512" attribute specifies that the lenght of the partition or the starting block of the partition?
[OnePlus 2 General] Spannaa:
1. Yes

2. bs is the block size i.e. the amount of data written to memory from the input before writing that data to the output. The default is 512 bytes.
[OnePlus 2 General] 0v3rl0rd:
hmm, that opens another doubt for me xD

As from the explanation, the size of that partition is 512 bytes? Or are those 512 bytes just the first piece of the partition which contains the EFS information?

Sorry for annoying You, but this things have been bothering me for quite some time (even since I owned the OPO), with no simple explanation when google-ing it x)
[OnePlus 2 General] Spannaa:
The modemst partitions are about 1.5MB each. bs=512 just means that the partition is copied from one location to the other in 512 byte blocks.

Ref: https://en.wikipedia.org/wiki/Dd_(Unix)
[OnePlus 2 General] 0v3rl0rd:
Thanks :D

That clears it up for now :)
[OnePlus 2 General] ketansharmar:
Can anyone provide default kernel?? Of oos 3.5.6
[OnePlus 2 General] fonfox:
http://www.kernel.boeffla.de/oneplus2/stock-kernel
[OnePlus 2 General] ketansharmar:
Tysm
[OnePlus 2 General] ketansharmar:
Why 4 cores are offline?
[OnePlus 2 General] ketansharmar:
Why device certification is uncertified??

I m on oos 3.0.1

Tnx in advance
[OnePlus 2 General] Aniket_IITM:
would you please explain how that zip works? Do we need rooted OOS 3.5.6?

I mean if I flash that zip in TWRP then what happens exactly, where that backup is stored?

and how to restore those backups?

Also which zip I should use to root OOS 3.5.6 as I heard some of them breaks sensors?

Thanx:)
[OnePlus 2 General] ketansharmar:
Why no one is replying??
[OnePlus 2 General] Spannaa:
Google play store device certification to find out what it means.

Not sure why your device is uncertified though - what's your device model number in settings?

One A2001?
[OnePlus 2 General] ketansharmar:
One A2003
[OnePlus 2 General] Spannaa:
Strange then - the One A2003 is on the list of certified devices.

Maybe the implementation of certification isn't fully working yet - it's new and there have been issues reported.

If you can still use the playstore, I wouldn't worry about it too much.
[OnePlus 2 General] ketansharmar:
Okey tnx man✌
[OnePlus 2 General] maverick015:
FAILED (remote: device is locked. Cannot flash images)

Hi Heisenberg,

I have read through your guide, but my problem is I had install cyanogenmod 14.1, it had removed TWRP and installed Cyanogenmod Recovery and then locked my Fastloader as well. Now when I try Fastboot OEM Unlock, Fastboot is not unlocked. I checked device-info and I'm receiving below message -

INFO Device tampered: false

INFO Device unlocked: false

INFO Device is_verified: false

INFO Charger screen enabled: false

INFO Display panel:

INFO console_locked: 1

INFO exec_console_unconsole: 0

OKAY

How much so ever I run "oem unlock". It doesnt work. However, I'm stuck with Cyanogenmod recovery, even not able to do adb sideload. Since it has only option of adb sideload in "update". I'm not able to get Cyanogenmod update since all Cyanogenmod server are down.

Request your guidance and help on the matter.
[OnePlus 2 General] dansou901:
You need to activate "allow oem unlock" (or similar) in developer settings before doing the actual oem unlock
[OnePlus 2 General] maverick015:
Ah..!!! i have wiped my OS..so no enabled option...:laugh:

I came to know from a video that - google had included a code esp for phone with fingerprint/ patterns and if these are active and you have wiped all the data. then bootloader will be locked as well evenif you check "Enable OEM unlock" in Developer mode.

So I had to use Recovery tool to reset the whole Phone to factory initial.

Also, I found out that Cyanogenmod 13/14.1 and Lineage all requires latest Bootloader, if not you will get System Error - 7 (Assertion failed , Tz.***) , because of old bootloader even TWRP latest 3.02.2 was not flashing. So I had to flash TWRP 3.0.2 and then instal TWRP 3.0.2 Hybrid for installing the latest ROM
[OnePlus 2 General] dansou901:
Or you edit the updater script inside the flashable zip and remove the assertion check.
[OnePlus 2 General] AndrewJackson144:
Thanks a lots for providing all the source code .
[OnePlus 2 General] dansou901:
Please don't quote the OP, thanks!
[OnePlus 2 General] 0v3rl0rd:
[MENTION=2948558]Spannaa[/MENTION]

I used both of this code to create backup:

V1:

dd if=/dev/block/mmcblk0p17 of=/sdcard/modemst1.bin bs=512

dd if=/dev/block/mmcblk0p18 of=/sdcard/modemst2.bin bs=512

V2:

dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst1 of=/data/media/0/modemst1.bak

dd if=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst2 of=/data/media/0/modemst2.bak

When I compare hashes (CRC32, MD5 and SHA-1) from "modemst1.bin" (from V1 code) with "modemst1.bak" (from V2 code) they are NOT the same.

But when I compare hashes from "modemst2.bin" from V1 and "modemst2.bak" from V2 - they ARE the same.

I did that 4 times - same results:

modemst1.bin hash <> hash modemst1.bak

modemst2.bin hash == hash modemst2.bak

Any ideas why that happens?

PS I see that extensions are different (BIN vs BAK) but that should play no role in hash calculation, AFAIK.

Another question, with the V1 and V2 code from above - is a MUST that I use the ".bin" in V1 and ".bak" in V2, or that doesn't matter at all?
[OnePlus 2 General] Spannaa:
I don't know why the hashes are different, AFAIK, the extension doesn't make a difference otherwise the two modemst2 backups would have different hashes.

The backup extension doesn't matter, I just used .bak to differentiate the backups from the original files. Just make sure that your fastboot restore script uses the correct backup file if you ever need to use it.
[OnePlus 2 General] 0v3rl0rd:
That hashes got me confused a little - I guess it doesn't matter. I'll keep them safe anyway :D

Thanks for the advice :)
[OnePlus 2 General] Harish Diesel:
+1

Hey there!! i've the same issue and i've enabled the "Allow oem unlock" in developer mode and still the issue persist!! can't flash any .img file via fastboot:confused::crying:

any other solutions????
[OnePlus 2 General] elandroido:
What does 'fastboot oem unlock' do?
[OnePlus 2 General] Spannaa:
Like it says in the first post, it unlocks your bootloader!
[OnePlus 2 General] elandroido:
Haha... I know...

What I meant to ask was "what does it do specifically for you", since it does not work for the person I responded to... ;)
[OnePlus 2 General] Spannaa:
It unlocked my bootloader!

If it doesn't work, possible causes are the toggle not being toggled, fastboot not in the same folder or path as the command window or, more seriously, the bootloader was unlocked but has been re-locked.

The command window output always helps ?
[OnePlus 2 General] elandroido:
We seem to have a misunderstanding... I was just quoting the guy who could not unlock his bootloader in order to find out what the command does for him... No question from my side beside this... :P
[OnePlus 2 General] Spannaa:
OK - I see now!

Hopefully, the info I've added accidentally will help if he checks back.
[OnePlus 2 General] mano_29:
Hi

Thank you very much for such a well-explained thread.

Am quite new here and new to Andriod too.

My phone has the console locked, I have shared the details below :

C:\adb>fastboot oem device-info

...

(bootloader) Device tampered: false

(bootloader) Device unlocked: false

(bootloader) Device is_verified: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_locked: 1

(bootloader) exec_console_unconsole: 0

OKAY [ 0.077s]

finished. total time: 0.083s

C:\adb>

Please advise how can i proceed from here and recover my phone ?

Mano
[OnePlus 2 General] Harish Diesel:
Well bud, as Spannaa said, it unlocks your boot loader and allows you to overwrite your recovery image!

The Problem is, i can't flash anything with fastboot since getting error phone's oem locked! tried every step mention in OP:crying: no luck:confused:
[OnePlus 2 General] daniel39199:
what do i do from here?

i cant find a solution online, hope someone here can help :)

imgur.com/VBVziZq
[OnePlus 2 General] Spannaa:
Just asked you for more info in reply to your duplicate post on the OP forum.
[OnePlus 2 General] daniel39199:
that was my first post, im not sure what post you are referring and what information do i have to give?
[OnePlus 2 General] Spannaa:
You posted the same question on the OP forums and I answered it.

I'm not going to duplicate it here!
[OnePlus 2 General] daniel39199:
if u look u will see i only have two posts, i really dont know what post u r referring to, i only want to know what to do, dont want to make anybodys life difficult,
[OnePlus 2 General] Spannaa:
The post on the OnePlus forums that you've just replied to and I've answered!

Just stick to one place...
[OnePlus 2 General] datagubben:
What is the latest supersu for 3.5.8?
[OnePlus 2 General] utkarsh102:
Version 2.79 is the most stable

https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.79-201612051815.zip
[OnePlus 2 General] hamburgo8855:
Hallo,

if I extract into C: SDK theres no android-sdk-windows folder?

Thanks.

Claudio
[OnePlus 2 General] Spannaa:
Don't bother with the SDK if you just want to use fastboot & adb

Grab the 15 seconds ADB Installer v1.4.3 instead - it's a much smaller download and contains everything you need.
[OnePlus 2 General] Quorbach:
Hi,

I would like to install Magisk v13.3. It is asked to unroot (that's easy with SuperSU already installed) and to restore stock boot image. For this second point, what should I do?

Would it be doable to install Magisk without doing this step?

Thanks!

EDIT: I found this link : https://xdaforums.com/oneplus-2/general/guide-return-op2-to-100-stock-unbrick-t3229606

Can anyone confirm if it's what I'm looking for?

Just to elaborate a bit: My OP2 runs now on crDroid (Lineage 7.1.2) with Boeffla kernel.

EDIT:

I got it: just deroot and SuperSU automatically restore the stock boot image.
[OnePlus 2 General] Dattera:
Do you still need the Android Support Library for this? It seems it isn't available to download in the SDK manager anymore.
[OnePlus 2 General] Spannaa:
You can just use the 15 seconds ADB installer to install adb & fastboot.
[OnePlus 2 General] timcadieux:
Folkz, need to some help to figure out what I'm doing wrong.

I 've followed at least 3 different guides (like step-by-step-guide-to-flash-twrp-install-lineageos-no-root-required.500678 ) on how top install LineageOS and I always get the same negative result. I'm not a total newb, having used CM and Paranoid Android and a few others in the past on my older phone.

Here's are the steps i've taken

I installed ADB

ADB Version returns

Android Debug Bridge version 1.0.39

Version 0.0.1-4500957

Installed as C:\Users\me\adb-fastboot\platform-tools\adb.exe

fastboot oem device-info returns

(bootloader) Device tampered: false

(bootloader) Device unlocked: true

(bootloader) Device is_verified: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_locked: 1

(bootloader) exec_console_unconsole: 0

OKAY [ 0.090s]

finished. total time: 0.093s

fastboot flash recovery recovery.img returns

target reported max download size of 536870912 bytes

sending 'recovery' (22180 KB)...

OKAY [ 0.517s]

writing 'recovery'...

OKAY [ 0.186s]

finished. total time: 0.707s

I hold Power and Volume down, i get options for languages. I choose English. I choose install from local. I choose lineage-14.1-20180105-nightly-oneplus2-signed.zip

It starts to install then after about 15 seconds it just says Installation Failed.

I tried the same with SuperSU.zip and got the same.

Any idea how i can track down what I did wrong?
[OnePlus 2 General] Spannaa:
Options for languages and install from local?

It sounds like you still have stock recovery which explains why you can't flash the ROM or SuperSU.
[OnePlus 2 General] timcadieux:
Just to be clear, I'm ujsing this file

twrp-3.2.1-0-oneplus2.img

from

dl.twrp.me/oneplus2/
[OnePlus 2 General] Spannaa:
Yes but if you have the option to install from local, it doesn't sound like TWRP stuck.

Did you follow the instructions to use the recovery button combo (power + volume down) to boot directly into recovery once you'd fastboot flashed TWRP? If you didn't it will have been overwritten by stock recovery again.
[OnePlus 2 General] timcadieux:
Argh, that was it, I was powering off becuase its written this way

Now reboot into recovery to verify the installation:

With the device powered off, hold Volume Down + Power

This time it booted into TWRP and i was able to flash LineageOS...thank you!!
[OnePlus 2 General] Spannaa:
That will work for most other devices but the OnePlus 2 is different!

From the instructions in post #1 of this thread:

[SIZE=+1]2. How To Install A Custom Recovery On Your Device[/SIZE]

...

Wait for the recovery to flash, it'll only take a few seconds, you'll get a finished message in your command prompt window once it's done. It's now safe to disconnect your usb cable.

Use the recovery button combo (power + volume down) to boot directly into recovery now, once you've booted into TWRP once you can reboot the phone as normal.

Glad you're sorted now ;)
[OnePlus 2 General] sanket892:
Dear team..i am on latest version of 15.1 for oneplus 2..but not getting calls on my jio and unable to make one,albeit data is working perfectly...pls help
[OnePlus 2 General] ksnm.15:
Hi Team,

Even though flashing twrp is successful, when I try to go into recovery, it doesn't go into TWRP recovery but only to system recovery.

Any idea why am I not able to go to custom recovery?
[OnePlus 2 General] Spannaa:
Did you follow the instructions in post #1 to get TWRP to 'stick'?

After flashing TWRP:
[OnePlus 2 General] ShadowStormX:
ehm... i was installing TWRP and it said finished in the comman prompt but when i disconnected i didnt even have TWRP
[OnePlus 2 General] giammin:
from the last point of installing custom recovery guide:

why people just don't read...
[OnePlus 2 General] fonfox:
[MENTION=9179912]ShadowStormX[/MENTION] [MENTION=1321646]giammin[/MENTION]

The last is important after flash recovery

First Boot in TWRP !!!!!

otherwise the TWRP recovery will be overwritten by the original ones again

Edit: Original text

"" Wait for the recovery to flash, it'll only take a few seconds, you'll get a finished message in your command prompt window once it's done. It's now safe to disconnect your usb cable.

Use the recovery button combo (power + volume down) to boot directly into recovery now, once you've booted into TWRP once you can reboot the phone as normal. """
[OnePlus 2 General] ShadowStormX:
Rip me.

"" Wait for the recovery to flash, it'll only take a few seconds, you'll get a finished message in your command prompt window once it's done. It's now safe to disconnect your usb cable.

Use the recovery button combo (power + volume down) to boot directly into recovery now, once you've booted into TWRP once you can reboot the phone as normal.""[/QUOTE]

Yep i did that but everytime when i do (power + volume down) i get stuck on a screen and the TWRP won't come then. Is there a time limit for how long i can hold it? and the screen i get stuck on is:

''1+

powered by

ANDROID''
[OnePlus 2 General] fonfox:
Delete
[OnePlus 2 General] tnjeffw:
I am running stock OxygenOS version 3.6.1. I have unlocked the bootloader and flashed twrp-3.2.1-0-oneplus2.img via fastboot. The recovery will boot but the screen is unresponsive and will not let me select anything. Will not respond to touch. I can push the power button and the recovery will lock but when I turn the screen back on it will not let me unlock. Touch screen not responding. I have clean flashed and upgraded but I still cannot get twrp to work. Am I missing something?

PS C:\adb> ./fastboot oem device-info

...

(bootloader) Device tampered: false

(bootloader) Device unlocked: true

(bootloader) Device is_verified: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_locked: 1

(bootloader) exec_console_unconsole: 0
[OnePlus 2 General] scarpeet:
TL;DR: I can only enter fastboot and bootloader seemed to be locked, need help flashing recovery or OS

after years of using CM and LineageOS, I think I might've gone a bit too far.

In an attempt to unlock the OEM I managed to prevent the phone from booting into anything other than the bootloader (fastboot mode).

If I do "fastboot oem unlock" I get:

C:\Users\...>fastboot oem unlock

...

OKAY [ 0.022s]

finished. total time: 0.022s​

However, it'll flash the oneplus pre-OS boot screen for a second and then the screen goes black.

I do hear the Windows USB connected sound, so something is happening.

Furthermore, when I try to use VOL UP + Power to get into recovery, nothing is happening.

I can't -w the device as the device is still locked, nor flash a new recovery img, for the same reason.

Any advice, or is my phone bricked.. :(

Cheers

Extra info:

fastboot oem device-info

...

(bootloader) Device tampered: true

(bootloader) Device unlocked: false

(bootloader) Device is_verified: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_locked: 1

(bootloader) exec_console_unconsole: 0

OKAY [ 0.078s]

finished. total time: 0.078s
[OnePlus 2 General] Anvay13:
Flashed wrong Twrp image on my op2 with a custom rom

Flashed wrong Twrp update on existing twrp on my op2 running on custom rom. Now unable to access recovery, however still have the custom rom running on op2. What should I do ro reinstall twrp. Note- Custom rom which is on op2, is not rooted.