[HTC One V] eshneto:
Hello,

This is my first post, I usually search through the forum as an unregistered user and find answers to my questions. This is how I've unlocked the bootloader, flashed new recovery (cwm-6.0.1.5 by Lloir) and kernel (SuperSick-01_03_13) and then flashed a new rom (CM 10.1).

All is great, except by the camera. After extensive search, I have not found any instructions on how to install the stock camera on CM10-based ROMs,. So, I've decided to do it by my own. So far I am stuck at a point.

I have managed to find the Camera.akp and Camera.odex file in my backup of the stock rom, to deodex the latter, to include the .dex file back in the Camera.apk package and finally to sign the package for installation.

Install was fine after removing data/data/com.android.camera directory. But now, when trying to run the app I get an exception because some methods/resources were not found. I am an Android noob, so I have no clue on how to determine the nature and localization of these resources on the original ROM. Any help would be appreciated. Here is the relevant part of my logcat:

I/ActivityManager( 1738): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.CameraEntry u=0} from pid 1919
I/ActivityManager( 1738): Start proc com.android.camera for activity com.android.camera/.CameraEntry: pid=3889 uid=10077 gids={1006, 3003, 1015, 1028}
E/Trace ( 3889): error opening trace file: No such file or directory (2)
W/dalvikvm( 3889): Unable to resolve superclass of Lcom/android/camera/HTCCamera$TVDisplayListener; (1389)
W/dalvikvm( 3889): Link of class 'Lcom/android/camera/HTCCamera$TVDisplayListener;' failed
I/dalvikvm( 3889): Could not find method com.htc.wrap.dalvik.system.HtcWrapVMRuntime.disableGcForExternalAlloc, referenced from method com.android.camera.HTCCamera.<init>
W/dalvikvm( 3889): VFY: unable to resolve static method 8067: Lcom/htc/wrap/dalvik/system/HtcWrapVMRuntime;.disableGcForExternalAlloc (Z)V
D/dalvikvm( 3889): VFY: replacing opcode 0x71 at 0x00cd
I/dalvikvm( 3889): Could not find method com.htc.wrap.android.app.HtcWrapActivity.overrideRotateAnimation, referenced from method com.android.camera.HTCCamera.overrideSystemRotateAnimation
W/dalvikvm( 3889): VFY: unable to resolve static method 8045: Lcom/htc/wrap/android/app/HtcWrapActivity;.overrideRotateAnimation (Landroid/app/Activity;I)V
D/dalvikvm( 3889): VFY: replacing opcode 0x71 at 0x0018
I/dalvikvm( 3889): Could not find method com.htc.wrap.dalvik.system.HtcWrapVMRuntime.disableGcForExternalAlloc, referenced from method com.android.camera.HTCCamera.performActionsOnPreviewSurfaceCreated
W/dalvikvm( 3889): VFY: unable to resolve static method 8067: Lcom/htc/wrap/dalvik/system/HtcWrapVMRuntime;.disableGcForExternalAlloc (Z)V
D/dalvikvm( 3889): VFY: replacing opcode 0x71 at 0x0020
E/dalvikvm( 3889): Could not find class 'com.htc.service.WirelessDisplayManager', referenced from method com.android.camera.HTCCamera.setFingerGestureEnable
W/dalvikvm( 3889): VFY: unable to resolve check-cast 1394 (Lcom/htc/service/WirelessDisplayManager;) in Lcom/android/camera/HTCCamera;
D/dalvikvm( 3889): VFY: replacing opcode 0x1f at 0x0006
E/dalvikvm( 3889): Could not find class 'com.htc.service.WirelessDisplayManager', referenced from method com.android.camera.HTCCamera.isInMirrorMode
W/dalvikvm( 3889): VFY: unable to resolve check-cast 1394 (Lcom/htc/service/WirelessDisplayManager;) in Lcom/android/camera/HTCCamera;
D/dalvikvm( 3889): VFY: replacing opcode 0x1f at 0x000e
I/dalvikvm( 3889): Could not find method com.htc.wrap.android.view.HtcWrapSurface.setRemoteScreenOrientation, referenced from method com.android.camera.HTCCamera.onCreate
W/dalvikvm( 3889): VFY: unable to resolve static method 8063: Lcom/htc/wrap/android/view/HtcWrapSurface;.setRemoteScreenOrientation (I)V
D/dalvikvm( 3889): VFY: replacing opcode 0x71 at 0x0022
W/dalvikvm( 3889): Unable to resolve superclass of Lcom/android/camera/HTCCamera$TVDisplayListener; (1389)
W/dalvikvm( 3889): Link of class 'Lcom/android/camera/HTCCamera$TVDisplayListener;' failed
E/dalvikvm( 3889): Could not find class 'com.android.camera.HTCCamera$TVDisplayListener', referenced from method com.android.camera.HTCCamera.onCreate
W/dalvikvm( 3889): VFY: unable to resolve new-instance 323 (Lcom/android/camera/HTCCamera$TVDisplayListener;) in Lcom/android/camera/HTCCamera;
D/dalvikvm( 3889): VFY: replacing opcode 0x22 at 0x0025
I/dalvikvm( 3889): Could not find method com.htc.dlnasharedmodule.HtcTVDisplayHelper.release, referenced from method com.android.camera.HTCCamera.onDestroy
W/dalvikvm( 3889): VFY: unable to resolve virtual method 7948: Lcom/htc/dlnasharedmodule/HtcTVDisplayHelper;.release ()V
D/dalvikvm( 3889): VFY: replacing opcode 0x6e at 0x0034
W/dalvikvm( 3889): Unable to resolve superclass of Lcom/android/camera/HTCCamera$TVDisplayListener; (1389)
W/dalvikvm( 3889): Link of class 'Lcom/android/camera/HTCCamera$TVDisplayListener;' failed
W/dalvikvm( 3889): Unable to resolve superclass of Lcom/android/camera/HTCCamera$TVDisplayListener; (1389)
W/dalvikvm( 3889): Link of class 'Lcom/android/camera/HTCCamera$TVDisplayListener;' failed
W/dalvikvm( 3889): VFY: unable to resolve static field 6333 (Htc_PROJECT_flag) in Lcom/htc/htcjavaflag/HtcBuildFlag;
D/dalvikvm( 3889): VFY: replacing opcode 0x66 at 0x000a
I/dalvikvm( 3889): Could not find method com.htc.wrap.android.view.HtcWrapSurface.resetRemoteScreenOrientation, referenced from method com.android.camera.HTCCamera.onStop
W/dalvikvm( 3889): VFY: unable to resolve static method 8062: Lcom/htc/wrap/android/view/HtcWrapSurface;.resetRemoteScreenOrientation ()V
D/dalvikvm( 3889): VFY: replacing opcode 0x71 at 0x0031
W/dalvikvm( 3889): Unable to resolve superclass of Lcom/android/camera/HTCCamera$TVDisplayListener; (1389)
W/dalvikvm( 3889): Link of class 'Lcom/android/camera/HTCCamera$TVDisplayListener;' failed
D/dalvikvm( 3889): DexOpt: unable to opt direct call 0x060c at 0x27 in Lcom/android/camera/HTCCamera;.onCreate
D/dalvikvm( 3889): DexOpt: unable to opt direct call 0x1f0b at 0x34 in Lcom/android/camera/HTCCamera;.onCreate
W/HTCCamera( 3889): Constructor() - start
W/HTCCamera( 3889): Disable GC
D/AndroidRuntime( 3889): Shutting down VM
W/dalvikvm( 3889): threadid=1: thread exiting with uncaught exception (group=0x40c77300)
E/AndroidRuntime( 3889): FATAL EXCEPTION: main
E/AndroidRuntime( 3889): java.lang.NoClassDefFoundError: com.htc.wrap.dalvik.system.HtcWrapVMRuntime
E/AndroidRuntime( 3889): at com.android.camera.HTCCamera.<init>(HTCCamera.java:895)
E/AndroidRuntime( 3889): at com.android.camera.CameraEntry.<init>(CameraEntry.java:3)
E/AndroidRuntime( 3889): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 3889): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 3889): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
E/AndroidRuntime( 3889): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2091)
E/AndroidRuntime( 3889): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2211)
E/AndroidRuntime( 3889): at android.app.ActivityThread.access$600(ActivityThread.java:143)
E/AndroidRuntime( 3889): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
E/AndroidRuntime( 3889): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3889): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3889): at android.app.ActivityThread.main(ActivityThread.java:4965)
E/AndroidRuntime( 3889): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3889): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3889): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 3889): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
E/AndroidRuntime( 3889): at dalvik.system.NativeStart.main(Native Method)
W/ResourceType( 1738): No known package when getting value for resource number 0x0204027c
W/PackageManager( 1738): Failure retrieving text 0x204027c in package com.android.camera
W/PackageManager( 1738): android.content.res.Resources$NotFoundException: String resource ID #0x204027c
W/PackageManager( 1738): at android.content.res.Resources.getText(Resources.java:229)
W/PackageManager( 1738): at android.app.ApplicationPackageManager.getText(ApplicationPackageManager.java:927)
W/PackageManager( 1738): at android.content.pm.PackageItemInfo.loadLabel(PackageItemInfo.java:115)
W/PackageManager( 1738): at android.app.ApplicationPackageManager.getApplicationLabel(ApplicationPackageManager.java:971)
W/PackageManager( 1738): at com.android.server.am.AppErrorDialog.<init>(AppErrorDialog.java:50)
W/PackageManager( 1738): at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:912)
W/PackageManager( 1738): at android.os.Handler.dispatchMessage(Handler.java:99)
W/PackageManager( 1738): at android.os.Looper.loop(Looper.java:137)
W/PackageManager( 1738): at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1434)
W/ActivityManager( 1738): Force finishing activity com.android.camera/.CameraEntry
W/ActivityManager( 1738): Activity pause timeout for ActivityRecord{416a3ee0 com.android.camera/.CameraEntry}
W/ActivityManager( 1738): Activity destroy timeout for ActivityRecord{416a3ee0 com.android.camera/.CameraEntry}
I/Process ( 3889): Sending signal. PID: 3889 SIG: 9
W/InputMethodManagerService( 1738): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@415518b0 attribute=null
I/ActivityManager( 1738): Process com.android.camera (pid 3889) has died.

Sorry if this is not the best place for posting this question, but I have no access to the devs forum.