{Porting} HTC One mini 2 Rom

talhask

Senior Member
Dec 18, 2013
220
15
0
Hi devs I am creating this thread to request you guus to make a htc one theme based rom... Please devs as moto g mostly contain stock like rom there is no themed rom for moto g..! :D
The Following Information is proved by @lost101

Here is some information about why and how this port might be possible. The HTC One Mini 2 and Moto G share very similar hardware; they both appear to use the same CPU: Qualcomm MSM8226 Snapdragon 400. They also use Adreno 305 for graphics. Side-by-side comparison.

I have taken the ROM created by @Will972 from here - edited the install script to match the XT1032 partition table and replaced the 4.4.2 Kernel / Kernel Modules with those for XT1032 GPE.

Download Link: XT1032_One_Mini_2_stock_2.18.401.3.zip (1.1GB)

Please note, that due to the size of this ROM, it can only be installed with MultiROM. The ROM zip can be extracted, and some apk(s) removed and simpy rezipped to make it flashable in custom Recovery. See below for space available on XT1032.

XT1032 Partition info: (GPE 5.1 installed)
Name: /system
Size: 960.6M
Used: 501.6M
Free: 459.1M​

Something I did notice this time, that I missed before; is that the install script formats /system to EXT4. If I recall correctly; in previous attempts to boot this ROM, I was using the f2fs-only stock kernel. In the above ROM zip, I have included the GPE 4.4.2 kernel which supports EXT4.

Also note; users who have the v41.18 Bootloader will experience screen-flicker when booting KitKat kernels. I am not sure if such users can even still boot a 4.4.2 kernel.

Suggestions / Ideas:
1. The ROM is currently pre-rooted, this could cause some boot issues. Will attempt to provide an unrooted version asap.
2. The /data folder included in the root of the ROM zip can probably be removed entirely without affecting the ROMs ability to boot.
3. If ROM will not boot, replace system files in HTC One Mini 2 ROM with those from the 'Untouched' XT1032 GPE 4.4.4 ROM available here. Initial focus should probably be in the areas of /etc and /lib.
4. ROM may be compatible with GPE 4.4.4 Kernel.​
 
Last edited:
  • Like
Reactions: lost101

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0

AndyYan

Recognized Contributor
Jan 30, 2012
4,214
3,361
253
Beijing
Just grab a CM12, install an HTC theme, and install Sense Home and other HTC APKs which have been available for quite some time (search!). If you want other functions of an HTC phone then why aren't you buying one in the first place...

Sent from Google Nexus 4 @ CM12.1
[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
 

sjandroiddeveloper

Senior Member
Jan 16, 2015
912
324
0
I did look into porting a HTC One Mini 2 ROM - as the hardware is very similar to Moto G. However the system partition on Moto G was barely big enough to hold the ROM, even with all the HTC apps removed.

Moto G Stock Motorola ROMs are around 500mb, but HTC One Mini 2 Stock ROMs are 1.2gb.

Here is a link if someone is interested: http://forum.xda-developers.com/one-mini-2/development/htc-one-mini-2-stock-rom-2-16-401-1-t2933513
I guess someone has to mess with the partition table then???
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0

sjandroiddeveloper

Senior Member
Jan 16, 2015
912
324
0
Doing such a thing has been discussed since the Moto G was first released. On other devices, changing the size of /system has required a modified custom recovery, and / or other modifications. It rarely appears to be a simple process.

Partition Layout thread: http://forum.xda-developers.com/showthread.php?t=2540799
That's why I said 'mess'


BTW- WE CAN USE MULTIROM TO BOOT THE ROM BECAUSE IT FLAHSES THE SECONDARY ROM IN DATA PARTITION


So a bigger ROM size wouldn't matter there
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
That's why I said 'mess'


BTW- WE CAN USE MULTIROM TO BOOT THE ROM BECAUSE IT FLAHSES THE SECONDARY ROM IN DATA PARTITION


So a bigger ROM size wouldn't matter there
Good point, I did not consider MultiROM. I have never actually used it, so that method did not come to mind.
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
Last edited:

sjandroiddeveloper

Senior Member
Jan 16, 2015
912
324
0

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
So can we boot HTC one mini 2 rom in this same way ??
It's a more complicated process and requires someone with real experience. For instance, messing around with TWRP backup from HTC one mini 2 could destroy a Moto G overwritting sensitive partitions. A zip that only flashes to /system carries no risk. I would assist someone interested in the project.
 

talhask

Senior Member
Dec 18, 2013
220
15
0
It's a more complicated process and requires someone with real experience. For instance, messing around with TWRP backup from HTC one mini 2 could destroy a Moto G overwritting sensitive partitions. A zip that only flashes to /system carries no risk. I would assist someone interested in the project.
So what should i do..??
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
So what should i do..??
You could change the title of the thread to: [Porting Project] HTC One Mini 2 ROM
People with more experience and time than me are required to make it happen. I could provide a ROM zip as a starting point, but it would be up to others to make it boot and fix everything that's broken.
 
Last edited:

talhask

Senior Member
Dec 18, 2013
220
15
0
You could change the title of the thread to: [Porting Project] HTC One Mini 2 ROM
People with more experience and time than me are required to make it happen. I could provide a ROM zip as a starting point, but it would be up to others to make it boot and fix everything that's broken.
do you know any one who could do this.....?