[Android Software Development] jbbandos:
Hi guys, I am having some problems with the port.

I'm using Evervolv as the base for the port, and the miui nexus x ROM as the source for the miui apks and jars. I am doing this on the Nexus One.

I've already managed to boot by copying the GL20ES*smali from the native framework.jar into the miui framewokr.jar, and later found I also need the lib*nfc* copied from /system/lib in the miui ROM to the native ROM. Finally, to get backup to stop crashing at start I copied "android/app/ListFragment*smali" from the original to the miui framework.jar

My problems now are:

su doesn't work, even if enabled:

E/su ( 1073): stat failed with 2: No such file or directory
W/su ( 1073): request rejected (10047->0 /system/bin/sh)

/system/bin/sh exists. Originally is a soft link to /system/bin/mksh, but I've also tried copying mksh to sh with the same result. Any idea what to look for?

MiuiSettings crashes when opening with a "Can't call getPixels() on a recycled bitmap" error:

E/AndroidRuntime( 1032): FATAL EXCEPTION: main
E/AndroidRuntime( 1032): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.MiuiSettings}: java.lang.IllegalStateException: Can't call getPixels() on a recycled bitmap
E/AndroidRuntime( 1032): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1959)
E/AndroidRuntime( 1032): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1984)
E/AndroidRuntime( 1032): at android.app.ActivityThread.access$600(ActivityThread.java:125)
E/AndroidRuntime( 1032): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1149)
E/AndroidRuntime( 1032): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1032): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1032): at android.app.ActivityThread.main(ActivityThread.java:4429)
E/AndroidRuntime( 1032): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1032): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1032): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 1032): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 1032): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1032): Caused by: java.lang.IllegalStateException: Can't call getPixels() on a recycled bitmap
E/AndroidRuntime( 1032): at android.graphics.Bitmap.checkRecycled(Bitmap.java:213)
E/AndroidRuntime( 1032): at android.graphics.Bitmap.getPixels(Bitmap.java:922)
E/AndroidRuntime( 1032): at miui.widget.SlidingButton.initialize(SlidingButton.java:117)
E/AndroidRuntime( 1032): at miui.widget.SlidingButton.<init>(SlidingButton.java:77)
E/AndroidRuntime( 1032): at miui.widget.SlidingButton.<init>(SlidingButton.java:81)
E/AndroidRuntime( 1032): at miui.widget.SlidingButton.<init>(SlidingButton.java:72)
E/AndroidRuntime( 1032): at com.android.settings.bB.<init>(MiuiSettings.java:415)
E/AndroidRuntime( 1032): at com.android.settings.BasePreferenceFragment.aL(BasePreferenceFragment.java:45)
E/AndroidRuntime( 1032): at com.android.settings.BasePreferenceFragment.onViewCreated(BasePreferenceFragment.java:50)
E/AndroidRuntime( 1032): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:842)
E/AndroidRuntime( 1032): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
E/AndroidRuntime( 1032): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
E/AndroidRuntime( 1032): at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1766)
E/AndroidRuntime( 1032): at android.app.Activity.performCreate(Activity.java:4474)
E/AndroidRuntime( 1032): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime( 1032): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1923)
E/AndroidRuntime( 1032): ... 11 more
W/ActivityManager( 242): Force finishing activity com.android.settings/.MiuiSettings

I've added the full logcat as I am out of ideas for now. Can anyone help?