FORUMS
Remove All Ads from XDA

[HOW TO] Enable Camera2API and install GCam

38 posts
Thanks Meter: 17
 
By santiagog242, Member on 8th April 2019, 04:49 AM
Post Reply Email Thread
Hello everyone

UPDATE!!!

Now you can skip all the tutorial, and just install the magisk module:
"GCam enable for XiaomiMi8Lite", then you install the GCam.

Thanks to @ncandroid84

But if you want to do all the process manually:

I'm doing this post because no one knows how to do this and I have the solution so I want to share it with you.

First of all, I assume you are an advanced user and have rooted your device with the guides of xda forums, so don't ask about it, please.

Also I've seen that many people done magisk modules, scripts and blabla, but also many people said that those methods don't work, so this is the manual method.

So let's do this.

1. Install a build prop editor (search in play store) and add the following lines in "persist" part:


For Oreo:

persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
persist.vendor.camera.HAL3.enabled=1

For Pie:
Quote:
Originally Posted by Batpope

For Pie you need the following settings in order to enable Camera2API correctly:

persist.vendor.camera.HAL3.enabled=1
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1


Now save and restart your device. Check with the app "Camera2 probe". You should see at hardware support level "LEVEL_3" checked and with green text.

If you see this, now you have Camera2 API enabled.

But... Front camera doesn't work anymore, with any app, so you have to replace a file.

2. Install a file manager with root that let you modify file permissions and access your root folder.

You should download the next file:

Oreo:
https://drive.google.com/file/d/1w2Q...KgEb2mZ6u/view

Pie:
https://drive.google.com/file/d/1u7A...k0xkKYTm2/view

-Copy the file.

-Now, go to to /vendor/lib and paste it. Replace the existing file.

-Now set the following permissions in the new file you pasted:


Owner: Read and write.
Group: Read.
Other: Read.

Or rw- r-- r-- for advanced users

Save and restart.


Now you see that front camera works fine with many apps except stock camera. This is when you install the gcam.

I'm using now the Arnova's Advanced 1.4 version downloadable at Celso Acevedo's page. (Google it).

Also, 4k recording doesn't work but you can use stock camera for this.

That's all and I hope I've helped you.
The Following 4 Users Say Thank You to santiagog242 For This Useful Post: [ View ] Gift santiagog242 Ad-Free
 
 
11th April 2019, 05:18 PM |#2  
vagoybostero's Avatar
Senior Member
Thanks Meter: 40
 
More
Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red
12th April 2019, 04:51 AM |#3  
renan1217's Avatar
Junior Member
Thanks Meter: 0
 
More
I have downloaded the apk from this link: https://www.celsoazevedo.com/files/a.../changelog380/ and not work.
17th April 2019, 11:37 PM |#4  
Junior Member
Thanks Meter: 0
 
More
pls help
hi dear pls help

the front camera doesn't work.

camera2 open

please take a video.how do I do it?
18th April 2019, 08:01 AM |#5  
Junior Member
Flag Budapest
Thanks Meter: 11
 
More
Quote:
Originally Posted by ugurmutlu21

hi dear pls help

the front camera doesn't work.

camera2 open

please take a video.how do I do it?

Read this:
https://forum.xda-developers.com/sho...24&postcount=2

Import config:
https://www.celsoazevedo.com/files/a.../f/settings09/
18th April 2019, 08:55 AM |#6  
Junior Member
Thanks Meter: 0
 
More
I've uploaded the files.
he front camera doesn't work.
18th April 2019, 07:33 PM |#7  
Junior Member
Flag San Francisco, Córdoba
Thanks Meter: 2
 
More
For Pie you need the following settings in order to enable Camera2API correctly:

persist.vendor.camera.HAL3.enabled=1
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1

The front camera fix works like a charm, thanks!
The Following User Says Thank You to Batpope For This Useful Post: [ View ] Gift Batpope Ad-Free
18th April 2019, 08:04 PM |#8  
Junior Member
Thanks Meter: 0
 
More
front camera does not work
no work
20th April 2019, 08:19 PM |#9  
Junior Member
Flag San Francisco, Córdoba
Thanks Meter: 2
 
More
Quote:
Originally Posted by ugurmutlu21

no work

You need to download the libmmcamera_platina_imx576_sunny.so file posted above. Once you overwrite it, change the permissions and it should work.
Remember, after this fix the front camera won't work with the stock camera app, but it will work on all other apps, including gcam
20th April 2019, 08:21 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Batpope

You need to download the libmmcamera_platina_imx576_sunny.so file posted above. Once you overwrite it, change the permissions and it should work.
Remember, after this fix the front camera won't work with the stock camera app, but it will work on all other apps, including gcam

yeah, I did, but no, it's not working.
21st April 2019, 02:44 PM |#11  
OP Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by vagoybostero

Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red

Make sure you have edited the build.prop correctly.
The Following User Says Thank You to santiagog242 For This Useful Post: [ View ] Gift santiagog242 Ad-Free
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