[GUIDE][TUTORIAL]Creating The Perfect Nexus - 5.1 - Unlocked - Unencrypted - Recovery - Nexus 6 General

In this tutorial I will show you how to install adb and fastboot, unlock the bootloader, flash the 5.1 factory image, unencrypt, and root the nexus 6.
I am not responsible for your phone. This should work for everyone but I cannot guarantee that.
THIS WILL WIPE YOUR DEVICE. PLEASE PLEASE PLEASE CREATE A BACKUP OF EVERYTHING, THIS INCLUDES INTERNAL STORAGE!
Prerequisites:
- A Nexus 6
- Some recent form of windows
Unlocking The Bootloader:​
If you have already done so you can skip this step.
Go to settings > About phone and scroll down to the build number. Tap the build number 7 times to enable developer options.
In developer settings select "Enable USB Debugging" and enable it.
If you already have android 5.1 installed you also need to tick "OEM unlock"​

Related

How to downgrade from Android 7.1.1 Beta (Build NPF26F)

Hey guys, so I bought a second hand Nexus 6P, and it was running the latest android beta.
Is there anyway for me to rollback or downgrade the version, so that I can unlock boot loader, and root the device?
I'm interested in installing this rom
http://forum.xda-developers.com/nexus-6p/development/rom-weta-v1-0-t3350665
Any help is appreciated
gger123 said:
Hey guys, so I bought a second hand Nexus 6P, and it was running the latest android beta.
Is there anyway for me to rollback or downgrade the version, so that I can unlock boot loader, and root the device?
I'm interested in installing this rom
http://forum.xda-developers.com/nexus-6p/development/rom-weta-v1-0-t3350665
Any help is appreciated
Click to expand...
Click to collapse
I don't run the previews, so forgive me if I'm missing something here, but.. why do you need to downgrade to unlock the bootloader? Do the previews not have the "OEM Unlocking" option in developer settings? All you need to do to is enable that and then plug it in to a PC and use "fastboot flashing unlock" to unlock the bootloader. That will wipe the entire phone, including internal storage. Then just fastboot a custom recovery and install your ROM of choice.
If the previews don't have the OEM unlocking option, then log into your Gmail account on the 6P and then visit Android.com/beta and it should show your device enrolled in the beta, select unenroll. This will also wipe all data including internal storage. From there you'd go back to my first paragraph.
Read this and familiarize yourself with it and you're good to go!
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928/page513
RoyJ said:
I don't run the previews, so forgive me if I'm missing something here, but.. why do you need to downgrade to unlock the bootloader? Do the previews not have the "OEM Unlocking" option in developer settings? All you need to do to is enable that and then plug it in to a PC and use "fastboot flashing unlock" to unlock the bootloader. That will wipe the entire phone, including internal storage. Then just fastboot a custom recovery and install your ROM of choice.
If the previews don't have the OEM unlocking option, then log into your Gmail account on the 6P and then visit Android.com/beta and it should show your device enrolled in the beta, select unenroll. This will also wipe all data including internal storage. From there you'd go back to my first paragraph.
Read this and familiarize yourself with it and you're good to go!
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928/page513
Click to expand...
Click to collapse
Hey mate, thanks for guiding me! It does have the OEM unlocking option. I will now look into following your steps, Appreciate the help.
gger123 said:
Hey mate, thanks for guiding me! It does have the OEM unlocking option. I will now look into following your steps, Appreciate the help.
Click to expand...
Click to collapse
Hopefully you were able to figure it out! But like you discovered, it does have an OEM unlocking option. I'm running the dev preview, and rooting is just as easy. If you haven't found any guides here's what you need to do.
Also, make sure you also turn on USB Debugging in your developer settings.
If you've already unlocked your phone, then you already have adb set up. In the case that you don't, install adb on your computer. This tool ( forum.xda-developers.com/showthread.php?t=2588979 ) is very easy to use, although there are other ways to get adb. Run it and select yes to all to install adb. You access adb through your cmd.
1) Download TWRP (custom recovery) from here - dl.twrp.me/angler/
2) Download SuperSU onto your phone from here - download.chainfire.eu/1014/SuperSU/SR5-SuperSU-v2.78-SR5-20161130091551.zip
3) Put your phone into fastboot. Power down and then hold power and volume down until fastboot pops up. Plug into your pc and then open command prompt.
4) Type " fastboot flash recovery * ". The * should be replaced with the location of the file and then the file name such as C:\Users\Kris\Desktop\twrp-3.0.2-2-angler.img
then hit enter and it should write your recovery.
5) Use your volume down button to scroll to the tab that says recovery. Hit your power button to boot into recovery.
6) You'll get a popup and go ahead and swipe to allow your system to be modified. Tap on the "Install" tab in the top left. Locate the SuperSU zip and select it. Swipe to flash it.
7) Once that's completed hit reboot and you're successfully rooted!

Blu R1 HD Unlock bootloader, install TWRP, and root (Non prime)

Note: This guide if for the non Prime variant of the Blu R1 HD running android 6.0. It will also factory reset your device
Before you start: make sure usb debugging is enabled by going to settings-about phone scroll down to build number and tap it until it says you are a developer. Then just go into developer settings, find usb debugging, and click enable.
1: go to http://bit.ly/2rYeWVh on your phone and download the zip
2: The first thing you will need to do is install Adb and fastboot on your computer from here: https://forum.xda-developers.com/showthread.php?t=2588979
3: Once you have it installed, find the folder it installed into (usually either in c:/adb or in your downloads), and double click the Runme.bat
4: Once you're in the shell, run
Code:
adb reboot bootloader
this should boot your phone into its bootloader
5: Wait until your phone is in the bootloader (it should say something like "fastboot..."), and then run
Code:
fastboot oem unlock
This will unlock the bootloader and reset the phone. The process may take a few minutes to complete
6: Now that your bootloader is unlocked, you will need to install TWRP custom recovery. Since there isn't an official build for the BLU R1 HD, we will use a custom one. download from bit.ly/2BBJ8rp (original link was long) then place the recovery.img into your adb folder
7: then flash the recovery with
Code:
fastboot flash recovery recovery.img
replace recovery.img with the name of the file if it is something different this should take about a minute to install.
8: once you have TWRP installed you can root. In the TWRP menu click install, then select the SupeSU zip you downloaded previously. Once that has installed you should be rooted
Please post questions below!
lil chickenz said:
Note: This guide if for the non Prime variant of the Blu R1 HD running android 6.0. It will also factory reset your device
Before you start: make sure usb debugging is enabled by going to settings-about phone scroll down to build number and tap it until it says you are a developer. Then just go into developer settings, find usb debugging, and click enable.
Also need to turn on "enable oem unlock" option in developer options
1: go to http://bit.ly/2rYeWVh on your phone and download the zip
A label for random downloads is advised
2: The first thing you will need to do is install Adb and fastboot on your computer from here: https://forum.xda-developers.com/showthread.php?t=2588979
3: Once you have it installed, find the folder it installed into (usually either in c:/adb or in your downloads), and double click the Runme.bat
4: Once you're in the shell, run
Code:
Adb reboot bootloader
this should boot your phone into its bootloader
Needs to be lowercase "adb"
5: Wait until your phone is in the bootloader (it should say something like "fastboot..."), and then run
Code:
fastboot OEM unlock
This will unlock the bootloader and reset the phone. The process may take a few minutes to complete
Needs to be lowercase "oem"
6: Now that your bootloader is unlocked, you will need to install TWRP custom recovery. Since there isn't an official build for the BLU R1 HD, we will use a custom one. download from bit.ly/2BBJ8rp (original link was long) then place the recovery.img into your adb folder
7: then flash the recovery with
Code:
fastboot flash recovery recovery.img
replace recovery.img with the name of the file if it is something different this should take about a minute to install.
8: once you have TWRP installed you can root. In the TWRP menu click install, then select the SupeSU zip you downloaded previously. Once that has installed you should be rooted
Please post questions below!
Click to expand...
Click to collapse
.
.
Your directions are incorrect and incomplete.
And not working for devices updated with OTA , because blue made changes to block the bootloader unlock option
And there are already multiple posts with this topic that are complete.
IDK that's just what I did for mine and none of the other tutorials we're were right for me so I wanted to share it if anyone else had the same problem. I bought my phone like three months ago though so the os should be recent. Any info I should share?
Also I could add the link text cuz I haven't posted enough
lil chickenz said:
IDK that's just what I did for mine and none of the other tutorials we're were right for me so I wanted to share it if anyone else had the same problem. I bought my phone like three months ago though so the os should be recent. Any info I should share?
Also I could add the link text cuz I haven't posted enough
Click to expand...
Click to collapse
I was little harsh with first response. sorry
your steps were incorrect just in the"case" used.
Interested in your custom build number. It is displayed on the "about phone" section of setiings.
And you were able to unlock without changing the "allow oem unlock" setting is curious.
did you get phone refurbished or used?
mrmazak said:
I was little harsh with first response. sorry
your steps were incorrect just in the"case" used.
Interested in your custom build number. It is displayed on the "about phone" section of setiings.
And you were able to unlock without changing the "allow oem unlock" setting is curious.
did you get phone refurbished or used?
Click to expand...
Click to collapse
Its fine
Build number: BLU_R0011UU_V21_GENERIC
build number date: 05-05-2017
Phone purchased at amazon.com/BLU-R1-Cell-Phone-16GB/dp/B01H2E0KVA/ref=sr_1_3?s=wireless&ie=UTF8&qid=1512256238&sr=1-3&keywords=blu+r1+hd
It was new
I might have actually turned on oem unlocking some time in the past because I remember seeing the option, but when I was actually trying to root the phone and unlock it the option wasn't actually there. I had also factory reset the phone recently before the root and unlock so that shouldn't have mattered anyway. But yah, I was like, theres no option to enable that, Ill just try it without and it worked. And it did. The odd thing is though when I go to settings and search oem the option for oem unlocking comes up for developer settings, but when I click it there is nothing there. (Hopefully that makes sense)
lil chickenz said:
Its fine
Build number: BLU_R0011UU_V21_GENERIC
build number date: 05-05-2017
Phone purchased at amazon.com/BLU-R1-Cell-Phone-16GB/dp/B01H2E0KVA/ref=sr_1_3?s=wireless&ie=UTF8&qid=1512256238&sr=1-3&keywords=blu+r1+hd
It was new
I might have actually turned on oem unlocking some time in the past because I remember seeing the option, but when I was actually trying to root the phone and unlock it the option wasn't actually there. I had also factory reset the phone recently before the root and unlock so that shouldn't have mattered anyway. But yah, I was like, theres no option to enable that, Ill just try it without and it worked. And it did. The odd thing is though when I go to settings and search oem the option for oem unlocking comes up for developer settings, but when I click it there is nothing there. (Hopefully that makes sense)
Click to expand...
Click to collapse
To get around this just find the previous version stock rom from the blu dev site and flash it first. I have never seen a OEM unlock menu blanked out if that is what you're trying to say, in this case amazon and blu teamed up and you should be able to restore to original version without the OTA.

[GUIDE] OnePlus X: How to Unlock Bootloader and Backup EFS

Warning: Rooting does not void the OnePlus X’s warranty, though damaging your hardware (i.e., burning up your CPU/Motherboard by overclocking, hardbricking the device) will. You proceed at your own risk! I accept no responsibility for what you do with your phone. Follow the directions closely, and the odds are you will succeed without any trouble. If you are not sure what you are doing, do some more research before you try.
Click to expand...
Click to collapse
Code:
Index
1. Set Up Fastboot & ADB
2. Unlock OPX Bootloader
3. Enable USB Debugging & Activate OEM Unlock
4. How to backup EFS & Other Partitions
Lets get started
1. Set Up Fastboot & ADB Drivers:
What’s ADB?
ADB stands for Android Debug Bridge. It works when the device is powered on and booted into OS or Recovery. The tool helps in sending basic linux commands, and a variety Android specific commands from PC to connected Android devices.
What’s Fastboot?
Fastboot works only in bootloader/fastboot mode. It allows you to re-flash system partitions on your Android device and requires a device with an unlocked bootloader. It’s particularly useful when you want to update your device manually or in a rare situation when you accidentally soft-brick your device and need to install a clean stock system image.
Download and run adb-setup-1.3.exe
2. Unlock OPX Bootloader:
Backup important files stored on your OnePlus X before proceeding with the steps below, as unlocking the OnePlus X Bootloader will completely wipe/delete all files on the device.
After the installation of drivers (OnePlus X, Fastboot & ADB drivers) follow the below to proceed with Unlocking the Bootloader of your Oneplus X
3. Enable USB Debugging & Activate OEM Unlock:
* Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you get the message ‘You’re now a developer!’.
* Go back to Settings, choose ‘Developer options’. Find the ‘USB debugging’ option and use this toggle button to enable it. Accept warning by tapping on OK button.
Also in the ‘Developer options’. Find the ‘OEM Unlocking’ option and use its toggle button to enable it. It asks for your PIN/Screen unlock code, type it. Then accept the warning by tapping on OK button.
Connect your OnePlus X to windows now. You will get a pop-up on your phone when you connect for the first time after enabling USB debugging. Select ‘Always allow from this computer’ checkbox and then tap on OK button. (You may or may not get this prompt so don’t bother if you dont)
Boot your OnePlus X into Bootloader/Fastboot mode. (Make sure you have backed up all important data as you’ll lose everything on phone in the steps below.)
Connect your OnePlus X — in Bootloader mode — to PC. Let the driver install.
Open a command window on your PC.
For this:
>>Open the adb folder on your PC.
>>Hold shift key, right click on empty white space.
>>Choose Open command window here option from that.
Power off your phone then boot into fastboot mode (power + volume up).
Connect your phone to your windows via usb cable.
Confirm whether fastboot is working. With OnePlus X connected to PC, run the following command in command window.
Code:
fastboot devices
It should return your device serial number, if not you need to make sure your drivers are installed correctly.
Once you've confirmed your fastboot connection to unlock the bootloader use
Code:
fastboot oem unlock
The device will now go through the automated unlocking process, just let it do its thing and it'll boot up into Android.
You’ll see a new screen on your device. Choose Yes and confirm it.
That’s it. The device will reboot automatically.
To confirm unlock status, reboot into bootloader and type the following command:
Code:
fastboot oem device-info
Code:
Device unlocked: true
Other lines are not that important
4. How to Backup EFS & Other Partitions (Root Needed)
* Download Partitions Backup And Restore App from Here
* Open the app and grant it root access.
* Click on the Settings icon above and select preference to .img
* Select the partitions marked in yellow and backup them by clicking on the download like button at the bottom right.
* Go to the storage and search for the Partitions Backup folder there you will three .img files (modem,modemst1,modemst2) . Save them to your cloud and as many places as you want as they are very important files.
This way you can back up all other partitions too. (I would recommend backing up all those that are not found in a factory image.)
Is it different from TWRP somehow?
Caraparbor said:
Is it different from TWRP somehow?
Click to expand...
Click to collapse
It is quite different from TWRP, though it is not mandatory to perform a EFS backup.
Hi folks, i unlocked the boot loader (see attached file) but i can't start TWRP or Partitions Backup and Restore, any ideas?

[GUIDE][A6020I36]Install Lineage OS 16, root and recovery in Lenovo Vibe K5

Guide to install Lineage OS 16.0 with root, recovery and unlocked bootloader on Lenovo Vibe K5 A6020I36 by lexiyuri
0. Download and uncompress all the essential included files (TWRP recovery, minimal adb and fastboot, lenovo drivers) included in my androidifilehost link:
https://androidfilehost.com/?w=files&flid=303569
Download the Lineage OS 16 from here (thanks to harry8242):
https://androidfilehost.com/?w=files&flid=282516
dont forget to choose latest Lineage OS 16 compilation
Download the Gapps from
https://opengapps.org/
(choose Android 9.0, arm64 and stock options)
Download the latest SuperSU version (flashable zip package) from here:
http://supersuroot.org/downloads/SuperSU-v2.82-201705271822.zip
Important: dont forget to copy the Gapps, supersu and ROM inside a micro sd card before start!!
1. Make a entire backup of your device, syncing Google and WhatsApp accounts before doing something.
Remember: you are going to erase your Stock Lollipop version in your k5!!
2. Install the inclued Lenovo Drivers
from the folder named latest_usb_driver_windows_2
and the drivers in the executable file named LenovoUsbDriver_autorun_1.1.15_user.exe
For Windows xp to 8.1: proceed to follow on screen instructions
Note for Windows 10 users: this OS enforces driver signatures by default. This can be disabled to install drivers that are not digitally signed. Use the following steps to disable driver signature enforcement in Windows 10.
Click the Start Start menu and select Settings.
Click Update and Security.
Click on Recovery.
Click Restart now under Advanced Startup.
Click Troubleshoot.
Click Advanced options.
Click Startup Settings.
Click on Restart.
On the Startup Settings screen press 7 or F7 to disable driver signature enforcement. Your computer will restart and you will be able to install non-digitally signed Lenovo drivers.
3. Install Minimal ADB and Fastboot: double click on the adb setup file included and follow on screen instructions
Alternatively you can download Minimal ADB tool from https://androidmtk.com/download-minimal-adb-and-fastboot-tool or choose the included in compressed
Also you can install Android Studio SDK from its official source in order to use the ADB and fastboot tools
https://developer.android.com/studio/?gclid=EAIaIQobChMIpdiIlpfh5QIVks13Ch2bUw8REAAYASAAEgJW9PD_BwE
4. To ease things, copy the Recovery file (twrp3230.img) into Minimal ADB Program files folder (check before if your program files folder are 32 or 64 bits).
5. Unlock bootloader for lenovo Vibe k5
Enable the Developer Options. To enable the Developer Options, go to settings => About => Software Information => More => Tap on the Build Number around 7-8 times until you see a message telling you "developer options enabled"
Go back to settings and now enable the OEM Unlock by going to Settings => Developer Options and tap "Enable/allow OEM Unlock" and after tap in the "Enable/ Allow usb debugging" option.
I want to clarify in this point: Lenovo doesn't offer an official way to unlock bootloader. Now, connect your phone to the PC.
In your Minimal ADB fastboot program files folder open a command prompt (cmd window) by pressing Shift Key + Right Mouse Click, now type the following command line in your command window
Code:
adb devices
(This is to verify your device is being recognized and shows a code or identifier)
Note: if you see a pop up to allow USB Debugging on your phone, Click OK
After that, type the following command below to reboot your phone to bootloader
Code:
adb reboot bootloader
Your phone will reboot into bootloader and enter to the fastboot at the same time.
Fastboot screen shows green lenovo logo, a white background and a tiny message saying if you press longer the on/off button you will restart the phone.
Please, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
(This command will list the connected devices. If your phone serial number shows up you can continue, but if the phone is not listed, your drivers are not installed correctly. Fix that issue and then continue.
Now, unlock the bootloader with this command line
Code:
fastboot oem unlock
Important: this command returns an error code saying that remote oem is not allowed, just like the following one
Code:
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.002s
For some reason I did all the entire process without problems. May be Lenovo Vibe K5 is unlocked by default, so, it doesn't matter if the message says you can't do the unlocking. Continue to the Step 6
6. Install the TWRP recovery 3.2.3-0
Type the following command in order to install the recovery and press enter
Code:
fastboot flash recovery twrp3230.img
(this line installs the twrp permanently)
Optional: you can just run the recovery temporarly using this line
Code:
fastboot boot twrp3230.img
The fastboot boot command line lets you inside the twrp recovery mode window. Also, you can enter to the recovery mode pulling out the battery, pressing vol +, vol - and power all that at the same time.
7. Installing Lineage OS 16.0 -Android Pie 9.0-, Gapps and SuperSu (make root) flashable packages.
First then all, make the reglamentary wipes (one by one) without restart/reboot the phone
Code:
wipe system (this will erase the Stock Lollipop)
wipe data (this will erase pictures, WhatsApp folder, Download folder, data apps, wifi passwords, configurations and so on)
wipe cache
wipe dalvik / art cache
In the main twrp window, tap the Install option, locate your microSD tapping in the select storage to activate the external SD.
Now search the files into the SD, pressing in the "up a level" zone and after you reach it, install the following things in the exact order:
Choose the Lineage OS 16 Rom zip file (swipe to confirm) and wait. Dont restart the phone.
After that, choose the Gapps zip file, swipe again to confirm and wait.
Finally, choose the SuperSu zip file you downloaded, do a swipe, wait.
If you want, its possible install all the zip files as a bunch using the "add more zip option" that twrp offers to you, but I prefer do it each one by one.
8. Do a final wipe choosing "wipe Dalvik and Cache".
9. Now choose the restart/reboot option. Wait for the phone initial setup (around a couple of minutes)
10. Configure the phone with your android account preferences. install your favorite apps, sync your info, etc.
Important: during the configuration, the Pixel launcher can fail. So, choose trebuchet as the default launcher.
11. Configure the SuperSU, install it, and verify the root with the Root checker app (you can found it in the Play store) and you are done!! Enjoy!!
== Special tip to enable the TWRP recovery option in the on/off/restart menu===
12. Once you have finished the set-up in your phone enable the Developer options into Lineage OS following this route:
tap in the drawer little configuation wheel ==> System ==> about phone, go to the last option and tap around 7-8 times in the Rom compilation number until you receive the toast message telling you "developer options enabled".
Return to the main system screen options, tap in System, then tap in advanced, and finally tap in the developer or programmer options, activate them and enable Advanced Power/reboot Menu
13. Finally, hold power button, choose restart, then you will see all restart options including the restart to the recovery .

[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon stock to Android 12.1 / LineageOS 19.1

[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon stock to Android 12.1
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4/4X Snapdragon SOC (codename mido) stock to Android 12 / LineageOS 19.1
Complete guide to install Android 12 on your Xiaomi Redmi Note 4 (Snapdragon or 4X).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG
v4. Minor improvements, Android 13 incoming (+ Google Camera) !
v3. Android 12.1 thanks to awesome Zeelog (and @anandsvm), migrate to MindTheGApps, upgrade TWRP
v2. BitGApps, updated TWRP + Magisk
v1. Initial release
1) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.6.2_9-0 + Magisk root v23)
+ ROM LineageOS Unofficial 19.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ MindTheGApps 12.1 ARM64: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
or BitGApps ARM61 12.1 v1.4+: https://github.com/BiTGApps/BiTGApps-Release/releases
2) INSTALL DRIVERS
First uninstall all Oneplus, Oculus ... Android drivers.
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
### If you experience problems with phone connection later, use https://github.com/lostindark/DriverStoreExplorer (thanks @Lysolus for sharing)
3) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.6.2_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.6.2_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy LineageOS 19.1 and gapps.zip (+ magisk if you want root) to the same phone's Internal Storage folder.
### Copy both zip files straightforward. Don't unzip archives.
7) FLASH ANDROID 12.1
Once again Swipe to Allow Modifications.
Go to Install > lineage*.zip,
then Add more zips: mind*.zip.
### Optional: to flash Magisk root, go to Reboot > Recovery. Then Install > Magisk*.zip
Go to Reboot > System
8) ROOT ACCESS AND DEVELOPER MENU (OPTIONAL)
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: Zeelog, @anandsvm, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, MindTheGApps team
Thanks for this... Will try it in 2-3 days
[email protected] said:
Thanks for this... Will try it in 2-3 days
Click to expand...
Click to collapse
Hi,
Any feedback is very welcome.
Normally you have all you need to hack it.
Enjoy
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Hi, no idead for payment.
But MagiskHide normally does the trick.
Unlock bootloader is fast with all the tools in my pack.
[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Root is optional.
Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1
Jn1441 said:
Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1
Click to expand...
Click to collapse
Hi, what is the error during flash in TWRP ?
Error1 displayed but after reflashing with mindgapps majisk is working now
Jn1441 said:
Error1 displayed but after reflashing with mindgapps majisk is working now
Click to expand...
Click to collapse
Cool, enjoy. The phone is still good
A very nice and clean tutorial, thanks for that!
I already unlocked bootloader with another tutorial and for now I will leave the device on the last stock firmware. But I already tested magisk. It's very new to me. The last phone I flashed is some years ago and I only knew SuperSU.
The Note 4 is only a "second device" and I won't use it as a daily driver. But it's fun to play around with it and test some things.
@djibe89 Good hint, that I have to use an older rom as an intermediate step to avoid problem, this is new to me.
Also I wondered when I looked up the partitions to backup. There are 15 (!?) partitions (Pics attached). You are writing, that following partitions have to be backed up: System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
When I flash lineage and then want to go back, can I just restore the partitions? What happens to the other partitions when I flash a rom? Will they be deleted? Some years ago a phone just had 4 or 5 partitions...
Hi @tito_puente, you can start from step 7 to enjoy a clean Note 4.
Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?
the_real_grumpazoid said:
Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?
Click to expand...
Click to collapse
Hi, you can uninstall from the Magisk app
Installation
The Magic Mask for Android
topjohnwu.github.io
Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?
nysrin said:
Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?
Click to expand...
Click to collapse
Hi,
Yes.
Like written in the Title, it is for the snapdragon version, Aka 4X
Ooh i did not know the only difference between the note 4 and note 4x is that the 4x uses snapdragon.
The reason I was doubting is that I got a different device ID so I thought i my phone is a different model
List of devices attached
e640de900903 device
Click to expand...
Click to collapse
I will proceed later tonight, thank you for your quick response.
djibe89 said:
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon SOC (codename mido) stock to Android 11 R / LineageOS 18.1
Complete guide to install Android 11 on your Xiaomi Redmi Note 4 (Snapdragon).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG ----------------------------------------
v1. Initial release
1 ) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.5.0_9-0 + OrangeFox recovery + Magisk root)
+ ROM LineageOS Unofficial 17.1: https://forum.xda-developers.com/t/ota-3-18-4-9-unofficial-lineageos-17-1-mido.4039907/
Download latest build: https://androidfilehost.com/?w=files&flid=309016&sort_by=date&sort_dir=DESC
Yes we need both LineageOS (LOS) ROMS !
+ ROM LineageOS Unofficial 18.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ FlameGApps Basic: https://sourceforge.net/projects/flamegapps/files/arm64/android-11/BETA/
2 ) INSTALL DRIVERS
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
3 ) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4 ) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5 ) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.5.0_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.5.0_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6 ) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy OrangeFox and LineageOS 17.1 to the same phone's Internal Storage folder.
7 ) FLASH ORANGEFOX RECOVERY
Now go to Home screen > Install
Select OrangeFox*.zip and Swipe to confirm Flash, recovery will auto-reboot.
8 ) FLASH LINEAGEOS 17.1
Coming from Android 7, we need to flash Android 10 to prevent bugs with fingerprint or bootloops...
Once again Swipe to Allow Modifications.
On bottom navigation bar, tap on Files.
Then select lineage-17.1*.zip and Swipe to Install.
Then tap on Wipe Caches > Swipe to wipe,
then Reboot System.
Wait during boot.
Quickly setup Android and try to skip configs.
Once finished, turn phone off.
9 ) FLASH LINEAGEOS 18.1
Boot in Recovery mode:
Hold Power + Volume+ until Mi logo shows up and release buttons.
Wait during OrangeFox recovery boot.
On bottom navigation bar, tap on Wipe.
Select Dalvik/ART cache, Cache, System, Data and Vendor partitions,
then Swipe to Wipe.
Back to Home > Menu (right icon of navigation bar) > Mount
Copy lineage-18.1*.zip, FlameGApps, Magisk*.zip and Magisk Manager*.apk on Internal Storage.
Then back to Files menu (left item of navigation bar).
Tap in lineage > Add to Queue > Magisk > Add to Queue > FlameGApps and Swipe to Install.
When flash is over > Wipe Caches and Reboot System.
10 ) ROOT ACCESS AND DEVELOPER MENU
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: anandsvm, Zeelog, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, OrangeFox recovery team
Click to expand...
Click to collapse
Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?
djibe89 said:
Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?
Click to expand...
Click to collapse
I updated USB drivers in device manager of PC.
Now I am enjoying A11.
Thanks.

Categories

Resources