yashsingh1/xdaforums huggingface dataset:
[Android Software Development] CosmicDan:
Copy android/widget/TextView* from CM7:

Exception Ljava/lang/NoSuchMethodError; thrown while initializing Landroid/widget/TextView;

This thread is for MIUI4 though, not GB.
[Android Software Development] Lens_flare:
E/PackageParser(262): Package com.android.launcher has no certificates at entry AndroidManifest.xml; ignoring!
09-06 16:56:34.549: W/PackageManager(262): Failed verifying certificates for package:com.android.launcher

So launcher.apk modded in wrong way, also it might be a deal with framework recompiling (like framework-res.apk).
[Android Software Development] v1r0x:
I have a (not really a modding) question.

Where can I find this new clock widget?

It has the wrong date format, so I want to fix this, but couldn't find it.

Here a screenshot of the widget I mean.
[Android Software Development] Ozadroid:
it is in 2.8.31

here are all the clock widgets from 2.8.31 replace them in /system/media/theme/gadgets/clock
[Android Software Development] v1r0x:
The question is in which apk ;)
[Android Software Development] Hikari:
deskclock.apk probably
[Android Software Development] Lens_flare:
try that one.

http://miuiandroid.com/community/threads/miui-translated-simple-clock.17869/

PS:

it's theme for clock :P
[Android Software Development] v1r0x:
I didn't find it there :(

I like to do things myself (also you have another date format) :P

But I'll try it ;)

Right after creating an account...^^
[Android Software Development] Hikari:
what about this?
[Android Software Development] Lens_flare:
PIRATE! ;D
[Android Software Development] Hikari:
well, I just reuped so he can download without an account :D
[Android Software Development] Ozadroid:
in my previous reply did u find the attached clock.rar ?? it has all the clocks. put it there where i told u
[Android Software Development] Hikari:
btw, what do you guys do with ServerThread.smali errors?? They are my nightmares.. I just start thinking I going close to boot up, but TaDa,

09-07 11:49:52.369: E/AndroidRuntime(262): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
09-07 11:49:52.369: E/AndroidRuntime(262): java.lang.NoClassDefFoundError: [generic]
09-07 11:49:52.369: E/AndroidRuntime(262):	at dalvik.system.NativeStart.main(Native Method)
09-07 11:49:52.379: I/Process(262): Sending signal. PID: 262 SIG: 9
09-07 11:49:52.379: E/AndroidRuntime(262): Error reporting crash
09-07 11:49:52.379: E/AndroidRuntime(262): java.lang.NullPointerException
09-07 11:49:52.379: E/AndroidRuntime(262):	at android.os.DropBoxManager.isTagEnabled(DropBoxManager.java:288)
09-07 11:49:52.379: E/AndroidRuntime(262):	at com.android.server.am.ActivityManagerService.addErrorToDropBox(ActivityManagerService.java:6837)
09-07 11:49:52.379: E/AndroidRuntime(262):	at com.android.server.am.ActivityManagerService.handleApplicationCrash(ActivityManagerService.java:6546)
09-07 11:49:52.379: E/AndroidRuntime(262):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
09-07 11:49:52.379: E/AndroidRuntime(262):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
09-07 11:49:52.379: E/AndroidRuntime(262):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)

Thanks!
[Android Software Development] Lens_flare:
just see below of each ))

me(262): Error reporting crash
09-07 11:49:52.379: E/AndroidRuntime(262): java.lang.NullPointerException
09-07 11:49:52.379: E/AndroidRuntime(262):	at android.os.DropBoxManager.isTagEnabled(DropBoxManager.java:288)

android/os/DropBoxManager.smali, hope you got what to do )
[Android Software Development] v1r0x:
Thanks, but now I have an acc ;)

Ah, now I see it. Thanks, now I see where I can find the widgets :)
[Android Software Development] Hikari:
Well, yes but I already checked them,, they look exact same..
[Android Software Development] Ozadroid:
the log u quoted isnt exactly the error! it is the aftereffect of the error.

the real error is somewhere above in log which is SOME CLASS IS MISSING SOMEWHERE!

see this:

09-07 11:49:52.369: E/AndroidRuntime(262): java.lang.NoClassDefFoundError: [generic]

provide the full logcat. or find urself the missing class/smali n put it dere
[Android Software Development] Hikari:
well, the is no other smali error. but I found this warning message about the launcher app I had put

09-07 12:00:15.819: W/PackageParser(4989): /system/app/launchernew.apk
09-07 12:00:15.819: W/PackageParser(4989): java.lang.NullPointerException
09-07 12:00:15.819: W/PackageParser(4989):	at android.content.pm.PackageParser.parsePackage(PackageParser.java:421)
09-07 12:00:15.819: W/PackageParser(4989):	at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2676)
09-07 12:00:15.819: W/PackageParser(4989):	at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:2601)
09-07 12:00:15.819: W/PackageParser(4989):	at com.android.server.PackageManagerService.<init>(PackageManagerService.java:952)
09-07 12:00:15.819: W/PackageParser(4989):	at com.android.server.PackageManagerService.main(PackageManagerService.java:704)
0[B]9-07 12:00:15.819: W/PackageParser(4989):	at com.android.server.ServerThread.run(SystemServer.java:150)[/B]

could that have any relation with the previous log I posted? anyways Im removing the apk and trying again...
[Android Software Development] Hikari:
might this be affecting anything?

09-07 12:22:07.669: E/Zygote(183): Couldn't find preloaded-classes.

and full log
[Android Software Development] Alex93917:
Lockscreen from Nexus S is very laggy on I9001 (2.8.10). Do you have one suggestion about this ?
[Android Software Development] CosmicDan:
As mentioned on miuiandroid.com, its a known issue with most devices.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Ozadroid:
yes most probably. the preloaded-classes are found in FRAMEWORK.JAR

get a diff miui rom from a different device which has a file named PRELOADED-CLASSES in framework.jar and copy that in ur framework.jar
[Android Software Development] Hikari:
I tried 3 different roms but no luck.. Do you know a rom that contains the file? Thanks!
[Android Software Development] Ozadroid:
idk bro. but go here http://www.miui.com/development.html

scroll down till u start getting 2.3.7 ROMs . download them n check ur luck :)
[Android Software Development] Hikari:
I found the file from cm7.2 git.. but where do I put it exactly in framework.jar?

EDIT: NVM.. I found it

And one funny thing.. I already had it in my base framework.. the thing was that apktool didnt extract it so I wasnt able to see.. lol :D
[Android Software Development] Ozadroid:
lol.. is the error gone ??
[Android Software Development] Hikari:
yes, but new errors. now..
[Android Software Development] chillzz81:
I've ported MIUI JB successful to SGS2 but I have a strange error. Always when I send a SMS the signal drops and reconnects after a few seconds. Maybe someone has an idea to fix this annoying bug. Thanks!

EDIT: Solved!
[Android Software Development] Alex93917:
Okay, thank you.

But, other question : My device hasn't Jelly Bean release for the moment. Which device officially supported can i take for source ?

My old source was Nexus S (But, Nexus S / Galaxy Nexus are on Jelly Bean). I search an eventually good source from ICS MIUI device official for source to port 2.9.7 and next releases to my device.

Can you purpose devices which are maybe compatible ? I've already tried with patchrom but nothing ...
[Android Software Development] Ozadroid:
Mobile Network isnt getting fixed. Duh!

i see this error regarding network

09-07 22:40:33.609: E/AndroidRuntime(499): FATAL EXCEPTION: main
09-07 22:40:33.609: E/AndroidRuntime(499): java.lang.ClassCastException: int[] cannot be cast to android.telephony.SignalStrength
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.telephony.ServiceStateTracker.onSignalStrengthResult(ServiceStateTracker.java:503)
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.telephony.gsm.GsmServiceStateTracker.handleMessage(GsmServiceStateTracker.java:408)
09-07 22:40:33.609: E/AndroidRuntime(499):	at android.os.Handler.dispatchMessage(Handler.java:99)
09-07 22:40:33.609: E/AndroidRuntime(499):	at android.os.Looper.loop(Looper.java:137)
09-07 22:40:33.609: E/AndroidRuntime(499):	at android.app.ActivityThread.main(ActivityThread.java:4439)
09-07 22:40:33.609: E/AndroidRuntime(499):	at java.lang.reflect.Method.invokeNative(Native Method)
09-07 22:40:33.609: E/AndroidRuntime(499):	at java.lang.reflect.Method.invoke(Method.java:511)
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
09-07 22:40:33.609: E/AndroidRuntime(499):	at dalvik.system.NativeStart.main(Native Method)

also attaching my full log n radio log. please hv a look.
[Android Software Development] Lens_flare:
09-07 22:40:33.609: E/AndroidRuntime(499): FATAL EXCEPTION: main
09-07 22:40:33.609: E/AndroidRuntime(499): java.lang.ClassCastException: int[] cannot be cast to android.telephony.SignalStrength
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.telephony.ServiceStateTracker.onSignalStrengthResult(ServiceStateTracker.java:503)
09-07 22:40:33.609: E/AndroidRuntime(499):	at com.android.internal.telephony.gsm.GsmS

just don't replace com/android/internal/telephony/gsm folder.
[Android Software Development] Ozadroid:
i dint replace the gsm folder! only RIL*.smali
[Android Software Development] Lens_flare:
then change android/telephony/signalstrength*.smali and com/android/internal/telephony/gsm folder if failed :P
[Android Software Development] Ozadroid:
lol okay.. get back to u in 5 min
[Android Software Development] Ozadroid:
lol okay.. get back to u in 5 min

________________________________________

changed /gsm and signalstrength*.smali

full log : http://pastebin.com/jY6jpSpy

too many errors :|

radio log : http://logcat.miui.us/1054001

D/RILB ( 500): Notifying: radio available

____________________________________________

when just replacing SignalStrength*.smali

radio log : http://logcat.miui.us/1055001

D/RILB ( 500): Notifying: radio available

fixing few not found methods. lets see!

____________________________________

the missing method was this

.method public setGsm(Z)V
.registers 2
.parameter "gsmFlag"

.prologue
.line 291
iput-boolean p1, p0, Landroid/telephony/SignalStrength;->isGsm:Z

.line 292
return-void
.end method

as i put it n booted .. the radio log became dis.. no radio ! :/

radio log : http://logcat.miui.us/1057001

and no eror in logcat!
[Android Software Development] :
Seems best to ask here ...

Someone who has 2.8.10 miuiandroid nexus s build over here? If someone has its multilang pack I would like to get it too.

I want 2.8.10 because its last ics build and jelly bean isn't ready yet for the wfs.

Sent from my WFS
[Android Software Development] Lens_flare:
Ozadroid

I see your device is Optimus One (oh where's my eyes :D)

You DO have ril class, which is LGEQualcommRIL, so paste it, RIL*.smali and gsm folder, that should work.

If you have old baseband (which actually based on RIL*.smali), don't forget you should apply old baseband fix to MIUI too, and there shouldn't be any fixes needed then.

Henry_01

;/

it would be better to ask miuiandroid though.
[Android Software Development] Lens_flare:
v1rox and those who have any kind of hardware keyboard issues

phonewindowmanager.java stands that function is still there:

private boolean isHidden(int accessibilityMode) {
switch (accessibilityMode) {
case 1:
return mLidState == LID_CLOSED;
case 2:
return mLidState == LID_OPEN;
default:
return false;
}
}

on smali you'll possibly see sequence: 0x0, 0x1,0x-1. Hope it helps.
[Android Software Development] Ozadroid:
I tried putting all the deviceRIL but still it didnt work.. then i replaced the telephony folder from my 2.8.3 built to this and tge phone.apk too.. then i flashed it n the network worked. But then i changed my data enabled sim n tried to chk if data works. I rebooted n the network again started not to work :-/

How dis cud happen :0

Ps: i hv new baseband.
[Android Software Development] Lens_flare:
you forgot to edit phonefactory.smali to change ril->lgequalcommril.
[Android Software Development] Ozadroid:
But my build.prop doesnt hv

Ro.telephony.ril_class

Shud i put it?
[Android Software Development] Lens_flare:
noo, just patch phonefactory.smali.
[Android Software Development] ---UFO---:
Try to find .method private readRotation(I)I in PhoneWindowManager.smali

In this method you will find:

.line 1235
.end local v0 #rotation:I
:goto_d
const/4 v1, -0x1

:goto_e
return v1

.line 1224
.restart local v0 #rotation:I
:sswitch_f
const/4 v1, 0x0

goto :goto_e

.line 1226
:sswitch_11
const/4 v1, 0x1

goto :goto_e

just change it to:

.line 1235
.end local v0 #rotation:I
:goto_d
const/4 v1, 0x1

:goto_e
return v1

.line 1224
.restart local v0 #rotation:I
:sswitch_f
const/4 v1, 0x1

goto :goto_e

.line 1226
:sswitch_11
const/4 v1, 0x0

goto :goto_e

It fixed keyboard error on my MIUI v4 JB on Motorola Milestone 2.
[Android Software Development] v1r0x:
Thanks. That's what I have done, but I still have only hw keyboard or if I disable hw keyboard in a notification I have both (hw and soft keyboard).

This is annoying. When I want to use the hw keyboard the soft keyboard also appears :(
[Android Software Development] janeindiran:
I successfully ported JB to DEFY. But i get FileExplorer FC and themes doesn't apply. Here is the log. What is going wrong??
[Android Software Development] Lens_flare:
...

something unreal happens, sorry, don't have cure for you ;[
[Android Software Development] Ozadroid:
I/ActivityManager( 2549): Start proc com.android.fileexplorer for broadcast com.android.fileexplorer/.AnalyticsReceiver: pid=3777 uid=10018 gids={3003, 1015, 1028}
E/Trace ( 3777): error opening trace file: No such file or directory (2)
[B]W/MountService( 2549): getVolumeState(/storage/sdcard0): Unknown volume[/B]
D/AndroidRuntime( 3777): Shutting down VM

looks ur sdcard cant be mounted! download anyother file explorer from Google Play and confirm. if it read ur sdcard then try changing FileExplorer.apk from any other builts of miui.
[Android Software Development] v1r0x:
Does anyone know how to build nexus s rom from miui sources?

I want to include some CM-features and I think it's easier to do that in java and not in smali ;)

Sent from my awesome Desire Z with MIUI JB using the xda-developers app
[Android Software Development] Lens_flare:
miui is closed source rom, time to understand that :P

micode offers only patchrom which is pure swarm of smali ;]
[Android Software Development] Ozadroid:
okay i did this. now getting this error!

09-09 13:17:34.629: E/AndroidRuntime(1249): FATAL EXCEPTION: main
09-09 13:17:34.629: E/AndroidRuntime(1249): java.lang.ClassCastException: int[] cannot be cast to android.telephony.SignalStrength
09-09 13:17:34.629: E/AndroidRuntime(1249):	at com.android.internal.telephony.ServiceStateTracker.onSignalStrengthResult(ServiceStateTracker.java:503)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at com.android.internal.telephony.gsm.GsmServiceStateTracker.handleMessage(GsmServiceStateTracker.java:408)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at android.os.Handler.dispatchMessage(Handler.java:99)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at android.os.Looper.loop(Looper.java:137)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at android.app.ActivityThread.main(ActivityThread.java:4439)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at java.lang.reflect.Method.invokeNative(Native Method)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at java.lang.reflect.Method.invoke(Method.java:511)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
09-09 13:17:34.629: E/AndroidRuntime(1249):	at dalvik.system.NativeStart.main(Native Method)

shud i change SignalStrength*.smali??
[Android Software Development] v1r0x:
There was a big announcement that miui goes open-source a few months ago o.O

they lied?

patchrom doesn't sound like open source

Sent from my awesome Desire Z with MIUI JB using the xda-developers app
[Android Software Development] santajin:
I fixed the keyboard problem for my dz.

Don't change PhoneWindowManager.smali, only thing you need to do is in framework-res\res\values\integers.xml,

change the following two line, you will find the keyboard works perfect!

<integer name="config_lidOpenRotation">90</integer>

<integer name="config_lidKeyboardAccessibility">1</integer>
[Android Software Development] Lens_flare:
hell again that error ;[ Try to change gsmdataconnectiontracker from gsm folder.

all world was overexcited miui goes opensource but we got only that damn patchrom, nothing else.

I'll set to my faq that info, thx.
[Android Software Development] Ozadroid:
i changed the SignalStrength*.smali now there is no error. But still the network wont work!

then i viewed the radio log and it showed this..

D/QCRIL ( 106): [Event CM_SS_EVENT_RSSI (73729)] Modem: On --> On, GW SIM: Ready --> Ready, CDMA SIM: Not ready --> Not ready, Mode Config: GW --> GW

D/QCRIL ( 106): [Event CM_SS_EVENT_RSSI (73729)] Subscription: SIM --> SIM, Network: GW --> GW, Mode Preferred: GW --> GW

D/QCRIL ( 106): [Event CM_SS_EVENT_RSSI (73729)] rs notification status 1, changed 0

D/QCRIL ( 106): Finish processing event 1

D/QCRIL ( 106): GW signal is available.

D/QCRIL ( 106): Signal strength: gw_rssi: 17, gw_bit_error: 255, cdma_dbm: -1, cdma_ecio: -1, hdr_dbm: -1, hdr_ecio: -1, hdr_sinr: -1

D/QCRIL ( 106):

D/QCRIL ( 106): UI <--- RIL_UNSOL_SIGNAL_STRENGTH (1009) --- RIL [Len 28]

E/RILC ( 106): RIL Response: unexpected error on write errno:9

D/QCRIL ( 106): qcril_event_main(): Waiting...

according to this the sim is read and signals are recieved. but then this error comes

E/RILC ( 106): RIL Response: unexpected error on write errno:9

any idea?? or shud i put back the original SignalStrength*.smali n change GsmDataConnectionTracker*.smali??
[Android Software Development] v1r0x:
Thanks! It works :)

But there is this annoying notification to choose the input method :confused:

@Lens: I don't understand miui :D

In my next-to-last build I had this problem with the settings in the miui music.

In my last build it works perfectly and in the current build I have the problem again :mad::confused:
[Android Software Development] santajin:
I think it is a new feature of 4.0 to change input method, in 2.3 you have to long press in the input window.
[Android Software Development] santajin:
@v1r0x

I ported NS JB to my dz, now it seems work fine, but when i choosed rings from sdcard, it dosen't work, it seems that only system resouses can be used, do you know why?

thx!
[Android Software Development] v1r0x:
Which base rom do you use?

I have no ringtones on my sdcard, so I can't test it.

Is there something in the error/warning log?
[Android Software Development] CosmicDan:
He said Nexus S.

Not being able to chose tones from SD card is a bug for long time in miui, use ES File Explorer and browse manually via Other. Works finge for me.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] santajin:
I used flinny's cm10 as my base.

The related logs are as follows

I

09-10 20:48:41.958: E/MM_OSAL(123): FileSourceHelper::ValidateAACFile failed
09-10 20:48:41.958: W/QComExtractorFactory(123): Didn't match the sniff <=== status = 1
09-10 20:48:42.028: D/AudioHardwareMSM7X30(123): value of device and enable is 6 1 ALSA dev id:6
09-10 20:48:42.128: D/AudioHardwareMSM7X30(123): updateACDB: (11, 6, 0, 607)
09-10 20:48:42.128: I/HTC Acoustic(123): update ACDB id: (tx, rx, tx_acdb, rx_acdb) = (11, 6, 0, 607)
09-10 20:48:42.128: D/AudioHardwareMSM7X30(123): msm_route_stream(PCM_PLAY,5,6,1)
09-10 20:48:42.548: D/StatusBar.NetworkController(509): updateTelephonySignalStrength: mSignalStrength == 20(GSM) 16(CDMA)
09-10 20:48:43.319: V/PhoneStatusBar(509): setLightsOn(true)
09-10 20:48:43.329: I/Adreno200-EGL(10158): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
09-10 20:48:43.329: I/Adreno200-EGL(10158): Build Date: 07/31/12 Tue
09-10 20:48:43.329: I/Adreno200-EGL(10158): Local Branch:
09-10 20:48:43.329: I/Adreno200-EGL(10158): Remote Branch: quic/master
09-10 20:48:43.329: I/Adreno200-EGL(10158): Local Patches: NONE
09-10 20:48:43.329: I/Adreno200-EGL(10158): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
09-10 20:48:43.359: D/memalloc(120): /dev/pmem: Allocated buffer base:0x421dd000 size:1536000 offset:0 fd:37
09-10 20:48:43.379: D/memalloc(10158): /dev/pmem: Mapped buffer base:0x52f7c000 size:1536000 offset:0 fd:88
09-10 20:48:43.409: W/System.err(10158): Removed 2131231270
09-10 20:48:43.469: W/System.err(10158): Removed 2131231282
[Android Software Development] Lens_flare:
E/MM_OSAL(123): FileSourceHelper::ValidateAACFile failed

do you have QCOM_HARDWARE field in SystemProperties.smali?

Do you have AAC in system/etc/media_profiles.xml?
[Android Software Development] santajin:
I can choose the ringtong, also i can see it has been choosen, but when a call comes in, the ringtone is not sa i wished,

so sad...

---------- Post added at 02:34 PM ---------- Previous post was at 02:01 PM ----------

thx, i didn't have the two thing you have mentioned, but what i choosed is a mp3 file, not aac file, so is it related?
[Android Software Development] Lens_flare:
maybe it's kinda on-the-fly converter which requires aac.
[Android Software Development] Ozadroid:
Lens Lens Lens m here 2 :D
[Android Software Development] CosmicDan:
You put media in miui folder? Sometomes tones appear, but they usually dont play like you have. It has to be ogg or aac as far as I know. Otherwise, browse with app works for MP3 works well.

EDIT: Try random things Ozadroid, he probably doesnt know :p

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
haven't I respond? :/

again:

RIL*.smali

LGEQualcommRIL.smali

GsmDataConnectionTracker*.smali

SignalStrength*.smali

PhoneFactory.smali (patch RIL->LGEQualcommRIL)
[Android Software Development] santajin:
thx, i think it is the problem, but what should i do?

I tried to import var QCOM_HARDWARE from the base rom, but it doesn't work...
[Android Software Development] Lens_flare:
3chars
[Android Software Development] santajin:
yes ,it is in the media_profiles.xml,but i found it is all related to Camcorder,

is file media_codecs.xml related to it?
[Android Software Development] janeindiran:
Does this work with DEFY??
[Android Software Development] CosmicDan:
Using CM9 as a base is extremely tedious. I managed to do it for the Xperia Play after about six or so hours of slowly merging in more CM9 framework smali's to MIUI. If you can't understand those errors and fix them yourself, I suggest you not use CM9.... because there will be about twenty more similar (yet more difficult) errors after that :)

EDIT: But for that error it seems you need to copy the missing Samsung RIL smali files from CM9 to MIUI framework.
[Android Software Development] theROMinator:
What would you suggest I use as a base? I thought an AOSP ROM was best...
[Android Software Development] CosmicDan:
Cyanogenmod =\= AOSP, it's heavily modified and expanded AOSP. The framework differences between MIUI4 and CM9 are extensive. Lens_flare reminded me also that MIUI4 are based on stock ROM's, unlike the old MUI GB which was based on CM7 sources.

Try with a stock-based ROM. Maybe you will be lucky like me. I built for Xperia Play based on the Arc S build of MIUI 2.7.20 (now .27), and all I had to do was use stock ICS libs and binaries with no smali changes whatsoever. Everything just worked straight away. Mind you, my "stock based ROM" was actually a stock-ICS port from Arc S itself :P
[Android Software Development] theROMinator:
Hmm all I have to work with is the TouchWiz ROM. What files would I use from MIUI? I'm eager to get this working, I've tried many methods lol.