Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Hello friends

I m Arshad Khan from India

Today I m going to tell you how to generate rawprogram.xml and patch0.xml files.

These files are used to overcome the problem of Qualacomm 9008 mode and Also used
for flashing using QFIL or miFlash tools.

These files are different for each device bcz of different structure of partitions
for different devices

To generate these files you will need some things---------


1-> Qualacomm premium tool
2-> Stock firmware of your Qualacomm device(taking LG v10 H901 v20e as a example)
3-> LG Firmware extractor
4-> Python latest version installed in your PC for better performance(optional)
5-> Some patience

I am assuming that you have installed all the Qualacomm drivers.

Download all these things from links given in descrption.

Extract firmware using LG Firware extractor


1-> KDZ to Dz
2-> DZ to bins
3-> Merge all system.bin files (A seperate folder will be created automatically)
4-> Delete all the system files and move System.img from that folder to the ROM
folder
5-> rename all the files in ROM folder

Extract Qualacomm premium tool and activate that tool using key.(I have
already extracted)
1-> Run CMD_KEYGEN_CRACKED_by_FACEBOOK in extracted folder and save your key
2-> Run Qualcomm Premium Tool as administrator
3-> Click HELP and ACTIVATE your software by navigate to saved key(I have already
Activated) (Done)

Now you are ready

(Copy PrimaryGPT_0.bin in any other folder)

Click on eMMC tab in Qualacomm premium tool


click BROWSE-> select PrimaryGPT_0.bin from Newly made folder
click dropdown-> select RAM size e.g 4 GB
tick all
click on EXTRACT PARTITIONS and
click on EXTRACT FIRMWARE

Now you can see in the folder all generated XML files and some bin files
Move these files to extracted Firmware folder
Open rawprogram.xml in notepad++ or notepad
Rename all required files
Now delete some lines from this rawprogram.xml file
I m deleting these lines bcz there is no regarding file in the ROM folder
e.g spare1 bcz there is no spare1 file in that folder so remove that line from xml
file
Now some file have no refernce in the XML file so create the reference for those
files
Save rawprogram.xml file

Now you are ready for flashing your phone


You can use QFIL(Recomended) or any other toolsfor flashing purpose
But before this you need a firehose programmer for example emmc8992.mbn
Dont worry here it is
Open your qualacomm premium tool folder
Open data
open firehose
Mostly firehose are available in that folder
select one as your requirement abd copy that to ROM folder
Now open QFIL
Click flat build
Click Browse
Click Load xml
Now you are ready to flash
connect your phone
click download
it will take some time for completion
And you are done

Thanks for watching guys


This is my first video
Please subscribe to my channel for more amazing tutorials

Thanks

You might also like