[Sony Xperia L] coolswap11:
I got CAMERA HAL to compile but its still crashing. I have not set above flags just added product_packages =+/

camera.msm8960. Removed vendor camera.8960 lib entries from proprietart_files.txt and set use_camera_stub=true...

Where am i going wrong?

[MENTION=4309448]varun.chitre15[/MENTION] [MENTION=5022682]Hnk1[/MENTION]

Still camera crashes

02-21 19:47:15.296: I/ServiceManager(297): service 'media.sound_trigger_hw' died
02-21 19:47:15.296: W/AudioSystem(4654): AudioFlinger server died!
02-21 19:47:15.296: W/CameraBase(2000): Camera service died!
02-21 19:47:15.296: W/AudioSystem(956): AudioPolicyService server died!
02-21 19:47:15.296: W/IMediaDeathNotifier(956): media server died
02-21 19:47:15.296: E/SharedPreferencesImpl(764): Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
02-21 19:47:15.296: D/AndroidRuntime(5103): Shutting down VM
02-21 19:47:15.296: W/AudioSystem(764): AudioFlinger server died!
02-21 19:47:15.296: W/AudioSystem(764): AudioPolicyService server died!
02-21 19:47:15.306: W/AudioSystem(956): AudioFlinger server died!
02-21 19:47:15.306: W/art(5103): Long monitor contention event with owner method=boolean android.os.BinderProxy.transactNative(int, android.os.Parcel, android.os.Parcel, int) from Binder.java:4294967294 waiters=0 for 1.990s
02-21 19:47:15.306: I/BootReceiver(764): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
02-21 19:47:15.306: E/AudioService(764): Media server died.
02-21 19:47:15.306: E/AndroidRuntime(5103): FATAL EXCEPTION: main
02-21 19:47:15.306: E/AndroidRuntime(5103): Process: com.android.camera2, PID: 5103
02-21 19:47:15.306: E/AndroidRuntime(5103): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread.access$900(ActivityThread.java:147)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.os.Handler.dispatchMessage(Handler.java:102)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.os.Looper.loop(Looper.java:135)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread.main(ActivityThread.java:5256)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at java.lang.reflect.Method.invoke(Native Method)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at java.lang.reflect.Method.invoke(Method.java:372)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
02-21 19:47:15.306: E/AndroidRuntime(5103): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:107)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.camera.one.OneCameraManager.create(OneCameraManager.java:84)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.camera.one.OneCameraManager.get(OneCameraManager.java:71)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1352)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.Activity.performCreate(Activity.java:5933)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
02-21 19:47:15.306: E/AndroidRuntime(5103):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282)
02-21 19:47:15.306: E/AndroidRuntime(5103):	... 10 more
02-21 19:47:15.306: W/ActivityManager(764): Force finishing activity com.android.camera2/com.android.camera.CameraLauncher
02-21 19:47:15.326: W/BinderNative(5103): Uncaught exception from death notification
02-21 19:47:15.326: W/BinderNative(5103): java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference
02-21 19:47:15.326: W/BinderNative(5103):	at android.hardware.camera2.CameraManager$CameraServiceDeathListener.binderDied(CameraManager.java:661)
02-21 19:47:15.326: W/BinderNative(5103):	at android.os.BinderProxy.sendDeathNotice(Binder.java:551)
02-21 19:47:15.356: E/mm-camera(315): config_shutdown_pp Camera not in streaming mode. Returning.
02-21 19:47:15.356: E/mm-camera(315): vfe_ops_deinit: E

Detailed logs are at

http://pastebin.com/DpFkAEsT