You can turn off your camera shutter sound according the steps if you can modify the code.If you have any good ideas ,please contact me.Thanks.

Platform version:4.0

Modify the CameraService.cpp via frameworks/base/services/camera/libcameraservice/ path.

You should find the function these:

1.mCameraService->playSound(SOUND_RECORDING)2.mCameraService->playSound(SOUND_SHUTTER)3.playRecordingSound()

If your SDMID is Shutter_sound_enable, which is from your customization configuration file,you can get the property value of Shutter_sound_enable,like this:

         char value[PROPERTY_VALUE_MAX];         property_get("Shutter_sound_enable",value,"0");         if (strcmp(value,"true")==0){  //if the parameter have two values:true and false                      //enable the shutter sound         }

You should replace all of the 3 functions in the CameraService.cpp.

Then compile the module ,you will get the libcamearaservice.so file,and then push into the phone.

Restart your phone.

You can use the command:

adb shell setprop Shutter_sound_enable false //set the property value

adb shell getprop Shutter_sound_enable //get the property value


I have done the work.

Good luck.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android开发一些常见问题
  2. Gradle 安装以及查看jar文件本地的存储位
  3. Android(安卓)Studio安装并使用Kotlin插
  4. android中Content Provider初步
  5. android学习之ListView如何使用
  6. android 安装应用到SD卡上
  7. android背景图片更换——经典例子
  8. Android培训班(55)Dalvik虚拟机的目录结
  9. android 后台附件下载
  10. android VelocityTracker类