WIpe System - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

I was wondering why with k20 pro you dont wipe system? In all the thread i see flashing procedure, after first flashing miui CN, format data(if encrypted) wipe cache, delvik and data but not system? In Poco we wipe system even for a dirty clash (delvik cache, system then flash rom and gapps and alls good).
Anyone else from poco here with tips about differences in flashing procedure?

Mooatreides said:
I was wondering why with k20 pro you dont wipe system? In all the thread i see flashing procedure, after first flashing miui CN, format data(if encrypted) wipe cache, delvik and data but not system? In Poco we wipe system even for a dirty clash (delvik cache, system then flash rom and gapps and alls good).
Anyone else from poco here with tips about differences in flashing procedure?
Click to expand...
Click to collapse
It's normal for most ROMs to wipe system as part of their install script. So normally there is no need to wipe system manually before. You will only need to wipe system if a ROM developer/maintainer tells you to in their flashing instructions.
See this page from the official TWRP FAQs https://twrp.me/faq/whattowipe.html

Robbo.5000 said:
It's normal for most ROMs to wipe system as part of their install script. So normally there is no need to wipe system manually before. You will only need to wipe system if a ROM developer/maintainer tells you to in their flashing instructions.
See this page from the official TWRP FAQs https://twrp.me/faq/whattowipe.html
Click to expand...
Click to collapse
Cool thanks alot man that makes sence actually.

Related

Do's and dont's - Redmi Note 7

After a long time I was finally able to unlock my Redmi Note 7.
I realized that flashing and other things on this device are a little bit more complex than on other devices I have had in the past.
Therefore I want to know what are the do's and dont's of this device and maybe make a comprehensive list so that everyone can avoid BRICKING or running into trouble while messing around with their phone.
I have seen things such as:
- never wipe system (which i'm not sure is true btw)
- dm-verity and vbmeta stuff (when to do it and what is it for? - some do it, some don't... which is confusing)
etc.
As you can tell I'm a newbie with this device.
Would be cool if you guys could give some input in order to create a comprehensive list.
Thanks!
Yeah Same thing here !!!
I've been using this phone for a month, i'm not an expert but if it can help around.
-Most custom ROM have they steps to flash and are usually the same for a clean flash (Wipe Cache, Dalvik/Art Cache, Data and System)
-If the custom ROM need it you will need to flash Vbmeta, usually the most ROM already have it inside, and a few have it as an external zip, this is only needed "once" you are coming from MIUI to a custom ROM, otherwise you don't.
-Other custom ROM will ask you to flash global firmware and that's just a 60MB zip that you will found in the ROM links usually, as I said most of the Custom ROM post have their steps.
-Dm-verity is something i haven't had to face as a problem so far so can't help abot that, but following the steps have never cause me any trouble.
What to do?
-First read the post of the Custom ROM including their answers, as it always help before flashing something because you will read if it have any kind of problem or etc from users feed back, and of course the OP info.
-Always have a backup of your stock ROM and personal data to avoid any lost.
-The break-the-glass solution in case of any problem will be always to know which version of phone do you have and have a Fastboot ROM for emergencies or if you are returning to MIUI stock, and the MIFlashTool from MIUI site.
-Always clean flash when you are going to another rom.
What not to do:
-Wiping and formating things you don't know what are you messing with, eg. Vendor partition.
-Never do a dirty flash over another custom ROM or stock, only do dirty flash in the same ROM type if the Dev says is possible to "update" that rom with that method, otherwise do a clean flash.
-Never flash another MIUI ROM that's not your type (China, Global, EEA, Rus, etc) with the MIFlashTool.
-Never flash or use the MIUI Tool with low battery
This might be the common and global things that always someone can tell you, if not the much but i hope it might help
never wipe system, unless you're planning to install another rom after that.
/system is where your OS (ROM) is located, wiping it is wiping your OS from your phone.
IDK much about disable DM-v and vbmeta, all I know is we need these two for disabling android's verified boot, secure boot thingy from google. yay.
AFAIK, we have 3 ways to disable DM-V
Using ofox, open settings > ota > mark on 'disable dm-v' before flashing ROM
by flashing disable dmv zip
by flashing magisk because it's included in magisk.
just do one of them but you can do all three, it doesn't really matter.
and vbmeta is needed only if you're on MIUI and about to flash AOSP rom.
but lately most custom AOSP already zipped with vbmeta so you don't need to worry about that.
here's how I flash ROMs
format data,
reboot recovery,
wipe cache, dalvik, system, data, internal,
flash firmware
flash ROM
flash gapps (optional)
flash kernel (optional)
flash magisk
reboot
hope this helps.
Wipe system if you are installing another rom otherwise you will end in bootloop because there is no system to boot.
Get a latest flashable firmware for your Note7 and place it in your mobile in case you get bootloop.
Install Recovery have every thing always backup.
Use Titanium backup for your apps even system apps should be backedup if you are going to modified system apps or delete them .
I just got the device 2 hours ago already making an optimized/rooted/debloated stock rom for it .
vexa said:
never wipe system, unless you're planning to install another rom after that.
/system is where your OS (ROM) is located, wiping it is wiping your OS from your phone.
IDK much about disable DM-v and vbmeta, all I know is we need these two for disabling android's verified boot, secure boot thingy from google. yay.
AFAIK, we have 3 ways to disable DM-V
Using ofox, open settings > ota > mark on 'disable dm-v' before flashing ROM
by flashing disable dmv zip
by flashing magisk because it's included in magisk.
just do one of them but you can do all three, it doesn't really matter.
and vbmeta is needed only if you're on MIUI and about to flash AOSP rom.
but lately most custom AOSP already zipped with vbmeta so you don't need to worry about that.
here's how I flash ROMs
format data,
reboot recovery,
wipe cache, dalvik, system, data, internal,
flash firmware
flash ROM
flash gapps (optional)
flash kernel (optional)
flash magisk
reboot
hope this helps.
Click to expand...
Click to collapse
Mmm, I used to flash custom ROMs like this way:
- wipe cache, dalvik, system, data, internal,
- format data,
- reboot recovery,
- flash firmware (never did it)
- flash ROM
- flash gapps (optional)
- flash kernel (optional)
- flash magisk
- reboot
What do you mean by flashing a firmware before custom rom? (red)
CrashOverride93 said:
Mmm, I used to flash custom ROMs like this way:
- wipe cache, dalvik, system, data, internal,
- format data,
- reboot recovery,
- flash firmware (never did it)
- flash ROM
- flash gapps (optional)
- flash kernel (optional)
- flash magisk
- reboot
What do you mean by flashing a firmware before custom rom? (red)
Click to expand...
Click to collapse
this firmware, because some roms require certain firmware version (usually the latest stable one)
vexa said:
this firmware, because some roms require certain firmware version (usually the latest stable one)
Click to expand...
Click to collapse
Ohh didn't know. Thanks for letting it me know.
I only flashed, until now, RR and AEX. Now I'm back on Xiaomi.eu ROM But never had any problem.

TWRP bootloop

Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.
nerijusas said:
Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.
Click to expand...
Click to collapse
More details needed if you want some help or all you wanted is some condolence?
P.S. If you don't know what details, just describe what actions have been taken I was on ROM x versions x.x.x with TWRP x, how you flashed MIUI11 and what MIUI11 ROM and version you used.
TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.
P.S I have global version
nerijusas said:
TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.
Click to expand...
Click to collapse
Does your TWRP successfully decrypt data now? Do you have access to files in TWRP? Or you just see strange names.
If that is the case, just format data, it's an option in wipe menu. And then reflash ROM.
btw wiping system is not needed and useless.
Decrypts successfully because i install rom from internal storage and still it doesnt help.
nerijusas said:
Decrypts successfully because i install rom from internal storage and still it doesnt help.
Click to expand...
Click to collapse
Then everything should work, try to read this thread: https://xiaomi.eu/community/threads/miui-11-0-stable-release.52628/ , may be you not the only one.
But i would try format data any way. Format will remove everything and will create a fresh unecrypted file system. Wipe only delete files.
If it won't help you may try to flash fastboot ROM, and then format and etc.
btw When you wipe cache/dalvik, it takes some time to boot, it can be 5-10 minutes.

Always Stuck in Fastboot

Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Platinum_Pyth0n said:
Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Click to expand...
Click to collapse
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
ergysramaj said:
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Click to expand...
Click to collapse
Yup, didn't work. Thank you for helping though.
Now that you have a clean stock fastboot rom flashed, flash twrp, wipe data(use that where you have to type YES), then flash your mix ROM. Don't wile system lol
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
Click to expand...
Click to collapse
Hey Robo.5000, we meet again.
A summary of what I have done so far: Installed Fastboot 10.3.3.0, booted into the ROM, then finished setting up the account. Tried to Flash TWRP (Mauro's & Abhishek's) builds, then a Mod on the Telegram group of Miui Mix suggested me to: Format Data, then do the Dalvik Cache, System, Cache, etc, then tried installing the ROM (MiuiMiX_2.2.0_raphael_9.11.7_v11-10_20191107.zip).While installing it tells me that my Phone is Raphaelin and not Raphael. I do not know what to do.
same here always end with fastboot screen when i try to flash a custom rom or root my device via magisk 20.1
device k20 pro 8gb/256 came with mi 9 t pro rom
really appreciated if any one can post step by step to flash cusom rom or root the device
pocophone f1 was my prev device it was easierto flash custom or root
i dont know what i miss
Do not wipe system.

How to keep phone data encrypted?

I have a K20 pro, with a pre-installed China MIUI 10 ROM.
Following is what I did to flash MIUI 11 EU from what I remembered:
1. Boot to TWRP recovery.
2. Wipe System, Data, Dalvik, Cache
3. Flash MIUI 11 EU Rom
4. Flash no-dm-verity-force-encrypt
Without flashing dm-verity with the 'disable encryption' parameter, my phone would stuck at the boot logo. But after flashing it would make the phone data decrypted, which is invalid to enable in system settings.
What should I do in order to enable encryption in MIUI 11 EU ROM? Thank you!
mkcs said:
I have a K20 pro, with a pre-installed China MIUI 10 ROM.
Following is what I did to flash MIUI 11 EU from what I remembered:
1. Boot to TWRP recovery.
2. Wipe System, Data, Dalvik, Cache
3. Flash MIUI 11 EU Rom
4. Flash no-dm-verity-force-encrypt
Without flashing dm-verity with the 'disable encryption' parameter, my phone would stuck at the boot logo. But after flashing it would make the phone data decrypted, which is invalid to enable in system settings.
What should I do in order to enable encryption in MIUI 11 EU ROM? Thank you!
Click to expand...
Click to collapse
Fastboot flash MIUI EU
Done
Unless you are taking about Xiaomi.eu ROMs.
In that case you should format data, instead of wiping data when installing it.
Robbo.5000 said:
Fastboot flash MIUI EU
Done
Unless you are taking about Xiaomi.eu ROMs.
In that case you should format data, instead of wiping data when installing it.
Click to expand...
Click to collapse
Yes, I am talking about xiaomi.eu ROMS. I was not aware of the special installation method, I treated it as a normal custom rom by wiping system, data, dalvik, cache. If I want to re-install xiaomi.eu ROMS again with default encrypted phone data, should I format data and flash it again?
Download new version https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
and follow the intructions
jiraianam said:
Download new version https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
and follow the intructions
Click to expand...
Click to collapse
I tried flashing it before, but without disabling the force encryption, phone would stuck at the boot logo

Fastboot after wiping everything in Twrp.

Hello, when i install new rom i format data, wipe everything in twrp then i install rom(im mainly using ones with oss vendor) and dfe and phone just goes fastboot logo. When i uncheck system partition everything is fine. Is there someone that knows how to wipe system partition without going fastboot.
MickyZa said:
Hello, when i install new rom i format data, wipe everything in twrp then i install rom(im mainly using ones with oss vendor) and dfe and phone just goes fastboot logo. When i uncheck system partition everything is fine. Is there someone that knows how to wipe system partition without going fastboot.
Click to expand...
Click to collapse
Don't wipe system, it's not needed. Doing the factory reset in TWRP wipes everything that's need to be wiped for a clean flash.

Categories

Resources