[Android Software Development] _polimorph_:
Here's my first take on MIUIv5.There're loads of "Could not find class" errors even if all those smalis and methods are present. All of those are in the new framework_ext.jar. It's almost like the system doesn't recognize this new jar file. WTF?

What are those ramdisk modifications all about?

03-01 15:21:36.325: D/AndroidRuntime(9375): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
03-01 15:21:36.325: D/AndroidRuntime(9375): CheckJNI is OFF
03-01 15:21:36.330: D/dalvikvm(9375): Unable to stat classpath element '/system/framework/telephony-common.jar'
03-01 15:21:36.330: D/dalvikvm(9375): Unable to stat classpath element '/system/framework/mms-common.jar'
03-01 15:21:36.335: D/dalvikvm(9375): Trying to load lib libjavacore.so 0x0
03-01 15:21:36.340: D/dalvikvm(9375): Added shared lib libjavacore.so 0x0
03-01 15:21:36.345: D/dalvikvm(9375): Trying to load lib libnativehelper.so 0x0
03-01 15:21:36.345: D/dalvikvm(9375): Added shared lib libnativehelper.so 0x0
03-01 15:21:36.435: I/dalvikvm(9375): Could not find method miui.util.UiUtils.getViewStates, referenced from method android.view.View.fillAdditionalState
03-01 15:21:36.435: W/dalvikvm(9375): VFY: unable to resolve static method 64787: Lmiui/util/UiUtils;.getViewStates ([II)[I
03-01 15:21:36.435: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x0007
03-01 15:21:36.515: E/dalvikvm(9375): Could not find class 'miui.v5.app.MiuiActionBar', referenced from method android.app.Activity.getMiuiActionBar
03-01 15:21:36.515: W/dalvikvm(9375): VFY: unable to resolve instanceof 6086 (Lmiui/v5/app/MiuiActionBar;) in Landroid/app/Activity;
03-01 15:21:36.515: D/dalvikvm(9375): VFY: replacing opcode 0x20 at 0x0004
03-01 15:21:36.520: E/dalvikvm(9375): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
03-01 15:21:36.520: W/dalvikvm(9375): VFY: unable to resolve new-instance 6057 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
03-01 15:21:36.520: D/dalvikvm(9375): VFY: replacing opcode 0x22 at 0x0003
03-01 15:21:36.520: E/dalvikvm(9375): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
03-01 15:21:36.520: W/dalvikvm(9375): VFY: unable to resolve new-instance 6057 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x22 at 0x0003
03-01 15:21:36.525: E/dalvikvm(9375): Could not find class 'miui.content.res.ExtraConfiguration', referenced from method android.content.res.Configuration.<init>
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve new-instance 6057 (Lmiui/content/res/ExtraConfiguration;) in Landroid/content/res/Configuration;
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x22 at 0x0003
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.needNewResources, referenced from method android.content.res.Configuration.needNewResources
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve static method 64725: Lmiui/content/res/ExtraConfiguration;.needNewResources (I)Z
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x0006
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.compareTo, referenced from method android.content.res.Configuration.compareTo
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64722: Lmiui/content/res/ExtraConfiguration;.compareTo (Lmiui/content/res/ExtraConfiguration;)I
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x00ca
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.diff, referenced from method android.content.res.Configuration.diff
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64723: Lmiui/content/res/ExtraConfiguration;.diff (Lmiui/content/res/ExtraConfiguration;)I
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x00d3
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.hashCode, referenced from method android.content.res.Configuration.hashCode
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64724: Lmiui/content/res/ExtraConfiguration;.hashCode ()I
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x006e
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.readFromParcel, referenced from method android.content.res.Configuration.readFromParcel
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64727: Lmiui/content/res/ExtraConfiguration;.readFromParcel (Landroid/os/Parcel;)V
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x009c
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.setTo, referenced from method android.content.res.Configuration.setTo
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64729: Lmiui/content/res/ExtraConfiguration;.setTo (Lmiui/content/res/ExtraConfiguration;)V
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0066
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.setToDefaults, referenced from method android.content.res.Configuration.setToDefaults
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64730: Lmiui/content/res/ExtraConfiguration;.setToDefaults ()V
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0048
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.toString, referenced from method android.content.res.Configuration.toString
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64731: Lmiui/content/res/ExtraConfiguration;.toString ()Ljava/lang/String;
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0148
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.updateFrom, referenced from method android.content.res.Configuration.updateFrom
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64732: Lmiui/content/res/ExtraConfiguration;.updateFrom (Lmiui/content/res/ExtraConfiguration;)I
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x016c
03-01 15:21:36.525: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.writeToParcel, referenced from method android.content.res.Configuration.writeToParcel
03-01 15:21:36.525: W/dalvikvm(9375): VFY: unable to resolve virtual method 64733: Lmiui/content/res/ExtraConfiguration;.writeToParcel (Landroid/os/Parcel;I)V
03-01 15:21:36.525: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0076
03-01 15:21:36.525: D/dalvikvm(9375): DexOpt: unable to opt direct call 0xfcd0 at 0x05 in Landroid/content/res/Configuration;.<init>
03-01 15:21:36.525: D/dalvikvm(9375): DexOpt: unable to opt direct call 0xfcd0 at 0x05 in Landroid/content/res/Configuration;.<init>
03-01 15:21:36.525: D/dalvikvm(9375): DexOpt: unable to opt direct call 0xfcd0 at 0x05 in Landroid/content/res/Configuration;.<init>
03-01 15:21:36.525: I/SamplingProfilerIntegration(9375): Profiling disabled.
03-01 15:21:36.525: E/Zygote(9375): Couldn't find preloaded-classes.
03-01 15:21:36.530: D/dalvikvm(9375): GC_EXPLICIT freed 28K, 89% free 453K/4096K, paused 0ms+0ms, total 2ms
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getThemeCharSequence, referenced from method android.content.res.MiuiResources.getThemeCharSequence
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve virtual method 64741: Lmiui/content/res/ThemeResources;.getThemeCharSequence (I)Ljava/lang/CharSequence;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0019
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getThemeInt, referenced from method android.content.res.MiuiResources.getThemeInt
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve virtual method 64743: Lmiui/content/res/ThemeResources;.getThemeInt (I)Ljava/lang/Integer;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0019
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getSystem, referenced from method android.content.res.MiuiResources.init
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve static method 64739: Lmiui/content/res/ThemeResources;.getSystem (Landroid/content/res/Resources;)Lmiui/content/res/ThemeResources;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x0019
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResourcesPackage.getThemeResources, referenced from method android.content.res.MiuiResources.init
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve static method 64745: Lmiui/content/res/ThemeResourcesPackage;.getThemeResources (Landroid/content/res/Resources;Ljava/lang/String;)Lmiui/content/res/ThemeResourcesPackage;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x002b
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getThemeFileStream, referenced from method android.content.res.MiuiResources.loadOverlayDrawable
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve virtual method 64742: Lmiui/content/res/ThemeResources;.getThemeFileStream (ILjava/lang/String;)Lmiui/content/res/ThemeZipFile$ThemeFileInfo;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x0019
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getThemeFileStream, referenced from method android.content.res.MiuiResources.openRawResource
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve virtual method 64742: Lmiui/content/res/ThemeResources;.getThemeFileStream (ILjava/lang/String;)Lmiui/content/res/ThemeZipFile$ThemeFileInfo;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x6e at 0x001a
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ExtraConfiguration.needNewResources, referenced from method android.content.res.MiuiResources.updateConfiguration
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve static method 64725: Lmiui/content/res/ExtraConfiguration;.needNewResources (I)Z
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x002a
03-01 15:21:36.530: I/dalvikvm(9375): Could not find method miui.content.res.ThemeResources.getSystem, referenced from method android.content.res.MiuiResources.updateConfiguration
03-01 15:21:36.530: W/dalvikvm(9375): VFY: unable to resolve static method 64740: Lmiui/content/res/ThemeResources;.getSystem ()Lmiui/content/res/ThemeResourcesSystem;
03-01 15:21:36.530: D/dalvikvm(9375): VFY: replacing opcode 0x71 at 0x0030
03-01 15:21:36.530: I/dalvikvm(9375): DexOpt: unable to optimize instance field ref 0xb258 at 0x20 in Landroid/content/res/MiuiResources;.loadOverlayDrawable
03-01 15:21:36.530: I/dalvikvm(9375): DexOpt: unable to optimize instance field ref 0xb258 at 0x30 in Landroid/content/res/MiuiResources;.loadOverlayDrawable
03-01 15:21:36.530: I/dalvikvm(9375): DexOpt: unable to optimize instance field ref 0xb259 at 0x35 in Landroid/content/res/MiuiResources;.loadOverlayDrawable
03-01 15:21:36.530: I/dalvikvm(9375): DexOpt: unable to optimize instance field ref 0xb259 at 0x47 in Landroid/content/res/MiuiResources;.loadOverlayDrawable
03-01 15:21:36.530: I/dalvikvm(9375): DexOpt: unable to optimize instance field ref 0xb259 at 0x20 in Landroid/content/res/MiuiResources;.openRawResource
03-01 15:21:36.530: W/dalvikvm(9375): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Landroid/content/res/MiuiResources;
03-01 15:21:36.530: D/AndroidRuntime(9375): Shutting down VM
03-01 15:21:36.530: W/dalvikvm(9375): threadid=1: thread exiting with uncaught exception (group=0x4135c300)
03-01 15:21:36.750: I/ServiceManager(2069): service 'media.audio_flinger' died
03-01 15:21:36.750: I/ServiceManager(2069): service 'media.player' died
03-01 15:21:36.750: I/ServiceManager(2069): service 'SecTVOutService' died
03-01 15:21:36.750: I/ServiceManager(2069): service 'media.audio_policy' died
03-01 15:21:36.750: I/ServiceManager(2069): service 'media.camera' died

EDIT: framework_ext.jar must be added to BOOTCLASSPATH in init.rc?