[Xperia Z Q&A, Help & Troubleshooting] TpmKranz:
Hi there, I'm currently trying to port the stock Camera app from 10.1.1.A.1.253 to a CM 10.1 nightly (I'm currently using the second one that was compiled on May 22, to be precise).

What I've done so far ist to push the following files to my phone (and set their permissions to 644) from a deodexed stock-based ROM (RomAur):

/system/framework/com.sonyericsson.cameraextension_impl.jar
/system/framework/com.sonyericsson.privateapis_impl.jar
/system/framework/com.sonymobile.cameracommon_impl.jar
/system/etc/permissions/com.sonyericsson.cameraextension.xml
/system/etc/permissions/com.sonyericsson.privateapis.xml
/system/etc/permissions/com.sonymobile.cameracommon.xml
/system/app/CameraCommon.apk
/system/app/CameraExtensionPermission.apk
/system/app/SemcCamera3D.apk
/system/app/SemcCameraUI.apk

And I've patched

/system/framework/framework.jar

To provide the android.os.storage.StorageManager.getVolumeType method and the android.os.storage.StorageManager.VolumeType object type. All of this after examining what error messages came up when trying to install the apks as normal apps (something about missing shared libraries), inspecting their AndroidManifest.xmls (which pointed me towards the other files I've pushed) and examining the logcat when trying to launch the Camera app (it complained about missing types and methods and so I've patched the framework.jar). There was still force-closing after these steps and the logcat said the following:

I/ActivityManager( 581): Start proc com.sonyericsson.android.camera for activity com.sonyericsson.android.camera/.CameraActivity: pid=3435 uid=10104 gids={50104, 1006, 1015, 1023, 3003, 1028}
I/InputReader( 581): Reconfiguring input devices. changes=0x00000004
I/InputReader( 581): Device reconfigured: id=10, name='clearpad', size 1080x1920, orientation 1, mode 1, display id 0
I/PCKeyboard( 1028): onConfigurationChanged()
I/ActivityManager( 581): Config changes=480 {0.85 262mcc1mnc en_US ldltr sw360dp w640dp h335dp 480dpi nrml long land finger -keyb/v/h -nav/h s.11 themeResource=null}
D/LMT::TouchService( 2225): New orientation: 2
I/MusicLeanback( 1620): ActionReceiver action:com.google.android.music.leanback.AUTO_CACHE_ALARM
D/MusicLeanback( 1620): Acquired WakeLock
D/MusicLeanback( 1620): onCreate
D/MusicLeanback( 1620): updateServiceState
D/MusicLeanback( 1620): isAllServicesConnected: false
D/MusicLeanback( 1620): bindings: dm=true cm=false nm=false
D/MusicLeanback( 1620): updateServiceState
D/MusicLeanback( 1620): isAllServicesConnected: false
D/MusicLeanback( 1620): bindings: dm=true cm=true nm=false
D/MusicLeanback( 1620): Service action:com.google.android.music.leanback.ACTIVATE_AUTO_CACHE
I/MusicLeanback( 1620): DailyWindow: Start: 3600000. Duration: 18000000. Frequency: 86400000. Trigger %: 40.
D/MusicLeanback( 1620): Recovered from connectivity change
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=1
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
E/ActivityThread( 3435): Failed to find provider info for com.sonyericsson.conversations
E/ActivityThread( 3435): Failed to find provider info for com.sonyericsson.conversations
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
D/BluetoothAdapter( 903): 1097100120: getState() : mService = null. Returning STATE_OFF
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
D/MusicLeanback( 1620): Attempt allowed: 28164843 exceeds retry frequency of 3600000
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/MusicLeanback( 1620): Too early to update. Last update: Sun May 26 02:51:02 CEST 2013. Will update: Mon May 27 01:32:44 CEST 2013
I/MusicLeanback( 1620): Set alarm for: Mon May 27 01:32:44 CEST 2013
D/MusicLeanback( 1620): Released WakeLock
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
I/libcamera( 211): HAL_getCameraInfo: E cameraId=0
I/libcamera( 211): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 211): HAL_getCameraInfo: X
D/AndroidRuntime( 3435): Shutting down VM
W/dalvikvm( 3435): threadid=1: thread exiting with uncaught exception (group=0x40d0d930)
W/MountService( 581): getVolumeState(/dev/null): Unknown volume
E/AndroidRuntime( 3435): FATAL EXCEPTION: main
E/AndroidRuntime( 3435): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sonyericsson.android.camera/com.sonyericsson.android.camera.CameraActivity}: java.lang.IllegalArgumentException
E/AndroidRuntime( 3435):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
E/AndroidRuntime( 3435):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
E/AndroidRuntime( 3435):	at android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime( 3435):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
E/AndroidRuntime( 3435):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3435):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3435):	at android.app.ActivityThread.main(ActivityThread.java:5226)
E/AndroidRuntime( 3435):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3435):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3435):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 3435):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 3435):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3435): Caused by: java.lang.IllegalArgumentException
E/AndroidRuntime( 3435):	at android.os.Parcel.readException(Parcel.java:1429)
E/AndroidRuntime( 3435):	at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 3435):	at android.os.storage.IMountService$Stub$Proxy.getVolumeState(IMountService.java:241)
E/AndroidRuntime( 3435):	at android.os.storage.StorageManager.getVolumeState(StorageManager.java:555)
E/AndroidRuntime( 3435):	at com.sonyericsson.android.camera.util.StorageUtil.getVolumeState(StorageUtil.java:31)
E/AndroidRuntime( 3435):	at com.sonyericsson.android.camera.ExternalStorageManager.updateStorageState(ExternalStorageManager.java:371)
E/AndroidRuntime( 3435):	at com.sonyericsson.android.camera.ExternalStorageManager.<init>(ExternalStorageManager.java:284)
E/AndroidRuntime( 3435):	at com.sonyericsson.android.camera.CameraActivity.createSingletons(CameraActivity.java:673)
E/AndroidRuntime( 3435):	at com.sonyericsson.android.camera.CameraActivity.onCreate(CameraActivity.java:214)
E/AndroidRuntime( 3435):	at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 3435):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 3435):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)
E/AndroidRuntime( 3435):	... 11 more
D/dalvikvm( 1620): GC_EXPLICIT freed 1454K, 78% free 4216K/18852K, paused 3ms+8ms, total 41ms
W/ActivityManager( 581): Force finishing activity com.sonyericsson.android.camera/.CameraActivity
I/ActivityManager( 581): Config changes=480 {0.85 262mcc1mnc en_US ldltr sw360dp w360dp h615dp 480dpi nrml long port finger -keyb/v/h -nav/h s.12 themeResource=null}
D/LMT::TouchService( 2225): New orientation: 1
I/PCKeyboard( 1028): onConfigurationChanged()
I/InputReader( 581): Reconfiguring input devices. changes=0x00000004
I/InputReader( 581): Device reconfigured: id=10, name='clearpad', size 1080x1920, orientation 0, mode 1, display id 0
D/MusicLeanback( 1620): autoCacheConditions: enabled=false, charging=true, onWifi=true, inWindow=false
I/MusicLeanback( 1620): Conditions not met for autocaching.
I/MusicLeanback( 1620): Stop autocaching.
D/MusicLeanback( 1620): handleMessage: msg{ what=7 when=0 arg1=1 }
D/MusicLeanback( 1620): onDestroy
D/BluetoothAdapter( 903): 1097100120: getState() : mService = null. Returning STATE_OFF
W/ActivityManager( 581): Activity pause timeout for ActivityRecord{4110c3a8 u0 com.sonyericsson.android.camera/.CameraActivity}

Which I circumvented by patching SemcCameraUI.apk by changing line 629 in SemcCameraUI/smali/com/sonyericsson/android/camera/ExternalStorageManager.smali from

if-eqz v3, :cond_1

to

if-nez v3, :cond_1

Now I'm finally at a point where I can launch the Camera app without force-closing. Unfortunately, it just says

With a logcat like this:

I/ActivityManager( 568): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.sonyericsson.android.camera/.CameraActivity bnds=[540,922][540,922]} from pid 1063
E/ActivityThread( 2770): Failed to find provider info for com.sonyericsson.conversations
E/ActivityThread( 2770): Failed to find provider info for com.sonyericsson.conversations
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
W/ActivityManager( 568): Unable to start service Intent { act=com.sonyericsson.psm.sysmonservice.ISysmonService } U=0: not found
W/ActivityManager( 568): Unbind failed: could not find connection for android.os.BinderProxy@41379300
W/ActivityManager( 568): Unable to start service Intent { act=com.sonyericsson.psm.thermalservice.ISysmonService } U=0: not found
W/ActivityManager( 568): Unbind failed: could not find connection for android.os.BinderProxy@41369d00
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/libcamera( 210): HAL_getCameraInfo: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/libcamera( 210): HAL_getCameraInfo: X
I/AwesomePlayer( 210): setDataSource_l(URL suppressed)
D/MediaExtractor( 210): returning default extractor
D/AwesomePlayer( 210): Tunnel Mime Type: audio/vorbis, object alive = 0, mTunnelAliveAP = 0
D/AwesomePlayer( 210): Normal Audio Playback
D/AwesomePlayer( 210): Use tunnel player only for AUDIO_STREAM_MUSIC
I/AwesomePlayer( 210): setDataSource_l(URL suppressed)
D/MediaExtractor( 210): returning default extractor
D/AwesomePlayer( 210): Tunnel Mime Type: audio/vorbis, object alive = 0, mTunnelAliveAP = 0
D/AwesomePlayer( 210): Normal Audio Playback
D/AwesomePlayer( 210): Use tunnel player only for AUDIO_STREAM_MUSIC
I/CameraClient( 210): Opening camera 0
I/libcamera( 210): HAL_openCameraHardware: E cameraId=0
I/libcamera( 210): HAL_Camera_GetCameraInfo: HAL_gCameraNum=2
I/caladbolg( 210): 447709184 cald_pal.c (5038) 692 I [INF] PAL_Create
I/caladbolg( 210): 447709520 cald_camctrl.c (18944) 692 I [INF] + Cald_CamCtrl_Create
I/caladbolg( 210): 447709642 cald_hal.c (5898) 692 I [INF] + Cald_Hal_Create
I/mm-camera( 210): c2d_interface_create: idx = 0 handle = 256
I/caladbolg( 210): 447711137 cald_hal.c (5926) 692 I [INF] - Cald_Hal_Create
I/caladbolg( 210): 447711168 cald_camctrl.c (9360) 692 I [INF] Module name SOI13BS2
E/libals-utils( 210): Unable to open '/sys/devices/virtual/input/mice/name'
I/caladbolg( 210): 447715654 cald_camctrl.c (6633) 692 I [INF] CameraIndex : [0x1]
I/caladbolg( 210): 447715685 cald_camctrl.c (6634) 692 I [INF] numOfCameras: [0x2]
I/caladbolg( 210): 447715715 cald_camctrl.c (6635) 692 I [INF] majorVersion: [0x3]
I/caladbolg( 210): 447715746 cald_camctrl.c (6636) 692 I [INF] minorVersion: [0x0]
I/caladbolg( 210): 447716539 cald_camctrl.c (18969) 692 I [INF] - Cald_CamCtrl_Create
I/caladbolg( 210): 447716570 cald_camctrl.c (18944) 692 I [INF] + Cald_CamCtrl_Create
I/caladbolg( 210): 447716600 cald_hal.c (5898) 692 I [INF] + Cald_Hal_Create
I/caladbolg( 210): 447716967 cald_hal.c (5926) 692 I [INF] - Cald_Hal_Create
I/caladbolg( 210): 447717089 cald_camctrl.c (9360) 692 I [INF] Module name LGI02BN0
I/caladbolg( 210): 447724231 cald_camctrl.c (6633) 692 I [INF] CameraIndex : [0x2]
I/caladbolg( 210): 447724322 cald_camctrl.c (6634) 692 I [INF] numOfCameras: [0x2]
I/caladbolg( 210): 447724444 cald_camctrl.c (6635) 692 I [INF] majorVersion: [0x3]
I/caladbolg( 210): 447724536 cald_camctrl.c (6636) 692 I [INF] minorVersion: [0x0]
I/caladbolg( 210): 447725360 cald_camctrl.c (18969) 692 I [INF] - Cald_CamCtrl_Create
E/QCOM PowerHAL( 210): Invalid hint ID.
E/QCOM PowerHAL( 210): Invalid hint ID.
I/caladbolg( 210): 447731098 cald_server.c (911) 692 I [INF] Server is created. (0)
I/caladbolg( 210): 447731220 cald_server.c (916) 692 I [INF] Server ref counter = 1
I/caladbolg( 210): 447731616 cald_client.c (1926) 692 I [INF] Cald_Client_Create
I/caladbolg( 210): 447731739 cald_client.c (307) 692 I [INF] + Cald_Client_ICamera_ReserveCamera index[0x1] priority[0] pICBCamera[0x4008b530] userData[0x41ec6e60]
I/caladbolg( 210): 447731891 cald_camctrl.c (9534) 4294 P [PFM] 447731891 + Cald_CamCtrl_PowerUp
I/caladbolg( 210): 447732074 cald_capctrl.c (12122) 4294 I [INF] + Cald_CapCtrl_Create
I/caladbolg( 210): 447736103 cald_capctrl.c (12150) 4294 I [INF] - Cald_CapCtrl_Create
I/caladbolg( 210): 447736317 cald_iqctrl.c (20513) 4294 I [INF] + Cald_IqCtrl_Create
I/caladbolg( 210): 447744191 cald_iqctrl.c (20560) 4294 I [INF] - Cald_IqCtrl_Create
I/caladbolg( 210): 447745686 cald_hal_qct_camera.c (5770) 4294 P [HAL] 447745686 + Cald_Hal_Qct_If_PowerUp
I/caladbolg( 210): 447745931 cald_hal_qct_camera.c (5839) 4294 P [HAL] 447745900 - Cald_Hal_Qct_If_PowerUp
I/mm-camera( 210): qcamsvr_start: old_mode = 7
D/mm-camera( 210): P [CAMIF]: 447749654 + sony_camif_cam_power_on
I/mm-camera( 210): mctl_store_curr_target Current target is 0
I/mm-camera( 210): config_proc_native_ctrl_cmd: CAMERA_SET_PARM_DIMENSION called
I/mm-camera( 210): axi_client_init axi client 0
I/mm-camera( 210):
I/mm-camera( 210): vfe_ops_init: E
I/mm-camera( 210): vfe_legacy_stats_buffer_init: AEC_STATS_BUFNUM
I/mm-camera( 210): vfe_legacy_stats_buffer_init: AEC_STATS_BUFNUM
I/mm-camera( 210): mctl_init_stats_proc_info: snap_max_line_cnt =37968
D/mm-camera( 210): P [CAMIF]: 447836240 - sony_camif_cam_power_on
I/Adreno200-EGL( 210): <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615)
I/Adreno200-EGL( 210): Build Date: 04/11/13 Thu
I/Adreno200-EGL( 210): Local Branch:
I/Adreno200-EGL( 210): Remote Branch: quic/mako_jb_mr1
I/Adreno200-EGL( 210): Local Patches: NONE
I/Adreno200-EGL( 210): Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 + NOTHING
I/caladbolg( 210): 447841764 cald_camctrl.c (9549) 4294 P [PFM] 447841764 - Cald_CamCtrl_PowerUp
I/caladbolg( 210): 447842070 cald_client.c (332) 692 I [INF] - Cald_Client_ICamera_ReserveCamera (0)
I/caladbolg( 210): 447842802 cald_client.c (113) 692 I [INF] + Cald_Client_ICamera_GetCameraCaps
I/caladbolg( 210): 447843016 cald_client.c (137) 692 I [INF] - Cald_Client_ICamera_GetCameraCaps (0)
I/caladbolg( 210): 447843138 cald_client.c (151) 692 I [INF] + Cald_Client_ICamera_GetPreviewCaps
I/caladbolg( 210): 447843321 cald_client.c (177) 692 I [INF] - Cald_Client_ICamera_GetPreviewCaps (0)
I/caladbolg( 210): 447843443 cald_client.c (268) 692 I [INF] + Cald_Client_ICamera_GetSnapshotCaps
I/caladbolg( 210): 447843596 cald_client.c (293) 692 I [INF] - Cald_Client_ICamera_GetSnapshotCaps (0)
I/caladbolg( 210): 447843718 cald_client.c (191) 692 I [INF] + Cald_Client_ICamera_GetVideoCaps
I/caladbolg( 210): 447843901 cald_client.c (217) 692 I [INF] - Cald_Client_ICamera_GetVideoCaps (0)
I/caladbolg( 210): 447844908 cald_camctrl.c (12351) 4294 I [INF] Thumbnail size [640 x 480]
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(269): sensors_wrapper_set_delay: lock
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(281): sensors_wrapper_set_delay: unlock
I/caladbolg( 210): 447847899 cald_client.c (113) 692 I [INF] + Cald_Client_ICamera_GetCameraCaps
I/caladbolg( 210): 447848082 cald_client.c (137) 692 I [INF] - Cald_Client_ICamera_GetCameraCaps (0)
I/caladbolg( 210): 447848204 cald_client.c (151) 692 I [INF] + Cald_Client_ICamera_GetPreviewCaps
I/caladbolg( 210): 447848387 cald_client.c (177) 692 I [INF] - Cald_Client_ICamera_GetPreviewCaps (0)
I/caladbolg( 210): 447848509 cald_client.c (268) 692 I [INF] + Cald_Client_ICamera_GetSnapshotCaps
I/caladbolg( 210): 447848693 cald_client.c (293) 692 I [INF] - Cald_Client_ICamera_GetSnapshotCaps (0)
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(269): sensors_wrapper_set_delay: lock
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(281): sensors_wrapper_set_delay: unlock
W/MPL-9_sup( 568): 9 axis sensor fusion not available - No compass detected.
E/idd-api ( 210): idd_set_sdata: send failed, socket 44, errcode -2 (No such file or directory)
E/idd-api ( 210): idd_set_sdata: send failed, socket 44, errcode -2 (No such file or directory)
I/libcamera( 210): HAL_openCameraHardware: X created hardware=0x41ec6e60
I/dalvikvm( 2770): Rejecting re-init on previously-failed class Lcom/sonyericsson/cameraextension/CameraExtension; v=0x0
E/SemcCameraApp( 2770): CameraActivity:showErrorExitDialog: exit.
I/MPL-mldl_cfg_mpu:( 568): mpu3050_resume: Resuming to 000f
I/MPL-mldl_cfg_mpu:( 568): mpu3050_suspend: suspending sensors to 0000
I/MPL-mldl_cfg_mpu:( 568): mpu3050_suspend: Will resume next to 000f
W/MPL-9_sup( 568): 9 axis sensor fusion not available - No compass detected.
W/caladbolg( 210): 447883852 cald_nr.c (3791) 4308 W [VIS] Warning:NR lib mbl_create Fail
W/caladbolg( 210): 447884524 cald_nr.c (3791) 4303 W [VIS] Warning:NR lib mbl_create Fail
D/dalvikvm( 2770): GC_CONCURRENT freed 3488K, 76% free 4547K/18852K, paused 3ms+3ms, total 26ms
D/dalvikvm( 2770): WAIT_FOR_CONCURRENT_GC blocked 3ms
I/dalvikvm-heap( 2770): Grow heap (frag case) to 9.034MB for 2536936-byte allocation
E/libals-utils( 210): Unable to open '/sys/devices/virtual/input/mice/name'
D/dalvikvm( 2770): GC_CONCURRENT freed 286K, 64% free 6828K/18852K, paused 1ms+3ms, total 27ms
I/MPL-mldl_cfg_mpu:( 568): mpu3050_resume: Resuming to 000f
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(269): sensors_wrapper_set_delay: lock
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(281): sensors_wrapper_set_delay: unlock
I/MPL-mldl_cfg_mpu:( 568): mpu3050_suspend: suspending sensors to 0000
I/MPL-mldl_cfg_mpu:( 568): mpu3050_suspend: Will resume next to 000f
W/MPL-9_sup( 568): 9 axis sensor fusion not available - No compass detected.
E/libals-utils( 210): Unable to open '/sys/devices/virtual/input/mice/name'
I/MPL-mldl_cfg_mpu:( 568): mpu3050_resume: Resuming to 000f
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(269): sensors_wrapper_set_delay: lock
D/DASH ( 568): hardware/sony/DASH/sensors_wrapper.c(281): sensors_wrapper_set_delay: unlock
E/libals-utils( 210): Unable to open '/sys/devices/virtual/input/mice/name'
I/ActivityManager( 568): Displayed com.sonyericsson.android.camera/.CameraActivity: +940ms

This led me to look for something that could provide com.sonyericsson.psm.sysmonservice.ISysmonService and I decided that SemcPowerSaveModule.apk was a good candidate for this. So I pushed it to my phone, along with everything I could find that had "sysmon" in its name:

/system/lib/sysmon/sysmon_wlan_limit.so
/system/lib/sysmon/sysmon_usb_current_limit_level.so
/system/lib/sysmon/sysmon_tsens_tz_sensor9.so
/system/lib/sysmon/sysmon_tsens_tz_sensor8.so
/system/lib/sysmon/sysmon_tsens_tz_sensor7.so
/system/lib/sysmon/sysmon_tsens_tz_sensor6.so
/system/lib/sysmon/sysmon_tsens_tz_sensor5.so
/system/lib/sysmon/sysmon_tsens_tz_sensor4.so
/system/lib/sysmon/sysmon_tsens_tz_sensor3.so
/system/lib/sysmon/sysmon_tsens_tz_sensor2.so
/system/lib/sysmon/sysmon_tsens_tz_sensor10.so
/system/lib/sysmon/sysmon_tsens_tz_sensor1.so
/system/lib/sysmon/sysmon_tsens_tz_sensor0.so
/system/lib/sysmon/sysmon_test_sensor.so
/system/lib/sysmon/sysmon_pm8921_tz.so
/system/lib/sysmon/sysmon_perflevel.so
/system/lib/sysmon/sysmon_pba_therm.so
/system/lib/sysmon/sysmon_pa_therm.so
/system/lib/sysmon/sysmon_msm_thermal_disable.so
/system/lib/sysmon/sysmon_modem_lagan.so
/system/lib/sysmon/sysmon_lcd_brightness_level.so
/system/lib/sysmon/sysmon_gpu_perflevel.so
/system/lib/sysmon/sysmon_enable_charging.so
/system/lib/sysmon/sysmon_disable_charging2.so
/system/lib/sysmon/sysmon_disable_charging1.so
/system/lib/sysmon/sysmon_corelimit.so
/system/lib/sysmon/sysmon_charge_current_limit_level.so
/system/lib/sysmon/sysmon_bl_therm.so
/system/lib/sysmon/sysmon_batt_therm.so
/system/lib/libsysmon_jni.so
/system/lib/libsysmon_idd.so
/system/lib/libsysmon.so
/system/framework/com.sonyericsson.sysmon.jar
/system/etc/sysmon.cfg
/system/etc/permissions/com.sonyericsson.sysmon.xml

Though I don't think that this would have been necessary since the logcat states that SemcPowerSaveModule.apk would not be installed:

I/PackageManager( 572): /system/app/SemcPowerSaveModule.apk changed; collecting certs
E/kickstart( 569): Requested ID 6, file "/system/etc/firmware/apps.mbn"
W/PackageManager( 572): Signature mismatch for shared user : SharedUserSetting{40f55280 android.uid.system/1000}
D/PackageManager( 572): No files in app dir /vendor/app
E/PackageManager( 572): Package com.sonyericsson.psm.sysmonservice has no signatures that match those in shared user android.uid.system; ignoring!

I guess that this has something to do with its system app signature, which doesn't match the current system. The next step I'd try is to resign it with the system certificate, but for this I need the testkey.x509.pem and testkey.pk8 that were created during compilation of the nightly build. (Feel free to correct me if something about the last sentence is wrong, I don't know exactly what to do and how to call it but some googleing gave me this rough idea of what to do.)

Tell me if it's a no-go to ask for this kind of stuff, but can someone provide me with the aforementioned files so that I can continue trying to port the Camera app? Or does someone even have a better idea for this situation?

Thanks in advance!