I recently worked on Android camera development and found that this is still complicated. I also got a lot of related information from the network, but it is scattered, it is difficult to have a comprehensive understanding and positioning of the problems that arise.
According to my habits, I prefer to take a rough look at the entire framework and conduct a careful analysis on a certain part. In this way, when a problem occurs, I can be targeted.
I found that the system could not upload my images. It may be because of my local encryption.
Camera Java applicationPackages/apps/camera/src/COM/Android/camera. Java |
Camera Java APIFrameworks/base/CORE/Java/Android/hardware/camera. Java |
Camera native API frameworks/base/CORE/JNI/android_hardware_camera.cpp |
Camera base APIFrameworks/base/libs/UI/Camera. cpp Camera base APIFrameworks/base/libs/UI/ICAmera. cpp Camera base APIFrameworks/base/libs/UI/Icameraservice. cpp |
Camera ServiceFrameworks/base/camera/libcameraservice/cameraservice. cpp |
Camera Hal (Camerahardwareinterface) camerahal. cpp |
| Linux system call |
V4l2 for camera driver |
Camera sensor driver |