I've been trying to force Android to use rear camera both as rear and front camera. This tweak should affect the whole system, so when any app tries to launch front camera, it will receive input from rear camera instead.
After some search I found the following method in XDA Forum, it's meant to swap device cameras.
- Remount the system partition as writable:
$ su -c mount -o rw,remount /system
- Edit /system/vendor/etc/camera/camera_config.xml and swap all
<Position>BACK</Position>to
<Position>FRONT</Position>and vice versa.
- Reboot.
I managed do to it and it only messed up with my cameras orientation. I tried launching WhatsApp camera and it only recognized my front camera (couldn't switch to rear).
I can't find any official documentation on how Android manages device cameras.
I need some insights if it's possible do to this tweak, how could it be done and why the above method didn't work as intended.