[MOD] Enable Camera2Api in Mi4C

RagilWic

Member
Oct 8, 2012
16
0
0
Install again the twrp-camera2api.flip.fix.mi4c.v2.zip
Very thank u! Absolutely I didn't understand the message by the ops to reinstalled to deactivated ?

If anyone is interested, this mod worked for me on LineageOS 14.1. Had to restart a couple of times and for some reason disable and re-enable persist.camera.HAL3 in BuildProp but it works flawlessly now.
Can you explain it how to do that? Because I tried and flashed the zip in my CRdroid latest version on base AOSP LAOS14.1 absolutely, it says doesn't active in my camera 2api checker. Can you give me how the tutor in base AOSP LAOS14.1? Thanks in advance.
 

predatoralan

Member
Jul 15, 2017
10
0
0
Very thank u! Absolutely I didn't understand the message by the ops to reinstalled to deactivated



Can you explain it how to do that? Because I tried and flashed the zip in my CRdroid latest version on base AOSP LAOS14.1 absolutely, it says doesn't active in my camera 2api checker. Can you give me how the tutor in base AOSP LAOS14.1? Thanks in advance.
Well, after I flashed the mod using TWRP, camera2 api wasn't active and Gcam wasn't working but the image was flipped in my default camera app. So the flip fix worked but it didn't activate camera2 api, so I went into build prop to check if persist.camera.HAL3.enabled=1 (this is how I used to activate camera2 api before) and I was surprised to find two HAL3 code lines, one of them was the one mentioned earlier and the other was new (probably had to do with the mod) persist.camera.HAL3.enabled=0# Enabled Camera2 API
After I found these 2 lines I basically started trying different combinations to see if I manage to activate camera2 API, the one that did it was deleting the line added by the mod (persist.camera.HAL3.enabled=0# Enabled Camera2 API) and leaving the old one active (persist.camera.HAL3.enabled=1) I restarted and it all works now.
I have to mention that there was no exact science behind this...I just tried and maybe risked bricking my device, they say it only works on MIUI 10 so I don't recommend doing what I did.
 

Attachments

savvas_p25

Member
Dec 27, 2014
46
11
0
kavala
Well, after I flashed the mod using TWRP, camera2 api wasn't active and Gcam wasn't working but the image was flipped in my default camera app. So the flip fix worked but it didn't activate camera2 api, so I went into build prop to check if persist.camera.HAL3.enabled=1 (this is how I used to activate camera2 api before) and I was surprised to find two HAL3 code lines, one of them was the one mentioned earlier and the other was new (probably had to do with the mod) persist.camera.HAL3.enabled=0# Enabled Camera2 API
After I found these 2 lines I basically started trying different combinations to see if I manage to activate camera2 API, the one that did it was deleting the line added by the mod (persist.camera.HAL3.enabled=0# Enabled Camera2 API) and leaving the old one active (persist.camera.HAL3.enabled=1) I restarted and it all works now.
I have to mention that there was no exact science behind this...I just tried and maybe risked bricking my device, they say it only works on MIUI 10 so I don't recommend doing what I did.
This mod tested by me in crdroid, lineage os 14.1,xiaomi.eu,ms miui without problems.
 

RagilWic

Member
Oct 8, 2012
16
0
0
Well, after I flashed the mod using TWRP, camera2 api wasn't active and Gcam wasn't working but the image was flipped in my default camera app. So the flip fix worked but it didn't activate camera2 api, so I went into build prop to check if persist.camera.HAL3.enabled=1 (this is how I used to activate camera2 api before) and I was surprised to find two HAL3 code lines, one of them was the one mentioned earlier and the other was new (probably had to do with the mod) persist.camera.HAL3.enabled=0# Enabled Camera2 API
After I found these 2 lines I basically started trying different combinations to see if I manage to activate camera2 API, the one that did it was deleting the line added by the mod (persist.camera.HAL3.enabled=0# Enabled Camera2 API) and leaving the old one active (persist.camera.HAL3.enabled=1) I restarted and it all works now.
I have to mention that there was no exact science behind this...I just tried and maybe risked bricking my device, they say it only works on MIUI 10 so I don't recommend doing what I did.
Wow, that's clear! Okay, previously I did to flash the twrp to activate the camera 2 api in my CRdroid, then after the reboot my cam it's just only appearing the black screen. Well, I'll use ur advice. Thank u.

Edit:
Hahaa damn it. I miss understanding by this code AOSP ? I though the code android oreo for AOSP is 14.1 and then u giving the screenshot your detail about system then I realised that is Nougat ??. My CRdroid is base on oreo. Haha sorry sorry for this.
 
Last edited:

RagilWic

Member
Oct 8, 2012
16
0
0
Okay, Here's my though. Who's know the Russian language? We can try to communicate with the author, and try to developing this, maybe there's a chance to working flawlessly in gcammod. And maybe we should take donation for the author. Any chance?
 

savvas_p25

Member
Dec 27, 2014
46
11
0
kavala
Okay, Here's my though. Who's know the Russian language? We can try to communicate with the author, and try to developing this, maybe there's a chance to working flawlessly in gcammod. And maybe we should take donation for the author. Any chance?
The only thing we can do for now is to communicate with someone who can mod a gcam (bsg, arnova, tolyan) and I hope to help us...what do you think?
 

RagilWic

Member
Oct 8, 2012
16
0
0
Keep force close. And after I reboot is the same. I didn't know how to get the log for crashing.

Edit:
Before I install that, I've been using the gcam mod Urikill XXII. The rear camera portrait works. But normal mode give black screen, and trying portrait front cam giving me a result, but the image is like not proccessing. With greenish colour and distort the object. And for the video record worked too, with 60fps in the rear cam, and when I try to record in front cam the cam is force close. I think, this gcam is almost worked for libra.
 
Last edited:

savvas_p25

Member
Dec 27, 2014
46
11
0
kavala
Keep force close. And after I reboot is the same. I didn't know how to get the log for crashing.

Edit:
Before I install that, I've been using the gcam mod Urikill XXII. The rear camera portrait works. But normal mode give black screen, and trying portrait front cam giving me a result, but the image is like not proccessing. With greenish colour and distort the object. And for the video record worked too, with 60fps in the rear cam, and when I try to record in front cam the cam is force close. I think, this gcam is almost worked for libra.
Unistall both apps, reboot phone and install the cstark27 apk (HDR working fine)then install urikill clone I made (portrait mode) https://drive.google.com/file/d/1tamBIClioylFR8eXt7cTieNvWF7Gg8Pl/view
Let me know if works...
 
  • Like
Reactions: husaynsyifa

RagilWic

Member
Oct 8, 2012
16
0
0
Keep force close. And after I reboot is the same. I didn't know how to get the log for crashing.

Edit:
Before I install that, I've been using the gcam mod Urikill XXII. The rear camera portrait works. But normal mode give black screen, and trying portrait front cam giving me a result, but the image is like not proccessing. With greenish colour and distort the object. And for the video record worked too, with 60fps in the rear cam, and when I try to record in front cam the cam is force close. I think, this gcam is almost worked for libra.
Unistall both apps, reboot phone and install the cstark27 apk (HDR working fine)then install urikill clone I made (portrait mode) https://drive.google.com/file/d/1tamBIClioylFR8eXt7cTieNvWF7Gg8Pl/view
Let me know if works...
It works! So, my assume is we just using normal cam such hdr from cstark27 and for portrait photo with urikill. It 's tricky but pretty nice!! Atleast we have normal photo with hdr+ ? Maybe for frontcam portrait we're just to wait for someone to get into it.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone