[Android Apps and Games] M66B:
Here is a logcat of CM10 where the video camera doesn't work.

The strange thing is I only see two PDroid loggings I have added myself:

I/PM,MediaRecorder( 3328): MediaRecorder.prepare, actual state: 1
I/PM,MediaRecorder( 3328): mPath delete: /storage/sdcard0/DCIM/Camera/VID_20121208_103704.mp4

The last line explains why the video is not working (there is a preview image, but no video).

Any hints where to look further?

Edit: I had also added logging further down in prepare:

case STATE_RECORD_BOTH:
if(checkIfPackagesAllowed(MODE_RECORD_BOTH) == IS_NOT_ALLOWED){
String x[] = getPackageName();
if(x != null && x.length > 0)
pSetMan.notification(x[0], 0, PrivacySettings.EMPTY, PrivacySettings.DATA_CAMERA, null, null);
if(mPath != null){
//now overwrite path
mPath = getPrivacyPath();
Log.i(PRIVACY_TAG,"mPath override: " + mPath);
} else if(mFd != null){
//now overwrite fileDescriptor
mFd = getPrivacyFileDescriptor();
Log.i(PRIVACY_TAG,"mFd override");
} else{
//no chance to get it, throw exception
throw new IOException("No valid output file");
}

So it seems either checkIfPackagesAllowed returns the wrong value or getPackageName doesn't return anything.

V/videocamera( 3328): startVideoRecording
D/CameraStorage( 3328): External storage state=mounted
V/videocamera( 3328): initializeRecorder
W/StagefrightRecorder( 170): Max file duration is not positive: 0 us. Disabling duration limit.
W/StagefrightRecorder( 170): Target duration (0 us) too short to be respected
V/videocamera( 3328): New video filename: /storage/sdcard0/DCIM/Camera/VID_20121208_103704.mp4
I/PM,MediaRecorder( 3328): MediaRecorder.prepare, actual state: 1
I/MediaRecorderJNI( 3328): prepare: surface=0x1c53b8 (identity=33)
D/CameraSource( 170): Camera does not support setVideoSize()
E/OMX-VENC-720p( 170):
E/OMX-VENC-720p( 170): WARNING: Requested i/p bufsize[38016],Driver's updated i/p bufsize = 460800
E/OMX-VENC-720p( 170): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:1, Level:512
E/OMX-VENC-720p( 170):
E/OMX-VENC-720p( 170): venc_set_intra_period: nPFrames = 60 nBFrames = 0
E/AudioPolicyManagerBase( 170): profile found: device 400000, flags 0, samplingrate 48000, format 1, channelMask 12
D/AudioHardware7x30( 170): AudioHardware::openInputStream devices 400000 format 1 channels 12 samplerate 48000
D/AudioHardware7x30( 170): AudioStreamInMSM7x30::standby()
W/MPEG4Writer( 170): 32-bit file size limit (3348348800 bytes) too big. It is changed to 2147483647 bytes
D/AudioHardware7x30( 170): AudioStreamInMSM7x30::standby()
I/MPEG4Writer( 170): limits: 2147483647/0 bytes/us, bit rate: 4096000 bps and the estimated moov size 405000 bytes
I/MPEG4Writer( 170): Start time offset: 700000 us
I/AudioHardware7x30( 170): Routing audio to Speakerphone
D/AudioHardware7x30( 170): new_rx = 15
D/AudioHardware7x30( 170): new_tx = 12
E/AudioHardware7x30( 170): updateDeviceInfo: E rx_device 2 and tx_device 3
D/AudioHardware7x30( 170): No active voicecall/playback, disabling cur_rx 0
D/AudioHardware7x30( 170): value of device and enable is 0 0 ALSA dev id:0
D/AudioHardware7x30( 170): No active voicecall/recording, disabling cur_tx 1
D/AudioHardware7x30( 170): value of device and enable is 1 0 ALSA dev id:1
E/AudioHardware7x30( 170): updateDeviceInfo: X cur_rx 2 cur_tx 3
I/caladbolg( 170): 559754059 cald_capctrl.c (6371) 3346 P [CAP] 559754059 + Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 559754364 cald_hal_qct.c (3054) 3346 P [HAL] 559754364 + Cald_Hal_Qct_If_StopPreview
I/caladbolg( 170): 559755005 cald_hal_qct.c (3087) 3346 P [HAL] 559755005 - Cald_Hal_Qct_If_StopPreview (0)
I/caladbolg( 170): 559755218 cald_hal_qct.c (7007) 3346 P [HAL] 559755188 + Cald_Hal_Qct_If_DeleteImageConvert
I/caladbolg( 170): 559757232 cald_hal_qct.c (7036) 3346 P [HAL] 559757232 - Cald_Hal_Qct_If_DeleteImageConvert (0)
I/caladbolg( 170): 559771148 cald_capctrl.c (6382) 3346 P [CAP] 559771148 - Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 559773163 cald_capctrl.c (6128) 3346 P [CAP] 559773163 + Cald_CapCtrl_FSM_Func_StartPreview
I/caladbolg( 170): 559774627 cald_hal_qct.c (2983) 3346 P [HAL] 559774597 + Cald_Hal_Qct_If_StartPreview
D/AudioHardware7x30( 170): value of device and enable is 2 1 ALSA dev id:15
D/AudioHardware7x30( 170): msm_route_stream(PCM_PLAY,5,15,1)
I/caladbolg( 170): 559946808 cald_hal_qct.c (3042) 3346 P [HAL] 559946808 - Cald_Hal_Qct_If_StartPreview (0)
I/caladbolg( 170): 559946960 cald_hal_qct.c (6612) 3346 P [HAL] 559946960 + Cald_Hal_Qct_If_CreateImageConvert
I/caladbolg( 170): 559948486 cald_hal_qct.c (6890) 3346 P [HAL] 559948456 - Cald_Hal_Qct_If_CreateImageConvert (0)
I/caladbolg( 170): 559948669 cald_capctrl.c (6358) 3346 P [CAP] 559948669 - Cald_CapCtrl_FSM_Func_StartPreview
I/caladbolg( 170): 559948974 cald_capctrl.c (8235) 3346 P [CAP] 559948974 + Cald_CapCtrl_FSM_Func_Face_StartDone
I/caladbolg( 170): 559950012 cald_capctrl.c (8246) 3346 P [CAP] 559949981 - Cald_CapCtrl_FSM_Func_Face_StartDone
I/MPEG4Writer( 170): Start time offset: 700000 us
I/AudioHardware7x30( 170): do input routing device 400000
I/AudioHardware7x30( 170): Routing audio to Speakerphone
D/AudioHardware7x30( 170): value of device and enable is 3 1 ALSA dev id:12
I/AudioHardware7x30( 170): do input routing device 400000
I/AudioHardware7x30( 170): Routing audio to Speakerphone
D/AudioHardware7x30( 170): new_rx = 15
D/AudioHardware7x30( 170): new_tx = 12
E/AudioHardware7x30( 170): updateDeviceInfo: E rx_device 2 and tx_device 3
D/AudioHardware7x30( 170): case PCM_REC
D/AudioHardware7x30( 170): The node type is 1 and cur device 2 new device 2
E/AudioHardware7x30( 170): updateDeviceInfo: X cur_rx 2 cur_tx 3
I/MPEG4Writer( 170): setStartTimestampUs: 4218152
I/MPEG4Writer( 170): Earliest track starting time: 4218152
I/caladbolg( 170): 560173004 cald_camctrl.c (14182) 3346 P [SVR] 560173004 + Cald_CamCtrl_FSM_Func_FrameDoneVF
I/caladbolg( 170): 560173156 cald_camctrl.c (14192) 3346 P [SVR] 560173126 - Cald_CamCtrl_FSM_Func_FrameDoneVF
I/MPEG4Writer( 170): setStartTimestampUs: 4328015
I/SERVICE ( 1891): **** android.intent.action.BATTERY_CHANGED
I/SERVICE ( 1891): Add 56
I/ ( 1891): INSERT -1001
I/SERVICE ( 1891): *** DELETE *** 1rows
W/BatteryWidget( 1891): Direct0
V/videocamera( 3328): stopVideoRecording
D/MPEG4Writer( 170): Stopping Video track
I/MPEG4Writer( 170): Received total/0-length (67/0) buffers and encoded 66 frames. - video
D/MPEG4Writer( 170): Stopping Video track source
D/CameraSource( 170): reset: E
I/caladbolg( 170): 562588714 cald_capctrl.c (6371) 3346 P [CAP] 562588714 + Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 562588897 cald_hal_qct.c (3054) 3346 P [HAL] 562588897 + Cald_Hal_Qct_If_StopPreview
I/caladbolg( 170): 562589630 cald_hal_qct.c (3087) 3346 P [HAL] 562589630 - Cald_Hal_Qct_If_StopPreview (0)
I/caladbolg( 170): 562589782 cald_hal_qct.c (7007) 3346 P [HAL] 562589782 + Cald_Hal_Qct_If_DeleteImageConvert
I/caladbolg( 170): 562590759 cald_hal_qct.c (7036) 3346 P [HAL] 562590728 - Cald_Hal_Qct_If_DeleteImageConvert (0)
I/caladbolg( 170): 562604004 cald_capctrl.c (6382) 3346 P [CAP] 562604004 - Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 562610443 cald_capctrl.c (6128) 3346 P [CAP] 562610412 + Cald_CapCtrl_FSM_Func_StartPreview
I/caladbolg( 170): 562611511 cald_hal_qct.c (2983) 3346 P [HAL] 562611480 + Cald_Hal_Qct_If_StartPreview
I/caladbolg( 170): 562808349 cald_hal_qct.c (3042) 3346 P [HAL] 562808319 - Cald_Hal_Qct_If_StartPreview (0)
I/caladbolg( 170): 562808502 cald_hal_qct.c (6612) 3346 P [HAL] 562808471 + Cald_Hal_Qct_If_CreateImageConvert
I/caladbolg( 170): 562812378 cald_hal_qct.c (6890) 3346 P [HAL] 562812347 - Cald_Hal_Qct_If_CreateImageConvert (0)
I/caladbolg( 170): 562812622 cald_capctrl.c (6358) 3346 P [CAP] 562812591 - Cald_CapCtrl_FSM_Func_StartPreview
I/caladbolg( 170): 562812927 cald_capctrl.c (8235) 3346 P [CAP] 562812927 + Cald_CapCtrl_FSM_Func_Face_StartDone
D/CameraSource( 170): reset: X
D/MPEG4Writer( 170): Video track stopped
D/MPEG4Writer( 170): Stopping Audio track
I/caladbolg( 170): 562813720 cald_capctrl.c (8246) 3346 P [CAP] 562813720 - Cald_CapCtrl_FSM_Func_Face_StartDone
I/MPEG4Writer( 170): Received total/0-length (132/0) buffers and encoded 131 frames. - audio
I/MPEG4Writer( 170): Audio track drift time: 1645 us
D/MPEG4Writer( 170): Stopping Audio track source
D/AudioHardware7x30( 170): AudioStreamInMSM7x30::standby()
I/caladbolg( 170): 562940368 cald_camctrl.c (14182) 3346 P [SVR] 562940338 + Cald_CamCtrl_FSM_Func_FrameDoneVF
I/caladbolg( 170): 562946441 cald_camctrl.c (14192) 3346 P [SVR] 562946411 - Cald_CamCtrl_FSM_Func_FrameDoneVF
I/EventLogService( 965): Aggregate from 1354959250095 (log), 1354957633410 (data)
D/AudioHardware7x30( 170): Deroute pcm in stream
E/AudioHardware7x30( 170): updateDeviceInfo: E rx_device 2 and tx_device 3
D/AudioHardware7x30( 170): No active voicecall/recording, disabling cur_tx 3
D/AudioHardware7x30( 170): value of device and enable is 3 0 ALSA dev id:12
D/AudioHardware7x30( 170): The node type is 1 and cur device 2 new device 2
E/AudioHardware7x30( 170): updateDeviceInfo: X cur_rx 2 cur_tx 3
I/AudioHardware7x30( 170): do input routing device 400000
I/AudioHardware7x30( 170): Routing audio to Speakerphone
D/AudioHardware7x30( 170): new_rx = 15
D/AudioHardware7x30( 170): new_tx = 12
E/AudioHardware7x30( 170): updateDeviceInfo: E rx_device 2 and tx_device 3
D/AudioHardware7x30( 170): No active voicecall/recording, disabling cur_tx 3
D/AudioHardware7x30( 170): value of device and enable is 3 0 ALSA dev id:12
D/AudioHardware7x30( 170): The node type is 1 and cur device 2 new device 2
E/AudioHardware7x30( 170): updateDeviceInfo: X cur_rx 2 cur_tx 3
I/AudioHardware7x30( 170): do input routing device 0
I/AudioHardware7x30( 170): Routing audio to Speakerphone
D/MPEG4Writer( 170): Audio track stopped
D/MPEG4Writer( 170): Duration from tracks range is [2287993, 2794666] us
D/MPEG4Writer( 170): Stopping writer thread
D/MPEG4Writer( 170): 0 chunks are written in the last batch
D/MPEG4Writer( 170): Writer thread stopped
D/MPEG4Writer( 170): writeStszBox for Video track
D/MPEG4Writer( 170): writeStszBox: X
D/MPEG4Writer( 170): writeStszBox for Audio track
D/MPEG4Writer( 170): writeStszBox: X
D/MPEG4Writer( 170): Stopping Video track
D/MPEG4Writer( 170): Stopping Audio track
D/AudioHardware7x30( 170): AudioStreamInMSM7x30::standby()
V/videocamera( 3328): Setting current video filename: /storage/sdcard0/DCIM/Camera/VID_20121208_103704.mp4
V/videocamera( 3328): Current video URI: content://media/external/video/media/5836
V/videocamera( 3328): Releasing media recorder.
I/PM,MediaRecorder( 3328): mPath delete: /storage/sdcard0/DCIM/Camera/VID_20121208_103704.mp4
D/dalvikvm( 3328): GC_EXPLICIT freed 1662K, 46% free 4644K/8451K, paused 23ms+11ms, total 112ms
D/AudioHardware7x30( 170): AudioStreamOutMSM7x30::standby()
D/AudioHardware7x30( 170): Deroute pcm out stream
E/AudioHardware7x30( 170): updateDeviceInfo: E rx_device 2 and tx_device 3
D/AudioHardware7x30( 170): No active voicecall/playback, disabling cur_rx 2
D/AudioHardware7x30( 170): value of device and enable is 2 0 ALSA dev id:15
D/AudioHardware7x30( 170): No active voicecall/recording, disabling cur_tx 3
D/AudioHardware7x30( 170): value of device and enable is 3 0 ALSA dev id:12
E/AudioHardware7x30( 170): updateDeviceInfo: X cur_rx 2 cur_tx 3
I/PrivacyGSMPhone( 839): Package: com.android.phone asked for getCellLocation()
E/PrivacySettingsManager( 393): getSettings - PrivacySettingsManagerService is null
I/PrivacyTelephonyRegistry( 393): package: com.google.android.gsf blocked for CellLocation
E/PrivacySettingsManager( 393): getSettings - PrivacySettingsManagerService is null
I/PrivacyTelephonyRegistry( 393): package: com.google.android.apps.maps blocked for CellLocation
V/LockPatternKeyguardView( 393): Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@2beebab0 to 8388608
D/UnlockScreen( 393): portrait mode
V/TransportControlView( 393): Create TCV com.android.internal.widget.TransportControlView@2bff4bc0
D/SurfaceFlinger( 167): About to give-up screen, flinger = 0xfb88
V/videocamera( 3328): stopVideoRecording
V/videocamera( 3328): Releasing media recorder.
V/videocamera( 3328): closeCamera
I/caladbolg( 170): 569492798 cald_camctrl.c (4583) 3344 P [SVR] 569492798 + Cald_CamCtrl_ICamera_CancelAutoLock
I/caladbolg( 170): 569493042 cald_camctrl.c (9440) 3344 P [SVR] 569493042 + Cald_CamCtrl_FSM_Func_CancelAutoLock
I/caladbolg( 170): 569493194 cald_camctrl.c (9463) 3344 P [SVR] 569493194 - Cald_CamCtrl_FSM_Func_CancelAutoLock (0)
I/caladbolg( 170): 569493377 cald_camctrl.c (4588) 3344 P [SVR] 569493347 - Cald_CamCtrl_ICamera_CancelAutoLock (0)
I/caladbolg( 170): 569497253 cald_capctrl.c (6371) 3346 P [CAP] 569497223 + Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 569497497 cald_hal_qct.c (3054) 3346 P [HAL] 569497467 + Cald_Hal_Qct_If_StopPreview
I/caladbolg( 170): 569498474 cald_hal_qct.c (3087) 3346 P [HAL] 569498443 - Cald_Hal_Qct_If_StopPreview (0)
I/caladbolg( 170): 569498687 cald_hal_qct.c (7007) 3346 P [HAL] 569498687 + Cald_Hal_Qct_If_DeleteImageConvert
I/caladbolg( 170): 569499756 cald_hal_qct.c (7036) 3346 P [HAL] 569499756 - Cald_Hal_Qct_If_DeleteImageConvert (0)
I/caladbolg( 170): 569553985 cald_capctrl.c (6382) 3346 P [CAP] 569553985 - Cald_CapCtrl_FSM_Func_StopPreview
I/caladbolg( 170): 569558624 cald_camctrl.c (4583) 3344 P [SVR] 569558593 + Cald_CamCtrl_ICamera_CancelAutoLock
I/caladbolg( 170): 569558899 cald_camctrl.c (9440) 3344 P [SVR] 569558899 + Cald_CamCtrl_FSM_Func_CancelAutoLock
I/caladbolg( 170): 569559662 cald_camctrl.c (9463) 3344 P [SVR] 569559662 - Cald_CamCtrl_FSM_Func_CancelAutoLock (0)
I/caladbolg( 170): 569559875 cald_camctrl.c (4588) 3344 P [SVR] 569559875 - Cald_CamCtrl_ICamera_CancelAutoLock (0)
I/caladbolg( 170): 569560211 cald_camctrl.c (6729) 3344 P [SVR] 569560211 + Cald_CamCtrl_PowerDown
I/caladbolg( 170): 569560394 cald_camctrl.c (7575) 3344 P [SVR] 569560394 + Cald_CamCtrl_FSM_Func_PowerDown
I/caladbolg( 170): 569562072 cald_hal_qct.c (2863) 3344 P [HAL] 569562042 + Cald_Hal_Qct_If_PowerDown
V/KeyguardViewManager( 393): KGVM: Set visibility on com.android.internal.policy.impl.KeyguardViewManager$KeyguardViewHost@2bff0d48 to 6291456
D/AccelerometerListener( 839): enable(false)
D/dalvikvm( 393): GC_CONCURRENT freed 1361K, 35% free 9471K/14407K, paused 25ms+61ms, total 414ms
D/dalvikvm( 393): WAIT_FOR_CONCURRENT_GC blocked 270ms
D/dalvikvm( 393): WAIT_FOR_CONCURRENT_GC blocked 273ms
D/dalvikvm( 393): WAIT_FOR_CONCURRENT_GC blocked 265ms