[Firmware] Xiaomi Redmi 9 / Redmi 9 Prime [lancelot] [Auto updated!]

Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Xiaomi custom users face a problem with firmware updates. As there are many devices with no one to provide the newest firmware update every single release, and developers who provide updates to devices may forget or be busy sometimes, so releases are provided later. Here comes Xiaomi Firmware Updater project:


    Xiaomi Firmware Updater (Redmi 9 / Redmi 9 Prime)



    jSIVrRy.png
    Code:
    #include
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */


    What is Xiaomi Firmware Updater?
    A set of various scripts that automatically generates Xiaomi firmware flashable zip files for every MIUI new update! My scripts download MIUI official ROMs, both Developer and Stable, Global, EEA, India, and China, extract firmware either from the firmware-update folder or from update payload, generate firmware flashable zip with auto-written "updater-script", and uploads them automatically to multiple servers. These scripts are completely automated, running on a Linux server every X hours.

    Notes:
    Firmware filenames for this device are in the following manner:
    • fw_lancelot_miui_LANCELOT_*.zip is Redmi 9 (lancelot) China firmware.
    • fw_lancelot_miui_LANCELOTGlobal_*.zip is Redmi 9 (lancelot) Global firmware.
    • fw_lancelot_miui_LANCELOTEEAGlobal_*.zip is Redmi 9 (lancelot) EEA Global firmware.
    • fw_lancelot_miui_LANCELOTINGlobal_*.zip is Redmi 9 Prime (lancelot) India Global firmware.

    Downloads
    You can get updates always from various mirrors available on the website:

    Frequently Asked Questions:
    What is firmware? Is it a full ROM or OTA package?
    Firmware is not a ROM nor OTA Package, it's a set of low-level drivers which helps the operating system do whatever it wants to do. It includes various things like Modem, Bluetooth, Bootloader, DSP and etc.

    Why should I update the Firmware?
    Firmware is provided from Xiaomi directly, and there are no sources for it to let developers build and edit it on their own like custom ROMs, so if you want to keep your device up to date always update your firmware!

    Do I need to update the Firmware If I'm an MIUI official or a custom ROM user?
    No, MIUI ROMs contain the firmware-update package which I extract and provide here.

    What are the supported devices?
    All Snapdragon and MTK devices including China-only devices.
    Check the full devices list here

    How to update the firmware?
    1- Download the package you want to flash. IT MUST BE NAMED WITH THE SAME CODENAME OF YOUR DEVICE.
    2- Flash it using TWRP or any custom recovery. There's no need to wipe/format anything before or after the installation.

    How to check the updated firmware?
    Usually, the modem gets updated with newer firmware, you can check it in Settings > About > Baseband.

    Support or Contact:
    Having trouble with firmware files? You can open a new issue on the GitHub repository or just write here in a reply, and we’ll help you sort it out.

    Source Code:
    - GitHub
    - Main project thread

    Donations:
    A donation was never necessary, but It's making life easier for me and guarantees paying server costs. My works are free and open-source, that cost money, time, and many efforts.

    XiaomiFirmwareUpdater and MIUIUpdatesTracker scripts are automated, running on a Linux server. If you want these projects to continue and provide the best services to Xiaomi users, you can help me by donating using:
    4
    New MIUI Stable Firmware Release

    • Version: V12.0.4.0.QJCMIXM
    • Android: 10.0
    • Region: Global
    • Filename: fw_lancelot_miui_LANCELOTGlobal_V12.0.4.0.QJCMIXM_83136e8623_10.0.zip
    • Filesize: 41.8 MB
    • MD5:
      Code:
      6f0a4f6a69473b64d20bf07ec793ddf1
    • Download: Here

    Note: Older releases are available Here
    Screenshot_20210417-124141437.jpg
    Look the image...it is the updater-script text view...

    You can sec that it patch dynamic partition and it must not right ..if anyone flash it he lost system, vendor and product...and must be his device stuck...

    Look dynamic-partition-op-list in text view..
    Screenshot_20210417-124742387.jpg


    So you must edit this (updater-script) file... And delete 12-29 line to avoid this problem...

    Tnx for understanding....
    2
    Congratulations for very good work !
    Thank you very much ♥️
    2
    Extract fw zip file and find updater-script file(find it in path /META-INF/com/google/android/)
    .then open it as text file and delete line 12-29..save the file..pack the fw as zip again..flash it....boom...now it work...
    Yeah boom it works if you do it before but boom it doesn't work if it has already messed up my partitions. As I said I wasn't able to flash anything at all that looked for /vendor (couldn't even wipe dalvik and cache)