[HTC Desire 526] BigCountry907:
Set up the required directory tree

The black art of generating the partition.xml

First of all this is a somewhat complicated process that needs each step to be completed properly. :eek:

It is my suggestion to create the same directory structure that I have.

If you make the same director structure then you can use the same commands without editing.

Otherwise edit the commands to have the correct PATHS.

Step #1 Set up the Directory Structure

Open a terminal shell and create the directories.

mkdir ~/Desktop/526-Completed
mkdir ~/Desktop/526-Completed/A13-Backup
mkdir ~/Desktop/526-Completed/bin
mkdir ~/Desktop/526-Completed/Convert-Sparse
mkdir ~/Desktop/526-Completed/Get-GPT_Info
mkdir ~/Desktop/526-Completed/manuals
mkdir ~/Desktop/526-Completed/Other-Tools
mkdir ~/Desktop/526-Completed/TARGET_Build
mkdir ~/Desktop/526-Completed/A13-Backup/boot-img
mkdir ~/Desktop/526-Completed/A13-Backup/EMMC-Image
mkdir ~/Desktop/526-Completed/A13-Backup/pull
mkdir ~/Desktop/526-Completed/A13-Backup/RUU
mkdir ~/Desktop/526-Completed/A13-Backup/TWRP-Recovery
mkdir ~/Desktop/526-Completed/Convert-Sparse/data
mkdir ~/Desktop/526-Completed/Convert-Sparse/sys
mkdir ~/Desktop/526-Completed/Example-Rom

Step #2 Set up the Backup Device Files

Add the full emmc image that we pulled from the device in previous post into this folder.

~/Desktop/526-Completed/A13-Backup/EMMC-Image

Rename the image file to ( 526-EMMC-Complete.img ) without the brackets.

The file path should now be.

~/Desktop/526-Completed/A13-Backup/EMMC-Image/526-EMMC-Complete.img

Add the separate partition backups that we made in a previous post to this folder.

mkdir ~/Desktop/526-Completed/A13-Backup/pull

The folder should now have the following paths.

~/Desktop/526-Completed/A13-Backup/pull/aboot_signed.img
~/Desktop/526-Completed/A13-Backup/pull/absolute.dd
~/Desktop/526-Completed/A13-Backup/pull/appreload.img
~/Desktop/526-Completed/A13-Backup/pull/battery.dd
~/Desktop/526-Completed/A13-Backup/pull/board_info.bin
~/Desktop/526-Completed/A13-Backup/pull/boot_signed.img
~/Desktop/526-Completed/A13-Backup/pull/cache.dd
~/Desktop/526-Completed/A13-Backup/pull/carrier.dd
~/Desktop/526-Completed/A13-Backup/pull/cdma_record.dd
~/Desktop/526-Completed/A13-Backup/pull/control.dd
~/Desktop/526-Completed/A13-Backup/pull/cota.img
~/Desktop/526-Completed/A13-Backup/pull/ddr.dd
~/Desktop/526-Completed/A13-Backup/pull/debug_config.dd
~/Desktop/526-Completed/A13-Backup/pull/devlog.dd
~/Desktop/526-Completed/A13-Backup/pull/extra.dd
~/Desktop/526-Completed/A13-Backup/pull/fataldevlog.dd
~/Desktop/526-Completed/A13-Backup/pull/frp.dd
~/Desktop/526-Completed/A13-Backup/pull/fsc.dd
~/Desktop/526-Completed/A13-Backup/pull/hosd_signed.img
~/Desktop/526-Completed/A13-Backup/pull/limits.dd
~/Desktop/526-Completed/A13-Backup/pull/local.dd
~/Desktop/526-Completed/A13-Backup/pull/mfg.bin
~/Desktop/526-Completed/A13-Backup/pull/misc.nb0
~/Desktop/526-Completed/A13-Backup/pull/modem_st1.img
~/Desktop/526-Completed/A13-Backup/pull/modem_st2.img
~/Desktop/526-Completed/A13-Backup/pull/pdata.dd
~/Desktop/526-Completed/A13-Backup/pull/persist.img
~/Desktop/526-Completed/A13-Backup/pull/pg1fs.dd
~/Desktop/526-Completed/A13-Backup/pull/pg2fs_ship_signkey.img
~/Desktop/526-Completed/A13-Backup/pull/radio.img
~/Desktop/526-Completed/A13-Backup/pull/ramdump.dd
~/Desktop/526-Completed/A13-Backup/pull/recovery_signed.img
~/Desktop/526-Completed/A13-Backup/pull/reserve.dd
~/Desktop/526-Completed/A13-Backup/pull/reserve_1.dd
~/Desktop/526-Completed/A13-Backup/pull/Reserve_2.dd
~/Desktop/526-Completed/A13-Backup/pull/rfg_1.img
~/Desktop/526-Completed/A13-Backup/pull/rfg_2.img
~/Desktop/526-Completed/A13-Backup/pull/rfg_8.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_0.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_3.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_4.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_5.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_6.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_7.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_9.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_10.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_11.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_12.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_13.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_14.dd
~/Desktop/526-Completed/A13-Backup/pull/Rfg_15.dd
~/Desktop/526-Completed/A13-Backup/pull/rpm-8909-1.img
~/Desktop/526-Completed/A13-Backup/pull/sbl1-8909-1.img
~/Desktop/526-Completed/A13-Backup/pull/sec.dd
~/Desktop/526-Completed/A13-Backup/pull/skylink.dd
~/Desktop/526-Completed/A13-Backup/pull/sp1.dd
~/Desktop/526-Completed/A13-Backup/pull/ssd.dd
~/Desktop/526-Completed/A13-Backup/pull/system_raw.img
~/Desktop/526-Completed/A13-Backup/pull/tool_diag.dd
~/Desktop/526-Completed/A13-Backup/pull/tz-8909-1.img
~/Desktop/526-Completed/A13-Backup/pull/userdata.img
~/Desktop/526-Completed/A13-Backup/pull/vzw_logger.dd
~/Desktop/526-Completed/A13-Backup/pull/vzw_quality.dd
~/Desktop/526-Completed/A13-Backup/pull/wcnss.img

Step#3 Add the DECRYPTED RUU FILES

We decrypted the RUU in a previous post and renamed the OUT folder to ROM.

The folder containing the decrypted ruu should be renamed to ROM.

Put the ROM Folder into this folder.

/home/bigcountry907/Desktop/526-Completed/A13-Backup/RUU

The RUU Folder should now have the following file paths.

The folder should now have the following paths.

~/Desktop/526-Completed/A13-Backup/RUU/ROM

~/Desktop/526-Completed/A13-Backup/RUU/ROM/boot
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware
~/Desktop/526-Completed/A13-Backup/RUU/ROM/system

~/Desktop/526-Completed/A13-Backup/RUU/ROM/boot/boot.img

~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/aboot_signed.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/android-info.txt
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/android-info2.txt
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/apppreload.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/backup_android-info.txt
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/bootloader
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/boot_signed.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/cota.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/dt.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/emmc_appsboot.mbn
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/gpt_main_8g.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/hosd_signed.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/partition_info
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/persist.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/pg2fs_ship_signkey.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/radio.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/ramdisk.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/recovery_signed.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/rfg_1.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/rfg_2.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/rpm-8909-1.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/sbl1-8909-1.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/splash1.nb0
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/tp_HMX852XD.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/tz-8909-1.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/userdata.img
~/Desktop/526-Completed/A13-Backup/RUU/ROM/firmware/wcnss.img

~/Desktop/526-Completed/A13-Backup/RUU/ROM/system/system.img

We downloaded a template rom in a previous post..

Put the 2 Template Rom downloads into this folder and unzip them.

~/Desktop/526-Completed/Example-Rom

The folder should now have the following paths.

~/Desktop/526-Completed/Example-Rom/LLD0005_0113031301_T07C0618_userdebug
~/Desktop/526-Completed/Example-Rom/Longcheer-l6350-FOTA
~/Desktop/526-Completed/Example-Rom/Longcheer-l6350.20150618.T07.rar
~/Desktop/526-Completed/Example-Rom/Longcheer-l6350-FOTA.zip

After you have all the files where they need to be we can get started on the GPT. :silly:

It's a lot I know. My folder is about 70gb. We need all of this to make the Rom.

If you followed along in my previous post then you should have created all the files needed.

If not all the files you need have been posted within those instructional threads.

MAKE SURE YOU HAVE ALL THE FILES

MAKE SURE YOU PUT THEM WHERE THERE NEEDED AS POSTED ABOVE :eek: