In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Flashing Guide

[Guide] Enable Camera2 API Without Root or Custom Recovery

2018-11-24 08:46:24
35846 101

Hello, MIUIer's!
How is everything? Hope everything will be fine.
Today I want to show you how to enable camera2 API without root or custom recovery.

Notes:
Do anything at your own risk. Don't type any wrong command. Don't follow this thread for Redmi Note 5 Ai/Pro (Pie) but you can follow this thread for pie.

Requirements:
• Unlocked Bootloader of your device.
• TWRP Recovery img file on your device.
• Install ADB Driver.
• Fastboot Tool.
• Manual Camera Compatibility.

Don't waste any more time, now let's start...

• First, unlock your device bootloader. If you don't know how to unlock your device bootloader then read this thread: All About Bootloader and How To Unlock Your Xiaomi Device Bootloader


• Download TWRP Custom Recovery for your device from here: Download Now
(rename your recovery any name to recovery. Don't change the file extension)



• Download FastbootTool and extract this. Download from here: FastbootTool.zip (631.77 KB, Downloads: 881)


• Now copy or cut recovery image and past on extracted fastboot tool folder.


• Download "Manual Camera Compatibility" app from play store and check your device camera2 api enabled or not. I hope don't need to check the root.


• Enable the developer option. For this go to Settings - About phone - MIUI Version (tap 7 times).



• Connect your device with USB Cable on your desktop/laptop and select "Transfer files" from the notification panel. Then go to Settings - Additional setting - Developer option - USB debugging (enable this).



• Now hold press shift button and right click on the extracted FastbootTool folder and select "Open command/PowerShell window here."


• Type "adb devices" on the command window and press enter. Now you can see a permission request on your mobile screen. Select "Ok".



• Again type "adb reboot bootloader" press enter your device boot into the fastboot mode.


• Now type a command "fastboot boot recovery.img" then press enter and wait some seconds.


• You can see, your device boot into the fastboot mode. Now swipe the pointer and don't do anything.


• Go to the command window and type "adb devices" and press enter. if there have any problem then install adb driver. You can check drivers from device manager. Download: adbdriver.zip (9.22 MB, Downloads: 552)




• Type "adb shell" and press enter.


• Now type a command "setprop persist.camera.HAL3.enabled 1" and press enter.


• Type "exit" and press enter.


• Type the last command "adb reboot" and press enter. Now your device booted up.


• Go to "Manual Camera Compatibility" app and check camera2 api enabled or not.


Congratulations! you successfully enabled camera2 api on your device!!!

• If you want to disable camera2 api. Then type "setprop persist.camera.HAL3.enabled 0". Follow all straps only change this command value 1 to 0.
• After enabled camera2 api on this way, you can get ota normally.
• If after update camera2 api can be disabled (not sure) then enable it again.
• After enabled camera2 api, I installed Gcam 6.1! everything working nicely.


If you have any question, please comment. Don't forget to share with your friend. Take care bye bye.

Rate

Number of participants 3 Experience +40 Pack Reason

View Rating Log

2018-11-24 08:46:24
Favorites42 RateRate
Bro minimum custom recovery needed. so heading may need to correct if i am not wrong. thanks
2018-11-24 09:41:07

Moderator

Mainul Hasan Rohan Author | from Redmi Note 5

#2

parthopathik
Bro minimum custom recovery needed. so heading may need to correct if i am not wrong. thanks

this custom recovery isn't permanent
2018-11-24 10:17:19
Moderator, Mi Community Bangladesh

I ❤️ Mi

Moderator

MH Imran | from Redmi Note 4

#3

Just awesome thread.
2018-11-24 10:31:21

Moderator

Mainul Hasan Rohan Author | from Redmi Note 5

#4

MH Imran
Just awesome thread.

thanks brother
2018-11-24 10:35:23
Moderator, Mi Community Bangladesh

I ❤️ Mi

Moderator

MH Imran | from Redmi Note 4

#5

Mainul Hasan Rohan
thanks brother

Welcome brother
2018-11-24 10:45:44

Master Bunny

M. Ahsan Ullah | from mobile

#6

thanks mainul
2018-11-24 10:59:27

Master Bunny

NJ shanto | from Redmi S2

#7

Thanks for sharing
2018-11-24 11:06:49

Techie Team

Mahmud Af Nahin | from Redmi Note 5

#8

thanks for sharing
2018-11-24 11:29:19

Device team

$huvo | from app

#9

Thanks for the tutorial
2018-11-24 13:04:08

Master Bunny

Sumitchy806 | from Mi A2

#10

Thanks for the tutorial
2018-11-24 13:10:45
please sign in to reply.
Sign In Sign Up
Aktywny 3 dni pod rząd
Aktywny 7 dni pod rząd
Aktywny 21 dni pod rząd
Aktywny 40 dni pod rząd
Aktywny 70 dni pod rząd
Aktywny 100 dni pod rząd
Newbie Member
Mi A2
Eid Mubarak
Master of Speed
MIUI Beta Tester
MIUI 10
10K Members Celebration
10M Downloads
20k
10000 użytkowników na Społeczności Mi!
Mi Explorers Challenger
Święta z Mi!
2019
Throw Back with Mi 2018
Xiaomi Number One In Ukraine
20K Registered Users
Mi Community App Review
9th Birthday of Xiaomi
Redmi Note 7
বাংলা নববর্ষ
Suited and Booted
New Home
10k Mi Fans
Cast Away
20K Mi Fans
20k użytkowników!
30K Members
Redmi Note 7 Into Space
Mi Love U & I
Redmi Note 7 Unboxing
Limited Edition Space Medal
Bunny Winner
70K Fans
Challenge Photographer
Challenge Photographer
Android Q
PhotoChallenge
2 años
Tebak Nama Android Q
Android Q
Phoenix
Mother's Day
Guess The Name
Mothers day
MIUI
Xiaomi Band
X-Men
Día de las Madres
ShotByMi
Mi Band Series
Redmi Note 7 Space
Mi Band Series
هاتف  Redmi Note 7 في الفضاء
تحدي جديد للتصوير الفوتوغرافي
توقع اسم Android Q
Best Mi
Happy Mother's Day
Android Q
50K Mi Fans
Złoty Mi Band
Mi band 3
25K
Świętujemy dzień X-Men!
Mi Band History
قصتك مع السوار الذكي Mi Band
Mi Band Story
X-Men Character
Medalla X-Men: Cíclope
Medalla X-Men: Magneto
70K Mi Fans
Challenger
40K Registered Users
Eid Mubarak
Redmi Questionnaire
Ngày của Mẹ
Xmen dark phoenix
MiBand Story
Android Q
70k celebrate
X-Men: Tormenta
X-Men: Profesor Xavier
أمنياتكم في عيد الفطر
أجمل لحظات عيد الفطر
Którym bohaterem jesteś?
 اختبار شخصيات X-MEN Dark Phoenix
Зустрічайте Mi 9T!
X-Men UGC
h5medal
Perfil Personalizado
80K Mi Fans
Tech Talent
X-Men
ShotByMi
100K Mi Fans
Selfie Day
50K Users
Medalla Mi Community

Read moreGet new
Copyright©2016-2019 Xiaomi.com, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list