Root with unlocked bootloader on miui 10 - Xiaomi Poco F1 Questions & Answers

Guys I need root but don't want to lose data and internal storage so my question is this
With unlocked bootloader if I flash twrp after wiping just cache and dalvik and then immediately flash magisk or maybe reboot to recovery and flash magisk, will my data remain as it is and will I get root.
I understood I will lose twrp on first boot.

sanjay0501 said:
Guys I need root but don't want to lose data and internal storage so my question is this
With unlocked bootloader if I flash twrp after wiping just cache and dalvik and then immediately flash magisk or maybe reboot to recovery and flash magisk, will my data remain as it is and will I get root.
I understood I will lose twrp on first boot.
Click to expand...
Click to collapse
No data will not be deleted but you will need to flash lazy flasher after that in order to boot properly. But i would suggest wait for a stable twrp recovery or official twrp ?

CluelessO.o said:
No data will not be deleted but you will need to flash lazy flasher after that in order to boot properly. But i would suggest wait for a stable twrp recovery or official twrp
Click to expand...
Click to collapse
Thanks. Don't want to risk data being erased so will wait

sanjay0501 said:
Thanks. Don't want to risk data being erased so will wait
Click to expand...
Click to collapse
Magisk or twrp doesn't delete your data ? since you have already unlocked your bootloader .

CluelessO.o said:
Magisk or twrp doesn't delete your data since you have already unlocked your bootloader .
Click to expand...
Click to collapse
Agreed, but to the best of my knowledge we have to flash FDE and then format everything fir twrp to stick. Not sure about root though, that's why asking. Prepared to lose twrp if I can retain root without losing data.

First install twrp and format everything.. then reboot
It wl encrypt data automatically. Again flash twrp and then format then install force encryption zip and then install magisk. BOOM!
You get ua recovery n root too.

Related

best non-root backup before unlocking bootloader?

Hi,
I can finally unlock the bootloader - which AFAIK wipes user data. Now, since I've used the phone heavily over the waiting period, there's a lot to backup and reintegrate later on.
What's the quickest way to do so?
MTP-copy all of Internal Storage to PC -> unlock -> copy back?
(I am experienced with unlocking, rooting, flashing Roms and recoveries, but haven't had a non-rooted phone for about 8 years, so I am a bit out of the loop on non-root backup procedures)
TIA!
Using adb pull, you could probably get your internal storage.
Iirc the canonical dirs are:
/storage/emulated/0
/storage/emulated/legacy​Helium should be sufficient for apps.
For me unlocking didn't wipe data.
Only wipe was when I installed developer rom to be able to unlock.
So the process should be unlock, flash twrp and then flash magisk to maintain twrp and avoid the bootloop. Then you can backup with root and clean flash if you want.
Twrp can't decrypt data but it's not needed to flash magisk. Anyway you can flash orangefox (latest version, beta 6) from twrp and it can decrypt data to access it from recovery.
omnomnomkimiiee said:
Using adb pull, you could probably get your internal storage.
Iirc the canonical dirs are:
/storage/emulated/0
/storage/emulated/legacy​Helium should be sufficient for apps.
Click to expand...
Click to collapse
Thanks.
Any advantage of using adb vs. just mounting the device via mtp? Last I've used adb for file transfer it was slower than even mtp...
jes0411 said:
For me unlocking didn't wipe data.
Only wipe was when I installed developer rom to be able to unlock.
Click to expand...
Click to collapse
do you mean "to be able to root"? because otherwise I don't follow...
So the process should be unlock, flash twrp and then flash magisk to maintain twrp and avoid the bootloop. Then you can backup with root and clean flash if you want.
Twrp can't decrypt data but it's not needed to flash magisk. Anyway you can flash orangefox (latest version, beta 6) from twrp and it can decrypt data to access it from recovery.
Click to expand...
Click to collapse
Thanks. This is gonna sound very noob, but since I'm new to MIUI - is data already encrypted in stock MIUI? Otherwise I'll need orangefox only for switching between future custom ROMs, right?
santoo said:
do you mean "to be able to root"? because otherwise I don't follow...
Thanks. This is gonna sound very noob, but since I'm new to MIUI - is data already encrypted in stock MIUI? Otherwise I'll need orangefox only for switching between future custom ROMs, right?
Click to expand...
Click to collapse
I mean to unlock because I can't bind my mi account in stable and had to install developer rom to bind account.
Yes data is already encrypted on stock rom. If you need to access data partition in recovery you need orangefox. But it's not needed to flash magisk.
To use custom roms you don't need orangefox because you can format data from twrp and then flash the rom. I started using orangefox since I tried miui 10 oreo beta because I was unable to avoid encryption on that rom.
jes0411 said:
I mean to unlock because I can't bind my mi account in stable and had to install developer rom to bind account.
Yes data is already encrypted on stock rom. If you need to access data partition in recovery you need orangefox. But it's not needed to flash magisk.
To use custom roms you don't need orangefox because you can format data from twrp and then flash the rom. I started using orangefox since I tried miui 10 oreo beta because I was unable to avoid encryption on that rom.
Click to expand...
Click to collapse
Thanks for the explanations!
I plan on just unlocking bootloader, enabling cam2 and installing a current gcam today - I'll wait with flashing until miui10 stable is released in the next week or so, so I can do a "fair" comparison between Lineage and Miui (and possibly some others)
jes0411 said:
For me unlocking didn't wipe data.
Click to expand...
Click to collapse
A quick heads-up, just in case anyone stumbles upon this thread:
As of MIUI 9.5.17 global stable, using official MIUI unlock 3.3.525.23, unlocking the bootloader DOES WIPE user data & factory-resets the phone (to be more precise - it wipes the complete internal storage).
SD is, as expected, left alone.
santoo said:
A quick heads-up, just in case anyone stumbles upon this thread:
As of MIUI 9.5.17 global stable, using official MIUI unlock 3.3.525.23, unlocking the bootloader DOES WIPE user data & factory-resets the phone (to be more precise - it wipes the complete internal storage).
SD is, as expected, left alone.
Click to expand...
Click to collapse
I only shared my experience.
My data was wiped when I installed developer rom to bind account but when I unlocked bootloader after 360h data remained intact. When I flashed twrp phone didn't boot but I solved it flashing magisk.
jes0411 said:
I only shared my experience.
Click to expand...
Click to collapse
Yes, and I thank you for it.
I was not accusing you of anything - things may well have changed with different versions of MIUI or different versions of the unlock tool, or between chinese/global versions. Just a warning for others that, at least with the versions I posted, having a backup is reaaaaally nice :good:

How to ota update rooted phone?

I rooted my phone and don't know how to install ota updates after rooting phone without any data loss...
Can anyone guide me eith full steps?
Ikaushal said:
I rooted my phone and don't know how to install ota updates after rooting phone without any data loss...
Can anyone guide me eith full steps?
Click to expand...
Click to collapse
xiaomi provides ota to all roms just unroot it for a while and u will also loose twrp
Do I need to go back to the default kernel to get the ota ?
Ikaushal said:
I rooted my phone and don't know how to install ota updates after rooting phone without any data loss...
Can anyone guide me eith full steps?
Click to expand...
Click to collapse
You can install ota after being rooted. There is a custom recovery ORANGEFOX RECOVERY which offers ota. You have to install miui from it and after that you can install ota from it.
You can try flashfire. Download it through google play. You won't lose your data nor root. You can google the steps or go to youtube for more info.
If you want to update to latest stable pie,follow these steps:
1. DOWNLOAD THE GLOBAL STABLE 10.1.3
2. disable all MAGISK MODULES
3. reboot to recovery and flash the latest GLOBAL STABLE PIE ROM
4. wipe cache and dalvik
5. FLASH FED 17.3.zip
6. reboot
[email protected] said:
xiaomi provides ota to all roms just unroot it for a while and u will also loose twrp
Click to expand...
Click to collapse
I unrooted the phone but still not able to update it..
SamyakJ said:
You can install ota after being rooted. There is a custom recovery ORANGEFOX RECOVERY which offers ota. You have to install miui from it and after that you can install ota from it.
Click to expand...
Click to collapse
Will give it a try
mecoromeo said:
You can try flashfire. Download it through google play. You won't lose your data nor root. You can google the steps or go to youtube for more info.
If you want to update to latest stable pie,follow these steps:
1. DOWNLOAD THE GLOBAL STABLE 10.1.3
2. disable all MAGISK MODULES
3. reboot to recovery and flash the latest GLOBAL STABLE PIE ROM
4. wipe cache and dalvik
5. FLASH FED 17.3.zip
6. reboot
Click to expand...
Click to collapse
Flashfire has been discontinued
Ikaushal said:
I rooted my phone and don't know how to install ota updates after rooting phone without any data loss...
Can anyone guide me eith full steps?
Click to expand...
Click to collapse
wihout rebooting the device:
install OTA zip from TWRP
restore recovery image (TWRP),
re-install magisk
wipe dalvik/cache
voilà, that's all it needs. I've done it many times running llineage16.
SamyakJ said:
You can install ota after being rooted. There is a custom recovery ORANGEFOX RECOVERY which offers ota. You have to install miui from it and after that you can install ota from it.
Click to expand...
Click to collapse
Does ORANGE FOX works with updating OTA if the /system partion is modified? Getting error 7 in TWRP with decryption. Help please!
I use Magisk :
1) Uninstall Magisk to restore stock boot image
2) Flash the update through TWRP with encryption support
3) Flash Magisk again
nilg0lap said:
Does ORANGE FOX works with updating OTA if the /system partion is modified? Getting error 7 in TWRP with decryption. Help please!
Click to expand...
Click to collapse
See you have to flash ORANGEFOX RECOVERY using any other TWRP recovery. After you have flashed the recovery you have been asked for password just cancel it. Now go to wipe clear data and reboot to recovery(this will decrypt the device). After that you have to copy the desired miui rom and flash it(copy it from your computer or use sd card or usb to flash). After that flash magisk and you are good to go.

About keeping OTA and TWRP

Just unlocked the bootloader , latest MIUI global beta. Here are the questions which needs valid answers
1. Need to flash TWRP and root. Which twrp image will not need any encryption disabler flashed every time I flash a rom? please give the link of the most stable and recent version of it.
2. I will flash magisk. How will it behave with OTA on miui global beta?
3. Will I receive OTA update? If I do, how to flash it properly? I dont want to roll back to stock recovery just to flash an ota and then again flash twrp. And I dont want to flash full rom either.
4. If I am able to flash OTA through twrp, do I have to wipe anything? Im asking if I will loose any data or not.
5. As far as I know, I need to unroot everytime before I flash OTA? what does that mean actually? If im rooted, will I not be notified of the OTA update through the updater app? Or do I have to manually downlaod the ota from the web?
6. And one more thing. I dont want the clock on the top left in any screen, lock or home. Which mod will remove the clock and add regular notification icon? (working with miui beta ofcourse)
Sohan_Saymum said:
Just unlocked the bootloader , latest MIUI global beta. Here are the questions which needs valid answers
1. Need to flash TWRP and root. Which twrp image will not need any encryption disabler flashed every time I flash a rom? please give the link of the most stable and recent version of it.
2. I will flash magisk. How will it behave with OTA on miui global beta?
3. Will I receive OTA update? If I do, how to flash it properly? I dont want to roll back to stock recovery just to flash an ota and then again flash twrp. And I dont want to flash full rom either.
4. If I am able to flash OTA through twrp, do I have to wipe anything? Im asking if I will loose any data or not.
5. As far as I know, I need to unroot everytime before I flash OTA? what does that mean actually? If im rooted, will I not be notified of the OTA update through the updater app? Or do I have to manually downlaod the ota from the web?
6. And one more thing. I dont want the clock on the top left in any screen, lock or home. Which mod will remove the clock and add regular notification icon? (working with miui beta ofcourse)
Click to expand...
Click to collapse
I can answer your questions partially.
2 & 3. Flashing TWRP and Magisk will result in OTA zip not being downloaded. Instead, the full ROM will be downloaded automatically.
4. AFAIK, you can't flash the OTA zip through TWRP.
5. If you want the OTA, you will have to be completely stock, no modifications to system files. Only then the OTA zip will download and only then you can flash it. You will ofcourse be notified of the availability of the OTA zip even if you are rooted but it will not download because it does a check of your system before downloading. Only the full zip will download if you are rooted.
It is much easier (atleast for me) to accept the full download and flash it through TWRP and then boot back to TWRP (to preserve it and to avoid overwriting by stock recovery) before booting into system. If you only wipe Dalvik and cache, there is no need to reflash TWRP and Magisk. Ofcourse if TWRP gets overwritten somehow, then flashing it and Magisk again is not a big thing.
tnsmani said:
I can answer your questions partially.
2 & 3. Flashing TWRP and Magisk will result in OTA zip not being downloaded. Instead, the full ROM will be downloaded automatically.
4. AFAIK, you can't flash the OTA zip through TWRP.
5. If you want the OTA, you will have to be completely stock, no modifications to system files. Only then the OTA zip will download and only then you can flash it. You will ofcourse be notified of the availability of the OTA zip even if you are rooted but it will not download because it does a check of your system before downloading. Only the full zip will download if you are rooted.
It is much easier (atleast for me) to accept the full download and flash it through TWRP and then boot back to TWRP (to preserve it and to avoid overwriting by stock recovery) before booting into system. If you only wipe Dalvik and cache, there is no need to reflash TWRP and Magisk. Ofcourse if TWRP gets overwritten somehow, then flashing it and Magisk again is not a big thing.
Click to expand...
Click to collapse
Thanx a bunch. Now I am ready to flash, but not sure which recovery should I use? and what about that force encryption disabler.zip thing? which recovery wont need that thing? its just too complex to flash various things everytime I update miui rom
Sohan_Saymum said:
Thanx a bunch. Now I am ready to flash, but not sure which recovery should I use? and what about that force encryption disabler.zip thing? which recovery wont need that thing? its just too complex to flash various things everytime I update miui rom
Click to expand...
Click to collapse
OrangeFox Recovery has a feature to disable force encryption without flashing the DFE.zip everytime you flash a custom rom.
And it supports MIUI OTA Updates.
Darklouis said:
OrangeFox Recovery has a feature to disable force encryption without flashing the DFE.zip everytime you flash a custom rom.
And it supports MIUI OTA Updates.
Click to expand...
Click to collapse
can i said like this.
unlock bl and install magisk will not lose any feature of MIUI.
how about custom rom? what feature i need to abandon from stock rom?
locolyric said:
can i said like this.
unlock bl and install magisk will not lose any feature of MIUI.
how about custom rom? what feature i need to abandon from stock rom?
Click to expand...
Click to collapse
unlock bl and install magisk will not lose any feature of MIUI.
Click to expand...
Click to collapse
You will not lose any feature
how about custom rom? what feature i need to abandon from stock rom?
Click to expand...
Click to collapse
Some custom roms are AOSP based so all MIUI bloatware or features are not available in AOSP based custom roms.
Darklouis said:
You will not lose any feature
Some custom roms are AOSP based so all MIUI bloatware or features are not available in AOSP based custom roms.
Click to expand...
Click to collapse
from my last experience unlock bootloader will wipe all f my data. is that same on poco f1?
locolyric said:
from my last experience unlock bootloader will wipe all f my data. is that same on poco f1?
Click to expand...
Click to collapse
Ohh yeah.. Unlocking Bootloader will wipe all data (internal partition and data partition) except on the sdcard partition

Stuck on poco by xiaomi boot screen

Im stuck on poco boot screen and after few seconds it reboots to fastboot.
I did a twrp backup (system, vendor, data and boot) when everything was working but now after i try to restore the twrp backup, it still doesnt fix the problem.
before this, i flashed a new PE build and that had a boot loop for some reason.
wtf?
How does my twrp backup restore doesnt fix it ?
Do i have to miflash a fastboot rom ? is it the only fix for me now ?
You may find your solution here : https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-decryption-t3853004/page42
You can also install latest ROM and restore data only.
fmcheetah said:
You may find your solution here : https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-decryption-t3853004/page42
You can also install latest ROM and restore data only.
Click to expand...
Click to collapse
i dont have a firmware zip in my storage and i cant push it through adb because i didnt have debugging enabled. So i cant cleanflash because i dont have the firmware zip. Looks like i will need to use the mifash method.
flash the original Vendor image!
if you have flashed PE over MIUI10.2.x
, this mean you have used MODIFIED VENDOR IMAGE
poco supports Treble!
you cannot flash PE/ or any other custom rom over modified vendor image
take the latest vendor image from mirror.akhilnarang.me/MIUI/beryllium/
and flash it view twrp
and reboot
you wil lbe fine
i fixed the problem. I put firmware - vendor zip in sd card and flashed it through sd card. All good now. Thanks for trying to help my dumb ass.
i guess there might be some magisk module thats causing the bootloop after i flash a new build of rom . Maybe.
If thats the case. There's a flashable zip file that lets you disable a magisk module via TWRP.. ehehehe.. happened to me too. I flash gl tools via magisk systemless then it got stuck on pocofone f1 loading screen.. so i flashed that magisk module disabler.. hit some commands via TWRP TERMinal emu.. then it boot right away..
KabalLV said:
Im stuck on poco boot screen and after few seconds it reboots to fastboot.
I did a twrp backup (system, vendor, data and boot) when everything was working but now after i try to restore the twrp backup, it still doesnt fix the problem.
before this, i flashed a new PE build and that had a boot loop for some reason.
wtf?
Click to expand...
Click to collapse
Always uninstall Magisk before flashing new update if you are on official twrp cuz it doesn't support ota, update then reinstall it. If you have did so wipe encrypted internal storage , wait a bit it will boot .
aikhhk8 said:
Always uninstall Magisk before flashing new update if you are on official twrp cuz it doesn't support ota, update then reinstall it. If you have did so wipe encrypted internal storage , wait a bit it will boot .
Click to expand...
Click to collapse
Thanks. Didn't know about this.
Tell someone to call you, it was glitchy for me for the first 2-3 mins after the call but later works fine.

Problem install custom rom via TWRP

My device is Mi 10 5G (umi). I have unlocked bootloader and install rom Xiaomi.eu 20.3.28.
Today, I go into TWRP, do wipe Art cache/Davilk, Data, System, Cache then format data.
Then I reboot to install another room. But now it got stuck there.
Sometimes it says System_root file is read only and cannot mounted. When I could manage to mount system, I could not install any rom. It fail after system partition unpacking. It says that /system can not mounted and keep bootloader to stuck with TWRP. I do not know how to deal with it.
Please help me!
moonsalini said:
My device is Mi 10 5G (umi). I have unlocked bootloader and install rom Xiaomi.eu 20.3.28.
Today, I go into TWRP, do wipe Art cache/Davilk, Data, System, Cache then format data.
Then I reboot to install another room. But now it got stuck there.
Sometimes it says System_root file is read only and cannot mounted. When I could manage to mount system, I could not install any rom. It fail after system partition unpacking. It says that /system can not mounted and keep bootloader to stuck with TWRP. I do not know how to deal with it.
Please help me!
Click to expand...
Click to collapse
reflash recovery in fastboot, reboot recovery, format data only, reboot recovery again copy the rom and install it
stefano alegnini said:
reflash recovery in fastboot, reboot recovery, format data only, reboot recovery again copy the rom and install it
Click to expand...
Click to collapse
I have just figure out that my problem come from installing mi-globe 20.4.30 rom. I will try your method to see if it could help, though I have reflashed recovery and do format/wipe for so many times without hope.
moonsalini said:
I have just figure out that my problem come from installing mi-globe 20.4.30 rom. I will try your method to see if it could help, though I have reflashed recovery and do format/wipe for so many times without hope.
Click to expand...
Click to collapse
I came from MI Globe without success ( system read only) in recovery.
You must renew the internal partition structure.
Install with Mi Flash the enterire Europe fastboot rom EEA
https://c.mi.com/oc/miuidownload/detail?guide=2
stefano alegnini said:
reflash recovery in fastboot, reboot recovery, format data only, reboot recovery again copy the rom and install it
Click to expand...
Click to collapse
Dear bro, it worked like a charm. Thank you so much for your help.
stefano alegnini said:
I came from MI Globe without success ( system read only) in recovery.
You must renew the internal partition structure.
Install with Mi Flash the enterire Europe fastboot rom EEA
https://c.mi.com/oc/miuidownload/detail?guide=2
Click to expand...
Click to collapse
I mean Mi-Globe rom, not global rom. You could find them here. Their rom is based on Xiaomi.eu rom.
moonsalini said:
I mean Mi-Globe rom, not global rom. You could find them here. Their rom is based on Xiaomi.eu rom.
Click to expand...
Click to collapse
Yes I know Mi globe, but this rom corrupted my recovery many times, now I'm on Xiaomi Eu stable without problems
stefano alegnini said:
Yes I know Mi globe, but this rom corrupted my recovery many times, now I'm on Xiaomi Eu stable without problems
Click to expand...
Click to collapse
Yes, that is exactly the problem. Now I am using Xiaomi.ei rom too. Thank you very much!

Categories

Resources