How to find base/stock android version ? - Xiaomi Mi A2 Lite Questions & Answers

Hi.
1. Most of custom ROMs require 10.0.13.0/10.0.18.0 as base ? How I can find out my Android version ? For me it types just Android 10
2. Is it mandatory to EDL flash a stock/base ROM before installing custom ROM ? I never flash any ROM, I have a stock build like I bought phone from store and I just unlock bootloader so my system done something like a factory reset. Do I need to EDL flash my phone or I need to EDL flash only if I have a custom ROM ?

At the bottom of Settings -> About is the build number, which is long and ends in a number like 10.0.x.0 (Android 9) or 11.0.x.0 (Android 10).
10.0.20.0 was the last Android 9 release, so I guess the custom ROMs want the Android 9 vendor partition rather than the Android 8 or 10 vendor partitions.
If you are already on stock, you shoudn't need to do any kind of special flashing. MiFlash or the flash_all script (uses fastboot) should be fine to get your device to the appropriate base version to install a custom ROM from.

Related

Basic Answers to Flashing procedure

Hey guys, I am new to whyred , flashed alot on other phones tho. Got some questions regarding the process of things I have to do to not mess up. I would do it like this:
0. I am on 9.5.19. miui global stable.
1. Unlock bootloader after 360 hours (hopefully)
2. Boot into Fastboot, boot up twrp image via command and then flash twrp via twrp.
3. Do I have to flash lazyflasher when I flash magisk? Which version of magisk is recommended atm? 1600?
4. After flashing one (or both, I don't know) I would go with flashing aosip or havoc (which is better on battery, features and over all performance?).
5. Do I have to flash some firmware or anything?
6. Since I am on Anti 4 (probably, didn't check yet but I am quite sure since I updated on 9.5.19) do I have to be aware of something else important?
Thank you guys for every help. If my answers will get answered and everything runs smooth sailing I will write a noob/starting guide to focus the knowledge a bit more. It seems really clustered in this forum
Do not flash any firmware for now. Since your are in 9.5.19 it has anti 4 enabled.. flashing firmware over anti 4 will brick your device.
Unlock bootloader
Boot to twrp and flash twrp
Wipe system cache dataa and flash custom ROM and gapps
Reboot to system
Reboot to twrp and flash magisk
SunilSuni said:
Do not flash any firmware for now. Since your are in 9.5.19 it has anti 4 enabled.. flashing firmware over anti 4 will brick your device.
Unlock bootloader
Boot to twrp and flash twrp
Wipe system cache dataa and flash custom ROM and gapps
Reboot to system
Reboot to twrp and flash magisk
Click to expand...
Click to collapse
I still at 9.2.13 didn't update to 9.5.19 in that case I can flash and roll back to any firmware below antilock right?
Username.php said:
I still at 9.2.13 didn't update to 9.5.19 in that case I can flash and roll back to any firmware below antilock right?
Click to expand...
Click to collapse
Yes. If you are in 9.2.13 build then you have to flash firmware along with custom ROM.
But if you are running 9.5.19 build do not flash any firmware. Just ROM and gapps is enough
SunilSuni said:
Yes. If you are in 9.2.13 build then you have to flash firmware along with custom ROM.
But if you are running 9.5.19 build do not flash any firmware. Just ROM and gapps is enough
Click to expand...
Click to collapse
Which firmware are you referring to? You mean I can roll back or do I have update to certain firmware to flash custom Roms?
Username.php said:
Which firmware are you referring to? You mean I can roll back or do I have update to certain firmware to flash custom Roms?
Click to expand...
Click to collapse
Yes you have to flash firmware file recommended by custom rom developer to avoid problems while using custom ROM. And its not related to anti rollback protection.
All the firmware recommended by developers doesnt have anti rollback protection but you shouldn't flash firmware file if you are using 9.5.19 stable build or 8.7.12 beta build because these build contains ARP and flashing firmware in ARP enabled device will brick your mobile
SunilSuni said:
Yes you have to flash firmware file recommended by custom rom developer to avoid problems while using custom ROM. And its not related to anti rollback protection.
All the firmware recommended by developers doesnt have anti rollback protection but you shouldn't flash firmware file if you are using 9.5.19 stable build or 8.7.12 beta build because these build contains ARP and flashing firmware in ARP enabled device will brick your mobile
Click to expand...
Click to collapse
I'm a bit confused here. I have always been under the impression that firmware = ROM (with other phone brands) and they seem to be discussed interchangeably. Now with my Xiaomi Note 5 Pro, I hear about these as separate items a lot. What is the difference between firmware and the custom ROM, at least in the Xiaomi world? How do I know when I am dealing with one or the other?
TIA,
eisenbergw said:
I'm a bit confused here. I have always been under the impression that firmware = ROM (with other phone brands) and they seem to be discussed interchangeably. Now with my Xiaomi Note 5 Pro, I hear about these as separate items a lot. What is the difference between firmware and the custom ROM, at least in the Xiaomi world? How do I know when I am dealing with one or the other?
TIA,
Click to expand...
Click to collapse
Your understanding is correct firmware is nothing but a ROM, but in custom ROM, developers dont include bootloader (In custom ROM world firmware contains bootloader related stuffs) in their OS because they will make use of bootloader from stock ROM thats why developer recommended firmware files so that their ROM works perfectly without any problem.
I might be wrong but this is how things work here. If you are on lastest global MIUI beta ROM then you dont have to flash recommended firmware file by custom ROM developer
SunilSuni said:
Your understanding is correct firmware is nothing but a ROM, but in custom ROM, developers dont include bootloader (In custom ROM world firmware contains bootloader related stuffs) in their OS because they will make use of bootloader from stock ROM thats why developer recommended firmware files so that their ROM works perfectly without any problem.
I might be wrong but this is how things work here. If you are on lastest global MIUI beta ROM then you dont have to flash recommended firmware file by custom ROM developer
Click to expand...
Click to collapse
So when people talk about flashing firmware, they're really saying to flash/change the bootloader? Does the bootloader have a name, version number we would reference, or it's just 'the bootloader for MIUI Global 9..5.19.0'?
If I understand you correctly, if someone offers a ROM with and without firmware, you could install the ROM without firmware and it would work ok, but installing with the firmware (changing the bootloader) would make the ROM work better? Or just do the ROM with firmware if you have problems with the version that didn't install the firmware/bootloader?
I'm on MIUI Global 9.5.19.0. (just normal ROM), but with unlocked bootloader, twrp, Magisk installed (I can't work without my Titanium Backup Pro!)
eisenbergw said:
So when people talk about flashing firmware, they're really saying to flash/change the bootloader? Does the bootloader have a name, version number we would reference, or it's just 'the bootloader for MIUI Global 9..5.19.0'?
If I understand you correctly, if someone offers a ROM with and without firmware, you could install the ROM without firmware and it would work ok, but installing with the firmware (changing the bootloader) would make the ROM work better? Or just do the ROM with firmware if you have problems with the version that didn't install the firmware/bootloader?
I'm on MIUI Global 9.5.19.0. (just normal ROM), but with unlocked bootloader, twrp, Magisk installed (I can't work without my Titanium Backup Pro!)
Click to expand...
Click to collapse
Most of the firmware recommended by developers contains older bootloader (Antirollback protection version 3)
Since you are in 9.5.19 your bootloader has Antirollback protection (ARP 4) so if you try to flash older firmware then your mobile will get bricked so avoid flashing any firmware recommended by developer because you already have latest bootloader
Firmware name will be based on global beta ROM version

information about firmware

hi people, ive recently bought a RN5 (global), while waiting to unlock the bootloader id like to know
1. how to flash latest firmware?
2. is it necessary to flash custom roms?
3.is it necessary to flash custom roms based on miui?
4. which firmware is recommend?
thanks for your help.
PD. im on ARB4 sadly.:crying:
WOS17 said:
hi people, ive recently bought a RN5 (global), while waiting to unlock the bootloader id like to know
1. how to flash latest firmware?
2. is it necessary to flash custom roms?
3.is it necessary to flash custom roms based on miui?
4. which firmware is recommend?
thanks for your help.
PD. im on ARB4 sadly.:crying:
Click to expand...
Click to collapse
1. there are many ways. using the official sytem updater and searching for new updates. but if you are rooted and have twrp. i suggest to use either orange fox or red wolf twrp's they support OTA. thats for official miui. or you can download zip and use the sytem updater and using the 3 dots and data package.
or unlocked bootloader using fastboot rom 2.5GB and miflash tools. i think this is the best way when you have problems and needs a fresh clean installation. beware that at bottom the option its selected to relock bootloader . just change to clean. clean and lock will flash and lock bootloader.
2. depends am not sure in RN5 how is camera. most of the times when you dont use official rom from vendor camera quality decreases. say using stock firmware will give you best quality then when using AOSP LAOS.
if camera doesnt suffer from decrease quality then its good. your phone will be faster,more battery and there are lots of roms available. i have not tried AOSP or LAOS roms in RN5 thought.
2. i love masik rom over official rom. this is miui based rom. but no OTA. you have to manually flash new updates.
3. not sure about your question.
4. doesnt matter ARB. in ARB4 only thing that changes its that in order to have twrp permanent you have to do an extra step. ARB3 you flash twrp.img. and had to use lazy flasher file.
in ARB4 you have to boot twrp. then in twrp you must flash twrp.img to have pemanent. or use orangefox and thats it.
WOS17 said:
hi people, ive recently bought a RN5 (global), while waiting to unlock the bootloader id like to know
1. how to flash latest firmware?
2. is it necessary to flash custom roms?
3.is it necessary to flash custom roms based on miui?
4. which firmware is recommend?
thanks for your help.
PD. im on ARB4 sadly.:crying:
Click to expand...
Click to collapse
Hello:
1. Being you are on ARB4, I would be extremely careful flashing firmwares. It's generally not necessary anyways, although sometimes newer firmwares can contain some bug fixes. In the ROM section you can find a thread with a firmware collection, including versions of firmware that have been stripped of ARB and thus *should* be safer to flash. You can follow instructions in that thread if you decide you want to flash.
2. Of course not. MIUI is a decent ROM by itself.
3. Of course not. It's purely a matter of preference. All ROMs you will find for your device support your device (duh), regardless of the base used.
4.There is no firmware recommended per se, because firmware is released by Xiaomi, thus we don't really know what's inside. We can have a general idea sometimes if a bug fix was applied our if ARB was changed looking at the whole ROM release notes, but that's all.
Hope that helps you.

Recovery Vs Fastboot ROM

Hello guys how u doing...
My question is what is the difference between Fastboot And Recovery ROM in terms of what files they have.
I know Recovery ROM can be flashed by recovey and fastboot is used when phone's recovery in not accessible.
If i am on android 9 (MIUI 11.0.3.0) and i want to downgrade to oreo (9.5.19) can i flash this 9.5.19 recovery ROM directly via custom recovery or Use mi flash tool.Please tell me the reason why u choose either method
Sidgup1998 said:
Hello guys how u doing...
My question is what is the difference between Fastboot And Recovery ROM in terms of what files they have.
I know Recovery ROM can be flashed by recovey and fastboot is used when phone's recovery in not accessible.
If i am on android 9 (MIUI 11.0.3.0) and i want to downgrade to oreo (9.5.19) can i flash this 9.5.19 recovery ROM directly via custom recovery or Use mi flash tool.Please tell me the reason why u choose either method
Click to expand...
Click to collapse
For upgrade/reflash/downgrade MIUI always use fastboot ROM and chose clean install. Custom recovery is better for rooted devices OTA MIUI update and for custom ROM's. And if you gonna play with ROM's be smart and unlock bootloader for easy fix if something goes wrong aka (un)bricking device.
Good luck
Sent from my unknown using XDA Labs
I'd be interested in this question too. Is there any difference in what those versions contain?
Fastboot ROMs are much bigger usually, like double the size. Is this only due to the recovery versions beeing compressed (better), or do the fastboot versions contain additional data?

Question help to explain please

[GUIDE] Back to stock ROM howto / Downgrade howto
There maybe a number of reasons to go back to the stock ROM. We do not discuss them here :) But what to do if you flashed something, wanting to go back to stock, and did not brick your Realme X2 yet? :) Here is super quick howto guide. There are...
forum.xda-developers.com
this guys says
I have found out that in fact stock recovery does not exist as a prebuilt file It is being created by the script /system/bin/install-recovery.sh on a basis of stock boot partition and a patch file /system/recovery-from-boot.p
It means in theory you can recreate stock recovery having only Realme ozip file.
EDIT1 The command to do it in Linux shell is
Code:
bspatch boot.img selfmade_stock_recovery.img recovery-from-boot.p
Cool! Tested.
EDIT2. For the current moment when unlocked bootloader breaks fingerprint sensor: as soon as the bootloader is locked again, fingerprint starts functioning as it should.
EDIT3 Becomes clear that each ROM release has its own stock recovery which is generated automatically on the basis of boot.img and recovery-from-boot.p . Not only boot.img is being changed each release, but recovery-from-boot.p is changing as well. If the wrong stock recovery is installed, you might not be able to decrypt data and connect to WiFi from within recovery. Seemingly it may bring you serious problems if locking back bootloader (thus bricking the device). Good thing (as I understood, but not checked yet) is that after flashing stock ROM with a help of a stock recovery next reboot should replace your stock recovery with an up-to-date version of it. So to be on a safe side make sure that you rebooted to system and that your recovery reflashed by the system before you lock bootloader.
EDIT4 In order to combine everything in one place:
Stock recoveries for RMX1991 (China version): here
Stock recoveries for RMX1992 (India version): here
Stock recoveries for RMX1993 (Euro version): here
EDIT5 In later ROM releases patch and script files are relocated into vendor partition, they are /bin/oppo-install-recovery.sh and /recovery-from-boot.p there.
EDIT6 Please note that the method above is working with officially downloaded ROMs from realme support site (read here why).
any idea how to explain this in easy understanding word for me to have a stock recovery.img for RMX3363

Need Stock ROM for BND-AL10 9.1.0.168(C675E7R1P1) build

Trying to root my device(wanted to install PostmarketOS) without twrp recovery image installation(link), since Im unable to install twrp custom recovery image.
I have searched a lot and unable to find Stock rom for the build 9.1.0.168(C675E7R1P1). All i could find is 9.1.0.140 as the closest possible one. Huawei firmware site is down(from india, tried using vpn, still down).
My questions are,
1. Can any one provide me the Stock ROM for this build ?
2. Will it be okay if i use 9.1.0.140's boot.img and follow the steps mentioned in the link , while my devices build is 9.1.0.168?
3. Will that brick my device if i do so (by mismatched firmware's boot image)? Or is it possible to extract currently installed ROM from my own device ? **(without root, since im unable to install twrp as mentioned earlier)
Device Details:
Device : Honor 7x (BND-AL10)
Android Version : 9
EMUI Version : 9.1.0
Build number : 9.1.0.168(C675E7R1P1)

Categories

Resources