[Android Software Development] bihariel:
I made some progress on porting miui v6 to Nexus 5, the ROM creates all the dex files on dalvick-cache but it fails to boot at some point and its

It´s really close to boot, even i could see the screen flicker before the interface appears but it reach the fatal exceptio error below:

18:04:08.801 Error dalvikvm 837 Jit is enable
18:04:09.037 Error MountService 837 Boot-time mount failed (-1)
18:04:09.371 Error AndroidRuntime 1767 FATAL EXCEPTION: main
18:04:09.371 Error AndroidRuntime 1767 Process: com.google.android.inputmethod.pinyin, PID: 1767
18:04:09.371 Error AndroidRuntime 1767 java.lang.RuntimeException: Unable to instantiate application com.google.android.apps.inputmethod.pinyin.PinyinApp: java.lang.ClassNotFoundException: Didn't find class "com.google.android.apps.inputmethod.pinyin.PinyinApp" on path: DexPathList[[zip file "/system/app/GooglePinyinIME.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
18:04:09.371 Error AndroidRuntime 1767	at android.app.LoadedApk.makeApplication(LoadedApk.java:509)
18:04:09.371 Error AndroidRuntime 1767	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4334)
18:04:09.372 Error AndroidRuntime 1767	at android.app.ActivityThread.access$1500(ActivityThread.java:138)
18:04:09.372 Error AndroidRuntime 1767	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259)
18:04:09.372 Error AndroidRuntime 1767	at android.os.Handler.dispatchMessage(Handler.java:102)
18:04:09.372 Error AndroidRuntime 1767	at android.os.Looper.loop(Looper.java:136)
18:04:09.372 Error AndroidRuntime 1767	at android.app.ActivityThread.main(ActivityThread.java:5034)
18:04:09.372 Error AndroidRuntime 1767	at java.lang.reflect.Method.invokeNative(Native Method)
18:04:09.372 Error AndroidRuntime 1767	at java.lang.reflect.Method.invoke(Method.java:515)
18:04:09.372 Error AndroidRuntime 1767	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)
18:04:09.372 Error AndroidRuntime 1767	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
18:04:09.373 Error AndroidRuntime 1767	at dalvik.system.NativeStart.main(Native Method)
18:04:09.373 Error AndroidRuntime 1767 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.apps.inputmethod.pinyin.PinyinApp" on path: DexPathList[[zip file "/system/app/GooglePinyinIME.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
18:04:09.373 Error AndroidRuntime 1767	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
18:04:09.373 Error AndroidRuntime 1767	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
18:04:09.373 Error AndroidRuntime 1767	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
18:04:09.373 Error AndroidRuntime 1767	at android.app.Instrumentation.newApplication(Instrumentation.java:975)
18:04:09.373 Error AndroidRuntime 1767	at android.app.LoadedApk.makeApplication(LoadedApk.java:504)
18:04:09.373 Error AndroidRuntime 1767	... 11 more
18:04:09.373 Error AndroidRuntime 1767	Suppressed: java.io.IOException: unable to open DEX file
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexFile.openDexFileNative(Native Method)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexFile.openDexFile(DexFile.java:296)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexFile.<init>(DexFile.java:80)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexFile.<init>(DexFile.java:59)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexPathList.loadDexFile(DexPathList.java:263)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexPathList.makeDexElements(DexPathList.java:230)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.DexPathList.<init>(DexPathList.java:112)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
18:04:09.374 Error AndroidRuntime 1767	at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
18:04:09.375 Error AndroidRuntime 1767	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
18:04:09.375 Error AndroidRuntime 1767	at android.app.LoadedApk.getClassLoader(LoadedApk.java:318)
18:04:09.375 Error AndroidRuntime 1767	at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
18:04:09.375 Error AndroidRuntime 1767	... 11 more
18:04:09.375 Error dalvikvm 1679 Jit is enable
18:04:09.375 Error LocSvc_afw 837 W/get_extension: Invalid interface passed in
18:04:09.375 Error dalvikvm 1679 Jit is enable
18:04:09.375 Error dalvikvm 1679 Jit is enable
18:04:09.375 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.376 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.377 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.378 Error dalvikvm 1679 Jit is enable
18:04:09.379 Error dalvikvm 1679 Jit is enable
18:04:09.496 Error LocationManagerService 837 No FusedProvider found.
18:04:09.496 Error LocationManagerService 837 no geofence provider found
18:04:09.498 Error AndroidRuntime 1782 FATAL EXCEPTION: main
18:04:09.498 Error AndroidRuntime 1782 Process: com.amap.android.location, PID: 1782
18:04:09.498 Error AndroidRuntime 1782 java.lang.RuntimeException: Unable to instantiate service com.amap.android.location.NetworkLocationService: java.lang.ClassNotFoundException: Didn't find class "com.amap.android.location.NetworkLocationService" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/app/AMAPNetworkLocation.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
18:04:09.498 Error AndroidRuntime 1782	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2546)
18:04:09.498 Error AndroidRuntime 1782	at android.app.ActivityThread.access$1800(ActivityThread.java:138)
18:04:09.498 Error AndroidRuntime 1782	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
18:04:09.499 Error AndroidRuntime 1782	at android.os.Handler.dispatchMessage(Handler.java:102)
18:04:09.499 Error AndroidRuntime 1782	at android.os.Looper.loop(Looper.java:136)
18:04:09.499 Error AndroidRuntime 1782	at android.app.ActivityThread.main(ActivityThread.java:5034)
18:04:09.499 Error AndroidRuntime 1782	at java.lang.reflect.Method.invokeNative(Native Method)
18:04:09.499 Error AndroidRuntime 1782	at java.lang.reflect.Method.invoke(Method.java:515)
18:04:09.499 Error AndroidRuntime 1782	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)
18:04:09.499 Error AndroidRuntime 1782	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
18:04:09.499 Error AndroidRuntime 1782	at dalvik.system.NativeStart.main(Native Method)
18:04:09.499 Error AndroidRuntime 1782 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amap.android.location.NetworkLocationService" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/app/AMAPNetworkLocation.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
18:04:09.500 Error AndroidRuntime 1782	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
18:04:09.500 Error AndroidRuntime 1782	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
18:04:09.500 Error AndroidRuntime 1782	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
18:04:09.500 Error AndroidRuntime 1782	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2543)
18:04:09.500 Error AndroidRuntime 1782	... 10 more
18:04:09.500 Error AndroidRuntime 1782	Suppressed: java.io.IOException: unable to open DEX file
18:04:09.500 Error AndroidRuntime 1782	at dalvik.system.DexFile.openDexFileNative(Native Method)
18:04:09.500 Error AndroidRuntime 1782	at dalvik.system.DexFile.openDexFile(DexFile.java:296)
18:04:09.500 Error AndroidRuntime 1782	at dalvik.system.DexFile.<init>(DexFile.java:80)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.DexFile.<init>(DexFile.java:59)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.DexPathList.loadDexFile(DexPathList.java:263)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.DexPathList.makeDexElements(DexPathList.java:230)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.DexPathList.<init>(DexPathList.java:112)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
18:04:09.501 Error AndroidRuntime 1782	at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
18:04:09.501 Error AndroidRuntime 1782	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
18:04:09.501 Error AndroidRuntime 1782	at android.app.LoadedApk.getClassLoader(LoadedApk.java:318)
18:04:09.501 Error AndroidRuntime 1782	at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
18:04:09.502 Error AndroidRuntime 1782	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4334)
18:04:09.502 Error AndroidRuntime 1782	at android.app.ActivityThread.access$1500(ActivityThread.java:138)
18:04:09.502 Error AndroidRuntime 1782	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259)
18:04:09.502 Error AndroidRuntime 1782	... 8 more
18:04:09.502 Error AndroidRuntime 1782	Suppressed: java.io.IOException: unable to open DEX file
18:04:09.502 Error AndroidRuntime 1782	at dalvik.system.DexFile.openDexFileNative(Native Method)
18:04:09.502 Error AndroidRuntime 1782	at dalvik.system.DexFile.openDexFile(DexFile.java:296)
18:04:09.502 Error AndroidRuntime 1782	at dalvik.system.DexFile.<init>(DexFile.java:80)
18:04:09.502 Error AndroidRuntime 1782	at dalvik.system.DexFile.<init>(DexFile.java:59)
18:04:09.503 Error AndroidRuntime 1782	at dalvik.system.DexPathList.loadDexFile(DexPathList.java:263)
18:04:09.503 Error AndroidRuntime 1782	at dalvik.system.DexPathList.makeDexElements(DexPathList.java:230)
18:04:09.503 Error AndroidRuntime 1782	at dalvik.system.DexPathList.<init>(DexPathList.java:112)
18:04:09.503 Error AndroidRuntime 1782	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
18:04:09.503 Error AndroidRuntime 1782	at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
18:04:09.503 Error AndroidRuntime 1782	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
18:04:09.503 Error AndroidRuntime 1782	at android.app.LoadedApk.getClassLoader(LoadedApk.java:318)
18:04:09.503 Error AndroidRuntime 1782	at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
18:04:09.503 Error AndroidRuntime 1782	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4334)
18:04:09.504 Error AndroidRuntime 1782	at android.app.ActivityThread.access$1500(ActivityThread.java:138)
18:04:09.504 Error AndroidRuntime 1782	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259)
18:04:09.504 Error AndroidRuntime 1782	... 8 more
18:04:09.622 Error AndroidRuntime 837 *** FATAL EXCEPTION IN SYSTEM PROCESS: main
18:04:09.622 Error AndroidRuntime 837 java.lang.UnsatisfiedLinkError: Native method not found: org.codeaurora.Performance.native_perf_lock_acq:(II[I)I
18:04:09.622 Error AndroidRuntime 837	at org.codeaurora.Performance.native_perf_lock_acq(Native Method)
18:04:09.622 Error AndroidRuntime 837	at org.codeaurora.Performance.perfLockAcquire(Performance.java:78)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.findTaskLocked(ActivityStackSupervisor.java:2134)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.startActivityUncheckedLocked(ActivityStackSupervisor.java:1466)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:1271)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.startHomeActivity(ActivityStackSupervisor.java:637)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityManagerService.startHomeActivityLocked(ActivityManagerService.java:2907)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.resumeHomeActivity(ActivityStackSupervisor.java:300)
18:04:09.623 Error AndroidRuntime 837	at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1279)
18:04:09.624 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked(ActivityStackSupervisor.java:2046)
18:04:09.624 Error AndroidRuntime 837	at com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked(ActivityStackSupervisor.java:2033)
18:04:09.624 Error AndroidRuntime 837	at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:9506)
18:04:09.624 Error AndroidRuntime 837	at com.android.server.ServerThread.initAndLoop(SystemServer.java:1017)
18:04:09.624 Error AndroidRuntime 837	at com.android.server.SystemServer.main(SystemServer.java:1277)
18:04:09.624 Error AndroidRuntime 837	at java.lang.reflect.Method.invokeNative(Native Method)
18:04:09.624 Error AndroidRuntime 837	at java.lang.reflect.Method.invoke(Method.java:515)
18:04:09.624 Error AndroidRuntime 837	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)
18:04:09.625 Error AndroidRuntime 837	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
18:04:09.625 Error AndroidRuntime 837	at dalvik.system.NativeStart.main(Native Method)
18:04:09.731 Error JavaBinder 1859 !!! FAILED BINDER TRANSACTION !!!

any idea how to fix..?

EDIT:

I´m using aosp as base and miui 4.8.19 for MI3W

attached the full logcat also

EDIT i updated the logcat file and the errors posted above...