[Samsung Galaxy R i9103] parajsinghal:
Update: So I fixed all rejects, build is getting created but unfortunately it didn't work out of the box. Well thats not worrying it never does :D

Only problem, the I error I get is not good . Get the following error

D/dalvikvm( 106): DexOpt: --- END 'framework.jar' (success) ---
D/dalvikvm( 106): DEX prep '/system/framework/framework.jar': unzip in 291ms, rewrite 4939ms
D/dalvikvm( 106): DexOpt: --- BEGIN 'framework2.jar' (bootstrap=1) ---
E/dalvikvm( 290): Out-of-order method_idx: 0x2f06 then 0x2f06
E/dalvikvm( 290): Trouble with item 197 @ offset 0x1e52b4
E/dalvikvm( 290): Swap of section type 2006 failed
E/dalvikvm( 290): ERROR: Byte swap + verify failed
E/dalvikvm( 290): Optimization failed
W/dalvikvm( 106): DexOpt: --- END 'framework2.jar' --- status=0xff00, process failed
E/dalvikvm( 106): Unable to extract+optimize DEX from '/system/framework/framework2.jar'
D/dalvikvm( 106): Unable to process classpath element '/system/framework/framework2.jar'
D/dalvikvm( 106): DexOpt: --- BEGIN 'android.policy.jar' (bootstrap=1) ---
D/dalvikvm( 291): DexOpt: couldn't find field Lcom/android/internal/policy/impl/PhoneWindowManager$14;.val$screenOnListener
D/dalvikvm( 291): DexOpt: load 21ms, verify+opt 76ms, 767244 bytes
D/dalvikvm( 106): DexOpt: --- END 'android.policy.jar' (success) ---
D/dalvikvm( 106): DEX prep '/system/framework/android.policy.jar': unzip in 19ms, rewrite 476ms
D/dalvikvm( 106): DexOpt: --- BEGIN 'services.jar' (bootstrap=1) ---
D/dalvikvm( 292): DexOpt: couldn't find field Lcom/android/server/am/ActivityManagerService$9;.val$doneReceivers
D/dalvikvm( 292): DexOpt: load 45ms, verify+opt 865ms, 1837620 bytes
D/dalvikvm( 106): DexOpt: --- END 'services.jar' (success) ---
D/dalvikvm( 106): DEX prep '/system/framework/services.jar': unzip in 77ms, rewrite 1861ms
D/dalvikvm( 106): DexOpt: --- BEGIN 'apache-xml.jar' (bootstrap=1) ---
D/dalvikvm( 295): DexOpt: load 41ms, verify+opt 391ms, 836588 bytes
D/dalvikvm( 106): DexOpt: --- END 'apache-xml.jar' (success) ---
D/dalvikvm( 106): DEX prep '/system/framework/apache-xml.jar': unzip in 46ms, rewrite 877ms
D/dalvikvm( 106): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 106): Added shared lib libjavacore.so 0x0
D/dalvikvm( 106): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 106): Added shared lib libnativehelper.so 0x0
E/dalvikvm( 106): Could not find class 'android.widget.ScrollBarDrawable', referenced from method android.view.View.awakenScrollBars
W/dalvikvm( 106): VFY: unable to resolve new-instance 4309 (Landroid/widget/ScrollBarDrawable;) in Landroid/view/View;
D/dalvikvm( 106): VFY: replacing opcode 0x22 at 0x000f
I/dalvikvm( 106): Could not find method miui.util.UiUtils.getViewStates, referenced from method android.view.View.fillAdditionalState
W/dalvikvm( 106): VFY: unable to resolve static method 57397: Lmiui/util/UiUtils;.getViewStates ([II)[I
D/dalvikvm( 106): VFY: replacing opcode 0x71 at 0x0007
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.getSize, referenced from method android.view.View.getHorizontalScrollbarHeight
W/dalvikvm( 106): VFY: unable to resolve virtual method 44506: Landroid/widget/ScrollBarDrawable;.getSize (Z)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x0009
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.getSize, referenced from method android.view.View.getVerticalScrollbarWidth
W/dalvikvm( 106): VFY: unable to resolve virtual method 44506: Landroid/widget/ScrollBarDrawable;.getSize (Z)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x000a
E/dalvikvm( 106): Could not find class 'android.widget.ScrollBarDrawable', referenced from method android.view.View.initializeScrollbars
W/dalvikvm( 106): VFY: unable to resolve new-instance 4309 (Landroid/widget/ScrollBarDrawable;) in Landroid/view/View;
D/dalvikvm( 106): VFY: replacing opcode 0x22 at 0x000b
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.setHorizontalTrackDrawable, referenced from method android.view.View.initializeScrollbars
W/dalvikvm( 106): VFY: unable to resolve virtual method 44511: Landroid/widget/ScrollBarDrawable;.setHorizontalTrackDrawable (Landroid/graphics/drawable/Drawable;)V
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x004d
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.getSize, referenced from method android.view.View.onDrawScrollBars
W/dalvikvm( 106): VFY: unable to resolve virtual method 44506: Landroid/widget/ScrollBarDrawable;.getSize (Z)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x007c
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.getSize, referenced from method android.view.View.onDrawScrollBars
W/dalvikvm( 106): VFY: unable to resolve virtual method 44506: Landroid/widget/ScrollBarDrawable;.getSize (Z)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x00d0
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.setAlpha, referenced from method android.view.View.onDrawScrollBars
W/dalvikvm( 106): VFY: unable to resolve virtual method 44507: Landroid/widget/ScrollBarDrawable;.setAlpha (I)V
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x012c
I/dalvikvm( 106): Could not find method android.widget.ScrollBarDrawable.setAlpha, referenced from method android.view.View.onDrawScrollBars
W/dalvikvm( 106): VFY: unable to resolve virtual method 44507: Landroid/widget/ScrollBarDrawable;.setAlpha (I)V
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x0135
D/dalvikvm( 106): DexOpt: unable to opt direct call 0xadd9 at 0x11 in Landroid/view/View;.awakenScrollBars
D/dalvikvm( 106): DexOpt: unable to opt direct call 0xadd9 at 0x0d in Landroid/view/View;.initializeScrollbars
E/dalvikvm( 106): Could not find class 'miui.v5.app.MiuiActionBar', referenced from method android.app.Activity.getMiuiActionBar
W/dalvikvm( 106): VFY: unable to resolve instanceof 5661 (Lmiui/v5/app/MiuiActionBar;) in Landroid/app/Activity;
D/dalvikvm( 106): VFY: replacing opcode 0x20 at 0x0004
E/dalvikvm( 106): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
W/dalvikvm( 106): VFY: unable to resolve new-instance 5633 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
D/dalvikvm( 106): VFY: replacing opcode 0x22 at 0x0003
E/dalvikvm( 106): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
W/dalvikvm( 106): VFY: unable to resolve new-instance 5633 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
D/dalvikvm( 106): VFY: replacing opcode 0x22 at 0x0003
E/dalvikvm( 106): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
W/dalvikvm( 106): VFY: unable to resolve new-instance 5633 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
D/dalvikvm( 106): VFY: replacing opcode 0x22 at 0x0003
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.needNewResources, referenced from method android.content.res.Configuration.needNewResources
W/dalvikvm( 106): VFY: unable to resolve static method 57335: Lmiui/content/res/ExtraConfiguration;.needNewResources (I)Z
D/dalvikvm( 106): VFY: replacing opcode 0x71 at 0x000a
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.compareTo, referenced from method android.content.res.Configuration.compareTo
W/dalvikvm( 106): VFY: unable to resolve virtual method 57332: Lmiui/content/res/ExtraConfiguration;.compareTo (Lmiui/content/res/ExtraConfiguration;)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x00d3
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.diff, referenced from method android.content.res.Configuration.diff
W/dalvikvm( 106): VFY: unable to resolve virtual method 57333: Lmiui/content/res/ExtraConfiguration;.diff (Lmiui/content/res/ExtraConfiguration;)I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x00d3
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.hashCode, referenced from method android.content.res.Configuration.hashCode
W/dalvikvm( 106): VFY: unable to resolve virtual method 57334: Lmiui/content/res/ExtraConfiguration;.hashCode ()I
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x006e
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.setTo, referenced from method android.content.res.Configuration.setTo
W/dalvikvm( 106): VFY: unable to resolve virtual method 57338: Lmiui/content/res/ExtraConfiguration;.setTo (Lmiui/content/res/ExtraConfiguration;)V
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x0066
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.setToDefaults, referenced from method android.content.res.Configuration.setToDefaults
W/dalvikvm( 106): VFY: unable to resolve virtual method 57339: Lmiui/content/res/ExtraConfiguration;.setToDefaults ()V
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x0032
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.toString, referenced from method android.content.res.Configuration.toString
W/dalvikvm( 106): VFY: unable to resolve virtual method 57340: Lmiui/content/res/ExtraConfiguration;.toString ()Ljava/lang/String;
D/dalvikvm( 106): VFY: replacing opcode 0x6e at 0x0148
I/dalvikvm( 106): Could not find method miui.content.res.ExtraConfiguration.updateFrom, referenced from method android.content.res.Configuration.updateFrom
W/dalvikvm( 106): VFY: unable to resolve virtual method 57341: Lmiui/content/res/ExtraConfiguration;.updateFrom (Lmiui/content/res/ExtraConfiguration;)I

So, apparently the build process is able to dex framework2 but somehow android while booting can't extract/optimize the dex. And I did not even have to fix any rejects in framework2. That seems a bit strange. Have to reach office early tomorrow. So can't dig any deeper right now but will surely look into it tomorrow. Will keep you guys posted :)