[ROM] HTC Legend MIUI2.3.7 perfect transplant RC0

Corman-

Senior Member
Mar 4, 2011
57
10
0
Lots of work being done on the kernel-side of things, nice! Anyway, for those that don't want to lose their current setup, there is another way of flashing the regular CM7 kernel. I just did these steps on my Legend and it works fine.

0.a Set-up the Android SDK and fastboot drivers.
0.b Download a working CM7 ROM and extract it. Copy boot.img and the contents of system/lib/modules to the platform-tools folder of your Android SDK
1. Reboot into recovery.
2. Make a Nandroid back-up of your current ROM.
3. Wipe /cache and the Dalvik cache.
4. Power off the phone.
5. Reboot into HBOOT, select Fastboot.
6. Connect your phone to your computer and start a terminal session / command line.
7. Type in
Code:
fastboot devices
to make sure your phone is communicating fine with your computer.
8. Now, let's flash the kernel itself:
Code:
fastboot flash boot boot.img
9. Power off your phone.

Don't try to start your phone yet! We now need to copy the files we copied from system/lib/modules into the ROM. To do this, follow these steps:

10. Reboot into HBOOT, select Recovery.
10.a If you get a red exclamation mark, press 'volume up + power' and select 'flash update.zip'
11. In the recovery, mount /system
12. Let's use adb to delete the old kernel files that we are going to replace. To do this, get back to your terminal/command line and start an adb shell:
Code:
adb shell
13. Navigate to /system/lib/modules/
Code:
cd /system/lib/modules/
14. Either delete the three files, either change their extension (I've changed their extension so I have back-ups, use the rm command to remove)
Code:
mv sdio.ko sdio.ko.bak
Code:
mv tiap_drv.ko tiap_drv.ko.bak
Code:
mv tiwlan_drv.ko tiwlan_drv.ko.bak
To make sure that the files were correctly renamed/removed, type in the following command:
Code:
ls
To exit the shell, type in
Code:
exit
15. Now all that's left is to copy the new files in the same location. To do this, issue these commands:
Code:
adb push sdio.ko /system/lib/modules/
Code:
adb push tiap_drv.ko /system/lib/modules/
Code:
adb push tiwlan_drv.ko /system/lib/modules/
16. If you want to check if you've done it correctly, type in the following:
Code:
adb shell
cd /system/lib/modules/
ls
17. Reboot (your first try might fail, pull out the battery and try again), wait for the Dalvik cache to rebuild, and you're done.
 
Last edited:

Mavamaarten

Senior Member
Mar 4, 2011
63
30
0
Lots of work being done on the kernel-side of things, nice! Anyway, for those that don't want to lose their current setup, there is another way of flashing the regular CM7 kernel. I just did these steps on my Legend and it works fine.
That's a whole lot of work. I have just made a flashable .zip that fixes the wifi problems, also fixes the chinese music player and dropbox. It also installs an english root explorer.

So, if you want to fix the wifi errors, just flash this over your rom instead. Your data will be preserved.

Download (including gapps): http://dl.dropbox.com/u/1424119/cofface_legend_miui2.3.7_RC0_app2sd_gapps.zip
MD5: 56b0f7da005d54098aed84d59a10c46b

Download (without gapps): http://dl.dropbox.com/u/1424119/cofface_legend_miui2.3.7_RC0_app2sd.zip
MD5: 37cf90ef6ac595109f26faacb2fdc1aa

Changes:
  • Added: Google apps are now installed automatically
  • Fixed/Changed: /Data/ partition is preserved, you can just flash this ROM over your old MIUI rom.
  • Fixed: English Root explorer instead of Chinese one
  • Fixed: English MIUI Music app instead of Chinese one
  • Fixed: Wifi rebooting issues

I have personally flashed this ROM and it's working fine.

NOTE1: The first time you'll start this ROM, it will be in chinese. Just follow these instructions to set it to english:
miuiLauncher , MENU button ->设置(Setting)->系统(System tab)->语言和输入(Language and Input)->选择语言(Choose Language)-> Choose English.
NOTE2: I did not make this ROM. All credit goes to the maker of this ROM (Cofface) and to the people that translated the .APK's (feed3)
 

Corman-

Senior Member
Mar 4, 2011
57
10
0
It only seems like a lot of work, I only made the tutorial as extensive as possible since messing with your kernel is not something you should do if you don't know what you're doing. Basically it's only 3 steps.
Anyway, your method was not an option for me since I converted almost all of my user apps to system apps to save space on the /data partition. But it's great work for new users!
 

feed3

Senior Member
Nov 17, 2011
1,040
727
0
The Land of Hornbill...
That's a whole lot of work. I have just made a flashable .zip that fixes the wifi problems, also fixes the chinese music player and dropbox. It also installs an english root explorer.

So, if you want to fix the wifi errors, just flash this over your rom instead. Your data will be preserved.

Download (including gapps): http://dl.dropbox.com/u/1424119/cofface_legend_miui2.3.7_RC0_app2sd_gapps.zip
MD5: 56b0f7da005d54098aed84d59a10c46b

Download (without gapps): http://dl.dropbox.com/u/1424119/cofface_legend_miui2.3.7_RC0_app2sd.zip
MD5: 37cf90ef6ac595109f26faacb2fdc1aa

Changes:
  • Added: Google apps are now installed automatically
  • Fixed/Changed: /Data/ partition is preserved, you can just flash this ROM over your old MIUI rom.
  • Fixed: English Root explorer instead of Chinese one
  • Fixed: English MIUI Music app instead of Chinese one
  • Fixed: Wifi rebooting issues

I have personally flashed this ROM and it's working fine.

NOTE1: The first time you'll start this ROM, it will be in chinese. Just follow these instructions to set it to english:


NOTE2: I did not make this ROM. All credit goes to the maker of this ROM (Cofface) and to the people that translated the .APK's (feed3)
I believe you should open up one new thread and share your works there along with tutorial by corman- :)

Sooner or later, this thread will have more and more pages to go through and people will just downloading whatever it is on the first post..

Just saying.. :)

Sent from my legend using XDA
 

Mavamaarten

Senior Member
Mar 4, 2011
63
30
0
I believe you should open up one new thread and share your works there along with tutorial by corman- :)

Sooner or later, this thread will have more and more pages to go through and people will just downloading whatever it is on the first post..

Just saying.. :)

Sent from my legend using XDA
I guess you're right. Posting new thread in a minute :)