Port MIUI to ICS/JB Desire HD


dennisdee

Members
17 Aug 2012
10
21
Hi there,

I know for long time DHD had support from dekky for ICS. Than it was updated till 2.8.10 from another miui community. Now they move to JB, and point is that JB is not so stable at the moment. So I would like to continue to port MIUI updates to ICS, but for myself, till JB for DHD isnt stable as it should be. Now, I read a lot of tutorials regarding port to MIUI. Also since 2.8.17 moved to JB (Nexus S, which was base), we should use Desire S base for port to DHD as I read in http://forum.xda-developers.com/showthread.php?t=1777999.

My question is, is it enough to download Desire S rom from miui.com/miuiandroid.com or there is specific download page for base? As I will need to decompile framework.jar since I get to boot animation and it stays there. I allready learned how to decompile framework.jar and classes.dex from here (if any1 gonna need it):
http://forum.xda-developers.com/showthread.php?t=1748757, so i can edit some .smali files for example.
So once again, where is the best to get MIUI base to start work with?


Greetings,
Denis
 
Yea, I know that... since ICS is more stable for DHD, I am planing to port 2.8.17 to it, so Desire S comes in my option :). But, is it enough to download rom from miui.com? Or there is some special base for porting to other devices?
 
And here is a huge logcat with only E/, F/ and W/

Now, any help what I need to fix/edit to boot rom? I used base from LC (Ice Cold Sandwich) and miui_DesireS_2.8.17_c2f5d869e2_4.0 from miui.com, by following of delete/copy/paste/edit files from above guide...
 

Attachments

  • logcat1.txt
    595.3 KB · Views: 463
Why use MIUI.com base? Our ROM is MIUI.com except with English and more tweaks/fixes. It would make sense to use ours.
 
Cool then :). I will give a try with hope on less errors and fatal :). Will post catlog in case it wont boot again, ok?
Also after i made my first working MIUI port, maybe i will keep on porting, since there wont be no one, who will port MIUI on ICS for DHD, only JB... :/
 
So, here it is... My logcat, rest of it its same with only repeating different ( number):

So I guess I will have to edit framework.jar and edit AssetManager? Thanks a lot for any kind of help...


Greetings,
Denis
 

Attachments

  • logcat.txt
    24.7 KB · Views: 489
I'm sure you have sense port from desire S latest rom. I'd try it first as base coz miui for DS is anyway based on it, so guide changes to one for porting sense from other htc.
 
Ice Cold Sandwich from LorD ClockaN (AOKP) + MIUI Desire S base from miuiandroid (miui_DesireS_2.8.17_c2f5d869e2_4.0.zip)


EDIT:
My bad, looks like I used Desire S base from miui.com. Will try again with Desire S base from here :)
EDIT2:
Still same errors in logcat... :/
 
Fixed everything related to assetmanager, but still problems on booting...

Here is my latest logcat, if you can help me a bit...
 

Attachments

  • log.txt
    2.4 MB · Views: 392
Fixed everything related to assetmanager, but still problems on booting...

Here is my latest logcat, if you can help me a bit...

Code:
E/dalvikvm( 1294): ERROR: couldn't find native method^M
E/dalvikvm( 1294): Requested: Landroid/graphics/Paint;.native_setColor:(I)V^M
E/JNIHelp ( 1294): RegisterNatives failed for 'android/graphics/Paint', aborting^M

You need the android/graphics/Paint.smali from Base's framework.jar. At least when i was porting MIUI v4 to DHD i had to fetch that smali too.

Out of curiosity, have you wiped your dalvik cache before flashing the rom? I see strange cache related errors in the logcat.
 
Fixed that step as well. Now I have problems under the sqlite*.smali files, but can not find the bug...


W/dalvikvm( 1294): VFY: rejected Landroid/database/sqlite/SQLiteDatabase;.<init> (Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;ILandroid/database/DatabaseErrorHandler;S)V
W/dalvikvm( 1294): Verifier rejected class Landroid/database/sqlite/SQLiteDatabase;
E/SqliteDatabaseCpp( 1294): Can't find SQLiteDatabase.mNativeHandle
E/AndroidRuntime( 1294): Unable to register all android natives
Wrong logcat in attachment,
http://forum.xda-developers.com/attachment.php?attachmentid=1276824&d=1345688661 - real one
 
How did you recompile framework.jar? I had similar errors when i was using the wrong tools. I'm using {bak}smali-1.3.3 now and it's working. :)
 
Ok, I fugured out that there was no folder widget in /android/ so I copied it from base to MIUI.
Now Ive got another error:
Code:
E/dalvikvm(  1293): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
W/dalvikvm(  1293): VFY: unable to resolve new-instance 6122 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
D/dalvikvm(  1293): VFY: replacing opcode 0x22 at 0x0003
... :/
 
\o You wanting to also do port with Lord base. Whats your progress? Got a repo up or something??

Looking to hear from you