[HTC One M8 for Windows] ceesheim:
and why do you think that ?

show me one android phone bootloader that can work with UEFI firmware.

its a chain of trust on WP8.* , this means from PBL all up to the OS its secure boot , that isn't the case on android !!!

http://xdaforums.com/showpost.php?p=51233276&postcount=5

Heck , to be honest , I don't think it is compatible in any form.

that they use the same hardware doesn't mean its the exact same programmed SoC , in SoC is also a small part of code (this is hard coded and you buy it with this code from Qcom)and I don't think that is the same on android phones.

<?xml version="1.0" encoding="utf-8"?>
<DeviceLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/embedded/2004/10/ImageUpdate">
<Partitions>
<!-- READ-ONLY SECTION START -->

<!-- Device Provisioning Partition (FIRST READ-ONLY) -->
<Partition>
<Name>DPP</Name>
<!-- PARTITION_BASIC_DATA_GUID -->
<Type>{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}</Type>
<TotalSectors>16384</TotalSectors>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- QUALCOMM 8960 SPECIFIC READ-ONLY PARTITIONS -->

<!-- Modem golden file system - MUST FOLLOW DPP -->
<Partition>
<Name>MODEM_FSG</Name>
<TotalSectors>6144</TotalSectors>
<Type>{638FF8E2-22C9-E33B-8F5D-0E81686A68CB}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- Secure Software Download -->
<Partition>
<Name>SSD</Name>
<TotalSectors>16</TotalSectors>
<Type>{2C86E742-745E-4FDD-BFD8-B6A7AC638772}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- Bootloaders -->
<Partition>
<Name>SBL1</Name>
<TotalSectors>3000</TotalSectors>
<!-- Qualcomm defined for SBL1 -->
<Type>{DEA0BA2C-CBDD-4805-B4F9-F428251C3E98}</Type>
<Bootable>true</Bootable>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>SBL2</Name>
<TotalSectors>3000</TotalSectors>
<Type>{8C6B52AD-8A9E-4398-AD09-AE916E53AE2D}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>SBL3</Name>
<TotalSectors>4096</TotalSectors>
<Type>{05E044DF-92F1-4325-B69E-374A82E97D6E}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>UEFI</Name>
<TotalSectors>5000</TotalSectors>
<Type>{400FFDCD-22E0-47E7-9A23-F16ED9382388}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>RPM</Name>
<TotalSectors>1000</TotalSectors>
<Type>{098DF793-D712-413D-9D4E-89D711772228}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>TZ</Name>
<TotalSectors>1000</TotalSectors>
<Type>{A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- fTPM Application -->
<Partition>
<Name>WINSECAPP</Name>
<TotalSectors>1024</TotalSectors>
<Type>{69B4201F-A5AD-45EB-9F49-45B38CCDAEF5}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- Bootloaders Backup Section (Sizes must match) -->
<Partition>
<Name>BACKUP_SBL1</Name>
<TotalSectors>3000</TotalSectors>
<!-- Qualcomm defined for SBL1 -->
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<Bootable>true</Bootable>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>BACKUP_SBL2</Name>
<TotalSectors>3000</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>BACKUP_SBL3</Name>
<TotalSectors>4096</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>BACKUP_UEFI</Name>
<TotalSectors>5000</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>BACKUP_RPM</Name>
<TotalSectors>1000</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>BACKUP_TZ</Name>
<TotalSectors>1000</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- fTPM Application Backup Section (Sizes must match) -->
<Partition>
<Name>BACKUP_WINSECAPP</Name>
<TotalSectors>1024</TotalSectors>
<Type>{A3381699-350C-465E-BD5D-FA3AB901A39A}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- UEFI Variable Services Partitions - Read-Only -->
<Partition>
<Name>UEFI_BS_NV</Name>
<TotalSectors>512</TotalSectors>
<Type>{F0B4F48B-AEBA-4ECF-9142-5DC30CDC3E77}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>UEFI_NV</Name>
<TotalSectors>512</TotalSectors>
<Type>{74DA3EE7-D422-487C-A573-CE03C261362F}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- ACPI table storage -->
<Partition>
<Name>PLAT</Name>
<TotalSectors>16384</TotalSectors>
<FileSystem>FAT</FileSystem>
<Type>{543C031A-4CB6-4897-BFFE-4B485768A8AD}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- EFI System Partition (LAST READ-ONLY) -->
<Partition>
<Name>EFIESP</Name>
<FileSystem>FAT</FileSystem>
<TotalSectors>131072</TotalSectors>
<ByteAlignment>0x4000000</ByteAlignment>
<Type>{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- READ-ONLY SECTION END -->

<!-- START QUALCOMM 8960 SPECIFIC READ-WRITE PARTITIONS -->

<!-- Modem live file systems -->
<Partition>
<Name>MODEM_FS1</Name>
<TotalSectors>6144</TotalSectors>
<Type>{EBBEADAF-22C9-E33B-8F5D-0E81686A68CB}</Type>
<RequiredToFlash>true</RequiredToFlash>
<ByteAlignment>0x4000000</ByteAlignment>
</Partition>
<Partition>
<Name>MODEM_FS2</Name>
<TotalSectors>6144</TotalSectors>
<Type>{0A288B1F-22C9-E33B-8F5D-0E81686A68CB}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- UEFI Variable Services Partitions - Read-Write -->
<Partition>
<Name>UEFI_RT_NV</Name>
<TotalSectors>512</TotalSectors>
<Type>{6BB94537-7D1C-44D0-9DFE-6D77C011DBFC}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>
<Partition>
<Name>UEFI_RT_NV_RPMB</Name>
<TotalSectors>256</TotalSectors>
<Type>{E35F99CF-0025-4252-A608-CAAA1289CAF4}</Type>
<RequiredToFlash>true</RequiredToFlash>
</Partition>

<!-- END QUALCOMM 8960 SPECIFIC READ-WRITE PARTITIONS -->

<!-- START MICROSOFT READ-WRITE PARTITIONS -->
<Partition>
<Name>MMOS</Name>
<FileSystem>FAT</FileSystem>
<MinFreeSectors>8192</MinFreeSectors>
<Type>{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}</Type>
</Partition>

<Partition>
<Name>MainOS</Name>
<!-- PARTITION_BASIC_DATA_GUID -->
<Type>{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}</Type>
<!-- Accounts for 400MB free + 50 MB boot growth + 256MB page file as defined in registry by package src\baseos\prod\packages\arm\armmemory -->
<MinFreeSectors>1445888</MinFreeSectors>
<ByteAlignment>0x800000</ByteAlignment>
<ClusterSize>0x4000</ClusterSize>
<FileSystem>NTFS</FileSystem>
<AttachDriveLetter>false</AttachDriveLetter>
</Partition>
<Partition>
<Name>Data</Name>
<!-- PARTITION_BASIC_DATA_GUID -->
<Type>{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}</Type>
<UseAllSpace>true</UseAllSpace>
<ByteAlignment>0x800000</ByteAlignment>
<ClusterSize>0x4000</ClusterSize>
<FileSystem>NTFS</FileSystem>
</Partition>
</Partitions>
<!-- END MICROSOFT READ-WRITE PARTITIONS -->

<SectorSize>512</SectorSize>
<ChunkSize>128</ChunkSize>
<DefaultPartitionByteAlignment>0x200000</DefaultPartitionByteAlignment>
</DeviceLayout>