Then I thought I will manually replace all the Camera library files directly into device system folder but device doesn't allow it as it says files are in use. So not sure how to fix the camera problem. Till now I have flashed 4 ROMs (3 Samsung Rom and 1 Turbo HD Rom). I observed this camera problem only in Samsung Rom. Turbo HD RAM works fine.
Not sure how to fix the rear camera problem. Front camera works fine but only issue is w.r.t rear camara.
I flashed SamFlare V4 on my new MMX A116i. ROM worked great but rear camera stopped working. It just gives green and says camera failed. Front camera woks great. I tried various flashable zips provided in this thread but none of them worked. Also I got CameraFlashable zip from Sakethjoshi but that resolved the camera issue but stopped detecting SDCARD. So Camera library files would have not caused this problem but instead boot.img in the flashable zip could have problem. I think boot.img is causing this problem. I tried removing the camera files from the zip file and flashed it. I found that camera became OK but stop detecting SD card. So I suspect boot.img is causing this problem.