[HTC Sensation] FuzzyMeep Two:
Camera Progress

I have been trying to get the camera apk from the Samsung Galaxy s3 to work on my S2, so far i have modified my framework.jar to get past the following problems;

***FIXED PROBLEMS***

W/dalvikvm( 5364): VFY: unable to resolve virtual method 1002: Lcom/sec/android/app/IWSpeechRecognizer/BargeInRecognizer;.startBargeIn (I)V

W/dalvikvm( 5364): Link of class 'Lcom/sec/android/app/camera/Camera$VoiceRecognizer;' failed

W/dalvikvm( 5364): VFY: unable to resolve static method 6283: Lcom/sec/android/hardware/SecHardwareInterface;.setmDNIeOutDoor (Z)Z

W/dalvikvm( 5364): VFY: unable to resolve static method 6282: Lcom/sec/android/hardware/SecHardwareInterface;.setAmoledVideoGamma (Z)Z

AND a bunch of CscFeature errors.

***********

The error list is much shorter than it was before, but i have never tried this before (modding an apk) but, i have figured out all the, odex, deodex, smali, classes.dex, resigning, blah blah blah, stuff on my own (with your help XDA and Google) but now have, what seems to be one final obstacle, and i was hoping someone here could help me.

Here are the important bits of the logcat...

******EXISTING PROBLEMS*******

E/AndroidRuntime(27527): FATAL EXCEPTION: main

E/AndroidRuntime(27527): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sec.android.app.camera/com.sec.android.app.camera.Camera}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030003

E/AndroidRuntime(27527): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1968)

E/AndroidRuntime(27527): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1993)

E/AndroidRuntime(27527): at android.app.ActivityThread.access$600(ActivityThre ad.java:127)

E/AndroidRuntime(27527): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1159)

E/AndroidRuntime(27527): at android.os.Handler.dispatchMessage(Handler.java:99 )

E/AndroidRuntime(27527): at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime(27527): at android.app.ActivityThread.main(ActivityThread.jav a:4512)

E/AndroidRuntime(27527): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(27527): at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(27527): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:794)

E/AndroidRuntime(27527): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:561)

E/AndroidRuntime(27527): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(27527): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030003

E/AndroidRuntime(27527): at android.content.res.Resources.getValue(Resources.j ava:1019)

E/AndroidRuntime(27527): at android.content.res.Resources.loadXmlResourceParse r(Resources.java:2107)

E/AndroidRuntime(27527): at android.content.res.Resources.getLayout(Resources. java:858)

E/AndroidRuntime(27527): at android.view.LayoutInflater.inflate(LayoutInflater .java:394)

E/AndroidRuntime(27527): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)

E/AndroidRuntime(27527): at com.sec.android.app.camera.AbstractCameraActivity. showEditableShortcutHelpTextDialog(AbstractCameraA ctivity.java:1906)

E/AndroidRuntime(27527): at com.sec.android.app.camera.AbstractCameraActivity. onCreate(AbstractCameraActivity.java:1028)

E/AndroidRuntime(27527): at com.sec.android.app.camera.Camera.onCreate(Camera. java:712)

E/AndroidRuntime(27527): at android.app.Activity.performCreate(Activity.java:4 481)

E/AndroidRuntime(27527): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1052)

E/AndroidRuntime(27527): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1932)

************************************************** ********************************

2 files in the apk reference Resource ID #0x7f030003

1. AbstractCameraActivity.smali

.line 1906

.local v3, inflater:Landroid/view/LayoutInflater;

const v6, 0x7f030003

2. R$layout.smali

.field public static final editable_shortcut_helptext_dialog:I = 0x7f030003

I feel like this may help too, this is a section of AbstractCameraActivity.smali leading up to the above referenced line.

.line 1898

iget-object v6, p0, Lcom/sec/android/app/camera/AbstractCameraActivity;->mEditableShortcutHelpTextDialog:Landroid/app/AlertDialog;

if-eqz v6, :cond_6

.line 1934

:cond_5

:goto_5

return-void

.line 1901

:cond_6

const-string v6, "AbstractCameraActivity"

new-instance v7, Ljava/lang/StringBuilder;

invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

const-string v8, "create showEditableShortcutHelpTextDialog - "

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/StringLjava/lang/StringBuilder;

move-result-object v7

invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getCameraSettings()Lcom/sec/android/app/camera/CameraSettings;

move-result-object v8

invoke-virtual {v8}, Lcom/sec/android/app/camera/CameraSettings;->getEditableShortcutHelpTextDialog()I

move-result v8

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v7

invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v7

invoke-static {v6, v7}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/StringI

.line 1902

invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getCameraSettings()Lcom/sec/android/app/camera/CameraSettings;

move-result-object v6

invoke-virtual {v6}, Lcom/sec/android/app/camera/CameraSettings;->getEditableShortcutHelpTextDialog()I

move-result v6

if-eq v6, v9, :cond_5

.line 1903

new-instance v1, Landroid/app/AlertDialog$Builder;

invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/ContextV

.line 1904

.local v1, dialog:Landroid/app/AlertDialog$Builder;

invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

move-result-object v3

.line 1906

.local v3, inflater:Landroid/view/LayoutInflater;

const v6, 0x7f030003