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

A Proven Way to Enable Camera2 API on Redmi Note 5 MIUI 11 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 allow 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.

Nobody forces you to do the trick. We hold no responsibility for 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 a 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 MIUI 11 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 MIUI 11 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 MIUI 11 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 MIUI 11 Android 9.0 Pie (and Use Gcam) 5

Step 8. Now enable USB debugging on your phone. You might have it enabled during the 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 MIUI 11 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 the Charging mode).

ALSO READ:  A Brilliant Way to Install GApps on Redmi Note 5 AI China
A Proven Way to Enable Camera2 API on Redmi Note 5 MIUI 11 Android 9.0 Pie (and Use Gcam) 7

Step 11. In Windows Explorer, go to the “platform-tools” folder. Hold down the Shift button on the 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 MIUI 11 Android 9.0 Pie (and Use Gcam) 8

Step 12. Now type following lines of command. Hit Enter every 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 MIUI 11 Android 9.0 Pie (and Use Gcam) 9

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 MIUI 11 Android 9.0 Pie (and Use Gcam) 10

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 MIUI 11 Android 9.0 Pie (and Use Gcam) 11

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

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

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 MIUI 11 Android 9.0 Pie (and Use Gcam) 13

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 MIUI 11 Android 9.0 Pie (and Use Gcam) 14

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 MIUI 11 Android 9.0 Pie (and Use Gcam) 15

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.

UPDATE: TESTED AGAIN ON SEPTEMBER 22ND, 2019.

The recent MIUI OTA update bringing version 10.3.2.0(PEIMIXM) breaks Camera2 API. Hence, you’ll need to re-activate it. Our team tested the above method again. This time we enable Camera2 API on MIUI 10.3.2 and it still works.

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

We can confirm this method work on Redmi Note 5 MIUI 10.3.2.0

Be confident to use the above method exactly as mentioned. Leave a comment below about your experience (success or not).

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

UPDATE: This trick also works on MIUI 11. We have tested it again and we have proven that the above steps still work on Redmi Note 5 running MIUI 11.0.3.0.PEIMIXM Global Stable ROM.

This video proves that the method works on MIUI 11:

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

There are 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 the ported Gcam app. Some may work flawlessly, some may work partially with minor bugs, and others 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.

There is also Gcam v7.x which is originally for Android 10 Q. Thankfully, there is a Gcam v7.x port that also works on Android 9.0 Pie.

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

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

Tags:

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

  1. waktu instal zip muncul tulisan DM Verity is not enable?apakah anda dapat membantu mengatasi masalah ini? terima kasih

      1. i used the both recoveries. when i use the redwolf its says that “dm verity is not enabled” but when i use orangefox its success but there is no manual settings as what manual camera compability test says.. google camera did not work. why?

  2. when i put the command “adb devices” .my devices doesnt show.. my devices redmi note 5 ai cn rom,bootloader unlocked

      1. My redmi note 5 ai can version have the same problem. Didn’t show when I input fastboot device but if my phone is ON and I input code adb devices it will show my phone. I’m really confused sir

    1. It happens to me too.. I used orange recovery (extract the recovery.img from zip) and it works… Unfortunately the camera2 API enabler don’t work for me…

  3. For some f*ck*n reason my Camera2Api disabled after updating to Android 9.
    Did everything as you described, used Orangefox though, as RedWolf and TWRP both keep telling me, that my files are decrypted, which is nonsense.

    Still, my Camera2Api Checker Apps keep telling my I got only Legacy support, Gcam still not opening…

  4. Hello,
    I recently updated to android pie. My bootloader was already unlocked, I followed all the steps (with Red Wolf TWRP) and everything worked just fine, except when I conducted Camera2 API test it says that only manual focus is enabled. Is that normal?
    you can see it here: https://ibb.co/BCxZkHk

  5. UPDATE: Nevermind, I had a previous gcam apk installed that was not working, that’s the Camera2 API test was showing only manual focus enabled. I uninstalled that old gcam apk and the Camera2 API test worked ok (as your screenshots).
    I can confirm the method with Red Wolf TWRP worked and gcam is working just fine.
    Thanks! 🙂

  6. In build.prop there is already a line stating
    persist.vendor.camera.HAL3.enabled=0
    Just change the value from 0 to 1 and you are done. Most importantly, now in pie update gcam is working perfectly for front camera in hdr enhanced mode.

        1. I have Redmi Note 5 Global Version, MIUI 10.3.1, Android 9 Pie and i did everything step by step like it says on this page and even did this with build.prop and i still cant enable camera 2 api. IIS there any other way to enable it for this version of MIUI and android 9?
          Thanks

  7. Hi, i have a problem, after i install Redwolf and then the HAL3 archive…it doesn’t show enabled camera 2 api in test. And the other problem is that when i try to start by recovery mode, Redwolf doesnt appear, just Recovery stock. What am i doing wrong??? i installed the “unofficial” version of REDWOLF. Shoul i try with the other?

  8. i think the problem is that appears “DM verity is not enabled” when i install the HAL3 zip, instead “DM successfully patched”…. i tried several times and i can’t

    1. I’m having the same problem as you sir, I’ve tried flashing first the OrangeFox to solve that problem, and flash it again using RedWolf to succesfully enable camera2 api, but it did not work. I hope somebody can help us solving this.

  9. After booting into redwolf recovery, it says data partition is encrypted, please enter password to decrypt. What do I do? Please help.

  10. 10.3.1.0 global and it doesn’t work. Only orange recovery (took it from the zip and not installed) let me see my device trough mtp but, even if it let me flash the zip I’m still with no cam2api support. I also tried to pass the commands through the ADB shell to modify buildprop but no luck. Any suggestion?

    1. Finally it works, I had to use first Orangefox the first that let me see the phone via MTP (but that doesn’t apply the patch even if it say was flashed with no errors); once tried again whit RWRP unofficial finally it works like a charm!

  11. Hello, I have Redmi Note 5 Global Version, MIUI 10.3.1, Android 9 Pie with unlocked bootloader, i did all steps as above but camera2api still remains disabled, i pulled build.prop file from phone and find that line persist.vendor.camera.HAL3.enabled=1 already exists, does it needs also line persist.camera.HAL3.enabled=1 to work as in oreo? I haven’t enabled camera2api before pie update. Also build.prop file exists in vendor folder but there is no line persist.vendor.camera.HAL3.enabled in this file.

  12. Hi,i am having a problem whereby after flashing to recovery, adb cannot list devices,as its not visible until i reboot back to system that’s when adb functions again,what might be the problem ? I have tried using different cables,using 2.0 port and also reinstalling adb drivers but still nothing.Please assist.

      1. I used red wolf,but my issue is not really the recovery.The main issue is that adb cannot detect my phone after flashing to any recovery.When i start the commands it responds fine,even fastboot commands work fine but after commanding fastboot to boot recovery.img and get into recovery mode,adb cant list any devices.This particular issue began after updating my redmi note 5 global version to android 9 and miui 10.3.1

        1. It works fine but I every time I reboot my phone, camera2api doesn’t work for some reason, in other words, all the process dissapear. I tried with both recoverys and it’s the same thing :/

  13. brother u r god for me, i tried by other methods and had to format my MI6 two times. But your method worked like a charm. Long live, Thanks alot

  14. Hello,

    After the last miui update (10.3.2.0) cam2api was disabled, I tried to do the same I did in June, and described here, using Red Wolf TWRP. on this line “fastboot boot recovery.img” it shows the Red Wolf and then TWRP asks for a password to decrypt.
    What password is that? I don’t know.
    Thanks

  15. Does not work for me. In June I was able to make it work but then after some upgrade file it stopped.

    Yesterday I tried again and I was able to pull edit and push the build.prop file and it contains:
    #properties for camera front flash lux
    persist.vendor.flash.low.lux=390
    persist.vendor.flash.light.lux=340

    persist.vendor.imx376_ofilm.low.lux=310
    persist.vendor.imx376_ofilm.light.lux=280

    persist.vendor.imx376_sunny.low.lux=310
    persist.vendor.imx376_sunny.light.lux=280

    persist.vendor.ov13855_sunny.low.lux=385
    persist.vendor.ov13855_sunny.light.lux=370

    persist.vendor.s5k3l8_ofilm.low.lux=379
    persist.vendor.s5k3l8_ofilm.light.lux=367
    persist.vendor.camera.HAL3.enabled=1 #the required line
    persist.vendor.camera.eis.enabled=1 #I tried with and without this line
    persist.vendor.camera.ltm.overlap=13

  16. “DM verity not patched” this comes and camera2api is not enabled no matter how many times or ways i do it. please help me with a solution.

  17. UPDATE: Solved.

    I tried with “RedWolfTWRP-3.2.3-027-unofficial.img” and it worked. You need to disable any lockscreen password (code, fingerprint, etc).
    Also, I installed the latest gcam 6.3 (stable), all is working fine!

      1. ok you are right download worked. But can’t activate camera2 api. DM-VERITY is not enabled. I am on MIUI 10 v10.3.2.0.PEIMIXM. is there a solution?
        Greetz an thx

  18. I have a problem in step 12 when i type fastboot devices code in fastboot logo doesn’t working and didn’t detect the device
    What can i do
    Thanks

  19. Hi.

    Just one question.

    If you have root access and a basic editor (just like Root Explorer has), could you just add the HAL3 line to the end of build.prop?

    I have done it and i can’t reach level 3 support. Flashing the ZIP through TWRP unofficial, which has Pie encryption support, stops with error 7.

    My device os whyred China with latest MIUI 10 weekly ROM from xiaomi.eu.

    Regards.

    1. Followed one tip from HTMmania forum, likely taken from another source:

      Add these lines to /system/buid.prop and /vendor/build.prop, then change file permissions to rw-r–r– (octal 644):
      persist.camera.HAL3.enabled=1
      persist.camera.eis.enable=1
      persist.camera.is_mode=4
      persist.camera.stats.test=5
      persist.vendor.camera.HAL3.enabled=1
      persist.vendor.camera.eis.enable=1
      persist.vendor.camera.is_mode=4
      persist.vendor.camera.stats.test=5

      All is working now, but there are thousands of ports, and many of them are buggy.

      Maybe there’s a simpler solution, involving less lines, not editing 2 files, or not changing permissions, but this simple steps have worked nicely for me.

      Somebody could test if there’s a simpler way, and make a TRWP script to automatize ir?

        1. Hi again.

          After extensive tests on the latest MIUI 11 weekly xiaomi.eu ROM, i have determined that only 1 step is mandatory.

          So:
          – No need to edit 2 files
          – No need to change file permissions
          – No need to add 8 lines

          For my whyred, and acting as root, this instruction is enough:
          – Edit /system/build.prop and add this line to the end:

          persist.vendor.camera.HAL3.enabled=1

          Reboot and check.

          I’ll add the 8 lines anyway, just to avoid further investigations/problema.

          1. Of course, you can use these tips on your article, and everywhere you want.

            My goal was enabling level 3 on my own whyred, but if my little investigation can help any other person/people, i’ll be glad to have helped a bit.

            And if there’s a way to create a new HAL3 enabler TWRP script compatible with (un)official TWRP, i’ll be happy to use it everytime i flash a weekly ROM, instead of having to edit build.prop and copy those lines by hand.

            Regards 😉

  20. I have tried all above methods, nothing works, i have tried both orange…. and redwolf… non worked, i have pulled my build.prop using adb and noticed that my persist.vendor.camera.Ha…. =1 (enabled already ) yet the gcam probe test fails, i have added the suggested line of codes above and pushed back to my device via adb also, yet probe also fails.. i don’t know what is the issue

    ps i use whyred note 5 pro, running on miui 10.3.2 pie

    if anyone has recently successfully ported gcam on his/her redmi, pls indicate

    1. And have you tried to add those 8 lines:
      persist.camera.HAL3.enabled=1
      persist.camera.eis.enable=1
      persist.camera.is_mode=4
      persist.camera.stats.test=5
      persist.vendor.camera.HAL3.enabled=1
      persist.vendor.camera.eis.enable=1
      persist.vendor.camera.is_mode=4
      persist.vendor.camera.stats.test=5

      Do you have a rooted whyred? Make it with a file editor and just reboot.

      1. yes..i added them to system/build.prop, may be i had try adding them to vendor/build.prop.. hopefully my device won’t crash.. ps, my phone is not rooted

      2. and if i wanna root my device to give it a try, hope it won’t crash my device because of the recent miui 10.3.20 update, and moreover, miui 11 update will soon be rolled out to my device

    2. For me it’s the same, with one intriguing difference. I tried everything, no success, but one day, 3 weeks ago, I launched the manual camera test app and it showed green all parameters. I installed Gcam, it worked, the 2api settings in opencam and in procamx was enabled, I managed to use manual shutter speed and other manual settings. But suddenly it all stopped working last week, the manual camera test are all red. I just don’t know why, there where no major system updates since then, just a few system apps that have been automatically updated. I have pulled my build.prop from system and vendor folders, edit and add the proper lines, push them back but nothings seems to work.

  21. I did everything, it looked everything was fine but after all API 2 looks not enabled…the only difference is that after “force encryption is not enabled” there was something else (I do not remember how it was called) that was not enabled. But all the processes written in green were done successfully…someone may help?

  22. hey I have tried to follow your method but I can’t flash/boot dummy.img and the recovery. please help. It says write command failed(too many links)

  23. Yup, everything works as described!
    After the latest update I had to apply this trick again… in my case I used RedWolf recovery, unofficial version. I tried oficial one from the link but it asked a password in order to mount data partition!?
    So, I start it again but this time I boot it with RedWolf unofficial as I mentioned above and VOILA, cam2api WORKS AGAIN!
    Thank you!

    1. hello, please do you mind pulling your build.prop file and uploading somewhere so i can check and compare with mine? please, i would be really grateful and appreciate it.. just in case, use the command “adb pull /system/build.prop c:\(name of a folder on pc)” without quotes.. thanks

    2. hello, please do you mind pulling your build.prop file and uploading somewhere so i can check and compare with mine? please, i would be really grateful and appreciate it.. just in case, use the command “adb pull /system/build.prop c:\(name of a folder on pc)” without quotes.. thanks

      1. hello, please can i chat you upbon telegram or whatsapp is possible? i need assistance, mine isnt working, though the zip files are flashed successfully, and my dm-variety is not enabled, so i don’t understand why it doesn’t enable cam2api

  24. C:\adb>fastboot boot recovery.img
    downloading ‘boot.img’…
    OKAY [ 0.930s]
    booting…
    FAILED (remote: Failed to load/authenticate boot image: 00000050)
    finished. total time: 1.014s

  25. Step 20. Next, do the “Swipe to confirm flash” action. This will install the zip file to your phone.

    E:Unhandled flag: ‘ose’
    E:Unhandled flag: ‘dumwolfresize’
    E:Unhandled flag: ‘dumwolfresize’
    E:Unhandled flag: ‘ose’
    E:Unhandled flag: ‘ose’
    E:Unhandled flag: ‘ose’
    E:Unhandled flag: ‘ose’
    .
    .
    .
    Starting ‘Dumwolf’ process
    DM-Verity is not enabked
    Forced Encryption is not enabled’
    Finished ‘Dumwolf’ process

  26. Is it working on MIUI 11…? I have tried your methods and its work on miui 10. Please give us a method for MIUI 11. Thank you

      1. Hey Fariez!
        I did this tutorial on MIUI 11 and it worked as flawless as can get…
        So, to everyone interested, just follow this tutorial by letter and you’ll have no surprises! Cam2Api will be enabled on your phone also!
        Just be confident and give it a go, it just works!

  27. Hi , Tnx For Your Topic But Links Not Work For Me
    Could you Plz Uplaod Files On Another Mirror? it’s opens first miui blog page
    i’ve tried too many recoverys and non of’em work i need the recovery img that u’ve mentioned.

  28. I have done everything but i stuck on ‘fastboot flash antirbpass dummy.img’ line
    powershell doesnt take anymore adb comand after this line..

      1. I am also facing the same issue. My MIUI version is global 11.0.3 with Android pie. When I use the command “fastboot flash antirbpass dummy.img” the device shows the dialogue on top “press any key to shutdown” in fastboot screen. The cmd/powershell also shows no response after I enterthe command.

  29. I complete your guide when my phone is running miui 10. Yesterday it received miui 11 update and I wanted to try again with your guide but redwolf twrp asking me password. I tried default, pattern code etc. I deleted all lock screen codes including face and fingerprint. Nothing changed.

  30. Nicolas Alberto Duran Costa

    I see in the example image that dm verity is green, but in mi log says “dm verity is not enable”.
    could that be the reason why i can’t use gcam? how can i solve this??

  31. Great It worked…before MIUI 11 I had unloaded the boot loader and Camera 2 API but suddenly after the update camera 2 api had stopped working..but your method worked great..and was easy to implement too..My version is Build version is the latest to the date(MIUI Global 11.0.3)

  32. PS C:\Users\ASUS\Desktop\platform-tools> fastboot devices
    92aac96 fastboot
    PS C:\Users\ASUS\Desktop\platform-tools> fastboot flash antirbpass dummy.img

    waiting for device for long time . 30 min

  33. hallo, waktu masuk Redwolf recovery (pakai yang unofficial), malah diminta password, Data Partition is encrypted.

    saya coba back, install HAL3 enablednya, tetap gak bisa juga. apakah pengaruh data partition encrypted tersebut?

  34. i have root, orangefox recovery and miui 11.0.3, but i can’t change the build.prop value, as they will revert back to default after reboot. i have tried by changing them manually by build.prop editor, or using recovery to flash the zip, but no success

      1. I repeated all the steps (with Red Wolf TWRP) but cam2api remains disabled.
        It’s weird because there were none miui update since November, I think. I didn’t change anything. Simply one day was working and the next day was not.

      2. I tried again and in the step 13 “fastboot flash antirbpass dummy.img” simply doesn’t complete this step. I changed usb cables and ports.

        Do you have any idea what it is?

        1. UPDATE: Believe it or not: today I wiped the data of the phone -> reboot system -> restore mi cloud backup. Made the came2api test and it’s enabled. Don’t ask me why, I have no idea wtf happened. 😀

  35. Every time I tried then below message 🙁 . Any solutions

    FAILED (Write to device failed (Unknown error))
    FAILED (command write failed (No error))

      1. Hi, It’s showing my phone is encrypted. So is there any methods available so that I can remove that encryption. I can’t even reboot my phone into recovery mode. May be next months we will get miui 12 , so is there any chance that we will get auto camera API 2 enable functions?

        Thank You mate for your help.

  36. Hi, It’s showing my phone is encrypted. So is there any methods available so that I can remove that encryption. I can’t even reboot my phone into recovery mode. May be next months we will get miui 12 , so is there any chance that we will get auto camera API 2 enable functions?

    Thank You mate for your help.

  37. I tried but this too is not working.
    upto fastboot devices command its fine when i tried to flash the dummy.img suddenly disconnects
    this is the issue with my devices whenever i tried to flash anything the fastboot suddenly disconnects. is there a solution for this. tried drifferent cables and usb. still the same.

    1. same issue here. I’ve had the gcam up and running, last OTA update made me think, I’d just reapply everything mentioned in my notes. But uhuh, no way. I’d probably need to flash the bootloader permanently, which might break some applications on my phone for banking and such.

      Got the exact same bug, phone disconnects when trying to flash a dummy OR boot into the recovery directly.

Leave a Reply

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