[XDA-University] slekkas:
Hi guys, very nice tutorial.

I have a MTK6592 device that comes with two roms, An aliyun rom based on android 4.2.2 en/cn language and a regular android 4.2.2 rom miltilingual. I'm trying to port a system app from the yunos to the other rom but when I try to run the app I get force close. I look in the logcat and the first error is this:

02-17 20:24:40.573: E/aui(12297): e:java.io.FileNotFoundException: aui-res.apk

Here's the whole logcat:

02-17 20:24:40.573: E/aui(12297): e:java.io.FileNotFoundException: aui-res.apk
02-17 20:24:40.577: E/AndroidRuntime(12297): FATAL EXCEPTION: main
02-17 20:24:40.577: E/AndroidRuntime(12297): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vstar3d.gesturesetting/com.vstar3d.gesturesetting.ActivitySetting}: java.lang.RuntimeException: AuiResouces: copy Aui resouces error
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2483)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread.access$600(ActivityThread.java:178)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1390)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.os.Handler.dispatchMessage(Handler.java:107)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.os.Looper.loop(Looper.java:194)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread.main(ActivityThread.java:5560)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at java.lang.reflect.Method.invokeNative(Native Method)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at java.lang.reflect.Method.invoke(Method.java:525)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at dalvik.system.NativeStart.main(Native Method)
02-17 20:24:40.577: E/AndroidRuntime(12297): Caused by: java.lang.RuntimeException: AuiResouces: copy Aui resouces error
02-17 20:24:40.577: E/AndroidRuntime(12297):	at com.yunos.internal.AuiResouces.get(AuiResouces.java:48)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at yunos.app.SpiritActivity.getResources(SpiritActivity.java:1076)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at yunos.app.SpiritActivity.initializeTheme(SpiritActivity.java:1115)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at yunos.app.SpiritActivity.setTheme(SpiritActivity.java:1109)
02-17 20:24:40.577: E/AndroidRuntime(12297):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2433)
02-17 20:24:40.577: E/AndroidRuntime(12297):	... 11 more
02-17 20:24:40.623: E/AEE/LIBAEE(666): shell: cant create socket with aed: Connection refused
02-17 20:24:40.650: E/hwcomposer(152): [JOB] Timed out waiting for vsync...
02-17 20:24:40.754: E/AppErrorDialog(666): Failed to get ILowStorageHandle instance

The aui-res.apk is in the yunos framework directory and it's the secondary framework for that rom( if i decompile with apktool it's 2.apk). I bring it over to my rom in the framework directory but i still get the same error. I've spend 15 days on this without success.

Please help me out a little.