[ONE General] thunderteaser:
Sorry, I must have misunderstood. But wouldn't that require too many efforts? We were talking about porting an app and now we're talking about porting a whole environment! :silly: I'm probably still not getting what you mean, but even if we make a Color OS/AOSP ROM, people will have to "settle" with this rom to use the Camera, which is still the opposite thing I'm trying to achieve: porting Oppo's camera on stock CyanogenMod 11S. Right? :laugh:

EDIT: It's worse than I've expected... it's producing the same errors that it did while on AVD with merged framework.jar, even now that Android is loading the proper framework from the modified $BOOTCLASSPATH. I'm attaching the logcat for your reference, but I'm really out of ideas. I tried, guys. And I feel stressed and depressed. :(

E/ActivityThread( 4137): Failed to inflate
E/ActivityThread( 4137): android.view.InflateException: Binary XML file line #2: Error inflating class com.oppo.widget.OppoOptionMenuBar
E/ActivityThread( 4137): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
E/ActivityThread( 4137): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
E/ActivityThread( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
E/ActivityThread( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/ActivityThread( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
E/ActivityThread( 4137): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:343)
E/ActivityThread( 4137): at android.app.Activity.setContentView(Activity.java:1929)
E/ActivityThread( 4137): at com.oppo.gallery3d.app.AbstractGalleryActivity.setContentView(AbstractGalleryActivity.java:144)
E/ActivityThread( 4137): at com.oppo.camera.ActivityBase.setContentView(ActivityBase.java:465)
E/ActivityThread( 4137): at com.oppo.camera.Camera.onCreate(Camera.java:2752)
E/ActivityThread( 4137): at android.app.Activity.performCreate(Activity.java:5231)
E/ActivityThread( 4137): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/ActivityThread( 4137): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
E/ActivityThread( 4137): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)
E/ActivityThread( 4137): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/ActivityThread( 4137): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
E/ActivityThread( 4137): at android.os.Handler.dispatchMessage(Handler.java:102)
E/ActivityThread( 4137): at android.os.Looper.loop(Looper.java:136)
E/ActivityThread( 4137): at android.app.ActivityThread.main(ActivityThread.java:5146)
E/ActivityThread( 4137): at java.lang.reflect.Method.invokeNative(Native Method)
E/ActivityThread( 4137): at java.lang.reflect.Method.invoke(Method.java:515)
E/ActivityThread( 4137): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/ActivityThread( 4137): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/ActivityThread( 4137): at dalvik.system.NativeStart.main(Native Method)
E/ActivityThread( 4137): Caused by: java.lang.reflect.InvocationTargetException
E/ActivityThread( 4137): at java.lang.reflect.Constructor.constructNative(Native Method)
E/ActivityThread( 4137): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/ActivityThread( 4137): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
E/ActivityThread( 4137): ... 23 more
E/ActivityThread( 4137): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0xc05041d
E/ActivityThread( 4137): at android.content.res.Resources.getValue(Resources.java:1195)
E/ActivityThread( 4137): at android.content.res.Resources.getValue(Resources.java:1176)
E/ActivityThread( 4137): at android.content.res.Resources.getDimensionPixelSize(Resources.java:639)
E/ActivityThread( 4137): at com.oppo.widget.OppoOptionMenuBar.<init>(OppoOptionMenuBar.java:219)
E/ActivityThread( 4137): at com.oppo.widget.OppoOptionMenuBar.<init>(OppoOptionMenuBar.java:213)
E/ActivityThread( 4137): ... 26 more
D/AndroidRuntime( 4137): Shutting down VM
W/dalvikvm( 4137): threadid=1: thread exiting with uncaught exception (group=0x41e5edb8)
E/AndroidRuntime( 4137): FATAL EXCEPTION: main
E/AndroidRuntime( 4137): Process: com.oppo.camera, PID: 4137
E/AndroidRuntime( 4137): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.oppo.camera/com.oppo.camera.Camera}: android.view.InflateException: Binary XML file line #2: Error inflating class com.oppo.widget.OppoOptionMenuBar
E/AndroidRuntime( 4137): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2212)
E/AndroidRuntime( 4137): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)
E/AndroidRuntime( 4137): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime( 4137): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
E/AndroidRuntime( 4137): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 4137): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 4137): at android.app.ActivityThread.main(ActivityThread.java:5146)
E/AndroidRuntime( 4137): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4137): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 4137): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/AndroidRuntime( 4137): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/AndroidRuntime( 4137): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 4137): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class com.oppo.widget.OppoOptionMenuBar
E/AndroidRuntime( 4137): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
E/AndroidRuntime( 4137): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
E/AndroidRuntime( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
E/AndroidRuntime( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/AndroidRuntime( 4137): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
E/AndroidRuntime( 4137): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:343)
E/AndroidRuntime( 4137): at android.app.Activity.setContentView(Activity.java:1929)
E/AndroidRuntime( 4137): at com.oppo.gallery3d.app.AbstractGalleryActivity.setContentView(AbstractGalleryActivity.java:144)
E/AndroidRuntime( 4137): at com.oppo.camera.ActivityBase.setContentView(ActivityBase.java:465)
E/AndroidRuntime( 4137): at com.oppo.camera.Camera.onCreate(Camera.java:2752)
E/AndroidRuntime( 4137): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 4137): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 4137): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
E/AndroidRuntime( 4137): ... 11 more
E/AndroidRuntime( 4137): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 4137): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 4137): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime( 4137): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
E/AndroidRuntime( 4137): ... 23 more
E/AndroidRuntime( 4137): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0xc05041d
E/AndroidRuntime( 4137): at android.content.res.Resources.getValue(Resources.java:1195)
E/AndroidRuntime( 4137): at android.content.res.Resources.getValue(Resources.java:1176)
E/AndroidRuntime( 4137): at android.content.res.Resources.getDimensionPixelSize(Resources.java:639)
E/AndroidRuntime( 4137): at com.oppo.widget.OppoOptionMenuBar.<init>(OppoOptionMenuBar.java:219)
E/AndroidRuntime( 4137): at com.oppo.widget.OppoOptionMenuBar.<init>(OppoOptionMenuBar.java:213)
E/AndroidRuntime( 4137): ... 26 more