Google Pixel 2 Ported Camera Working on Redmi 5A, SD 425

androwide

Senior Member
Jan 10, 2015
59
64
0
30
Noida
www.androwide.com



Hello guys, and today i'll be sharing a great post with you guys that how can you use Google Pixel 2's Portrait effect on Your Snapdragon 400 Series Powered android devices, (as of now i have tested on Redmi 5A) and it working super fine, like i am able to capture Front Cam Bokeh shots, and rear cam portrait images, so in this post i'll show you how to enable or use Google Pixel 2's Modded Camera on Your Redmi 5A :)

so first of all i would like to thanks Senior XDA developers @Arnova8G2 and @miniuser123 for improving these kind of port.

Disclaimer:

guys the process requires Root Access to enable Camera2API, so it will void your warranty, and also if you dont follow the steps correctly you can brick your device, do it at your own risk, AndroWide is not responsible for any issues caused to your phone after rooting or during the process.

Known Bugs :

After enabling Camera2API on Redmi 5A MIUI camera does't work (you can disable the Camera2API at any time to use stock camera),
Video Recording is not working on GCMode Camera as of now on Redmi 5A.

Now let me tell you that what you will have to do to achieve this camera port on you device.

Steps :

Unlock Your Bootloader

Download Magisk.zip file and LazyFlasher.zip files and put it on your Redmi 5A's Internal Storage and also download the GCMode camera apk and put put it on your device

Download and install ADB & Fastboot Drivers on Your Laptop/PC

Download latest adb folder (extract it to desktop)

Download the official TWRP for Redmi 5A and ( copy twrp-3.2.1-0-riva.img to the adb folder)

Now boot you device into fastboot mode (simply press and hold volume down + power key for upto 5 seconds)

now connect your device with the pc and open the adb folder,

now press & hold shift key and press right click on the screen to open command window AKA powershell window (just open the command window)

now type command:

fastboot devices

now it will show you some random string (that means you device has been detected)

now run the following command :

fastboot flash recovery twrp-3.2.1-0-riva.img

now type the following command :

fastboot boot twrp-3.2.1-0-riva.img

now your device will boot into recovery mode just swipe right,

now click on install and select the LazyFlasher.zip file, after flashing done, just reboot your device,

now again boot into twrp recovery by pressing and holding volume Up+power key at the same time for upto 6 seconds

now again click on install and this time select magisk.zip file and wait until it shows done, now just reboot your device

and download the magisk manager app and install it, now download build prop editor from play store and edit the build.prop file (make sure to make a backup of your stock build.prop file)

now add the following line in build.prop file

persist.camera.HAL3.enabled=1 save the file and reboot your device.

now install the GCMod Camera which you have downloaded in the step one and make the following settings.

go to GCMod Settings, Click on Config camera HDR+ and select Nexux 5X, and click on model and select Nexus 5X, now scroll down and go to advanced and Enable HDR+ Control,

Now Just force close the GCMod Camera and now you can capture great portrait images with the front cam as well as rear cam.

:good::good::good:
 
Last edited:

androwide

Senior Member
Jan 10, 2015
59
64
0
30
Noida
www.androwide.com
Last edited:
  • Like
Reactions: amanverma025

amanverma025

Senior Member
Dec 12, 2015
74
12
28
Ghaziabad

rrsenapati1

Senior Member
Oct 10, 2016
54
13
0
Bhubaneswar
Does Other in-app like WhatsApp camera while video calling work if we force close default camera and continue using google camera. Also will we still receive updates from xiaomi if we unlock the bootloader? And can we relock the bootloader later?
 
  • Like
Reactions: sunnyraj84348

sunnyraj84348

Recognized Developer
Nov 11, 2016
291
608
113
Purnia
Does Other in-app like WhatsApp camera while video calling work if we force close default camera and continue using google camera. Also will we still receive updates from xiaomi if we unlock the bootloader? And can we relock the bootloader later?
Video calling will not work after enabling camera2api, xiaomi does not prevent installing ota update in unlocked bootloader but if you rooted and installed custom recovery or modified the system then you cannot install ota update, yes you can relock your bootloader

---------- Post added at 12:45 PM ---------- Previous post was at 12:39 PM ----------

Does Other in-app like WhatsApp camera while video calling work if we force close default camera and continue using google camera. Also will we still receive updates from xiaomi if we unlock the bootloader? And can we relock the bootloader later?
Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader

---------- Post added at 12:46 PM ---------- Previous post was at 12:45 PM ----------

Does Other in-app like WhatsApp camera while video calling work if we force close default camera and continue using google camera. Also will we still receive updates from xiaomi if we unlock the bootloader? And can we relock the bootloader later?
Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader

---------- Post added at 12:49 PM ---------- Previous post was at 12:46 PM ----------

Does Other in-app like WhatsApp camera while video calling work if we force close default camera and continue using google camera. Also will we still receive updates from xiaomi if we unlock the bootloader? And can we relock the bootloader later?
Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader
 
  • Like
Reactions: rrsenapati1

rrsenapati1

Senior Member
Oct 10, 2016
54
13
0
Bhubaneswar
Video calling will not work after enabling camera2api, xiaomi does not prevent installing ota update in unlocked bootloader but if you rooted and installed custom recovery or modified the system then you cannot install ota update, yes you can relock your bootloader

---------- Post added at 12:45 PM ---------- Previous post was at 12:39 PM ----------



Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader

---------- Post added at 12:46 PM ---------- Previous post was at 12:45 PM ----------



Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader

---------- Post added at 12:49 PM ---------- Previous post was at 12:46 PM ----------



Video call will not work after enabling camera2API, xiaomi does not prevent installing OTA update after unlocking bootloader but if you root your phone and install custom recovery or modify system then you can't install OTA update, yes you can relock your bootloader
Ok. Thank you. Btw can you share the thread link to relock bootloader of xiaomi redmi 5a?
 

amanverma025

Senior Member
Dec 12, 2015
74
12
28
Ghaziabad
Well yesterday i did research for fix and found an apk working awsome on my phone . Both video and portrait mode are working flawlessly and its pre configured.
Go to this link: https://www.celsoazevedo.com/files/android/google-camera/

Download the " scrubber_GCam_5.1.018 (scrubber, 2018-01-07) " apk install it and use it. ;)
 
Last edited:

TechnoTrons

Senior Member
Mar 10, 2014
170
155
0
Vijayawada
Well yesterday i did research for fix and found an apk working awsome on my phone . Both video and portrait mode are working flawlessly and its pre configured.
Go to this link: https://www.celsoazevedo.com/files/android/google-camera/

Download the " scrubber_GCam_5.1.018 (scrubber, 2018-01-07) " apk install it and use it. ;)
Do we need to edit build.prop or not for scrubber_GCam_5.1.018 ???
is miui camera also working along side gcam ?????