cd /dev/msm_camera mv msm_camera0 back_cam mv msm_camera1 front_cam # to select back cam by default... ln -s back_cam msm_camera0 # or to select front cam ln -s front_cam msm_camera0
edit:
Now here is the script to do it. Install it via CWM and you will have a new shell command "camswitch" in /system/bin.
Tested on CM6 only. Might as well work on CM7.
Can be executed in terminal emulator (su required) or via adb.
The easiest version of executing it is using GScript Lite (-> market). Just add the script once like this:
gscript.png 15.18K
65 downloadsThen you'll be able to create a shortcut to it on the home screen...
Edited by dr.flo, 17 February 2012 - 09:48 PM.






Sign In
Create Account


Back to top









