FORUMS
Remove All Ads from XDA

[GUIDE] Enable Camera2API in miui 11 without custom kernel

7 posts
Thanks Meter: 2
 
By TBlackScare, Junior Member on 1st November 2019, 03:19 PM
Post Reply Email Thread
after a have tried many times to get it work and every time i get a new issue i discovered how to get Camera2API wokr on miui 11
First :
1- you need i custom Recovery like twrp or orangefox
2- adb & fastboot tools
then after booting into recovery connect your whyred device to pc and open a shell and type adb root and hit enter then adb shell
finally do this commands
Code:
setprop vendor.camera.aux.packagelist com.bsgmod.camera,com.google.android.GoogleCameraWide,com.android.camera
setprop vendor.camera.aux.packagelist2 com.android.systemui
setprop camera.hal1.packagelist com.skype.raider,com.google.android.talk,com.whatsapp
setprop persist.camera.eis.enable 1
setprop persist.vendor.camera.eis.enable 1
setprop persist.camera.HAL3.enabled 1
setprop persist.vendor.camera.HAL3.enabled 1
setprop persist.vendor.camera.is_type 5
setprop persist.camera.is_type 5
setprop persist.vendor.camera.is_mode 5
setprop persist.camera.is_mode 5
setprop persist.camera.max.previewfps 60
setprop persist.vendor.camera.max.previewfps 60
setprop persist.camera.tnr_cds 1
setprop persist.vendor.camera.tnr_cds 1
setprop persist.camera.tnr.video 1
setprop persist.vendor.camera.tnr.video 1
setprop persist.camera.tnr.preview 1
setprop persist.vendor.camera.tnr.preview 1
setprop persist.camera.tnr.snapshot 1
setprop persist.vendor.camera.tnr.snapshot
setprop persist.camera.llnoise 1
setprop persist.vendor.camera.llnoise 1
setprop persist.tnr.process.plates 2
setprop persist.vendor.tnr.process.plates 2
setprop persist.denoise.process.plates 2
setprop persist.vendor.denoise.process.plates 2
setprop camera.lowpower.record.enable 1
setprop vidc.enc.dcvs.extra-buff-count 2
reboot your device and install google camera, now it works
The Following User Says Thank You to TBlackScare For This Useful Post: [ View ] Gift TBlackScare Ad-Free
1st November 2019, 06:52 PM |#2  
Junior Member
Thanks Meter: 0
 
More
nice when I come to home will try it. thank you.
4th November 2019, 11:58 AM |#3  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Gulicius

nice when I come to home will try it. thank you.

unfortunately ,wont work for me,got problem enabling camera2api long time
4th November 2019, 02:47 PM |#4  
Junior Member
Thanks Meter: 3
 
More
Simple method Flash HAL3_ENABLE_MIUI.zip all gcam works fine
Attached Files
File Type: zip HAL3_ENABLE_MIUI_PIE.zip - [Click for QR Code] (180.5 KB, 1928 views)
The Following User Says Thank You to arunvij For This Useful Post: [ View ] Gift arunvij Ad-Free
4th November 2019, 02:50 PM |#5  
Junior Member
Thanks Meter: 3
 
More
Screenshots ....
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-11-04-19-19-33-573_com.android.settings.jpg
Views:	1538
Size:	196.2 KB
ID:	4866083   Click image for larger version

Name:	Screenshot_2019-11-04-19-18-59-489_com.google.android.GoogleCamera.jpg
Views:	1532
Size:	161.9 KB
ID:	4866085  
The Following User Says Thank You to arunvij For This Useful Post: [ View ] Gift arunvij Ad-Free
4th November 2019, 04:27 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by arunvij

Simple method Flash HAL3_ENABLE_MIUI.zip all gcam works fine

I believe this working too,but like i said nothing works for me at past.

But will try it
6th November 2019, 11:34 AM |#7  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by arunvij

Simple method Flash HAL3_ENABLE_MIUI.zip all gcam works fine

Flashed via newest RWolf recovery ,xamera probe says Legacy , GCams many vesrions tried crashes
6th November 2019, 12:32 PM |#8  
Junior Member
Thanks Meter: 3
 
More
PMGC_7.0.009_Full_Version_v8.apk using this version always perfect
9th November 2019, 06:21 PM |#9  
Quote:
Originally Posted by arunvij

PMGC_7.0.009_Full_Version_v8.apk using this version always perfect

@TBlackScare thanks for sharing. But I think these settings are coming from Oreo & Pie both and so has a lot of unwanted changes.

With MIUI Pie, the camera has moved to vendor partition. So

setprop persist.camera.HAL3.enabled 1 <<----- is not required
setprop persist.vendor.camera.HAL3.enabled 1 <<----- does the work

Also if someone wants to just use Gcam then just below is enough

setprop persist.vendor.camera.HAL3.enabled = 1

Rest all build.prop modifications are for improving MIUI cam.
The Following User Says Thank You to mGforCe For This Useful Post: [ View ] Gift mGforCe Ad-Free
11th November 2019, 07:52 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by mGforCe

@TBlackScare thanks for sharing. But I think these settings are coming from Oreo & Pie both and so has a lot of unwanted changes.

With MIUI Pie, the camera has moved to vendor partition. So

setprop persist.camera.HAL3.enabled 1 <<----- is not required
setprop persist.vendor.camera.HAL3.enabled 1 <<----- does the work

Also if someone wants to just use Gcam then just below is enough

setprop persist.vendor.camera.HAL3.enabled = 1

Rest all build.prop modifications are for improving MIUI cam.

I cant seem to be connecting my device when I on recovery mode, its alwas says "null/no device". any suggestions?
20th November 2019, 06:49 PM |#11  
Junior Member
Thanks Meter: 0
 
More
not working on MIUI 11 with stock rom
Hi everybody,
while it worked with STOCK MIUI 10, it is not working with STOCK MIUI 11 on my Xiaomi Redmi note 5 (whyred). And i can't downgrade to MIUI 10.
Any suggestions ?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes