You've either to modify build.prop file or set persistent variables. If your phone is rooted the easiest way is a simple terminal command.
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enabled 1
Then reboot.
For modifing build.prop you need to flash a zip file appropriate for your device.