Skip to content

android file box

Repository for All Android Files

Menu
  • Home
  • Apps
  • Tools
  • ROMs
  • Themes
  • Wallpapers
  • Tips
  • Miscellaneous
  • Privacy Policy
Menu

How to Enable Camera2 API on Redmi 5 Plus Without Root

Posted on April 28, 2018September 4, 2018 by Fariez N

This article shows you exactly the steps on how to easily enable Android Camera2 API needed for Google Camera (Gcam) app and any other camera apps with advanced manual settings. The common way on how to get it done is by flashing TWRP custom recovery and gaining root access either using Magisk or SuperSU. Fortunately, there is a workaround to enable Camera2 API and install Google cam without rooting and without flashing TWRP. Hence, you can maintain MIUI OTA update mechanism.

This workaround has been proven to work flawlessly on Redmi 5 Plus or Redmi Note 5 (India) with codename Vince running MIUI 9.5.4.0 Global Stable ROM. This trick requires custom recovery either TWRP or RWRP only for booting (without being installed).

Requirements

  1. A Xiaomi Redmi 5 Plus device.
  2. Unlocked bootloader.
  3. ADB Driver Installer.
  4. Red Wolf Recovery (RWRP) for Vince.
  5. A Windows-based computer.
  6. A USB data cable.

Word of caution! Please proceed with care. Do not attempt to follow the guide before you have fully understood. Please read the whole article thoroughly. We hold no responsibility for any damage that might happen to your device.

It is also strongly recommended to create a full backup of your data. Follow our previous guide on how to back up full data from Redmi 5 Plus without root.

The Trick

Step 1 – Unlock your phone bootloader officially. Simply read our detailed guide for Redmi 5 Plus here.

Step 2 – Disable Windows Driver Signature Enforcement on your computer. The full tutorial is available here.

Step 3 – Install the Minimal Fastboot and ADB Driver on your computer. Despite you might install it anywhere, we really recommend you to install it on following location: C:\adb.

Step 4 – Extract the RWRP package. You should get a file called “RedWolf-Vince-3.2-026.img“.

Step 5 – Now copy that file to the adb folder (C:\adb).

Step 6 – Next, rename the file from “RedWolf-Vince-3.2-026” to “rwrp“. Note: Commonly Windows does not display the file extension (.img).

Step 7 – Still at the adb folder, launch the command prompt window from that location. Simply hold down the Shift button on the keyboard and right-click on any blank area in Windows Explorer (inside the adb folder). Then choose Open PowerShell/Command Prompt Window option.

Step 8 – Enable USB Debugging option on your phone.

Settings >> Additional Settings >> Developer Options >> USB Debugging >> toggle ON.

Step 9 – Connect your phone to your computer using its USB cable. Choose the connection type as MTP / Storage (not the Charging only mode).

Step 10 – Now issue the following command correspondingly (type the command and hit Enter):

adb devices
adb reboot bootloader
fastboot devices
fastboot boot rwrp.img
adb shell
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enable 1
exit
adb reboot bootloader
fastboot reboot

Sample screenshot:

p.s: Simply follow the above-written command lines. The screenshot is a little bit different since in the first attempt we used the official TWRP image but it ended up with a password need to be provided.

Step 11 – You can now disconnect your phone from your computer. Next, open up Play Store and search for either Camera2 Probe app or Manual Camera Compatibility Test app. Install it.

Congratulation! You have enabled Android Camera2 API without losing the ability to receive MIUI OTA Update since you do not flash any custom recovery.

Alternatively, you can also truly flash the Red Wolf Recovery and maintain OTA update status. However, it requires additional steps and each time you want to install the downloaded update, you will have to boot into RWRP.

This guide is meant for those who don’t want to root their device.

Looking for a working version of Google Camera mod for Redmi 5 Plus? Download the apk file here.

UPDATE

To preserve the Camera2 API enabled, please use OTA to update your phone to latest MIUI based on Android 8.1 Oreo (started since MIUI 9.6.5.0). We have tested on our phone and the Camera2 API is still enabled after MIUI 9.6.5.0 update. Do not use Fastboot method.

42 thoughts on “How to Enable Camera2 API on Redmi 5 Plus Without Root”

  1. Oscar Calderon says:
    May 9, 2018 at 12:16 am

    I don’t understand something. You don’t use TWRP but you use RWRP which is almost the same thing. Is RWRP installed in the device or not?

    Reply
    1. Fariez NA says:
      May 9, 2018 at 8:56 pm

      Hi, thanks for your comment.

      You can use either TWRP or RWRP. However, you will use it only for booting. You don’t need to flash TWRP/RWRP if you don’t feel it necessary. In the example at the article above, I use it only for booting (the command is “boot”, not “flash”). Hence, the RWRP is not installed in my device.

      Reply
  2. Oscar Calderon says:
    May 11, 2018 at 7:43 pm

    Thank you my friend. At first it didn’t work for me – maybe i did something too fast, i noticed that RWRP loads in phone showing the UI in the screen – Second time i tried, i left it load in the screen, and after then executed the setprop commands. Rebooted without issues, and it worked!! Kudos to you

    Reply
    1. Fariez NA says:
      May 13, 2018 at 6:13 am

      Any time!! Great knowing it works for you too.

      Reply
  3. جهاد says:
    June 6, 2018 at 12:57 pm

    does it work on the redmi note 5 global version ( redmi note 5 pro indian versoin)

    Reply
    1. Fariez NA says:
      June 6, 2018 at 10:02 pm

      Not tested yet, but it should also work. Just make sure you use the corresponding compatible build of RWRP / TWRP image file.

      Reply
  4. Sumit says:
    July 13, 2018 at 3:17 am

    Does it work with miui 10 ?

    Reply
    1. Sumit says:
      July 13, 2018 at 4:13 am

      it works with miui 9.5 but
      its not working with miui 10 , please check it ,

      Reply
      1. Fariez NA says:
        July 13, 2018 at 3:28 pm

        Hi,.. thanks for your information. We haven’t tested it yet on MIUI 10. We still wait for its global stable rom.

        Reply
  5. sehatala says:
    July 19, 2018 at 1:49 pm

    for mi note 3 (not redmi) with MIUI 8, is it working?

    and do I have to use different kind of Mod Google Camera for mi note 3 (not redmi)?

    Reply
    1. Fariez NA says:
      July 20, 2018 at 12:43 pm

      Honestly, I am not quite sure but it should also work the same way as long as you use the appropriate version of custom recovery.

      Reply
  6. Atik Khan says:
    July 22, 2018 at 8:23 pm

    Fariez bro will these trick work in other phone like asus max m1 other than miui?

    Reply
    1. Fariez NA says:
      July 23, 2018 at 8:28 pm

      Hi Khan, thanks for your comment. Honestly, I am not quite sure but it should also work the same way as long as you use the appropriate version of custom recovery.

      You may try and please share us your experience

      Reply
  7. Jose says:
    July 26, 2018 at 5:12 pm

    Hi:
    First of all, thanks for this post.
    I did everything as you explained and it worked really fine on my Redmi 5 Plus, I had and still have miui 9.6.2.0 version when I did it. But now a new version of miui has been realesed 9.6.4.0. My question, If I upgrade my phone will I loose cam2api and Google cam installed? Will my phone get bricked? This is my first Xiaomi phone and i so noob. Hope you can answer me
    Thanks in advance

    Reply
    1. Jose says:
      July 27, 2018 at 12:34 pm

      Well, I reply myself. Last night my phone updated to its own to Miui 9.6.4.0 and Gcam still remains and nothing bad happened. I dont know if it will be the same with Miui 10
      Thanks anyway

      Reply
      1. Fariez NA says:
        July 27, 2018 at 3:54 pm

        It is safe to use with MIUI 9.6.4.0. We’ll see it on MIUI 10 once the Stable version released.

        Reply
  8. Adrian Sołtysik says:
    July 27, 2018 at 3:19 am

    Hello if in future I will update MIUI will camera2 API still be enabled? Or if they release MIUI 10 I would like to know thanks Fariez

    Reply
    1. Fariez NA says:
      July 27, 2018 at 3:56 pm

      Well, I cannot assure that. AFAIK, Xiaomi have enabled Camera2 API by default on any MIUI version running on high-end devices (Mi Mix 2S, Mi 8). The case of Redmi 5 Plus will be different though, but who knows.. let’s see once MIUI 10 released. 🙂

      –edit–
      Sorry, I understand your question wrong. If you have enabled Camera2 API, it will still be enabled on future release. However, since MIUI 10 is a major upgrade, the case could be different. But let’s wait..

      Reply
  9. Rada Florin-Daniel says:
    August 5, 2018 at 3:55 pm

    Does doing this trick, void the warranty? If it does, could this changes be reversed so that if someone needs to take the phone into warranty, it will be accepted?

    Reply
    1. Fariez NA says:
      August 10, 2018 at 8:10 pm

      yes it can be reversed.

      Reply
  10. al78rus says:
    August 6, 2018 at 8:56 pm

    Hello Fariez.
    Will it be possible to relock bootloader after patching the phone and installing Google Camera using this method? No chance to get a bootloop or a brick?

    Reply
    1. Fariez NA says:
      August 10, 2018 at 8:06 pm

      I am not quite sure about relocking bootloader.

      Reply
  11. Songi says:
    August 10, 2018 at 2:38 pm

    Hello Fariez,
    so the red wolf recovery is not installed in the sense that it is used only when the phone is connected to the PC and all official updates will arrive (I have the global version of redmi 5 plus)? So when I’ll plug off the phone pc the fastboot mode will be the stock one?
    Also by re-locking the bootloader all features will work? I had read an article in which they said that the fingerprint reader was disabled when bootloader was unlocked, will I get all features back?

    Reply
    1. Fariez NA says:
      August 10, 2018 at 8:06 pm

      – Yes, the phone will have its stock recovery.
      – I am not quite sure about relocking bootloader. You tell me 😉
      – No, fingerprint will not disabled by unlocking bootloader. It still works as usual.

      Reply
  12. Kaan Berkay Kayı says:
    August 12, 2018 at 5:52 pm

    Thank you so much it worked without any problems. Only problem i got was, when i write adb devices it shows my device but when i write fastboot device it wasn’t showing my device. to solve it; i went to device manager, and when my phone entered fastboot menu “unknown device” appeared in the device manager. i choose to update it with right click and just choose adb interface. that solved it. That probably happened because i installed this adb drivers for another android phone 2-3 years ago

    Reply
    1. Fariez NA says:
      August 13, 2018 at 8:53 am

      thanks for the tips. It will be helpful for other users since there are many have installed usb driver for various phones in the past.

      Reply
    2. Jose Anthony says:
      August 30, 2018 at 9:22 am

      Thank you so much for sharing this! I’ve been stuck on this same issue for 10 hours! Thank you thank you thank you! ^o^

      Reply
  13. Kaan Berkay Kayı says:
    August 12, 2018 at 5:53 pm

    Also this method won’t void your warranty because you are not flashing any custom firmware

    Reply
    1. Fariez NA says:
      August 13, 2018 at 8:52 am

      yes indeed

      Reply
  14. BerbagiCeritaHidup says:
    September 3, 2018 at 7:49 am

    not working on Redmi 5 Plus MIUI 9.6.5.0 Android 8.1 Oreo

    Reply
    1. alexispedron says:
      September 4, 2018 at 12:46 am

      Same for me, i had it on MIUI 9.6.4.0, but I update to 9.6.5.0 Android 8.1 Oreo and not work, any solution?

      Reply
      1. Fariez NA says:
        September 4, 2018 at 8:57 am

        It should work on MIUI 9.6.5.0 Android 8.1 Oreo if you updated it through OTA (not fastboot). It works and I tested it personally on my phone.

        Reply
        1. alexispedron says:
          September 6, 2018 at 1:22 am

          yes, i updated by OTA, maked a hard reset and try again step by step but still not working for me, don’t know why. thanks for you reply

          Reply
          1. Fariez NA says:
            September 6, 2018 at 6:49 pm

            It could be for that hard reset. I think, the method might not work on Android 8.1 Oreo but as long as you have enabled it earlier (when the device was running Nougat-based MIUI), the Camera2API will still be enabled once updated to Oreo.

          2. Kaan Berkay Kayı says:
            September 9, 2018 at 4:41 pm

            it also didn’t work for redmi note 5 pro android 8 :/

          3. Fariez NA says:
            September 9, 2018 at 6:46 pm

            Thanks for your feedback. Mind to add some more information? Did you use TWRP or RWRP? What exact MIUI version did you use? Thanks

          4. Kaan Berkay Kayı says:
            September 10, 2018 at 4:13 pm

            i don’t know it’s miui version i helped someone about this i don’t have redmi note 5 pro. he used rwrp

  15. Ramen Sayami says:
    September 10, 2018 at 11:25 pm

    does it work with redmi 5(rosy) ? still on android nougat.. thanks

    Reply
    1. Fariez NA says:
      September 11, 2018 at 7:13 pm

      We haven’t tested it yet but it shall work. Try it and give us feed back. 😉

      Reply
  16. nofearisk says:
    September 29, 2018 at 8:26 pm

    for miui 10, you can try this way, its work for note 5 pro

    http://c.mi.com/thread-1614226-1-0.html

    Reply
  17. Yawish Jamil says:
    October 4, 2018 at 2:58 pm

    Does this work for miui 10 with Android Oreo 8.1 in Redmi note 5 (India)?

    Reply
  18. Ahmed Medhat says:
    January 1, 2019 at 8:01 pm

    it did not work for me IDK y.
    i’m using MIUI 10.0.4.0 and android 8.1

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2023 android file box