A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam)

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 1

Ported Google Camera app (gcam) is surely a hype among Android users. It offers advanced features powered with Google’s own technology not available on any other camera apps by default.

Gcam itself is basically a default camera app available on all Google’s devices including Pixel, Pixel 2/2 XL, Pixel 3/3XL, Pixel 3A, and all future Pixel variants.

The success of BSG and friends (Arnova8G2, Cstark, and so on) in porting the app for other devices makes all other Android users happy. We can now enjoy the awesomeness of Gcam on Android phones other than Google Pixel, including our lovely Redmi Note 5.

Xiaomi Redmi Note 5 codename Whyred (also known as Redmi Note 5 Pro in India) is one Xiaomi’s best selling smartphone last year. It boasts company’s profit significantly.

The device sports Qualcomm SDM636 Snapdragon 636 (14 nm) chipset under the hood. The existence of Octa-core 1.8 GHz Kryo 260 CPUs and Adreno 509 makes it the most valuable phone of the year.

Redmi Note 5 initially comes running MIUI 10 Android 7.1 Nougat. Recently, the device receives Android 9.0 update within MIUI 10 v10.3.1.0 Global Stable ROM.

Previously, we have shared the trick to enable Camera2 API on Redmi Note 5. There are three methods available. All of those work flawlessly on Redmi Note 5 running MIUI 10 based on Android 7.1 Nougat and 8.1 Oreo.

The recent Pie update makes the trick useless.

The proven steps below allows you to enable Camera2 API level 3 successfully on Redmi Note 5 Pro/Ai/China/Global. We tested it and proved it to work flawlessly.

This trick requires no root access. We will also flash no custom recovery and hence we can still enjoy MIUI OTA update mechanism.

Nevertheless, while we can confirm that this method is safe, we still recommend you to create backups. It is a good habit to create backups of all important data and files.

No body forces you to do the trick. We hold no responsibility of any damages that may happen to your phone. Please proceed with caution.

REQUIREMENTS

You will need:

How to Enable Camera2 API on Redmi Note 5 MIUI 10 Pie?

Step 1. Disable Windows Drivers Signature Enforcement on your computer. We have the detailed tutorial here.

Step 2. Extract Xiaomi ADB Fastboot Driver zip file (miui-ADB-Driver-Installer-v1.4.3.zip) and install it on your computer. This should finish in seconds. Make sure you install it on C:\adb\. This step is necessary to install ADB Fastboot system-wide.

Step 3. Extract the miui-platform-tools_r28.0.1-win.zip on your computer. You’ll get a folder called “platform-tools“. This step is important to make sure you use the latest version of ADB-Fastboot.

Step 4. Unlock the bootloader of your phone. Read the full guide on how to unlock MIUI bootloader officially here. Please be aware that the process requires you to reset your phone. All your data will be lost.

Step 5. Extract Orangefox zip file (OrangeFox-R9.0-2-whyred-MIUI-Pie.zip) to get the flash-able recovery image file (recovery.img). If you choose to use Redwolf TWRP, download the flash-able image file (RedWolfTWRP-3.2.3-027-unofficial.img) and rename it to “recovery.img” (without quotes).

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 2

UPDATE: Use Red Wolf Recovery instead of Orange Fox. Some users reported fail attempts with Orange Fox. Use RedWolfTWRP-3.2.3-027-unofficial.img build.

MIUI 10 v10.3.2.0.PEIMIXM use Red Wolf.

Step 6. Copy that recovery.img file into the “platform-tools” folder (Step 3).

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 3

Step 7. Also, extract the ARB-Bypasser-Fastboot-Unlocker.zip file. You’ll get a dummy.img file. Copy that dummy.img file to the “platform-tools” folder as well.

Alternatively, you can also extract the dummy.img file directly to the platform-tools folder.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 4

Here’s what inside our platform-tools folder.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 5

Step 8. Now enable USB debugging on your phone. You might have it enabled during bootloader unlocking process. However, it is a good practice to double-check it.

Enabling Developer Options, go to:

Settings >> About phone >> tap the MIUI version 7x >> You are developer!

Enable USB Debugging, go to:

Settings >> Additional Settings >> Developer Options >> USB Debugging >> toggle it on.

A notification will pop up on your screen. Tap “OK“.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 6

Step 9. Now connect your Redmi Note 5 to your computer using its USB.

Step 10. Choose “File Transfer” mode when asked (do not choose charging mode).

Step 11. In Windows Explorer, go to the “platform-tools” folder. Hold down the Shift button on keyboard, right-click anywhere within that folder, and choose “Open command prompt window/PowerShell window from here“.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 7

Step 12. Now type following lines of command. Hit Enter every each line to issue it.

adb devices
adb reboot bootloader
fastboot devices

The first line asks your computer to recognize your device. The second line instructs your phone to boot into bootloader mode a.k.a fastboot mode. You’ll see the Mi Bunny logo displayed.

Official TWRP for Redmi Note 7 Pro is Now Available! 3

Step 13. Now type following command and hit Enter on your keyboard:

fastboot flash antirbpass dummy.img

This flashes the dummy.img onto your phone. This shall finish in seconds.

Step 14. Next, type the command below (and hit Enter) to boot your phone into recovery mode:

fastboot boot recovery.img

Step 15. Your phone shall reboot into recovery mode which in this case is either Orange Fox or Red Wolf TWRP.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 8

Step 16. The first time entering TWRP recovery, you’ll need to do the “Swipe to allow system modification” action. Do it.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 9

P.s: Since both Orange Fox and Red Wolf recoveries are based on TWRP, I simply call it as TWRP in the next steps.

Step 17. Now copy the Camera2 API HAL3 Enabler (HAL3_ENABLE_MIUI_PIE.zip) to your phone.

You can do this in two ways. First, copy and paste it through Windows Explorer just like copying any file from computer to a USB flash drive.

Second, you can also use following command:

adb push HAL3_ENABLE_MIUI_PIE.zip /tmp/

All the command lines you typed shall look like this:

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 10

Step 18. On your phone, choose “Install” from the main menu of TWRP.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 11

Step 19. Now locate the HAL3_ENABLE_MIUI_PIE.zip file you have it copied earlier. Tap on its filename to select it.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 12

Step 20. Next, do the “Swipe to Install” (in Orangefox) or “Swipe to confirm flash” action. This will install the zip file to your phone.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 13

Step 21. Finally, go back to main menu, choose “Reboot” then choose “System“. In Red Wolf TWRP you can simply choose “Reboot System“.

A Proven Way to Enable Camera2 API on Redmi Note 5 Android 9.0 Pie (and Use Gcam) 14

Your phone will now reboot back to MIUI system. You may notice no difference with your phone.

How to find out if the Camera2 API has been activated? Simply open up Play Store, search for “Camera2 Probe”, and install it.

Launch the app to conduct Camera2 API test. You should notice something similar to these ones:

Couldn’t manage to make it work? Well, rooting is your only option. Root your Redmi Note 5 with Magisk.

How to Install Gcam on Redmi Note 5 MIUI 10 Android 9.0 Pie?

There is no significant differences in the method for installing Gcam on Android 8.1 Oreo or 9.0 Pie. Simply grab the .apk file and install it as usual.

The trick is choosing the right APK. There are so many versions of ported Gcam app. Some may work flawlessly, some may work partially with minor bugs, and other may not work at all.

Visit our dedicated page of Google Cam for Redmi Note 5 Whyred here. All of them have been tested.

Currently, there are basically two versions of Gcam (with so many variants). First, Gcam version 5.1.x. This is an older version that’s built for Android 8.1 Oreo. Second, Gcam version 6.x which is for Android 9.0 Pie.

We recommend you to download and to install the latest version since it has all the latest features.

Credit: This article is inspired by one of Mi Fans with ID 1610317960.

73 Comments

  1. pstone June 11, 2019
    • Fariez Nurkholiq June 11, 2019
      • daniel July 2, 2019
        • Fandi A. Fiki July 2, 2019
  2. irfan shuvo June 11, 2019
    • Fariez Nurkholiq June 11, 2019
      • Osaghae Gabriel June 22, 2019
        • Fariez Nurkholiq June 22, 2019
          • Osaghae Gabriel June 26, 2019
    • Loris June 20, 2019
  3. irfan shuvo June 12, 2019
    • Fariez Nurkholiq June 12, 2019
      • irfan shuvo June 13, 2019
        • Fariez Nurkholiq June 13, 2019
  4. mike June 12, 2019
  5. Tobias June 12, 2019
    • Fariez Nurkholiq June 13, 2019
  6. Scoh Cornelio June 12, 2019
    • Fariez Nurkholiq June 13, 2019
  7. irfan shuvo June 13, 2019
  8. dtf June 14, 2019
  9. dtf June 14, 2019
  10. Mujtahid Akon June 14, 2019
    • dtf June 15, 2019
    • Nikola June 15, 2019
      • Fariez Nurkholiq June 16, 2019
        • Nikola June 16, 2019
    • Loris June 20, 2019
  11. asp June 16, 2019
    • Fariez Nurkholiq June 16, 2019
  12. Paul June 16, 2019
    • Fariez Nurkholiq June 17, 2019
  13. Paul June 16, 2019
    • Scoh Cornelio June 28, 2019
      • Scoh Cornelio June 28, 2019
  14. Anish Rai June 20, 2019
  15. Loris June 20, 2019
    • loris June 21, 2019
  16. Ewert June 22, 2019
  17. Aris June 24, 2019
  18. Arif Pribadi June 24, 2019
  19. daniel July 2, 2019
  20. Newton July 5, 2019
    • Fariez Nurkholiq July 5, 2019
      • Newton July 6, 2019
        • David July 6, 2019
  21. panos July 30, 2019
  22. Aravind August 12, 2019
  23. sanket August 17, 2019
  24. Zirk August 22, 2019
    • Fariez Nurkholiq August 23, 2019
      • Zirk August 23, 2019
  25. dtf August 24, 2019
    • Tobias August 27, 2019
      • dtf August 27, 2019
      • dtf August 28, 2019
  26. Paulo Costa August 26, 2019
  27. Sam August 28, 2019
  28. Fernando August 30, 2019
    • Fariez Nurkholiq September 5, 2019
  29. Mahadi Hasan August 30, 2019
  30. dtf September 4, 2019
  31. umair September 6, 2019
  32. ulli September 8, 2019
    • Fariez Nurkholiq September 9, 2019
      • ulli September 9, 2019

Leave a Reply