NOTES
1. If you are on a custom ROM, chances are that camera2 api is already enabled. Use Manual Camera Compatibility to verify.
My device said it is compatible with Manual camera. But I didn't enable camera2 API.
MIUI 9 China Stable
Xiaomi Mi5s
NOTES
1. If you are on a custom ROM, chances are that camera2 api is already enabled. Use Manual Camera Compatibility to verify.
My device said it is compatible with Manual camera. But I didn't enable camera2 API.
MIUI 9 China Stable
Xiaomi Mi5s
This method can in general be used to edit build.prop for adding new feature like Gesture on mido. Very helpful.
Thankyou so much.
That would be awesome. (+_+)You're welcome! You are correct, in fact I was thinking about compliling all the build.prop tweaks I do in a list here. Maybe tomorrow.
Is there any way way to do this without PC on rooted device? Some flashable zip ore something?
DISCLAIMER
I am not responsible for anything that happens to your device on following these steps. These are untested steps that worked for me and might work for you.
PREREQUISITES
1. PC with adb
2. Unlocked Bootloader
3. TWRP
4. MIUI 9 [Might work with other ROMs, not tested]
5. Lazyflasher zip
NOTES
1. If you are on a custom ROM, chances are that camera2 api is already enabled. Use Manual Camera Compatibility to verify.
2.If you are on MIUI, updating using ota might reset build.prop file. This might help, not tested.Update: I successfully updated to MIUI 9 Global 7.10.19 | Beta, see below for steps,
3. I am using Google Camera v4.4.020.163412804 on MIUI 9 Global 7.9.7 | Beta, and it is a HUGE improvement over the stock camera.
STEPS
1. Boot into TWRP. (Guide if you don't have TWRP)
2. Mount System.
3. Take NANDroid backup. (Optional but HIGHLY RECOMMENDED)
4. Connect to PC and execute the following command in terminal:
5. This copies build.prop to the current directory. (C:\Users[USERNAME] by default on windows)
6. Copy it to another directory for backup.
7. Open in editor and add the following line at end:
8. Save and exit.
9. Execute following commands:
10. Copy lazyflasher to internal storage.
11. Flash using TWRP.
12. Reboot to system.
13. Use Manual Camera Compatibility Checker to verify.
14. PROFIT!
15. Install the latest Google Camera HDR+ Port. (Optional but HIGHLY RECOMMENDED ;P)
UPDATING MIUI
1. Download the official recovery zip from here.
2. Download latest TWRP from here
2. Reboot into TWRP.
3. Take NANDroid. (Optional, just in case . . .)
4. Transfer ROM zip, TWRP img and Lazyflasher zip to internal storage.
5. Flash ROM zip. (Took about 10 minutes)
6. Flash TWRP img. (Go to flash -> select flash image -> select twrp-[v].img)
7. Flash Lazyflasher zip.
8. Follow steps 4 through 9 of above instructions. (Yes, build.prop also gets replaced on update)
9. Reboot to system.
10. Wait patiently.
11. VOILA !!
LINKS
1. Manual Camera Compatibility Checker
2. Lazyflasher Zip
3. Google Camera HDR+ Port
4. Latest MIUI Recovery Image
5. Official TWRP for mido
6. Sources: (1) (2) (3)
Hope this helps. Try and comment if this works for you in other ROMs. Also let me know if anything is unclear.
No you can't install OTA updates because you have TWRP custom recovery. You have to download the full ROM and then flash it using TWRP.Hey thanks this worked. I just booted twrp without installing and added the code to build.prop and then flashed lazy flasher. But now can i update OTA update if i m not rooted but flashed lazy flasher.
No you can't install OTA updates because you have TWRP custom recovery. You have to download the full ROM and then flash it using TWRP.
If you want to install OTA updates normally then you have to flash Redwolf custom recovery and enable MIUI OTA updates in it.
Oh sorry. My mistake. I apologise.Brother i did not installed twrp. I just booted it using "fastboot boot twrp.img"
@vikas_purohit
OTA updates will not get installed because /system partition has been modified.
You can edit the build.prop file to revert it back to the original state or just replace the edited file with the original. After that you will be able to recieve OTA updates and install them without any issue.No problem bro. please tell me how can i install ota if I have original copy of build.prop and flashed lazy flasher.
You can edit the build.prop file to revert it back to the original state or just replace the edited file with the original. After that you will be able to recieve OTA updates and install them without any issue.
Or as I said, you can install Redwolf custom recovery.
There may exist some custom ROM with inbuilt camera2api enabled. You could install that.Is there any way to get camera api v2 working with a locked BL and no root?
[SIZE="3"]adb pull /system/build.prop[/SIZE]
[SIZE="3"]persist.camera.HAL3.enabled=1[/SIZE]
[SIZE="3"]adb push build.prop /system/
adb shell
cd system
chmod 644 build.prop
[/SIZE]
[SIZE="3"]
qemu.hw.mainkeys=0
[/SIZE]
[SIZE="3"]
persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
ro.qc.sdk.audio.fluencetype=fluencepro
[/SIZE]
[SIZE="3"]
persist.audio.fluence.voicerec=false
[/SIZE]
[SIZE="3"]
mm.enable.qcom_parser=245389
[/SIZE]
Hello my device is rooted and I have Twrp medo recovery installed on my Redmi note 4 so can you pls guide me how to enable camera 2 API on my device?
My device said it is compatible with Manual camera. But I didn't enable camera2 API.
MIUI 9 China Stable
Xiaomi Mi5s