Can anybody clarify Firmware? - Xiaomi Mi 5 Questions & Answers

Sorry for being ignorant. I am new to the Mi 5 Development environment, here I see firmwares are necessary to flash custom Roms. This thing is new to me. Can anyone explain this thing briefly to me? Which firmware is necessary for certain custom roms? for example For marshmallow and Nougat. Also what in case of Miui based Roms? Thanks in advance.

For MIUI ROMs firmware flashing is not necessary as what we actually flash as firmware is actually a part of the MIUI ROMs while using other ROMs.
For other ROMs, firmware flashing is not always necessary,sometimes firmware is included in ROM zip,sometimes not.You have to read the OP and flashing instructions to know if its necessary to flash a firmware.
For an example,i have been using RR 5.8.0 unofficial for some days,i didn't have to flash the firmware zip,as it was included in the ROM.but 1 or 2 days ago,RR 5.8.1 official released,and firmware were removed from thw ROM zip to make it smaller.so if i want to flash the latest RR 5.8.1 on my phone now,I have to flash the firmware required though i didn't have to do it in the older builds.
Good luck.
Sent from my MI 5 using Tapatalk

Rhine Septimus said:
Which firmware is necessary....
Click to expand...
Click to collapse
You can have a look at this thread: https://forum.xda-developers.com/mi-5/development/tool-flashable-firmware-twrp-easy-t3474898 ...very very informative.
Here some words from 33bca, the OP of that thread
<< zip includes all needed firmware files to switch between different firmware versions, since roms don't include firmware to use less space or they are not allowed to. It can also get really helpful if you want to restore a backup of an older rom which requires a different firmware. >>

Related

Updated Kali NetHunter Guide ?

hi so i bought OP3T to have nethunter on it. but now i am totally confused how to install nethunter on my device properly, there needs to be an updated guide about it that i couldn't find in xda forums.
first about my phone:
it's OP3T on nougat, OOS 4.1.7 . currently i'm using latest official LOS 14.1 rom.
with Encryption enabled, on LOS stock kernel.
What i tried is this thread,
https://forum.xda-developers.com/oneplus-3t/development/kernel-kali-nethunter-oneplus-3t-t3507816
and i downloaded
nethunter-generic-arm64-kalifs-full-rolling-3.20-20170903-2143.zip
kernel-nethunter-oneplus3T-cm-nougat-3.20-20170903-2143.zip
by following above guide i went into TWRP recovery i flashed kernel which also flashed supersu with it, and then flashed kali nethunter,
everything went perfect, no problems, but i can't use kali nethunter, its terminal does not open,
on above thread @uaiclout pointed to following thread to use that build,
https://forum.xda-developers.com/oneplus-3/development/kernel-boeffla-kernel-linaro-uber-t3455888/
but when i went to that thread that is a kernel and not a rom, and not a nethunter build,
i don't understand what do i have to do to make NetHunter work properly? and there is no specific thread / guide on it. i don't wanna brick my phone so taking my steps carefully, as i am new in OP3T and coming from Samsung devices there are some new strange abbreviations being used in OP3T forums which i don't know what they mean.
like bootloader thing is not being mentioned in OP3T forums but firmwares (i am confused what they are?) and like kernels are using some strange terms,
so it will be very thankfull for someone who uses NetHunter on OP3T successfully to create a guide or atleast tell others how you made it work on nougat LOS or other non-stock based custom roms? and kernels + wifi devices to be detected on phone like TL-WN722N ?
thanks in advance.
Hello Mate,
Welcome to the OnePlus fam!
So as I've understood, your Kali Terminal is not working. I've had the exact issue, and I fixed it by reinstalling the Terminal apk ;(https://github.com/offensive-securi...thunter-installer/update/data/app/Term-nh.apk)
If you're getting a chroot error, uninstall the chroot, and re-download it from Chroot Manager.
To correct your misunderstandings, Firmware is the base software of the phone, which has Modem information, etc etc. Firmware is released by OnePlus, and it has minor changes and tweaks with every new version. Developers can choose any Firmware version to build their ROM over it. So if you're installing a new ROM, make sure to check the Firmware version. If your current firmware version is below the required version for the ROM, TWRP will give you a "Error=7" when flashing the ROM.
Kali Nethunter is a Kernel for OP3/3T, not a ROM. Make sure you've flashed the correct Zip file, as there are many versions, one for OOS stock, another for LOS, and so on and on.
Also for using Kali for Wi-Fi related purposes, I must warn you that it is not legal, but if you must, then there is a specific Wi-Fi adapter to be used with the 3/3T. I will update you on what the exact model is, and it is quite inexpensive on eBay.
I advise you to use Kali on OOS, rather than LOS, as it is more stable on OOS.
Cheers!
thes3usa said:
Hello Mate,
Welcome to the OnePlus fam!
So as I've understood, your Kali Terminal is not working. I've had the exact issue, and I fixed it by reinstalling the Terminal apk ;(https://github.com/offensive-securi...thunter-installer/update/data/app/Term-nh.apk)
If you're getting a chroot error, uninstall the chroot, and re-download it from Chroot Manager.
To correct your misunderstandings, Firmware is the base software of the phone, which has Modem information, etc etc. Firmware is released by OnePlus, and it has minor changes and tweaks with every new version. Developers can choose any Firmware version to build their ROM over it. So if you're installing a new ROM, make sure to check the Firmware version. If your current firmware version is below the required version for the ROM, TWRP will give you a "Error=7" when flashing the ROM.
Kali Nethunter is a Kernel for OP3/3T, not a ROM. Make sure you've flashed the correct Zip file, as there are many versions, one for OOS stock, another for LOS, and so on and on.
Also for using Kali for Wi-Fi related purposes, I must warn you that it is not legal, but if you must, then there is a specific Wi-Fi adapter to be used with the 3/3T. I will update you on what the exact model is, and it is quite inexpensive on eBay.
I advise you to use Kali on OOS, rather than LOS, as it is more stable on OOS.
Cheers!
Click to expand...
Click to collapse
now i am on latest PA official rom, i'm gonna try again. i like non-stock based roms because they allow device encryption with root (which stock roms don't allow) and i always keep my device encrypted as a security and ethical hacking student . i try to secure my devices from every new hack i learn. but i heard when you install NetHunter on Android, its security is compromised already, anyways,
as i mentioned the zips i downloaded from NetHunter builds, do you see any wrong zip? i downloaded kernel for CM based roms and also generic NetHunter,
which exactly Rom+Kernel combinations you have if you are using NetHunter? my device was on OOS 4.1.7 before i installed LineageOS 14.1 official on it. so suggest me the better OOS? and i will have to download anyway coz i lost my original backup of stock OOS 4.1.7 .
about wifi devices, i have 3 devices.
1. TP-LINK TL-WN722N
2. ALFA AWUS036H
3. ALFA AWUS036NH
none of them was detected by NetHunter app info screen, i heard on kali nethunter thread that TP Link TL-WN722N works, but it was not detected. but i can buy new device if needed, thats not a big issue, though it would be better if i can make one of above device to work with it. and there is a discussion on it that i will check if my NetHunter works properly first.
about the firmwares, i still don't get it, correct me if i'm wrong,
let say my phone was on OOS 4.1.7 when i bought it, then i rooted and installed TWRP on it, then i installed LineageOS 14.1 on it. so technically i am still on firmware 4.1.7 ? is that what you mean?
so if i want to install CM 13 on my device i will have to check what firmware is CM 13 build upon and flash that firmware before i flash CM 13 ? is that right?
so there is no trouble of bootloaders in OP3T as it was in samsung ? like in note 5 i upgraded to nougat and then i wanted to go back to lollypop but i couldn't because newer bootloader didn't allow me to go back, and i had to do some exercise to downgrade bootloader to lollypop before i could install any lollypop rom. so in OP3T firmware is to be flashed before installing certain roms is same like bootloaders was in samsung?
is it safe always to go back and forth in firmware flashings? if i wanna install lollypop rom i just flash that firmware which that rom is built upon and i am good to go? and then if i want to come back to nougat rom i just flash specific firmware and i'm good to go? (i know i am totally confused in this system, but i think i got it right now?). please confirm if all i said about firmwares is right or wrong so i can understand :fingers-crossed:
thanks
It sounds like the issue is that you are using PA. Their source is usually not CM/LOS based. I don't know about the newest versions though or if NetHunter has a PA compatible version.
Sent from my OnePlus 3T using XDA Labs
MrMeeseeks said:
It sounds like the issue is that you are using PA. Their source is usually not CM/LOS based. I don't know about the newest versions though or if NetHunter has a PA compatible version.
Sent from my OnePlus 3T using XDA Labs
Click to expand...
Click to collapse
no no, i am now on PA, but i tried NetHunter in LOS official 14.1

*Depreciated* [Global/China] Dev/Stable/Alpha Firmware Packages for the Mi 6

Project depreciated! Leaving here for the time being.
See yshalsager's thread for automated firmware zips and quicker releases:
https://forum.xda-developers.com/mi-6/development/firmware-xiaomi-mi-6-t3760924
Here will be the firmware packages from the latest Global/China MIUI ROMs for those of you using custom ROMs that require the firmware for radios etc to work.
I will try to keep it as up-to-date as possible so every time you need to update your ROM you can grab the newest firmware here and use it to keep firmware up-to-date as well.
Installation Instructions:
I recommend using firmware from the Stable builds, but the firmware from the other ROMs should be fine too. Let us know in the comments if you see any differences between them.
For Oreo ROMs use Oreo Firmware.
For Nougat ROMs use Nougat Firmware.
Follow advice from your ROM maintainer!
(or)
1. Wipes
2. Flash Firmware
3. Flash ROM
4. Other stuff you do in recovery
Global ROMs Firmware:
Oreo Global Developer Firmware:
Latest:
8.3.1: AFH
Previous:
See my AFH Global Beta Oreo folder: All Firmware Packages
Nougat Global Stable Firmware:
Latest:
9.2.2.0: AFH
Chinese ROMs Firmware:
Oreo China Stable Firmware:
Latest:
9.2.3.0: AFH
Oreo China Developer Firmware:
Latest:
8.2.24: AFH
Previous:
See my AFH China Beta Oreo folder: All Firmware Packages
Nougat China Stable Firmware:
Latest:
9.2.4.0: AFH
Previous:
See my AFH China Stable folder: All Firmware Packages
Nougat China Developer Firmware:
Latest:
7.12.7: AFH
Previous:
See my AFH China Dev folder: All Firmware Packages
thank you
Thanks. Note that you need the latest TWRP.
Release notes:
https://twrp.me/site/update/2017/12/01/twrp-3.2.0-0-released.html
Download:
https://dl.twrp.me/sagit/
Sounds great! Installing this on top of an already installed ROM is not recommended?
Ultraschorsch said:
Sounds great! Installing this on top of an already installed ROM is not recommended?
Click to expand...
Click to collapse
In theory it should be fine since it doesn't replace anything to do with /system.
In practice I'm not 100% sure as I've seen a few people mess up their installs by flashing firmware after ROM.
You can just flash firmware then dirty flash your ROM to be sure.
Kind of like if you were updating your ROM just using the zip version you already are on.
Dobsgw said:
In theory it should be fine since it doesn't replace anything to do with /system.
In practice I'm not 100% sure as I've seen a few people mess up their installs by flashing firmware after ROM.
You can just flash firmware then dirty flash your ROM to be sure.
Kind of like if you were updating your ROM just using the zip version you already are on.
Click to expand...
Click to collapse
That worked! I am on AOSPA and everything seems to work. Thank you for sharing!
Thread should be stickied
So for NisseCool's LOS15, I should grab the Oreo Alpha Firmware now? Or just keep the China Dev Nougat?
ArcOnFire said:
So for NisseCool's LOS15, I should grab the Oreo Alpha Firmware now? Or just keep the China Dev Nougat?
Click to expand...
Click to collapse
Up to you.
I'm using the dev for LOS 15 but they should all work fine.
There doesn't seem to be noticeable differences between the firmwares.
Just giving the option to those who want it
should I wipes system before I flash this firmware?
Liaoyiwa said:
should I wipes system before I flash this firmware?
Click to expand...
Click to collapse
No its not necessary.
Nothing from the zip should affect the system partition.
However I recommend flashing the firmware before flashing your ROM eg with an update or dirty flash just to be 100% sure.
But many users choose to just flash the updated firmware over their ROM and it works just as well
Maybe I'm just OCD about my install proceedures
Oreo Beta Firmware coming now. Link will be up today.
Thx a lot!I fixed nfc not working in miui by flashing the latest china dev firmware.
Dobsgw said:
Oreo Beta Firmware coming now. Link will be up today.
Click to expand...
Click to collapse
Hi buddy. Whick FW to use for latest AospExtended from 30/12/2017?
icrunchbanger said:
Hi buddy. Whick FW to use for latest AospExtended from 30/12/2017?
Click to expand...
Click to collapse
One of the latest ones
On LineageOS I'm using the latest stable firmware.
I haven't been able to update the firmware packages for the last week as I'm away ATM but will be back soon and can resume uploading them.
You can also make the zips yourself if you download the latest ROM from miui website and use one of mine as a template of what files to remove and what to leave.
And then compare the updater script to see what lines to remove.
Its really easy I'm just uploading for people that don't want to download an entire ROM
China dev 7.11.30 :
https://androidfilehost.com/?fid=745849072291698124
Global stable 9.0.2.0:
https://androidfilehost.com/?fid=889964283620776132
Hi, do you have Global Stable 8.2.2.0 firmware? I've mic problem with my Mi6, and it seems the mic is working only in 8.2.2.0
fuqiangyang said:
Hi, do you have Global Stable 8.2.2.0 firmware? I've mic problem with my Mi6, and it seems the mic is working only in 8.2.2.0
Click to expand...
Click to collapse
No sorry.
You can make it yourself very easily though by downloading the full package from end.muiu.com and then using one of my firmware packages as an example of what to remove and what to leave.
Then copy the updater-script from mine to yours or edit it to be the same and flash
Dobsgw said:
No sorry.
You can make it yourself very easily though by downloading the full package from end.muiu.com and then using one of my firmware packages as an example of what to remove and what to leave.
Then copy the updater-script from mine to yours or edit it to be the same and flash
Click to expand...
Click to collapse
Ok, i will try it, thanks a lot
I'm planning to use custom ROM like LOS, but everytime i flash, the mic always not working properly, for example when recording, my voice can't be recorded, but if i tap the mic, the tapping voice is recorded..in the MIUI 9 Stable and Beta, the voice can be recorded but we have to speak very closely to the mic and the voice result also very low..and when i tried to flash back to 8.2.2.0 the mic is working normally, so do u think it's the firmware problem?
---------- Post added at 07:43 PM ---------- Previous post was at 07:42 PM ----------
I'm quite newbie about this, so i'm really sorry if i bother u a lot

Open beta and official

So, what's the difference between open beta and official? Like, if I flash open beta firmware/modem on RR, but decide to flash back to official firmware/modem....would their be any issues?
jamescable said:
So, what's the difference between open beta and official? Like, if I flash open beta firmware/modem on RR, but decide to flash back to official firmware/modem....would their be any issues?
Click to expand...
Click to collapse
Haha. Even open beta is official. Bt people only call stable ones official. Official means the one provided by the oem so open beta and stable both are official as they are both provided by one plus themselves . Don't get confused by others.
When u r flashing CUSTOM ROMS LIKE rr always flash latest open bera firmwares
There is no problem if u want to go back to stock rom from a custom rom just don't forget to do a clean flash ok
jokerpappu said:
Haha. Even open beta is official. Bt people only call stable ones official. Official means the one provided by the oem so open beta and stable both are official as they are both provided by one plus themselves . Don't get confused by others.
When u r flashing CUSTOM ROMS LIKE rr always flash latest open bera firmwares
There is no problem if u want to go back to stock rom from a custom rom just don't forget to do a clean flash ok
Click to expand...
Click to collapse
What is the LAST open beta for nougat for 3t?
jamescable said:
What is the LAST open beta for nougat for 3t?
Click to expand...
Click to collapse
Open beta 15 is the last nougat beta for op3t bt i recommend oos 4.5.1 stable as it has a better battery life in my opinion
jokerpappu said:
Open beta 15 is the last nougat beta for op3t bt i recommend oos 4.5.1 stable as it has a better battery life in my opinion
Click to expand...
Click to collapse
All right so what would happen if I mix the radio/modem update from Oreo, with the firmware from nougat for a nougat ROM?
jamescable said:
All right so what would happen if I mix the radio/modem update from Oreo, with the firmware from nougat for a nougat ROM?
Click to expand...
Click to collapse
Well that i don't know bt its better not to do that in my opinion.
jamescable said:
All right so what would happen if I mix the radio/modem update from Oreo, with the firmware from nougat for a nougat ROM?
Click to expand...
Click to collapse
If you flash oreo firmware you cant flash nougat rom until you flash nougat firmware back. You end up with error 7 in twrp.
valimakik said:
If you flash oreo firmware you cant flash nougat rom until you flash nougat firmware back. You end up with error 7 in twrp.
Click to expand...
Click to collapse
Right, buuut...if I replace the modem within the nougat flashable zip with the modem from Oreo, it WILL flash without messing with firmware with a nougat rom

Baseband version of nougat firmware

So hey guys. I was on AICP Oreo build and may stable Oreo firmware and baseband...I decided that Oreo still wasn't stable enough and missed a lot features, even tried RR Oreo so I went back to RR nougat....tho I decided to skip a step and see what happened....I DID NOT FLASH NOUGAT FIRMWARE AND BASEBAND. Everything is running perfectly using nougat ROM and Oreo firmware......my question is, I am wanting to make sure I still using Oreo firmware (tho I don't see how I wouldn't be). Can someone look at their bootloader version on Oreo, baseband version and comment?
Anyone?
Well...thanks for the help
jamescable said:
Well...thanks for the help
Click to expand...
Click to collapse
I saw the thread earlier, and from the title thought you were looking for the Nougat baseband, which I can't personally help with.
I also don't use custom ROMs. Do they user their own baseband/firmware; or are you basically just looking for the baseband number for stock OOS Oreo?
This is what the baseband is on my phone. I'm on OOS 5.0.3 firmware.
Also, you could have just flashed the relevant full image zip file to make sure you had the required firmware installed.
Custom ROMs do not install firmware. They only install system and boot image.
Sent from my OnePlus 3T using XDA Labs
BillGoss said:
This is what the baseband is on my phone. I'm on OOS 5.0.3 firmware.
Also, you could have just flashed the relevant full image zip file to make sure you had the required firmware installed.
Custom ROMs do not install firmware. They only install system and boot image.
Sent from my OnePlus 3T using XDA Labs
Click to expand...
Click to collapse
OK, so....I am on Oreo firmware with nougat ROM and have ZERO issues.....wanted to make sure so others can flash Oreo firmware on nougat ROMs

Firmware Version on Stock MIUI Rom

How do you check the current firmware version on the stock Global Xiaomi MIUI Rom?
I'm interested in installing a custom ROM but I'm worried about bricking my phone by flashing an incorrect firmware number.
Edit: When custom ROM threads refer to a specific firmware version, they are usually talking about the beta MIUI ROMS, not the stable channel. The version numbers for beta Roms have a different numbering scheme than stock so it can be confusing for newcomers to understand.

Categories

Resources