Port Miui To Htc Desire HD


Matgarro

Members
Dec 1, 2010
9
11
Hi. Is there some devolopers that can will work on the port for the HTC Desire HD?
Thanks!
 
Currently working on a Hero port. If all goes well Ill start working on the desire HD as well...

Sent from my Desire CDMA using Tapatalk
 
How is your work with the

Hi! How is your work with the Legend? when you plan to start with the desire hd? :D:rolleyes:
 
i'm also interested ... more in a porting tutorial, but well, if someone does the porting job i'll be happy too ^^
 
I did some further tests (i'm not an expert, and no member give me advice ... so i try things that make sense for me, but i could be totaly wrong)

I donwloaded the lastest MUI for N1 (because N1 always has last version before others)

I extract the zip
I changed the build.prop values
Code:
ro.build.tags=test-keys
ro.product.model=Nexus One
ro.product.brand=generic
ro.product.name=libra_passion
ro.product.device=passion
ro.product.board=mahimahi
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=qsd8k
# ro.build.product is obsolete; use ro.product.device
ro.build.product=passion

into (the one found on CM for DHD)

Code:
ro.build.tags=test-keys
ro.product.model=Desire HD
ro.product.brand=htc_wwe
ro.product.name=htc_ace
ro.product.device=ace
ro.product.board=ace
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=qsd8k
# ro.build.product is obsolete; use ro.product.device
ro.build.product=ace


I removed the asserts checks in the updater-script (so it will not say that i don't have the right phone ^^)
I replace the boot.img by a CM 6.1 RC2 for DHD boot.img
I deleted the /system/lib/modules and replaced it by the same directory from CM 6.1 RC2 for DHD

zip the files, signed the zip file and put it on phone

it flash ... but after a while, it give me an error 7 on write_raw_image("/tmp/boot.img", "boot") (so the last part of the flash has error :( )

I tried the same without replacing the kernel and modules, but the same things happens ....

if someone has ideas, i'll test it (it is almost impossible to brick an android phone ^^)
 
I don't know!

I'm sorry but I can not help you. I do not understand anything about programming. we hope that some expert will give us a hand!
 
i don't think that porting a rom need a lot of programming skill..., it is more logical skill (disable commands that are not for the device, add drivers or kernel, change the scripts ..) at least for having a beginning.
I don't expect a first port to have all stuff working ....

but like i'd say, i never ported a rom...
android is free and open source, there is a great community, but for firmware stuff it is like you need to offer 500$ to receive help :( ....

I can understand, than some people don't want to answer every noob question. But is this a reason for not having a tutorial or at least some advices ....
 
I did some further tests (i'm not an expert, and no member give me advice ... so i try things that make sense for me, but i could be totaly wrong)

I donwloaded the lastest MUI for N1 (because N1 always has last version before others)

I extract the zip
I changed the build.prop values
Code:
ro.build.tags=test-keys
ro.product.model=Nexus One
ro.product.brand=generic
ro.product.name=libra_passion
ro.product.device=passion
ro.product.board=mahimahi
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=qsd8k
# ro.build.product is obsolete; use ro.product.device
ro.build.product=passion

into (the one found on CM for DHD)

Code:
ro.build.tags=test-keys
ro.product.model=Desire HD
ro.product.brand=htc_wwe
ro.product.name=htc_ace
ro.product.device=ace
ro.product.board=ace
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=qsd8k
# ro.build.product is obsolete; use ro.product.device
ro.build.product=ace


I removed the asserts checks in the updater-script (so it will not say that i don't have the right phone ^^)
I replace the boot.img by a CM 6.1 RC2 for DHD boot.img
I deleted the /system/lib/modules and replaced it by the same directory from CM 6.1 RC2 for DHD

zip the files, signed the zip file and put it on phone

it flash ... but after a while, it give me an error 7 on write_raw_image("/tmp/boot.img", "boot") (so the last part of the flash has error :( )

I tried the same without replacing the kernel and modules, but the same things happens ....

if someone has ideas, i'll test it (it is almost impossible to brick an android phone ^^)

The DHD doesn't support that old update-script.

I also tried porting both from the Desire Z and Evo but without success... All I did was change all the stuff in build.prop and the updater-script and I replaced the kernel + modules but it didn't even get past the HTC scrren :s
 
so you succeed in flashing it ? just a freeze on boot ???

I didn't create an update-script ... i updated the updater-script
 
from witch device did the port boot up ?
maybe i did something wrong, or i forgot to check something ...
you can count on me if you need a tester or help (you already had more luck than I)
 
from witch device did the port boot up ?
maybe i did something wrong, or i forgot to check something ...
you can count on me if you need a tester or help (you already had more luck than I)

The Desire Z. I have a lot of work to do ATM so I'm afraid this is going to have to wait but I'll be on it again when I have some time :)
 
hey!

Hello guys! I hope you can soon make a version for the HTC HD desire. This rom has a phenomenal graphics! I could give you a hand I would gladly, but I do not understand anything about programming!
 
So, I got 0.12.18 running.
I took g4rb4g3 port to Desire Z from xda :
http://forum.xda-developers.com/showthread.php?t=871344
I changed the boot.img and the kernel modules from CM6.1-RC2.
I copied the update-binary from the CM6.1-RC2 and patched updater-script, replacing vision by ace.

It seems to work fine but... home/menu/back/search buttons are not working... there is haptic feedback when touching them, but no action.

So, now, I am searching where the actions of these keys are set...
 
I have got the built-in keys working, I copied the following files from CM6.1-RC2 to the MIUI filesystem :
/system/usr/keychars/spade-keypad.kcm.bin
/system/usr/keylayout/spade-keypad.kl
/system/usr/keylayout/spade-keypad-v0.kl
 
What is working :
- Wifi
- 3G
- SMS

What is not working :
- Micro/Speaker (a little bit annoying on a phone :))

I will post this edited ROM
 
great news, thanks for the feedback...
i never read something about copying the update-binary, but i'm glad you tried it

did you also copy the /system/lib/modules from cyanogen to miui ?

di you also try
bluethooth
camera
a game (to be sure 3d is enabled, even if i guess it is... because Z and HD has the same GPU)
the flash
the light sensor


once again thanks for the feedback and the tips i'll try to do same
 
In fact, from what I have understood, update-binary is the executable who knows how to access to physical partition, so it may be the reason why it must be copied (not sure).

Here is a summary of the files I copied :
Code:
/META-INF/com/google/android/update-binary
/boot.img
/system/lib/modules/*
/system/usr/keychars/spade-keypad.kcm.bin
/system/usr/keylayout/spade-keypad.kl
/system/usr/keylayout/spade-keypad-v0.kl

And I replaced "vision" by "ace" in META-INF/com/google/android/updater-script

Bluetooth, camera, 3D, flash, proximity and ligne sensors are working for me

To get sound working, I tried to copy these files from CM6.2-RC2, but did not get any sound :(

Code:
/system/lib/libhtc_acoustic.so
/system/etc/firmware/*
/system/etc/A1026_CFG.csv
/system/etc/AudioBTID.csv
/system/etc/CodecDSPID.txt
/system/etc/AIC3254_REG_DualMic.csv
/system/etc/AIC3254_REG.csv
/system/etc/AdieHWCodec_WA.csv
/system/etc/AdieHWCodec.csv

I will try again tomorrow to get it working ! I am sure it can !! :)
 
i will some time next week, so i'll see if i find a sollution for the sound... you already did the hard part of the work, zith sound and mic the rom will be fully ported ^^
 
Good luck Alain ;)

I am also trying to get the original N1 version of MIUI booting, as I think it would be cleaner to port from an original ROM.
I have tried to copy all the previously mentioned files from CM but I still get black screen / boot loop after the green HTC :(
I asked g4rb4g3 if he can provide me some hints !
 
I just tried to port the z firmware and indeed there was no sound and Mic.
but WiFi didn't work too I have error when enabling it
I also saw that the camera do only 5mpx pics

Maybe this came because I did not replace the firmware directory

This Rom is beautiful but a lot iphonish but I love it

I'll try further things in a couple of hours...
 
My camera does also 5mpix, even with the CM firmware directory.
I tried to copy libhtc_ril.so also, and files from /system/lib/hw, but cannot get the sound working :(
Next time, I will play with libaudio.so and all audio-related files...
For the camera, I will try to play with libaudio*.so...