need guidance - Xiaomi Mi A2 Lite Questions & Answers

Is there any way to install twrp recovery and keep receiving OTAs on stock Pie ROM?

saedkebbeh said:
Is there any way to install twrp recovery and keep receiving OTAs on stock Pie ROM?
Click to expand...
Click to collapse
No.

marstonpear said:
No.
Click to expand...
Click to collapse
How to install OTAs after installing twrp?

You need to flash stock boot.img, as TWRP gets installed to the boot.img on your phone. But you need to do it on the right partition otherwise you won't get the updates. Also if you've tampered with system or any other partition of the device, you need to remove them. To get rid of all the steps, just flash the stock rom via MiFlash (you'll lose your data so take a backup).

marstonpear said:
You need to flash stock boot.img, as TWRP gets installed to the boot.img on your phone. But you need to do it on the right partition otherwise you won't get the updates. Also if you've tampered with system or any other partition of the device, you need to remove them. To get rid of all the steps, just flash the stock rom via MiFlash (you'll lose your data so take a backup).
Click to expand...
Click to collapse
You don't neccesary lose your data with MiFlash, just choose the option without relock/wipe.

thorin0815 said:
You don't neccesary lose your data with MiFlash, just choose the option without relock/wipe.
Click to expand...
Click to collapse
Don't forget to flash the same version!

marstonpear said:
Don't forget to flash the same version!
Click to expand...
Click to collapse
I need to know where to flash the twrp and where to flash stock boot.img when installing OTA
Yesterday I flashed patched boot img using the command: fastboot flash boot patched boot img, without choosing a partition

I made a guide for doing OTA with TWRP and Magisk. You should be able to follow it and just ignore the Magisk bits. The start covers restoring the boot partition.
https://forum.xda-developers.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863/
Note that I normally get a boot loop after installing TWRP and reinstall magisk as a fix. I'll assume you have your own way to install TWRP.

Related

[Q] I can't update via OTA

Hello everyone
I want to update mi htc one via OTA but when the phone reboots enter to teamwin recovery i want to know how to updateit my firmware version is 1.12.599.20
Thank you and sorry for my bad english​
daga2448 said:
when the phone reboots enter to teamwin recovery​
Click to expand...
Click to collapse
Enough said. You need stock recovery to do OTA.
Try to locate OTA file and flash it manually
BerndM14 said:
Enough said. You need stock recovery to do OTA.
Click to expand...
Click to collapse
how do i install stock recovery without lossing root??
daga2448 said:
how do i install stock recovery without lossing root??
Click to expand...
Click to collapse
You won't lose root if you have stock recovery.
Do you even have a stock recovery? If so, just place it inside the adb folder, open the command prompt change directory to adb folder, boot into bootloader mode and type fastboot flash recovery name_of_recovery.img The same way you probably got custom recovery onto the device.
Won't lose root because of stock recovery. You'll lose root because of the OTA though, but even then it's easy enough to regain root. You can then either flash back the custom recovery OR boot the custom recovery. I'd suggesting booting the custom recovery that way you can make a nandroid backup of the updated system before you flash anything again.
fastboot boot custom_recovery_name.img If you're using TWRP then it probably won't make a backup of the stock recovery, CWM/Philz will work better for the nandroid. After you made a backup(If you choose to make a backup, again strongly suggested) then you can flash a custom recovery again.
Was it really necessary to post in a massive font?

Update from 3.2.7 to 4.1

Hey guys. I am still on marshmallow on my op3. I am rooted and have twrp recovery. My question is what firmware/modem do I need to flash before I update to latest Nougat update and if my steps below are correct.
I would prefer not to do a clean install.
My steps would be:
Download full rom
Flash any firmware if required - this is what I need to know
Flash Magisk as I need root
Profit?
cd69 said:
Hey guys. I am still on marshmallow on my op3. I am rooted and have twrp recovery. My question is what firmware/modem do I need to flash before I update to latest Nougat update and if my steps below are correct.
I would prefer not to do a clean install.
My steps would be:
Download full rom
Flash any firmware if required - this is what I need to know
Flash Magisk as I need root
Profit?
Click to expand...
Click to collapse
this is stock rom, you don't need to flash any firmware...
if you're coming from MM, i would recommend sideloading the rom, wipe everything, then go back to stock recovery then sideload then before 1st boot fastboot TWRP again, then reboot to TWRP and flash Magisk...Profit.
if you want to flash from TWRP without going through this (which i don't recommend), make sure in TWRP to format data as f2fs, wipe everything then flash the rom, and then form TWRP flash TWRP again, then reboot to recovery (not system), then flash Magisk.
theduke7 said:
this is stock rom, you don't need to flash any firmware...
if you're coming from MM, i would recommend sideloading the rom, wipe everything, then go back to stock recovery then sideload then before 1st boot fastboot TWRP again, then reboot to TWRP and flash Magisk...Profit.
if you want to flash from TWRP without going through this (which i don't recommend), make sure in TWRP to format data as f2fs, wipe everything then flash the rom, and then form TWRP flash TWRP again, then reboot to recovery (not system), then flash Magisk.
Click to expand...
Click to collapse
Thanks a ton for replying. Another question for you. I get the OTA notification. I could just let that run and flash twrp after the installation right.
cd69 said:
Thanks a ton for replying. Another question for you. I get the OTA notification. I could just let that run and flash twrp after the installation right.
Click to expand...
Click to collapse
if you're already rooted it wont install..and you can't flash the small ota file from TWRP, you have to flash the Full rom (1.4 GB)...
how you download is up to you, but why download from the update when there's many links available around !
Thanks for all the help. I flashed the new update successfully.
cd69 said:
Thanks for all the help. I flashed the new update successfully.
Click to expand...
Click to collapse
what steps did you follow ? did you have to wipe internal memory fully ?
netcitizen said:
what steps did you follow ? did you have to wipe internal memory fully ?
Click to expand...
Click to collapse
I just flashed the full Rom with Magisk. Wiped dalvick cache and nothing else. So far so goos.
cd69 said:
I just flashed the full Rom with Magisk. Wiped dalvick cache and nothing else. So far so goos.
Click to expand...
Click to collapse
Oh ok. I just flashed full rom via twrp after wiping cache and Dalvik cache.it updated fine. I wasn't sure of magisk.

Unable to encrypt after root

Hi everyone.
I had a issue and i really want help
I had unlock the OEM,and after installing the twrp and format data (to remove the forced encrypt), i had flash the Disable_Dm-Verity_ForceEncrypt zip file.
Okay, after that i have restarted the device and configure as my away to use, after that, booted on recovery again and flashed the magisk.
But i wanna encrypt my device, and when i go to configs->security and encrypt area, says that my device its not encrypted. Okay, i followed the steps and when i gonna try to encrypt the device, the process start and... some seconds after, the phone just restart and nothing has done.
The onlys changes that i have made on system is: root and flashed a splash.img(without that stupid warning of unlocked bootloader)
I really want to encrypt my device, so, if i get stolen, the thief wont get my user data.
Can anyone help me?
Flash the stock rom and and don't flash the encryption disabler next time. You don't need to install TWRP to flash Magisk either, you can just boot it and then flash Magisk. Also you don't even need TWRP, you can just follow the guide in the forum to install Magisk by booting the magisk patched boot.img for your version of the stock ROM and then install Magisk manually via Magisk Manager.
TL;DR : Flash stock ROM and do the same things except flashing dm-verity-disabler, you don't need that for Magisk or TWRP.
marstonpear said:
Flash the stock rom and and don't flash the encryption disabler next time. You don't need to install TWRP to flash Magisk either, you can just boot it and then flash Magisk. Also you don't even need TWRP, you can just follow the guide in the forum to install Magisk by booting the magisk patched boot.img for your version of the stock ROM and then install Magisk manually via Magisk Manager.
TL;DR : Flash stock ROM and do the same things except flashing dm-verity-disabler, you don't need that for Magisk or TWRP.
Click to expand...
Click to collapse
Thanks sir, i will try!
marstonpear said:
Flash the stock rom and and don't flash the encryption disabler next time. You don't need to install TWRP to flash Magisk either, you can just boot it and then flash Magisk. Also you don't even need TWRP, you can just follow the guide in the forum to install Magisk by booting the magisk patched boot.img for your version of the stock ROM and then install Magisk manually via Magisk Manager.
TL;DR : Flash stock ROM and do the same things except flashing dm-verity-disabler, you don't need that for Magisk or TWRP.
Click to expand...
Click to collapse
Sir, i really need twrp now, its there any way i can enable encrypt after rooting the device? (to sure that, if gets stolen, the data need to be wipped out or the password must be given on twrp)
Same issue, i tried to encrypt on security menu,reboot and nothing was done.
@edit
Better, without TWRP, i can flash other zips via magisk/stock recovery?
mrkeitsuke said:
Sir, i really need twrp now, its there any way i can enable encrypt after rooting the device? (to sure that, if gets stolen, the data need to be wipped out or the password must be given on twrp)
Same issue, i tried to encrypt on security menu,reboot and nothing was done.
@edit
Better, without TWRP, i can flash other zips via magisk/stock recovery?
Click to expand...
Click to collapse
I'm not sure what you're trying to do here, do you want to have TWRP + stock encryption?
If so you can just boot TWRP and flash the TWRP installer package (.zip) inside TWRP to do that. And you don't need to change anything, currently I have TWRP installed and encryption enabled on my Stock ROM.
But if you're trying to get TWRP's own encryption, sadly that doesn't work.
You can also use TWRP without flashing/installing it, just go to the directory TWRP is stored in, open a command line, connect your phone and boot it with this command :
Code:
fastboot boot twrp.img
then flash whatever you'd like.
DO NOT lock your bootloader after you flash something on TWRP, this will most probably brick the device.
marstonpear said:
I'm not sure what you're trying to do here, do you want to have TWRP + stock encryption?
If so you can just boot TWRP and flash the TWRP installer package (.zip) inside TWRP to do that. And you don't need to change anything, currently I have TWRP installed and encryption enabled on my Stock ROM.
But if you're trying to get TWRP's own encryption, sadly that doesn't work.
You can also use TWRP without flashing/installing it, just go to the directory TWRP is stored in, open a command line, connect your phone and boot it with this command :
Code:
fastboot boot twrp.img
then flash whatever you'd like.
DO NOT lock your bootloader after you flash something on TWRP, this will most probably brick the device.
Click to expand...
Click to collapse
I want to stick with the stock rom rooted, with the twrp installed and the user data encrypted
So i can flash things through TWRP even i have encrypt enabled?
@edit
dont worry about bootloader, i will keep unlocked
It's perfectly fine to have TWRP and/or Magisk and encryption using stock ROM.
Flash stock ROM (erase user data)
Install TWRP
install Magisk
Don't flash the encryption Disabler. As its name implies, it disables the automatic encryption of the userdata partition.
a1291762 said:
It's perfectly fine to have TWRP and/or Magisk and encryption using stock ROM.
Flash stock ROM (erase user data)
Install TWRP
install Magisk
Don't flash the encryption Disabler. As its name implies, it disables the automatic encryption of the userdata partition.
Click to expand...
Click to collapse
:highfive: i had done this and... i think its working!!! :crying::crying::crying:
(crying for emotion, almost thirty factory resets to get an good result :crying::crying::crying
Anyway, if anything bad occurs, i will update here, thanks a1291762 and marstonpear

Question How can reinstall stock ROM over TWRP recovery?

Hello.
How can I please reinstall the stock rom via TWRP recovery without data loss, or how can I reinstall it via the Miflash tool?
I have a bootloop and would like to try reinstalling rom. Thanks
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
TormentedHeart said:
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
Click to expand...
Click to collapse
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Greenspoof said:
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Click to expand...
Click to collapse
It's not a stupid question.
The update was displayed on my phone, downloaded, installed, restarted and booted into the system, everything is fine.
Then I had to download the update manually from the Internet and extract the boot.img. and I then patched it via Magisk and flashed it back to the mobile via ADB, and then a bootloop occurred.
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
basically to root its just best to flash the official magisk zip via twrp. it patches the boot img during the process. and u wont get bootloop

Question TWRP, Full OOS etc. Stuck without OS... please HELP

So I wanted to switch from OOS 11 to 13.
I was unl;ocked, rooted with magisk installed.
Updated to c47 and flashed magisk. all good.
Then flashed TWRP and tried flashing the full OOS c64 I downloaded.
The flashing failed and now I have no OS since I wiped before flashing as recommended.
At the past with previous devices I just flashed TWRP, flashed the ROM, reflashed TWRP and was done with it.
How can I recover my phone now? All of the data is backed up (contacts, apps, photos) so it's not a big deal if I lose all my data.
Currently I'm at TWRP
PLEASE HELP ME
Also when trying to activate sideload, TWRP is stuck on 'starting ADB sideload feature' and nothing happens, adb devices command doesn't recognize the phone and I have a red warning 'unable to decrypt FBE device'
Just use MSM TOOL and never unlock bootloader.
OP9Pro - Repository of MSM Unbrick Tools (TMO, EU, GLO, IN)
By using these tools, you accept full responsibility for your actions. Your warranty is void should you run any of these utilities without OnePlus support present. I am not responsible for bricks, fires, nuclear war, etc. If you modified any...
forum.xda-developers.com
Not sure but I think the problem was installing twrp, as far as I know it does not support installation, just start without installing like, (Fastboot boot twrp.img)
Why didn't you follow all the updates without inventing fashion?
Just download the complete package of the update and does the manual update, does not restart the phone, go in magisk, click install and mark the third option, which is to install after full Ota.
N1ldo said:
Not sure but I think the problem was installing twrp, as far as I know it does not support installation, just start without installing like, (Fastboot boot twrp.img)
Why didn't you follow all the updates without inventing fashion?
Just download the complete package of the update and does the manual update, does not restart the phone, go in magisk, click install and mark the third option, which is to install after full Ota.
Click to expand...
Click to collapse
I don't think TWRP even support flashing OOS.
@N1ldo cause I wanted Android 13 and the OTA failed to update from C47 to C61.
Also I thought that my past experience with flashing the Oneplus 6 will still be relevant, which obviously isn't apparently...
Gonna try to follow the MSM guide.
But for the future, assuming I will succeed in restoring via MSM, what should I do in order to gain root?
1. MSM
2. re-unlock the bootloaded
3. Flash magisk via fastboot
That's it? did I get this right?
Alonzzo2 said:
@N1ldo cause I wanted Android 13 and the OTA failed to update from C47 to C61.
Also I thought that my past experience with flashing the Oneplus 6 will still be relevant, which obviously isn't apparently...
Gonna try to follow the MSM guide.
But for the future, assuming I will succeed in restoring via MSM, what should I do in order to gain root?
1. MSM
2. re-unlock the bootloaded
3. Flash magisk via fastboot
That's it? did I get this right?
Click to expand...
Click to collapse
nope, you boot twrp-3.7.0-12.1 via fastboot (fastboot boot twrp.img) and there you can install magisk. if normal installation doesn't work, try using sideload. if you plan on flashing the twrp installer zip, do it before flashing magisk as it patches your current boot image.
Guest902379028 said:
I don't think TWRP even support flashing OOS.
Click to expand...
Click to collapse
worked fine for me
DirtryElectroOP3 said:
nope, you boot twrp-3.7.0-12.1 via fastboot (fastboot boot twrp.img) and there you can install magisk. if normal installation doesn't work, try using sideload. if you plan on flashing the twrp installer zip, do it before flashing magisk as it patches your current boot image.
Click to expand...
Click to collapse
great. and I can do it regardless of the oos I'm running right? I wouldn't ask that question under normal circumstances but after today, better safe than sorry
Alonzzo2 said:
great. and I can do it regardless of the oos I'm running right? I wouldn't ask that question under normal circumstances but after today, better safe than sorry
Click to expand...
Click to collapse
should work as I described. if you want to be 101% safe, just boot the twrp, but if I remember correctly, the installer should work on oos 13. if you want, you can extract the payload.bin of your current oos so you have the stock boot.img and vendor_boot.img in case anything goes wrong. you can find the exact description here.
Thanks, And one last question, if I'll unlock the bootloader now that I've installed all of the updates up to android 13, it will erase all the data but not the updates, right?
Alonzzo2 said:
Thanks, And one last question, if I'll unlock the bootloader now that I've installed all of the updates up to android 13, it will erase all the data but not the updates, right?
Click to expand...
Click to collapse
Never mind, it works, after the updates I unlocked the bootloader, patched the boot image, booted from it and installed magisk. I now have root.
Thanks all for helping me out!

Categories

Resources