custom rom update - Xiaomi Mi A2 Lite Guides, News, & Discussion

boot twrp
wipe system and dalvik
change slot
wipe system and dalvik
reboot recovery
flash rom
flash twrp installer
change slot
reboot recovery
flash gapps magisk etc.
reboot system
this method blongs to TogoFire

Related

[Q] Bootloader broken?

Hello guys,
after attempting to install a custom rom in my S5670B I got stuck in CWM every single time I try to reboot the phone. I doesn't matters what I try, it will always boot into recovery.
So, is there anyway to make it boot "correctly"?
Steps to install the custom rom:
1. boot into recovery
2. wipe data/cache
3. wipe dalvik
4. format /system
5. install from zip
6. wipe dalvik
rmartignoni said:
Hello guys,
after attempting to install a custom rom in my S5670B I got stuck in CWM every single time I try to reboot the phone. I doesn't matters what I try, it will always boot into recovery.
So, is there anyway to make it boot "correctly"?
Steps to install the custom rom:
1. boot into recovery
2. wipe data/cache
3. wipe dalvik
4. format /system
5. install from zip
6. wipe dalvik
Click to expand...
Click to collapse
just you need below steps test it reply here again.
1. boot into recovery
2. wipe data/cache
3. wipe dalvik
4. install from zip
5 wipe data/cache
6. wipe dalvik
rmartignoni said:
Hello guys,
after attempting to install a custom rom in my S5670B I got stuck in CWM every single time I try to reboot the phone. I doesn't matters what I try, it will always boot into recovery.
So, is there anyway to make it boot "correctly"?
Steps to install the custom rom:
1. boot into recovery
2. wipe data/cache
3. wipe dalvik
4. format /system
5. install from zip
6. wipe dalvik
Click to expand...
Click to collapse
If you are using CWM6 there is known bug that causes this. Just revert to CWM5.
If not just wipe everything (EXECPT SDCARD) and flash again
If that is no go then flash stock rom via odin, flash CWM5 and then flash custom rom.

wiping system on TWRP

hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Dr.A said:
hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Click to expand...
Click to collapse
You don't need to flash twrp.zip if you're going to flash custom rom i think... Only the flashing of official oos will restore stock recovery (correct me if i'm wrong)
If you are just flashing the system partition (system.img) then you will not lose twrp. If you are flashing the full official rom, you will lose twrp. On a custom rom you won't lose twrp either.
You will only lose data if unlocking the bootloader or relocking it. Also, if you fastboot flash-all using the fastboot zip on xda you will lose all data too. Obviously if you select wipe data in twrp you lose it there too.

Instructions how to install custom rom

Hi write me detailed instructions how to install custom ROM without losing twrp?Thanks
Flash OOS stable (latest)
2flash twrp
3. Reboot to twrp
4. Flash oos stable
5. Flash twrp
6. Reboot to twrp
7. Wipe data, dalvik cache
8. Flash rom
9. Flash twrp
10. Reboot to twrp
11. Flash gapps
12. Boot system
The thread below yours have the same issue.. There is now 9 threads about this issue. Is the search function disabled?
Thanks
whizeguy said:
Flash OOS stable (latest)
2flash twrp
3. Reboot to twrp
4. Flash oos stable
5. Flash twrp
6. Reboot to twrp
7. Wipe data, dalvik cache
8. Flash rom
9. Flash twrp
10. Reboot to twrp
11. Flash gapps
12. Boot system
The thread below yours have the same issue.. There is now 9 threads about this issue. Is the search function disabled?
Click to expand...
Click to collapse

full wipe brick? help please

Hello everyone! Need help.
I was testing some Xposed modules and then the system crashed and started no more.
I entered the twrp and made a wipe in all the options that there was to do.
The problem is that now the phone does not start any more, there is no way to get into the recovery or the room. When you turn it on, it goes straight to the recovery qualcoom screen. How should I proceed?
Sounds like you wiped system aswell...
Fastboot twrp should work.
In fastboot twrp flash twrp zip
Reboot to twrp
Flash OOS
Flash twrp
Reboot to twrp
Flash magisk
Should get you booted atleast
reflash oxygen os in twrp after wiping data and cache
matze19999 said:
reflash oxygen os in twrp after wiping data and cache
Click to expand...
Click to collapse
I can not access twrp because I've made a full cache, dalvik, system, and internal memory wipe. Only fastboot mode opens
You should can access TWRP because you didn't wipe recovery partition
https://forum.xda-developers.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3903272
Follow the instructions care full...you device will work
Thanks man <3

[Solved] Help to flash custom ROMs

Hello everybody,
I bought a Oneplus 7 Pro a few days ago and I'm preparing it for my daily usage. It's my fourth Android smartphone, and the third Oneplus. So far, I managed to flash everyone of them, with no major issues.
And then, the Oneplus 7 Pro suddenly appeared
I used this tutorial to unlock the bootloader and flash the custom recovery.
From my understanding, the custom recovery is flashed in the Recovery Ramdisk and available for both A & B slots.
For now, I have A and B slots with stock OSS, unlocked bootloader, custom recovery and Magisk. All of this is working.
There began my problems. I want to flash a custom ROM without Gapps and I fail to do it. All instructions around ROM threads seems different to me, I don't get the thing about A & B slots, when I flash one rom, it boots as usual on the stock ROM, if I flash both slots, It causes bootloops and if I manage to launch the recovery, my internal storage isn't detected and I can't restore any backup.
I already used MSMDownload to restore the phone completely once.
Can somebody explain to my dumb person how to do it proprely ? Thanks in advance ! :fingers-crossed:
TL;DR : I fail to flash a custom ROM and make it work.
Yes I had same issues when rooted, it means you lost root. You can try tool all in one to flash recovery and magesik via fastboot. If that doesn't restore your access, on twrp you will have to type in format, then mount, then add rom to storage(this method wipes everything beware)
djhulk2 said:
Yes I had same issues when rooted, it means you lost root. You can try tool all in one to flash recovery and magesik via fastboot. If that doesn't restore your access, on twrp you will have to type in format, then mount, then add rom to storage(this method wipes everything beware)
Click to expand...
Click to collapse
For now, my phone is working nicely. But that's the process of flashing a new ROM that fails. Recovery and Magisk are already and working.
Factory reset
Flash rom
Flash twrp installer
Reboot recovery
Format data
Reboot system
i boot all roms with these steps
WesTD said:
Factory reset
Flash rom
Flash twrp installer
Reboot recovery
Format data
Reboot system
i boot all roms with these steps
Click to expand...
Click to collapse
Thanks, I will try.
When you flash the ROM, does TWRP tell you that if you want to continue you need to reboot recovery ? If so, do you ? Do you reboot recovery on the same slot, or do you flash both ?
draentor said:
Thanks, I will try.
When you flash the ROM, does TWRP tell you that if you want to continue you need to reboot recovery ? If so, do you ? Do you reboot recovery on the same slot, or do you flash both ?
Click to expand...
Click to collapse
Nope, it doesnt tell you anything. Just reboot recovery from reboot menu. Don't touch the slot options
Thanks for your advices.
I'm trying right now, here's my steps :
- Wipe Data, Cache, Dalvik Cache (the standard Factory Reset)
- Install ROM : TWRP logs show that he's flashing on inactive slot A, then B. After that logs said " To flash additional zips, please reboot recovery to switch to the updated slot ". I'm going back on the menu
- Install TWRP Installer like previously
- Reboot Recovery : TWRP ask me if I want to install the TWRP App, I dismiss. After reboot of the recovery, it asks if I want to keep System Read Only, I swipe to allow modifications
- Wipe Data : Can't do it because TWRP is unable to mount storage. And after further investigations, I'm now on slot A, not B as before.
- Reboot recovery to slot B
- Wipe Data on slot B
- Reboot system
And It still booting on the stock Oxygen OS Rom, not the custom one installed before. I'm lost
The problem is that you are not performing factory reset.
Wipe data is not enough,you gotta go to wipe-format data-enter yes and swipe.
That is why you are getting bootloops and twrp unable to mount storage problem.
A/B is pretty simple.
You got two slots for many partitions like system vendor boot and all,but a single data partition.
Flash a rom from one slot,it always gets flashed to the other slot no matter what.So next time you reboot to recovery or system it's gonna be on the other slot.So here is the problem..one rom cannot decrypt data which was initially encrypted by another rom..so you gotta perform a data format instead of wipe.Thats it.
draentor said:
Thanks for your advices.
I'm trying right now, here's my steps :
- Wipe Data, Cache, Dalvik Cache (the standard Factory Reset)
- Install ROM : TWRP logs show that he's flashing on inactive slot A, then B. After that logs said " To flash additional zips, please reboot recovery to switch to the updated slot ". I'm going back on the menu
- Install TWRP Installer like previously
- Reboot Recovery : TWRP ask me if I want to install the TWRP App, I dismiss. After reboot of the recovery, it asks if I want to keep System Read Only, I swipe to allow modifications
- Wipe Data : Can't do it because TWRP is unable to mount storage. And after further investigations, I'm now on slot A, not B as before.
- Reboot recovery to slot B
- Wipe Data on slot B
- Reboot system
And It still booting on the stock Oxygen OS Rom, not the custom one installed before. I'm lost
Click to expand...
Click to collapse
lol i wrote all steps but you didn't do all of them. Use swipe to wipe for factory reset and you didn't format data
Joker123## said:
The problem is that you are not performing factory reset.
Wipe data is not enough,you gotta go to wipe-format data-enter yes and swipe.
That is why you are getting bootloops and twrp unable to mount storage problem.
A/B is pretty simple.
You got two slots for many partitions like system vendor boot and all,but a single data partition.
Flash a rom from one slot,it always gets flashed to the other slot no matter what.So next time you reboot to recovery or system it's gonna be on the other slot.So here is the problem..one rom cannot decrypt data which was initially encrypted by another rom..so you gotta perform a data format instead of wipe.Thats it.
Click to expand...
Click to collapse
Thanks for the explanation !
WesTD said:
lol i wrote all steps but you didn't do all of them. Use swipe to wipe for factory reset and you didn't format data
Click to expand...
Click to collapse
Well yes, I didn't understood the difference between Wipe and Format Data.
So let's resume :
Unlock Bootloader
Advanced -> Install Recovery Ramdisk : Install TWRP
Install -> Flash TWRP Installer
Install -> Flash Magisk
Reboot -> System : Reboot on stock OxygenOS Rooted
Then
Wipe -> Factory Reset : Wipe Data, Cache and Dalvik Cache, that means you just have to swipe on TWRP.
Install -> Flash ROM : Use the install function and install the ROM
Install -> Flash TWRP Installer : Don't reboot, go back and install as the previous step
Reboot -> Recovery : Reboot TWRP and it automatically load the other slot
Wipe -> Format Data : Click and type yes
Reboot -> System : Just reboot and it should load the installed ROM
is wiping internal storage compulsory?
aaryan45 said:
is wiping internal storage compulsory?
Click to expand...
Click to collapse
How would you do it ? This is an open discussion, I can't find one and only way of doing it
aaryan45 said:
is wiping internal storage compulsory?
Click to expand...
Click to collapse
Not wiping.. formatting..that is compulsory if your current data is encrypted
After multiple tries to verify the process :
Wipe -> Factory Reset + : Wipe Data, System, Cache and Dalvik Cache
Install -> Flash ROM : Use the install function and install the ROM
Install -> Flash TWRP Installer : Don't reboot, go back and install as the previous step
Reboot -> Recovery : Reboot TWRP and it automatically load the other slot
Wipe -> Format Data : Click and type yes
Reboot -> System : Just reboot and it should load the installed ROM
Install -> Magisk
Reboot -> System
Install -> Whathever you want
Reboot -> System
It worked !

Categories

Resources