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

Search This thread

androwide

Senior Member
Jan 10, 2015
59
65
33
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:

Aryan_k

New member
May 7, 2018
1
0
Hi.please help
So I have the redmi note 5 pro rooted and running a custom rom on Android 8.1 Oreo. I have enabled the camera2api enabler module in magisk manager.but still the manual camera compatibility app shows everything red and the camera apk I installed keeps crashing.
Please reply asap
 

shiroo16

Member
Apr 17, 2018
26
1
thank you, but when i want to send the image to facebook messenger, line, facebook app, the image doesn't appear, but when i open galery the image is there
 
Last edited:

Akash10053

Member
Nov 20, 2017
16
4
Hi sir great work , but after enabling CAMERA2API my stock camera of Redmi 5a not working ,

I have followed the procedure step by step.

Please help sir

---------- Post added at 07:45 AM ---------- Previous post was at 07:42 AM ----------

Great work sir , Sir But I'm facing a problem that After enabling CAMERA2API my stock camera of Redmi 5a not working.

I have followed the procedure step by step.

Please help
 
  • Like
Reactions: RohanKaran

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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:
    1
    Hi sir great work , but after enabling CAMERA2API my stock camera of Redmi 5a not working ,

    I have followed the procedure step by step.

    Please help sir

    ---------- Post added at 07:45 AM ---------- Previous post was at 07:42 AM ----------

    Great work sir , Sir But I'm facing a problem that After enabling CAMERA2API my stock camera of Redmi 5a not working.

    I have followed the procedure step by step.

    Please help