Help with modified boot.img - Xiaomi Mi 5 Questions & Answers

Hello guys, can somebody answer if for installing custom roms on Mi5 it is necessary to make custom boot images to not get locked out. I read it on miui forums but it wasn't clearly explained or I couldn't make it out and i am worried a bit. I am running a global miui rom with twrp recovery and supersu installed with an unlocked bootloader.
Before this phone i had S3 and there were no shenanigans with modifying boot img so for me it is a bit of a unknown territory.
So basically my question is how much of you guys that have installed custom roms and change roms relatively often, meddle with custom boot img and do you have to make it for every rom you want to install in order to prevent getting locked out of your phone.

Related

Confusions about rooting and rom flashing

I've been doing a lot of reading and searching but still can't find a definite answer...
My understanding is that I need to root the device to flash a custom rom
But from the instructions for noobs, they don't usually specify that I have to root
I assume that rooting is a pre-requisite for everything...but then some roms advertise that they are rooted (for example, LeoFroYo)
So it the rooting process tied to the rom itself and I have to root everytime I flash a new rom (if the rom is not rooted)? Or is it universal like HSPL on WinMo?
Rooting is per rom. What is required to flash a custom rom is having an unlocked bootloader and a custom recovery image. From there you can flash a pre-rooted rom.
The root instructions assume that you're gonna keep using the stock version with root abilities added on top. Whereas if you're using flashing something like CM, that already has root and OS tweaks.
FaJu said:
Rooting is per rom. What is required to flash a custom rom is having an unlocked bootloader and a custom recovery image. From there you can flash a pre-rooted rom.
The root instructions assume that you're gonna keep using the stock version with root abilities added on top. Whereas if you're using flashing something like CM, that already has root and OS tweaks.
Click to expand...
Click to collapse
Thanks! So does that mean when I get my phone out of the box, I have to root it once over the stock rom before I can flash any custom rom?
You need to root the phone originally and flash a custom rom. The "pre-rooted" means the rom is rooted. So if you flash that rom then you wont lose root. If you flash an un-rooted rom then you will lose it. So go through the steps and unlock your bootloader then flash a custom recovery image. Then decide which rom you wanted and flash it. All the custom roms are rooted.
futango said:
You need to root the phone originally and flash a custom rom. The "pre-rooted" means the rom is rooted. So if you flash that rom then you wont lose root. If you flash an un-rooted rom then you will lose it. So go through the steps and unlock your bootloader then flash a custom recovery image. Then decide which rom you wanted and flash it. All the custom roms are rooted.
Click to expand...
Click to collapse
That explains it. Thanks for your answer
one more question:
I take it as when bootloader is unlocked, there's no way to lock it again? Not even flashing the stock boot image?
No, once you unlock the bootloader, it stays unlocked.
Just to be clear here you don't _have_ to "root your phone once"
On _most_ phones you need an exploit to be able to get to the bootloader, this exploit is often referred to as rooting. After the exploit you generally have superuser access until you reboot, on some phone this may allow you to get at the bootloader and write anything you want there (E.G. an OS that give you superuser access at boot time)
However the N1 lets you issue the command "fastboot oem unlock" that unlocks the bootloader, from there you can flash a recovery image that will allow you to flash the main OS without having access to Google's release signing keys. Hence you _could_:
1. Bootloader unlock
2. Flash Custom recovery
3. Flash Custom OS
Without ever actually having "root" access, it just happens that most Devs prefer having root access available in both recovery and any custom rom they cook up.

[Q] Flash Custom Recovery?

Hi there! I just wanted to ask whether or not it was possible to flash a custom recovery on the UMTS Motorola Milestone from Telus?
I just decided to terminate my contract early and try the milestone, already "rooted" but coming from an HTC Hero where I was able to flash custom ROM's, custom radio's, custom recoveries and adjust or modify on a whim it seems a little irritating to have this "root" but still have to use the stock recovery to apply an update.zip in order to access the custom recovery.
Can the stock recovery be replaced?
sorry for a newb question!
Thanks for your time!

Rooted with towelroot.What next?

Dear all,
I have rooted my device which is running 4.3 (c5502) (build number: . 101) with towelroot. Now i need to install any custom ROM. I came to know that it requires to install recovery first before flash any ROM. I stuck there..Can you please guide me. I didn't unlock my bootloader yet but I had my TA backup with me.Thanks in advance guys.
whatever u need to know is already there. just search for it. if u expect to be spoonfed then you really shouldn't mess with your phone
The thing is, do we really need to unlock boot loader to flash custom roms, or can it be closed just with root and recovery?
No one tryed it till now I think.
Greetings.
Lemmi1 said:
The thing is, do we really need to unlock boot loader to flash custom roms, or can it be closed just with root and recovery?
No one tryed it till now I think.
Greetings.
Click to expand...
Click to collapse
Yes for flashing custom Roms the bootloader must be unlocked and a recovery must be installed however if you want to flash a stock based Rom unlocked boot loader is not needed. Just Root and Recovery needed for flashing the stock based Roms. Correct me if i am wrong.

custom roms

Have there been any custom roms made for this phone yet? I have my boot loader unlocked and twrp installed. Ready to play with my phone a little. Wish I knew how to make roms myself. By the way the step by step guide for unlocking boot loader and installing twrp and super su was awesome. Thanks
There is custom kernels and de bloated and rooted Roms but nothing like CyanogenMod or aokp yet ive been looking like everyday.
tracyt said:
Have there been any custom rom made for this phone yet? I have my boot loader unlocked and twrp installed. Ready to play with my phone a little. Wish I knew how to make roms myself. By the way the step by step guide for unlocking boot loader and installing twrp and super su was awesome. Thanks
Click to expand...
Click to collapse
At the risk of sounding like a ****, what you see is what you get in the android development section of this desire 626 forum. So no, there are no custom ROMs, however you might find some debloated stock ROMs that a few people in here have spent a lot of time and effort on. hope this helps....
There are custom kernels?
Please can I get a link to custom kernels for this phone? I'm also having issues with my unlocked sprint 626s as I'm stuck on 2g will flashing a new radio solve it or any suggestions?

Possible door to a future of custom roms ???

Surfing the internet I found this :L
https://www.androidexplained.com/lg-g6-fastboot-mode/
If it is true that the T-Mobile versions are unlocked. Is there any way to develop based on this variant?
For example, is it possible to unlock the bootloader by installing the rom of t-mobile, and from there to put twrp?
Another question
When I dedicate myself to flash oreo through LGUP I realized that there was everything about rom.
Is it possible to install twrp using LGUP repackaging the kdz with a custom recovery ??
I'm sorry if the section is wrong. XDA will not let me put on roms
Most likely not, it verifies integrity on boot and it would probably fail requiring another flash with verified OS

Categories

Resources