With the bootloader unlocked and ADB and drivers installed, do the following:
Download the updated TWRP for your device and put it in the folder: "C:\Program Files (x86)\Minimal ADB and Fastboot:" and rename to twrp.img
Put the phone in Fastboot mode: (Power Button + Volume Minus)
Open "Minimal ADB and Fastboot" and type: fastboot boot twrp.img: If the drivers are all right, the phone will reboot into TWRP. This command only opens TWRP on the phone at this time, it does NOT install TWRP, allowing
as soon as we can make the necessary changes and still continue with the original Recovery, thus keeping the updates.
If you are using a password on MIUI, TWRP will also prompt you: enter your password, enter. In the next screen you will be asked if you want to allow TWRP to make system changes, press Keep system read only
Now that you are in TWRP, go back to the PC at the "Minimal ADB and Fastboot" screen and type "adb shell" – without the quotes
Now type the following command: marksetprop persist.camera.HAL3.enabled 1, and hit enter. – This command enables the main API required for Gcam
Now type the following command: setprop persist.camera.eis.enable 1, and hit enter. – This command enables digital stabilization within Gcam (optional command)
Now type "exit" to leave adb
Go back to mobile, in TWRP > Reboot > System > Do Not Install
The phone will restart and API2 should already be enabled
Install the app GB Clube to verify that the API has been enabled
In app should appear LEVEL_3 ou FULL
Now it's just search and install Gcam on your model and enjoy