bramaudi

Flash Android devices using qdl in Linux

I have bricked Asus phone (X00RD) when you need to flash it you must using Windows and use program named QFIL with all the complicated driver things required, fortunately there are alternative when you're a Linux user and the steps is more simple in my opinion, you don't need to have complicated requirements in software driver things.

I found a this blog post Flashing Qualcomm-powered Android device from Linux, it's very useful, we can use CLI programs called qdl and start flashing, here are the steps in my case:

  1. Download & extract the required raw firmware that match your devices, in my case raw firmware are designed for flashing like in this situation and different from OTA / flashable stock rom.

  2. Build the qdl software:

    git clone https://git.codelinaro.org/linaro/qcomlt/qdl
    cd qdl
    sudo apt install libxml2-dev
    make
    sudo make install
    
  3. Note that this phone has 2 different variant, please make sure to download the correct firmware carefully, if L1 then use prog_emmc_firehose_8917_ddr.mbn and L2 use prog_emmc_firehose_8937_ddr.mbn, if you download firmware correctly they should have only one mbn file related to correct phone variant, mine is L1 so go to extracted firmware folder then run below command:

    qdl prog_emmc_firehose_8917_ddr.mbn rawprogram0.xml patch0.xml
    
  4. At this point qdl will waiting for you device, the phone must be in 9008 / EDL mode by press and hold volume + and - at the same time while connecting it to your computer, make sure using good and working cable data.

  5. Flashing in process, a bunch of text logged in your terminal means it is working, please wait for about 15 minutes or more, if it's done my phone automatically rebooted.

    Screenshot_20240513_174902.png