How to unlock bootloader, flash recovery and root - OnePlus 2 General

Somehow my old post got removed but I really hope this will be useful to you people.
This is a tool that does all the above, instructions inside the archive, actually pretty self explanatory.
Have fun:
Mod edit: Links removed
Oxygen OS 2.0 ROM over here:
Disclaimer: ONLY FOR THE OP2, DON'T ATTEMPT TO USE THESE TOOLS ON THE OP1

This isn't necessary, as there is already a guide linked below.
http://forum.xda-developers.com/oneplus-2/general/guides-how-to-guides-beginners-t3146568
Thread closed

Related

[GUIDE][HOW-TO] Flashing a Custom ROM

Before I begin, Mods, PLEASE pin this. I (when I was a noob) had absolute difficulty installing ROMs. This is very noob-friendly, fixes Status 7 errors, and is easy to follow.
Alright friends and future flashers. I used to have difficulty installing ROMs. Now that I know how (after going through numerous tutorials), I'd like to make it easy for ALL of you. Enjoy your Custom ROM!
Before beginning, you need Android's SDK,Flashtool and The latest Official firmware.
If ever your phone needs to install drivers, let it install, don't unplug the phone or whatever.
And, battery at least 30%. Mine does it at even 20% without issues, but just to be safe.
Step 1: Revert to Stock
You don't need to downgrade. After flashing the latest stock kernel, I have flashed every single GB and ICS ROM in existence without issues, so you don't need to flash a specific one. But, latest one tends to be more stable. Here's what you do:
Get the latest Global ftf for your phone. Then, flash it using Flashtool. I won't go into specifics, but PM me if needed
By Now, you should have a stock EVERYTHING. Boot up the phone, run through the whole set up process. Once you are done, you need to get your IMEI number. Do this by following the steps here.
In the end, you should have the bootloader unlocked. If you come up with something like bootloader already unlocked, then you are good to go. Now onto......
Step 2: Preparing your Flash.
Download the ROM of your choice. I'd recommend FXP's Unofficial CyanogenMod9 as it has the best stability and no ICS Multitouch issues. If it is GB, any ROM will do. Most of them are stable.
Now, in the case of CyanogenMod, they often come with their own custom Kernel. It is in the zip file, known as boot.img, and you simply extract it to your platform-tools folder in the android-sdk folder you downloaded to unlock the bootloader. This is also true for some MIUI ROMs I've come across. Read their forum posts for more info on which kernel to use.
Copy the ZIP file to your sdcard. It does not have to be the root of SDcard, anywhere will do.
By the end, your Custom ROM's ZIP file will be in your SDCard, and the kernel file (a.k.a. boot.img or whatever_the _kernel_name_is.img) will be here:
32bit Windows: C:/Program Files/Android/android-sdk/platform-tools
64bit Windows: C:/Program Files(x86)/Android/android-sdk/platform-tools
Now we can
Step 3: Flash your Custom ROM
In the folder above (depending on OS version) press Shift+RightClick. Options will show up. Select "Open Command Prompt Here". A Command Prompt will open (duh).
Turn off your phone. Wait 10 seconds. While plugging in your phone, press the Menu button (the Right button). The LED Indicator should turn blue. This shows your in fastboot mode. If it starts to boot, rip out the battery and try again. DON'T STOP PRESSING UNTIL IT TURNS BLUE.
Now, type EXACTLY AS FOLLOWS, ONE AT A TIME. Just type in the lines with the "-" before it, but don't put in the "-" when typing it. The line underneath in brackets is an explanation, so you understand what is happening.
-fastboot devices
(This is actually a quick test I do to see if my phone is connected in flash mode or not. If nothing happens, it is not in flash mode or the drivers are installing)
-fastboot flash boot boot.img
(This is telling fastboot to FLASH the BOOT partition of your phone with the file specified. If you are using a different kernel, simply replace boot.img with the name of the kernel, ending with .img and wait for it to finish. Won't take long)
-fastboot reboot
(This causes the phone to reboot)
Now, while it is starting up, keep repeatedly pressing the Volume Down button until you are in ClockWorkMod Recovery (Assuming you are using it. CWM is the most popular and most kernels use it) Then, If you choose to, make a backup. I personally don't, as it is not too big an issue and I never revert to an old ROM anyway.
After that, choose Factory Reset. This will remove ALL data in your phone except your Stock ROM. Then, Clear Cache. You might've noticed it already did that when you Factory Reset, but this is for safety. Finally, in advanced, Wipe Dalvik-Cache and Wipe Battery Stats. I do this all the time for safety.
Now, the fun bit. GO to Install ZIP from SDCard. Select Choose ZIP, find your ROMs ZIP file, and install. It might take awhile, but not too long. Just be patient. When it finishes, flash anything else the ROMs forum post says to flash (Gapps, Patch, etc) and select Reboot Phone.
Step 4: Done!
Your phone will start up. First time is always slow, but this WILL WORK. Congratulations. You now have a Custom ROM
If you get a Status 7 error while flashing a ROM, reboot recovery and wipe everything again. If that doesn't work, flash official firmware and try again.
Credits to:
-Google: Providing Android SDK and Gapps
-Androxyde: Flashtool
-Madfysh: List of Official ICS ROMs
FXP: Creating CyanagonMod9
-And YOU!
P.S.: If you're confused, or feel this could use something extra PM me.
And uh, if it needs to be moved, please do so. Thanks!
I do know there is THIS but I felt some of his steps were unnecessary. Example, rooting. Any custom ROM will be rooted, so there will be no need to worry about that. And he also provided overclocking tips and an unofficial bootloader unlock which are hazardous and potentially permadamaging to the phone.
PLEASE Don't spoil the mood man!!
This is a development section where even Noob Devs know how to flash a Custom Rom!! PLeaseee Pleaseeee ... Move it
Alright man. How would I move it? Cause, I only RECENTLY started being active on the forums.
Jass5991 said:
I do know there is THIS but I felt some of his steps were unnecessary. Example, rooting. Any custom ROM will be rooted, so there will be no need to worry about that. And he also provided overclocking tips and an unofficial bootloader unlock which are hazardous and potentially permadamaging to the phone.
Click to expand...
Click to collapse
Don't say that thread is unnecessary; they put everything in one thread cause it's easy to find. the first step we should do is rooting if we are noops. Then we will be curious about unlock or custom rom later.
Sent from Xperia Neo using AOKP B40
Still dev thread so if you don't know how you should not be trying
It goes like this no dl link no thread
but still is a good post
some unnecessary parts
some dodgy parts
But good for noob never-ending Questions
Maybe Q&A
Reck1993 said:
Don't say that thread is unnecessary; they put everything in one thread cause it's easy to find. the first step we should do is rooting if we are noops. Then we will be curious about unlock or custom rom later.
Sent from Xperia Neo using AOKP B40
Click to expand...
Click to collapse
Okay. I will add an easy rooting instructions to it.
kormatoes said:
Still dev thread so if you don't know how you should not be trying
It goes like this no dl link no thread
but still is a good post
some unnecessary parts
some dodgy parts
But good for noob never-ending Questions
Maybe Q&A
Click to expand...
Click to collapse
Thanks kormatoes. Could you gimme some of the unnecessary/dodgy parts?
Jass5991 said:
I do know there is THIS but I felt some of his steps were unnecessary. Example, rooting. Any custom ROM will be rooted, so there will be no need to worry about that. And he also provided overclocking tips and an unofficial bootloader unlock which are hazardous and potentially permadamaging to the phone.
Click to expand...
Click to collapse
1) actually that(which you linked) tutorial is good, it just need some updating. but your tutorial is different than that.
2) root is certainly not unnecessary! not all people will go for custom roms, specially as most of them are for unlocked BL.
3) unofficial unlock is not hazardous, it is tricky, but it paid of if we look on the advantage against official unlock
Nice from you that you wrote all this, it's based only for custom roms's, thread which is already sticked is for basic things, which any noob should know.
But still, this looks kinda cluttered, and from noob(which you intend this to) point of view, to long/complicate to read
Madfysh said:
1) actually that(which you linked) tutorial is good, it just need some updating. but your tutorial is different than that.
2) root is certainly not unnecessary! not all people will go for custom roms, specially as most of them are for unlocked BL.
3) unofficial unlock is not hazardous, it is tricky, but it paid of if we look on the advantage against official unlock
Nice from you that you wrote all this, it's based only for custom roms's, thread which is already sticked is for basic things, which any noob should know.
But still, this looks kinda cluttered, and from noob(which you intend this to) point of view, to long/complicate to read
Click to expand...
Click to collapse
Thank you all big guns
but there should be a start-up kit for newbie
There can be a Starter Section with due permission
lalit387 said:
Thank you all big guns
but there should be a start-up kit for newbie
There can be a Starter Section with due permission
Click to expand...
Click to collapse
As it is, I am attempting to code a batch file to automatically run the entire flashing process, including kernel and ROM. Having a small issue where it does not wipe dalvik and cache. It also doesn't flash the custom ROM

Firsttimer's Lineage Os installation - D620r - questions and documentation thread

Hey you!
I am a complete newbie in the world of root, flash, recovery and all the other things - shoot me. But I promise to change. Having only very few apps and the need to move every 5 pictures taken off my phone is something that keeps bugging me. I can't stand the stock Android's space limitations anymore.
Since two days, I keep trying to install Lineage Os but I can't make it beyond initial steps. Often, I feel like having very basic questions but no one I can turn to. And at other times, when I go back to step one, I feel like I've missed the steps that I've tried before.
Therefore, this thread serves as place to ask questions to you (the expert) and serves as installation guide for myself and other beginners. The documentation of my process - and where I am currently are - will be in this starting post, questions I'll be asking within the threads following posts.
My details
Phone: LG G2 mini (D620r)
Software plattform: Android 5.0.2
Software version: V20b-EUR-XX
The general installation guide I use for reference: XDA Forums - Everything g2m
The installation guide I use: Lineage Os Wiki - Install on g2m
31.01.2018 - Step 1: Basic requirements - setting up ADB
This was explained pretty well. However, I can't verify if my device is able to make use of fastboot. Shouldn't be a problem I hope.
31.01.2018 - Step 2: Rooting your device
The guide links to another guide ( XDA Forums - Root for G2 mini - All versions ). In it, the poster offers a King Root version but suggests at the same time to check their website (of king root) for updates). To install King Root, I opened the website on my phone's browser, downloaded, installed and run their .apk. This worked, my phone is now rooted.
Question
Question:
The linked root guide (see here ) gives optional steps to install SuperSu via a MRW folder and a script that uninstalles KingRoot again.
Reason could be that this will unlock my bootloader (no idea if thats true) and I might need that in the further installation process.
Are these optional steps required to move on with my Installation?
KingRoot is full of adware and it actively tries to stop you from changing it to a different root app.
That's why you should ( read as must ) change it.
Changing the root-handling app has nothing to do with unlocking the bootloader.
Look for the BL unlock method in the dev section.
Also, this should help you a lot:
https://forum.xda-developers.com/g2...ocking-custom-rom-lg-g2-t3339068/post65899032
Hey Vagelis, thanks for your reply and all the work you do (not only) around the g2m - I've read quiet some posts from you already . I'll switch to SuperSU before I proceed with the boot loader unlock method that I've found in the 'Everything' thread.
Will do so in a few hours, then update this thread accordingly. Thanks!
Vagelis1608 said:
KingRoot is full of adware and it actively tries to stop you from changing it to a different root app.
That's why you should ( read as must ) change it.
Changing the root-handling app has nothing to do with unlocking the bootloader.
Look for the BL unlock method in the dev section.
Also, this should help you a lot:
https://forum.xda-developers.com/g2...ocking-custom-rom-lg-g2-t3339068/post65899032
Click to expand...
Click to collapse
Well, since you change to another ROM afterwards, it is not that important to replace the app, I guess. But it is allways better to be on the safe side.

Completly lost trying to root G715FN

Hello,
Let me try to recall everything I tried.
The first thing I have done is to unlock the bootloader. I had 0 troubles with that. But after that, I tried to root the phone and there is no luck.
First thing I found is that there is no dedicate root tool for this phone. So my first option was patch boot.img with Magisk. I done that but it give me an error with vbmeta verification.
I read some guides related with TWRP but had almost the same issue. I also tried to port myself TWRP with the same luck.
So after that, I though the better idea is was to built the house from the ground, not from the roof so I started searching about VBMeta and that stuff. I'm not very sure what's VBMeta or what it does but AFAIK, it's something that check several firmware integrity (maybe CRC?) and, if it's not the correct, it will say so and don't let you begin the phone. Several investigations later I found out that I have no clue on how to path/change/whatever VBMeta in order to flash a patched boot.img with Magisk root and so, I can't install/port TWRP.
I'm so sorry for posting this here and I know that there is tons of tutorials but that's my main issue: I find several guides, some for some phones (PCBs), some outdated, some without complete information... If you could point me out on the correct direction and help me with this I will really appreciate that.
Thank you in advance.
Bump!
I know you already sold this phone, but I post answer for other people reading this thread.
I described rooting method for this phone here:
Is possible to root Xcover Pro?
Hello, I have unlocked the bootloader. I tried to do the steps with Magisk, this is it: -Install Magisk. -Patch AP. -Copy it to PC. -ReFlash with ODIN. But when I do that, I got errors during installation on Download mode and the phone...
forum.xda-developers.com
d5sword said:
I know you already sold this phone, but I post answer for other people reading this thread.
I described rooting method for this phone here:
Is possible to root Xcover Pro?
Hello, I have unlocked the bootloader. I tried to do the steps with Magisk, this is it: -Install Magisk. -Patch AP. -Copy it to PC. -ReFlash with ODIN. But when I do that, I got errors during installation on Download mode and the phone...
forum.xda-developers.com
Click to expand...
Click to collapse
I encourage you to open a new thread only dedicated to the guide, so it could help new people to find it in Google. If you do it please, link me up!

Magisk from fake site. Is it reversible?

Thanks to a lot of misinformation, tiredness and broken links from url shortens, I felt for a fake site pretending to be the official Magisk publisher. The site is:
masgisk.me
Now I know the official release is exclusively via Github. But it's already done, I've installed. Since it had root access via fastboot and it was installed using TWRP, I believe it is deep in the system and I'm not sure if flashing another rom would get rid of whatever I installed.
Is there a way to make sure there is nothing left and the system is safe?
I attached the file I used.
Update: I checked the hash, it is the same as the official. So, I guess no real harm was done

A little help is needed, new to forums, sorry if it's wrong.

I'm new to forums, I apologize if this is all wrong and such. I was wondering if there is a way I can root a MetroPCS TCL IonX (T430W) running android 12 with magisk. I can't find anything for the IonX, it's all other variants of "Ion." I'm quite familiar with rooting and such, I'm just looking for the files, twrp or such. If you know where I can get them, please lemme know.
I'm sorry if this is in the wrong spot. I didn't see anything for TCL devices, I've never used forums before.
Hi! I don't see your particular device, but here (link below this paragraph) is where you can find all TCL devices we do have sections for. I am not knowledgeable about TCL, otherwise I'd help you myself, and these days on my Pixel, I don't even use TWRP to root - just Magisk, but I know this varies depending on the device and the files that are available. Hopefully, someone in one of the other TCL device sections can help you.
TCL
forum.xda-developers.com
If you ever get a different brand device, you can look for your device or your brand at the top level of the forum https://forum.xda-developers.com/. In the middle of the screen, there is All categories, which you can either expand to see a condensed copy of the brands and links to their sections, or click on it and it'll take you to a more expanded view of all brands we have forum sections for.
You can also use the following thread to request new device forums. There's no guarantee one would be created, but if there's enough demand, it might be.
*** New Device Forum Requests ***
Please post all your requests here. The forum admins choose new device forums carefully, based on several factors. There's no guarantee your device will have a forum created here, but feel free to posts your requests in this thread :) Please do...
forum.xda-developers.com
roirraW edor ehT said:
Hi! I don't see your particular device, but here (link below this paragraph) is where you can find all TCL devices we do have sections for. I am not knowledgeable about TCL, otherwise I'd help you myself, and these days on my Pixel, I don't even use TWRP to root - just Magisk, but I know this varies depending on the device and the files that are available. Hopefully, someone in one of the other TCL device sections can help you.
TCL
forum.xda-developers.com
If you ever get a different brand device, you can look for your device or your brand at the top level of the forum https://forum.xda-developers.com/. In the middle of the screen, there is All categories, which you can either expand to see a condensed copy of the brands and links to their sections, or click on it and it'll take you to a more expanded view of all brands we have forum sections for.
You can also use the following thread to request new device forums. There's no guarantee one would be created, but if there's enough demand, it might be.
*** New Device Forum Requests ***
Please post all your requests here. The forum admins choose new device forums carefully, based on several factors. There's no guarantee your device will have a forum created here, but feel free to posts your requests in this thread :) Please do...
forum.xda-developers.com
Click to expand...
Click to collapse
Thanks man, I'll see if I can get help. More or less, I need the firmware, I can do it if I have it. Thanks once again
DrAkuma said:
Thanks man, I'll see if I can get help. More or less, I need the firmware, I can do it if I have it. Thanks once again
Click to expand...
Click to collapse
You're welcome! I hope you can find it.
roirraW edor ehT said:
You're welcome! I hope you can find it.
Click to expand...
Click to collapse
Definitely looking. Thanks for the quick reply.
DrAkuma said:
I'm new to forums, I apologize if this is all wrong and such. I was wondering if there is a way I can root a MetroPCS TCL IonX (T430W) running android 12 with magisk. I can't find anything for the IonX, it's all other variants of "Ion." I'm quite familiar with rooting and such, I'm just looking for the files, twrp or such. If you know where I can get them, please lemme know.
I'm sorry if this is in the wrong spot. I didn't see anything for TCL devices, I've never used forums before.
Click to expand...
Click to collapse
I have the T430W as well and after a month of trial and error I was able to get it rooted with magisk. I'll give you the quick summary of how I did it right now and once I get home from work I will try to get a more complete step by step guide for you.
1. Download and setup mtkclient by bkerler on github.
2. Enable usb debugging and oem unlock in developer options
3. Power off device
4. Open a terminal and mtk meta --metamode FASTBOOT
5. Plug phone up to computer. You should see the TCL logo and then black screen with fastboot mode in lower left corner.
6. fastboot flashing unlock and confirm on device with volume keys(WARNING this will erase your userdata)
7. Install LineageOS pre rooted GSI using DSU sideloader from github.
8. Either use a partition backup or adb shell then dd if=/dev/block/by-name/boot of=/sdcard/boot.img
9. Reboot to return to original system.
10. Patch boot image with magisk manager make sure the disable vbmeta option is selected.
11. Repeat steps 3 & 4
12. fastbooot --disable-verity --disable-verification flash vbmeta vbmeta.img {flash blank vbmeta image(I used the one from the google source page for DSU)}
13. fastboot flash boot /path/to/magisk_patched_img
14. Reboot and enjoy your rooted Ion X.
Or if you would like I can upload either the stock boot image or magisk patched image as long as you have done the UG67 OTA update.
We have no DA or AUTH files for SP Flash Tool and none of the current bypass methods work on our chipset, so whatever you do make sure you do not flash mmcblk0boot0 or mmcblk0boot1 as this will render your device hard bricked. The kernel source is available on sourceforge, I have gotten it to compile with no errors but haven't had a chance to test it yet. I'm working on getting TWRP or OFRP for our device compiled but haven't gotten very far. So far I haven't had any issues being rooted on the stock rom. I'm really glad that you posted this because I have been meaning to type up a guide as I believe being able to root your phone should be an option for everyone, but you posting this gave me the kick in the rear to actually do it.
Here is the stock boot and magisk patched boot image plus the blank vbmeta image

Categories

Resources