Hello everyone!!!
This is a continuation of rapmv78's ICS Camera HAL for 2.6 kernel. Great thanks to nobodyAtall who helped get this working
THINGS YOU WILL NEED:
A working ICS ROM for your device
A lot of time
Now this can be adapted to any phone, but it is designed for the LG Optimus One (P500)
I will upload the panorama fix to my GitHub as soon as I finish porting the code for it
SOURCES:
https://github.com/Rashed97/android_device_libcamera
Camera app changes coming soon!
Frameworks changes coming soon!
TO FIX VIDEO RECORDING AND PLAYBACK:
To fix video you will need the lib/libstagefright_soft_aacdec.so file from your ICS ROM. Setup a vendor pregenerated lib by adding that .so to your COMMONFOLDERNAME/proprietary/lib/libstagefright_soft_aacdec.so
TO INSTALL:
1. Follow the instructions in the READMEs in the repos
2. In your BoardConfigCommon.mk, delete the following lines IF THEY EXIST:
(Note: these are scattered all over the file, so look for them)
- COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB
- TARGET_USE_OVERLAY := false
- TARGET_HAVE_BYPASS := false
- TARGET_USES_C2D_COMPOSITION := false
- COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60
3. Now add these lines to your BoardConfigCommon.mk
- TARGET_DISABLE_ARM_PIE := true
- TARGET_BOOTANIMATION_USE_RGB565 := true
- TARGET_BOOTANIMATION_TEXTURE_CACHE := true
- Note that the following 2 might not be needed based on your device, but most devices will need them
- TARGET_NO_HW_VSYNC := true
- COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK
4. Edit the files in the DEVICE/libcamera folder to suit your device
Again, thanks to nobodyAtall for getting this to work!!!