New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Endless7
Old
(Last edited by Endless7; 29th September 2011 at 05:07 PM.)
#1  
Endless7's Avatar
Senior Member - OP
Thanks Meter 411
Posts: 972
Join Date: May 2011

 
DONATE TO ME
Angry [Guide][CM7 2.3.5][ROM][BackLight Fix for CM7] CM7 and MIUI port from Defy

This thread is outdate.New thread is here: http://forum.xda-developers.com/show....php?t=1239778
================================================== ================================================== ==
[Real DEV][ROM][Port][Updated: 19-Aug-2011]GB MIUI for Milestone2 All-in-one update.zip Thanks to r2beta0 !

Now dangpzanco has set up a project base on MIUI/CM7 on github, anyone who interst in it can contact with him or come here !.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If you have any problem in using CM7/MIUI, before question, you may take a look at this thread.

Im not a DEV, so any tutorial and help is very welcomed. If someone can develop for it, that would be very thankful !

Any defy CM7 based/cooked/moded ROM include MIUI can use this method to boot.

Thanks to dangpzanco and r2beta0 for their great effort. And walter79 for the great idea.

Known compatible kernels:
It seems only 2.6.32.9-********prodcm@zch**lnxdroid**#* series kernels are supported.
2.2.2-CH include 2.10.0 / 2.6.0 / 2.5.0
2.2.1-CH 1.10.0 / 0.24.0

Known incompatible kernels:
2.3.4-CH leak
2.2.2-UK/DE,AT,CH/Argentina/HongKong/Italy
2.2.1-Mexico
2.2-Brazil/France/UK/Australia

Unknown kernels:
2.2.2-France
2.2.1-Argentina
2.2-Argentina/DE, AT, CH

This is my nandroid backup with some fix but not all, you could choose one or not.

[Recommend!]1. Based on MIUI 1.8.12 moded by Wajk, download: http://www.megaupload.com/?d=1RF2A3JC

2. Based on a cooked CM7 ROM(thanks to VIPFXY): http://www.megaupload.com/?d=NOWVXJAK

3. Based on cm7-110813-2132-NIGHTLY-Jordan.zip http://www.megaupload.com/?d=17RERZSM


Patch for CM7/MIUI ( It should work on all defy CM7/MIUI based/cooked/moded ROM ):
This patch fix the following:
1.GSM problem, you may still need to use baseband switcher to change your baseband (If you still have no signal, take a look at this,theoretically it 100% works! http://forum.xda-developers.com/show....php?t=1182050 )
Thanks to i7ovehope and dangpzanco
2.Keyboard mapping issue ( except ALT-LOCK, however you can double press ALT instead ) Thanks to 19900828xy
3.fix CWM issues related to /data Thanks to r2beta0
4.When you are charing, you will have your LED turn yellow to tell you, instead of nothing (Charger light still not work)
5. Gravity-sensor/light-sensor are working again Thanks to walter79 and dangpzanco
6. GPS should works
7. compass should works

And the patch does NOT include the following fix, you will need to do it yourself:

[Both CM7 and MIUI]0. Keyboard backlight fix ( Thanks to r2beta0 for fixing. Thanks to nanox_06 from grupoandroid.com. Thanks to layoroa and Motodoido and julianlatasa for telling me ):
Make sure you have apply fix_for_cm7_miui.zip from my attachment ! AND, if you have tried the earlier method (replacing framework-res.apk ), you SHOULD restore the original apk before trying this method !
[CM7]open setting>CM setting>Displayer Setting>(on)Automatic brightness>Advance mode>(on) custom>Edit other levels...

[MIUI]open setting>Displayer Setting>(on)Automatic brightness>Advance mode>(on) custom>Edit other levels...
[Wajk/r2beta0`s MIUI]r2beta0 has uploaded a moded framework-res.apk in #203, you can download it from there and replace the one under /system/framework/ . Don`t forget to set the permission to rw-r--r--. Reboot and Done !

then you will see a mass of squares. Find keyboard row and change the first 2 value from 0 to 255. Save setting. OK, done! Pull out your keyboard and you will find backlight work again.(Be sure you are in dark environment)
Tips: After turning off automatic brightness, your backlight will still work.


1. camera upside down ( Thanks to walter79 )

comment the line:
ro.media.capture.flip=horizontalandvertical
in /system/build.prop, make sure it is
#ro.media.capture.flip=horizontalandvertical

2. The camera noise after system booting, which exist in MIUI moded by Wajk

freeze talk.apk under /system/app
if you still need to use gtalk, try to install it from apk (not test if this will bring back the noise )

3. Stock soft-keyboard too small
Use 3rd-party keyboard app to replace it

4. Phone version shows MB525
Edit the line:
ro.product.model=MB525
in /system/build.prop to
ro.product.model=A953 //or anything you want

5. The default baseband of my nandroid backup is CH2.6.0/2.5.0
If you have no signal, please use baseband switcher to change to a suitable one or take a look at this (theoretically 100% works ) http://forum.xda-developers.com/show....php?t=1182050

6. If you think your flash light is a little dim compared to before. (Thanks to walter79 and below is what he said )
Be careful with that. Chinese pepole killed it with fixed-sbf for Europe Defy and in past europe people killed led with china fixed-sbf. It is related to devtree. But if your flashlight works more than 2x then you can edit your build.prop and del this:

- ro.media.capture.flashIntensity=41
- ro.media.capture.torchIntensity=25


7. SD card can NOT be mounted in recovery
In recovery, open advance, select start adbd and then kill adbd. Go back to try, and you should find your sd card has been mounted correctly. Next time if the issue appears again, just re-do it again.

8. If you have USB connection problem. Thanks to r2beta0
[MIUI] Please go to #211 for framework-res.apk. Replace the one under /system/framework/ with it.

[CM7] This is the manual solution r2beta0 post in #213
You must download apk_manager and use it to decompile framework-res.apk. Then you edit bools.xml that is inside res/values folder. The variable you must change is called config_enableUsbModeSelection, it is a user friendly name. Change from false to true. Then you use apk_manager to recompile it but don't sign. Set compression to zero.



The known issues which can NOT be solved till now:
1.Video hardware decoding is dead mostly, only .mp4 survival (need someone to fix that soon!)
[DEV] I upload these 2 patch which is used to port rmvb/mkv HW Decoding to froyo. It should help with porting HW to CM7/MIUI.
[MultiUpload] http://www.multiupload.com/JYNSW5VILR
[MegaUpload] http://www.megaupload.com/?d=A9OC25CT
[WithProxy][MegaUpload] http://174.140.154.13/?d=A9OC25CT
[Hotfile] http://hotfile.com/dl/127190044/59fd...mvbMKV.7z.html


2.ALT-LOCK not working ( double press ALT instead )

3.USB mass storage mode issue ( except MIUI moded by Wajk )
You will find that you can NOT mount your SD card to PC.
Softwate Solution[Recommend]: Install Protocol-X Dual Mount SD Widget, you can download it from Android Market.

Manual Solution: Every time you connect to PC. Make sure connection manager appears in your notification bar, if not, enable/disable USB debug. Once it shows, first choose NONE, and then choose USB mass storage. By all this, you will see your SD card mounted in PC.

4. Charger light still not work
Seems lights.jordan.so under /system/lib/hw is related to it in some way. I replace it with the one from new leaked GB, then the LED became the charger light


Tutorial:
1. reboot to CWM and then restore nandroid backup (if you want to flash defy_cm7/miui.zip, make sure your CWM is 3.0+)
2. enable bootloader mode, flash fixed sbf via RSD ( fixed sbf is in firmware.7z )
3. Its recommend to make double wipes in stock recovery
4. reboot
5. CM7/Miui running.






[DEV]CH 2.2.2 (2.10.0) Download (The one who has downloaded it earlier should redownload it again for the correct SBF )
If anyone need to download any other CH ROMs but cannt find them, you can send me a PM
http://u.115.com/file/clsmsk69 PASSWORD: bbs.dkdiy.net


Defy CM7 Download http://defycm7.tanguy.tk/ //RC1 and nightly build are all OK

[Defy][DEV][ROM] CyanogenMod 7 (Android 2.3.4) By Quarx

[Fixed]CWM3.0 Download http://forum.xda-developers.com/show....php?t=1196590

Fixed sbf of CH 2.2.2(2.10.0) please download it from attachment below:
Attached Thumbnails
Click image for larger version

Name:	about phone.jpeg
Views:	1134
Size:	134.2 KB
ID:	689216   Click image for larger version

Name:	CM7 setting.jpeg
Views:	718
Size:	132.9 KB
ID:	689218   Click image for larger version

Name:	notification bar.jpeg
Views:	698
Size:	173.6 KB
ID:	689220   Click image for larger version

Name:	setting.jpeg
Views:	672
Size:	97.8 KB
ID:	689221   Click image for larger version

Name:	screen.jpg
Views:	1037
Size:	44.9 KB
ID:	689223  

Attached Files
File Type: 7z firmware.7z - [Click for QR Code] (3.00 MB, 1324 views)
File Type: zip keyboard.zip - [Click for QR Code] (1.2 KB, 282 views)
File Type: zip fix_for_cm7_miui_v2.zip - [Click for QR Code] (207.6 KB, 339 views)
The Following 9 Users Say Thank You to Endless7 For This Useful Post: [ Click to Expand ]
 
PetrusDLX
Old
#2  
Senior Member
Thanks Meter 7
Posts: 113
Join Date: Feb 2011
Location: Botucatu-SP
Great!
Everything is working?

Sent from my Milestone 2 with GingerBread
The Following User Says Thank You to PetrusDLX For This Useful Post: [ Click to Expand ]
 
will5
Old
(Last edited by will5; 14th August 2011 at 05:07 PM.)
#3  
will5's Avatar
Senior Member
Thanks Meter 262
Posts: 1,402
Join Date: Sep 2007
Oh that sound great.

My phone is bootlooping right now I could test anything before flashing a working ROM

Gsm radio not working is expected, need custom fixes for cm7.

Just try to fix the led/lights
 
inheme
Old
#4  
Senior Member
Thanks Meter 2
Posts: 145
Join Date: Mar 2011
Good lord, this week is beeing the best for the milestone 2 community! Thanks for your efforts guys!
 
will5
Old
#5  
will5's Avatar
Senior Member
Thanks Meter 262
Posts: 1,402
Join Date: Sep 2007
If rom is booting, we can easily get logcats to fix all the problems
 
terayder
Old
#6  
Member
Thanks Meter 2
Posts: 38
Join Date: Jun 2010
Quote:
Originally Posted by inheme View Post
Good lord, this week is beeing the best for the milestone 2 community! Thanks for your efforts guys!
I concur. Thanks guys for all your efforts!


Sent from Motorola Milestone 2
 
Endless7
Old
#7  
Endless7's Avatar
Senior Member - OP
Thanks Meter 411
Posts: 972
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by will5 View Post
If rom in booting, we can easily get logcats to fix all the problems
It did boot! Now I am runing CM7.
 
w0ndersp00n
Old
#8  
Senior Member
Thanks Meter 66
Posts: 379
Join Date: May 2010
Quote:
Originally Posted by inheme View Post
Good lord, this week is beeing the best for the milestone 2 community! Thanks for your efforts guys!
+1 / Like

Sent from Motorola Milestone 2 @ GB
 
jambo89liam
Old
#9  
Senior Member
Thanks Meter 3
Posts: 175
Join Date: Mar 2010
Exciting! Cant wait for a decent workable version.
 
will5
Old
#10  
will5's Avatar
Senior Member
Thanks Meter 262
Posts: 1,402
Join Date: Sep 2007
Quote:
Originally Posted by Endless7 View Post
It did boot! Now I am runing CM7.


Have you tried all the baseband fixes we have? chinese fix, defy baseband changer, milestone 2 baseband app...

Anyway, if none of them work, maybe baseband needs to be adapted to cm7.