Gcam for OnePlus 7t pro - OnePlus 7T Pro (Reg. & McLaren) Themes, Apps, Mods

hi all
you all can share here tested Gcam APKs
here is
1- Gcam 6.1.021 apk and its xml
https://drive.google.com/drive/folders/1J1ask0agd9WiIko9uZjnjFF0942Ds14v
light saturation 1.2 shadow saturation. 1.9 and enable HDR+ enhancer
2- Gcam 7.2.010 apk thanks to Urnyx05
https://mega.nz/#!g2ASCA6b!oyejlA4cpMeCYr5toI24h_gFMJwXRlAQQB8us3u53lA
waiting for yours
and for comments about these versions

zfshrief said:
hi all
you all can share here tested Gcam APKs
here is
1- Gcam 6.1.021 apk and its xml
https://drive.google.com/drive/folders/1J1ask0agd9WiIko9uZjnjFF0942Ds14v
light saturation 1.2 shadow saturation. 1.9 and enable HDR+ enhancer
2- Gcam 7.2.010 apk thanks to Urnyx05
https://mega.nz/#!g2ASCA6b!oyejlA4cpMeCYr5toI24h_gFMJwXRlAQQB8us3u53lA
waiting for yours
and for comments about these versions
Click to expand...
Click to collapse
I found that the urnyx version has very very under saturated colours on the back camera

Where do we place the XML?

iamraan said:
Where do we place the XML?
Click to expand...
Click to collapse
For GCam 6.x under /GCam/Configs
For GCam 7.x under /GCam/Configs7
---------- Post added at 08:04 PM ---------- Previous post was at 07:44 PM ----------
Best GCam port available for me is GCam_4.0.191103.1129build-7.0.009_zipaligned.apk from @Arnova8G2 with DayPoop.xml. Big thanks to him!
******** WARNING ********
DO NOT INSTALL THE AUX MODULE FOR MAGISK (aux_cam_magisk_test4.zip)
This will put your phone into bootloop
****************************
You can get this GCam from here.
No auxiliary cameras supported at the moment. Besides that: awesome! Update: auxiliary cameras work with systemizer magisk module. See posts below... Amazing! Love the ability to stabilize videos in the gallery part of GCam. It even keeps original date and gps tag on the stabilized copy. Picture quality is better than stock in my opinion. Hope that aux cameras will be supported soon. This and the ability to resample videos with lower resolution like with the stabilize function and I would have all I ever wanted from a perfect camera app.
If you accidentially installed the aux_cam_magisk_test4.zip and are in a bootloop you can follow the method here.

ktp1976 said:
For GCam 6.x under /GCam/Configs
For GCam 7.x under /GCam/Configs7
---------- Post added at 08:04 PM ---------- Previous post was at 07:44 PM ----------
Best GCam port available for me is GCam_4.0.191103.1129build-7.0.009_zipaligned.apk from @Arnova8G2 with DayPoop.xml. Big thanks to him!
You can get it from here.
No auxiliary cameras supported at the moment. Besides that: awesome! Love the ability to stabilize videos in the gallery part of GCam. It even keeps original date and gps tag on the stabilized copy. Picture quality is better than stock in my opinion. Hope that aux cameras will be supported soon. This and the ability to resample videos with lower resolution like with the stabilize function and I would have all I ever wanted from a perfect camera app
Click to expand...
Click to collapse
Aux is supported, but you need to root the phone.
Update:
Just softbricked my phone with that..

tibcsi0407 said:
Aux is supported, but you need to root the phone.
Update:
Just softbricked my phone with that..
Click to expand...
Click to collapse
I was also a little bit too curious today and softbricked my phone with that. I got it recovered with the method here from this thread:
https://forum.xda-developers.com/7t-pro/development/recovery-oxygen-os-stock-recovery-adb-t3991865 Additionally read my post: https://forum.xda-developers.com/showpost.php?p=80891715&postcount=20
I will update my previous post with a warning about the aux module!

ktp1976 said:
I was also a little bit too curious today and softbricked my phone with that. I got it recovered with the method here from this thread:
https://forum.xda-developers.com/7t-pro/development/recovery-oxygen-os-stock-recovery-adb-t3991865 Additionally read my post: https://forum.xda-developers.com/showpost.php?p=80891715&postcount=20
I will update my previous post with a warning about the aux module!
Click to expand...
Click to collapse
Just wiped the phone already...
Thanks for the trick. I will next time boot the original boot. Good idea!
Did you systemize the Gcam before you flashed the module?
According to the Gcam group:
1 - Install App Systemizer from Magisk and Reboot.
2 - Follow the Instructions and Systemize the GCam APK (make sure the package name org.codeaurora.snapcam is systemized, not any other) and Reboot
3 - Open terminal and type su -c setenforce 0 (or any other method to make it permissive,you may use a script to enable selinux permissive at boot itself)
4 - Open GCam Settings and enable Auxillary Cameras. Restart
Okay, but which one should be systemized?
I have the latest 7.2 by Urnyx05

tibcsi0407 said:
Just wiped the phone already...
Thanks for the trick. I will next time boot the original boot. Good idea!
Did you systemize the Gcam before you flashed the module?
According to the Gcam group:
1 - Install App Systemizer from Magisk and Reboot.
2 - Follow the Instructions and Systemize the GCam APK (make sure the package name org.codeaurora.snapcam is systemized, not any other) and Reboot
3 - Open terminal and type su -c setenforce 0 (or any other method to make it permissive,you may use a script to enable selinux permissive at boot itself)
4 - Open GCam Settings and enable Auxillary Cameras. Restart
Okay, but which one should be systemized?
I have the latest 7.2 by Urnyx05
Click to expand...
Click to collapse
Since I am now familiar with uninstalling Magisk modules in case of bootloop, I tried to install systemize and use it with GCam_4.0.191103.1129build-7.0.009_zipaligned.apk. From Magisk Manager I installed "App Systemizer v17.3.1" and rebooted. All fine. Then I connected with adb and started systemize
Code:
adb shell
su
systemize
this left me with the following choices
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Enforcing
==============================================
1 - Systemize Installed Apps (Listed)
2 - Systemize Installed Apps (Enter label)
3 - Systemize given APK
4 - Revert Systemized Apps
s - Set SELinux
d - Donate
0 - Exit
[CHOICE]:
I used "1 - Systemize Installed Apps (Listed)" by typing "1" and then "enter" and after that selected the number of the app called "Camera", since I do not have other user apps with that name. I systemized to priv-app. After that I went back to the adb shell (still su elevated) and typed
Code:
setenforce 0
After that I invoked systemize again to check and it told me
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Permissive
==============================================
I went back to the shell and typed "reboot". System booted without problems. I started GCam and went into "Settings => Developer Settings" and checked the boxes for "cam_config.enable_multilens.narrow_cam" and "cam_config.enable_multilens.wide_cam". Closed GCam and started it again. Now I can switch lenses with the small tree like symbol below the brightness slider. This is awesome. Never would have tried this without your comment @tibcsi0407 ! :good:

ktp1976 said:
Since I am now familiar with uninstalling Magisk modules in case of bootloop, I tried to install systemize and use it with GCam_4.0.191103.1129build-7.0.009_zipaligned.apk. From Magisk Manager I installed "App Systemizer v17.3.1" and rebooted. All fine. Then I connected with adb and started systemize
Code:
adb shell
su
systemize
this left me with the following choices
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Enforcing
==============================================
1 - Systemize Installed Apps (Listed)
2 - Systemize Installed Apps (Enter label)
3 - Systemize given APK
4 - Revert Systemized Apps
s - Set SELinux
d - Donate
0 - Exit
[CHOICE]:
I used "1 - Systemize Installed Apps (Listed)" by typing "1" and then "enter" and after that selected the number of the app called "Camera", since I do not have other user apps with that name.
After that I went back to the adb shell (still su elevated) and typed
Code:
setenforce 0
After that I invoked systemize again to check and it told me
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Permissive
==============================================
I went back to the shell and typed "reboot". System booted without problems. I started GCam and went into "Settings => Developer Settings" and checked the boxes for "cam_config.enable_multilens.narrow_cam" and "cam_config.enable_multilens.wide_cam". Closed GCam and started it again. Now I can switch lenses with the small tree like symbol below the brightness slider. This is awesome. Never would have tried this without your comment @tibcsi0407 ! :good:
Click to expand...
Click to collapse
Nice!
I will do that later too. I believe I will try to systemize the Urnyx version of Gcam.
What's your first impression about the aux lenses in Gcam? Better than the stock one?

tibcsi0407 said:
Nice!
I will do that later too. I believe I will try to systemize the Urnyx version of Gcam.
What's your first impression about the aux lenses in Gcam? Better than the stock one?
Click to expand...
Click to collapse
I have to try. Seems like macro doesn't perform that well. But just right now I am happy!

ktp1976 said:
I have to try. Seems like macro doesn't perform that well. But just right now I am happy!
Click to expand...
Click to collapse
Cannot make it work. It is just softbricks the phone for some reason.
Maybe the Gcam version I use is the problem.

tibcsi0407 said:
Cannot make it work. It is just softbricks the phone for some reason.
Maybe the Gcam version I use is the problem.
Click to expand...
Click to collapse
Did you use systemize to move GCam to /system/priv-app or /system/app? I used priv-app.
I am on Oxygen OS 10.0.3.HD01BA with Magisk 20.1 (20100) and Magisk Manager 7.4.0 (253). App Systemizer is version v17.3.1 and was installed from within Magisk Manager => Downloads.
Does it softbrick for you already when installing App Systemizer or when trying to systemize GCam? If it bricks when trying to systemize, it may be due to not using priv-app or due to the different GCam version used.
---------- Post added at 04:57 PM ---------- Previous post was at 04:16 PM ----------
tibcsi0407 said:
Nice!
I will do that later too. I believe I will try to systemize the Urnyx version of Gcam.
What's your first impression about the aux lenses in Gcam? Better than the stock one?
Click to expand...
Click to collapse
ktp1976 said:
I have to try. Seems like macro doesn't perform that well. But just right now I am happy!
Click to expand...
Click to collapse
With normal camera mode HDR+ is only working for normal lens. Without HDR+ all lenses work. Video works with all lenses, which it does not with stock cam (why OnePlus?). Portrait does not work with narrow lens, even with HDR+ off. Portrait with wide angle works, but pictures are very noisy. Focus effect mode auto selects normal cam and zoom (double tap or 2 finger gesture) has no effect. Panorama works (normal cam only). Photo Sphere works (normal cam only), but the stitching is not good. Timelapse only works with video stabilization switched on. There is no macro mode for the narrow lens (at least I did not notice if there is an option to get it from developer settings) and I did not find a possibility to get lens correction for the wide angle lens.
All in all the quality of the pictures is far better than in the stock camera. Much less noise and better colors in my opinion. That and having all lenses with video plus having additional software stabilization and the ability to use H.265 to get smaller file sizes when recording videos is awesome.

ktp1976 said:
Did you use systemize to move GCam to /system/priv-app or /system/app? I used priv-app.
I am on Oxygen OS 10.0.3.HD01BA with Magisk 20.1 (20100) and Magisk Manager 7.4.0 (253). App Systemizer is version v17.3.1 and was installed from within Magisk Manager => Downloads.
Does it softbrick for you already when installing App Systemizer or when trying to systemize GCam? If it bricks when trying to systemize, it may be due to not using priv-app or due to the different GCam version used.
---------- Post added at 04:57 PM ---------- Previous post was at 04:16 PM ----------
With normal camera mode HDR+ is only working for normal lens. Without HDR+ all lenses work. Video works with all lenses, which it does not with stock cam (why OnePlus?). Portrait does not work with narrow lens, even with HDR+ off. Portrait with wide angle works, but pictures are very noisy. Focus effect mode auto selects normal cam and zoom (double tap or 2 finger gesture) has no effect. Panorama works (normal cam only). Photo Sphere works (normal cam only), but the stitching is not good. Timelapse only works with video stabilization switched on. There is no macro mode for the narrow lens (at least I did not notice if there is an option to get it from developer settings) and I did not find a possibility to get lens correction for the wide angle lens.
All in all the quality of the pictures is far better than in the stock camera. Much less noise and better colors in my opinion. That and having all lenses with video plus having additional software stabilization and the ability to use H.265 to get smaller file sizes when recording videos is awesome.
Click to expand...
Click to collapse
I used /app only. App works fine from there actually.
I did the setenforce too and rebooted. After reboot I flashed the Aux enabler_test_4.0. And got the brick. After the terminal emulator cleanup I removed only the aux enabler and it booted.
The cam was system, so that should work I believe.
Which one did you try for the Magisk Mode? test4?

tibcsi0407 said:
I used /app only. App works fine from there actually.
I did the setenforce too and rebooted. After reboot I flashed the Aux enabler_test_4.0. And got the brick. After the terminal emulator cleanup I removed only the aux enabler and it booted.
The cam was system, so that should work I believe.
Which one did you try for the Magisk Mode? test4?
Click to expand...
Click to collapse
Do not use aux enabler! Only use sytemize to priv-app. They are both supposed to do the same thing. Btw.: priv-app is more system than system. Apps there have elevated rights.

XxnemmasisxX said:
I found that the urnyx version has very very under saturated colours on the back camera
Click to expand...
Click to collapse
enable hdr+ controle and set pixel awb to IMX586

ktp1976 said:
Do not use aux enabler! Only use sytemize to priv-app. They are both supposed to do the same thing. Btw.: priv-app is more system than system. Apps there have elevated rights.
Click to expand...
Click to collapse
My bad! I don't know why I did both. Maybe it was too late for me.

ktp1976 said:
Since I am now familiar with uninstalling Magisk modules in case of bootloop, I tried to install systemize and use it with GCam_4.0.191103.1129build-7.0.009_zipaligned.apk. From Magisk Manager I installed "App Systemizer v17.3.1" and rebooted. All fine. Then I connected with adb and started systemize
Code:
adb shell
su
systemize
this left me with the following choices
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Enforcing
==============================================
1 - Systemize Installed Apps (Listed)
2 - Systemize Installed Apps (Enter label)
3 - Systemize given APK
4 - Revert Systemized Apps
s - Set SELinux
d - Donate
0 - Exit
[CHOICE]:
I used "1 - Systemize Installed Apps (Listed)" by typing "1" and then "enter" and after that selected the number of the app called "Camera", since I do not have other user apps with that name. I systemized to priv-app. After that I went back to the adb shell (still su elevated) and typed
Code:
setenforce 0
After that I invoked systemize again to check and it told me
Code:
==============================================
App Systemizer (Terminal Emulator) v17.3.1(70)
by veez21
==============================================
BusyBox v1.31.1-osm0sis
/system/xbin/busybox
==============================================
Enter logs to upload logs
==============================================
Set SELinux Enabled: false
SELinux Status: Permissive
==============================================
I went back to the shell and typed "reboot". System booted without problems. I started GCam and went into "Settings => Developer Settings" and checked the boxes for "cam_config.enable_multilens.narrow_cam" and "cam_config.enable_multilens.wide_cam". Closed GCam and started it again. Now I can switch lenses with the small tree like symbol below the brightness slider. This is awesome. Never would have tried this without your comment @tibcsi0407 ! :good:
Click to expand...
Click to collapse
Thank you for the great instructions! Worked for the ultrawide but not for the tele lens. I can see it but when i take a picture it crashes (With HDR+ disabled it works, i used DayPoop.xml. When using NightPoop.xml it seems to work (doesn't crash) but the file isn't readable)

Hey, Gcam is over exposing a lot for me, stock cam is waaaayyy better, which Gcam do you guys recommend? I can't seem to get it right. The stock cam has great hdr but the as you can see in the picture Gcam is completely over exposed

Dacoco said:
Thank you for the great instructions! Worked for the ultrawide but not for the tele lens. I can see it but when i take a picture it crashes (With HDR+ disabled it works, i used DayPoop.xml. When using NightPoop.xml it seems to work (doesn't crash) but the file isn't readable)
Click to expand...
Click to collapse
You're welcome. It's the same for me. I think we have to wait for a fixed version. Still awesome even with these bugs.

Again, use Urnyx Gcam with App Systemizer. All of the aux lenses are working fine.

Related

[gcam]how to get front portrait

Here's how to get front portrait on Cedric :
•Download This https://drive.google.com/file/d/1skMGmQlHOn0pVXh5UD7AS6F6LIQNTF91/view?usp=drivesdk
•Everything has been done for you except front camera black level offset which needs to be set at 12.00 or 16.00
•Dont complain about bugs this is only for front portrait
•Please share your pics
•All credits go to the porter all I did was make the presets
•Use Hal3
•If you don't have hal3 enabled here is a module created by Robson Williams (Flash in twrp)
•Please join our telegram @cedricchat
Can't install. I'm getting this app isn't compatible with your device. I'm on stock 7.0 debloated and optimized, magisk 16 with hal3 module enabled. Gcam custom curve is working but no portrait mode.
Thanks!
gkornaks said:
Can't install. I'm getting this app isn't compatible with your device. I'm on stock 7.0 debloated and optimized, magisk 16 with hal3 module enabled. Gcam custom curve is working but no portrait mode.
Thanks!
Click to expand...
Click to collapse
U reminded me I should state its for Oreo
I have tried this and many other camera apks and nothing is working, all crashing at boot. I'm on the Pixel Experience Rom. I flashed Hal3 too (I tried MOTO Camera before flashing hal3 and it worked, but that doesn't work either)
Any ideas?
OMG ty
friend install the file by magisk but footej camera does not record me videos
infixremix said:
U reminded me I should state its for Oreo
Click to expand...
Click to collapse
I wanted to ask that I have 8.1 stock on Moto g5 Cedric so will this work and also can I download xposed installer from magisk and will it work?? Thank you btw for providing the download option.

Google Camera Port with HDR+ (arm64)

Due to the new arm64 Roms i decided to find the best gcam port that would work for the g5s, so i found it.
GCam Port v1 [8.0-9.0] - [Download]
GCam Port v2 [Better Low Light & Stability] [New] - [Download]
It needs camera2api enabled. Add this to /system/build.prop:
Code:
persist.camera.HAL3.enabled=1
(Optional) To prevent certain applications from using camera2api, add this line to /system/build.prop:
Code:
camera.hal1.packagelist=org.lineageos.snap,com.motorola.cameraone,com.whatsapp,com.instagram.android
For GCam Port v1 you need some application settings to prevent camera crashes:
Go to Gcam Settings > Advanced Settings > Model and select "Nexus 6P"
Go to Gcam Settings > Advanced Settings > Config camera HDR+ and select "Pixel 2017 Zsl Hdr+(new)"
V1 issues:
Some modes do not work
Crash when processing photos taken in sequence with hdr+ enabled
Random Bugs
V2 issues:
Some modes do not work
Video recording broken
HDR+ on portrait mode not work
Random Bugs
Credits to:
@Arnova8G2
How to configure if the app keeps crashing?
Edit: I had to install Pix3lify to get it working even after enabling camera2api.
JarlPenguin said:
How to configure if the app keeps crashing?
Edit: I had to install Pix3lify to get it working even after enabling camera2api.
Click to expand...
Click to collapse
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
samuelrafo said:
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
Click to expand...
Click to collapse
I did put it and restart, but I don't think the file saved properly. So I installed Pix3lify and it works now. Also if you install Pix3lify instead of editing the build.prop
---------- Post added at 02:34 PM ---------- Previous post was at 02:33 PM ----------
samuelrafo said:
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
Click to expand...
Click to collapse
I did put it and restart, but I don't think the file saved properly. So I installed Pix3lify and it works now. Also if you install Pix3lify instead of editing the build.prop you will have to install a GCam mod with the same package name as the original Google camera app.
Update: New Experimental GCam
I have download this apk on Android 9 : https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk
Night mode , portrait mode , superres zoom ans HDR + work perfectly?. But selfie camera and video recording not working?. Can you create a version for moto g5s ??
Arn'oh said:
I have download this apk on Android 9 : https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk
Night mode , portrait mode , superres zoom ans HDR + work perfectly?. But selfie camera and video recording not working?. Can you create a version for moto g5s ??
Click to expand...
Click to collapse
Above version in post one is working at g5s with selfie camera too
zahidm said:
Above version in post one is working at g5s with selfie camera too
Click to expand...
Click to collapse
Those are 5.1 ports though. He was talking about a 6.1 port.
JarlPenguin said:
Those are 5.1 ports though. He was talking about a 6.1 port.
Click to expand...
Click to collapse
Yes 6.1 port won't work at selfie Videos and also rear videos in moto g5s, You are right
It's not possible tout create apk of gcam for Android 9 with selfie and vidéo recording ?
Arn'oh said:
It's not possible tout create apk of gcam for Android 9 with selfie and vidéo recording ?
Click to expand...
Click to collapse
To*
Front flash works?
miguegallardo13 said:
Front flash works?
Click to expand...
Click to collapse
No
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
deepanshu45 said:
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
Which ROM ?
deepanshu45 said:
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
Install cemera api 2 enabler in play store ?
Stock oreo 8.1
deepanshu45 said:
Stock oreo 8.1
Click to expand...
Click to collapse
Edit' comments deleted
zahidm said:
Yes your Bootloader is Locked and now there is only one way, to restore via 9008 mode
Click to expand...
Click to collapse
How
deepanshu45 said:
How
Click to expand...
Click to collapse
It's a wrong Tread comments ignore it, Thanks

Camera2api module not compatible with GSI ROMs

Hello everyone, I have perhaps the biggest doubt. Why can i easily install the Gcam in the Stock version of the firmware by enabling the module; but if I install a GSI Rom and try to enable the module, does the default camera stop working? And even the possible Gcam to install does not work. Someone could tell me why? Truly I would be infinitely grateful!:fingers-crossed::fingers-crossed:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
celrau said:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
Click to expand...
Click to collapse
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
YouKnowAirborne said:
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
Click to expand...
Click to collapse
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
celrau said:
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
Click to expand...
Click to collapse
compatible modules unfortunately I have not found, maybe there will be something that does not go with the libraries as you say. But unfortunately about this, I understand little and nothing. unless someone tells me directly what I have to implement
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
boe323 said:
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
Click to expand...
Click to collapse
Thanks mate, i'll try it!
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
BJumperBR said:
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
Click to expand...
Click to collapse
Thanks a lot mate, i'll try this solution too!!

[MAGISK][P] Stock Camera HAL for custom ROMs

Description:
This module brings back Xiaomi's proprietary camera HAL and libraries to Pie custom ROMs and disables CDS mode to workaround green artifacts on 4.9 kernel.
It is only necessary for MIUI camera support and you really should avoid using it in other cases.
Disclaimer:
Once again, please don't install this unless you really need MIUI camera. Xiaomi's camera HAL is not as stable as the open source one, it leads to random issues with third-party camera apps and isn't really supported anymore.
And no, this doesn't install MIUI camera by default, you will need to use a separate module for it.
Download:
Stock Camera HAL for custom ROMs v3 (Google Drive)
"Source code":
https://github.com/Flex1911/tissot-stock-camhal
Great man [emoji2956]
Sent from my Mi A1 using Tapatalk
not a memui camera lover but yea i always love Gcam
well as you shifted to Opensource hals which are stable af so in future anytime ? any possibilities that it will fix front portrait on gcam 6.xx?
just wanted to know about this otherwise gcam 5.xx works just perfect and once again great af job ??
Updated both stock Camera apps from A1 & A2 for proper compatibility with this module.
https://forum.xda-developers.com/showpost.php?p=78913134&postcount=369
Just use one module at a time since both apps have the same package names.
Great work. Thanks from camera-addicted like me
We all are lucky to have a master like you working on our device.
The module have been updated:
https://drive.google.com/open?id=1p8jBpzIdTs8s-d5Yop5LUTbCd5pkzOiD
Changelog:
Fixed HAL3 support
While taking portrait its says cant connect camera in both a1 and a2 camera then a2 camera takes black nd white images
aravindhghosh said:
While taking portrait its says cant connect camera in both a1 and a2 camera then a2 camera takes black nd white images
Click to expand...
Click to collapse
As a workaround you can set selinux to permissive for a moment than back again to enforcing. This fixes this bug in my case.
I get black and white images with v2. With v1 works ok though.
sipollo said:
As a workaround you can set selinux to permissive for a moment than back again to enforcing. This fixes this bug in my case.
Click to expand...
Click to collapse
+1
sipollo said:
As a workaround you can set selinux to permissive for a moment than back again to enforcing. This fixes this bug in my case.
Click to expand...
Click to collapse
how to do this please explain
seanmcken said:
how to do this please explain
Click to expand...
Click to collapse
To set Selinux permissive in a terminal with root access type:
Su
Setenforce 0
To re-set Selinux to enforcing type:
Su
Setenforce 1
Or use an app (Selinux mode changer).
sipollo said:
To set Selinux permissive in a terminal with root access type:
Su
Setenforce 0
To re-set Selinux to enforcing type:
Su
Setenforce 1
Or use an app (Selinux mode changer).
Click to expand...
Click to collapse
I tried it, after setting to permissive when i reboot, it sets itself back to enforcing, i am on havoc os 2.2...
Edit : Selinux switch app fixes it..
Kousei Arima said:
I tried it, after setting to permissive when i reboot, it sets itself back to enforcing, i am on havoc os 2.2...
Edit : Selinux switch app fixes it..
Click to expand...
Click to collapse
Can you name that app or give the link for that app, because same happening with me also
Sent from my Mi A1 using Tapatalk
Shubham259 said:
Can you name that app or give the link for that app, because same happening with me also
Click to expand...
Click to collapse
Here:
https://www.google.com/amp/s/forum....d/apps-games/app-selinux-switch-t3656502/amp/
Just reboot after u change the SELinux status, open mi a1/a2 camera when permissive, portrait mode will work but will lag, change back to enforcing, reboot, now camera works fine
Kousei Arima said:
Here:
https://www.google.com/amp/s/forum....d/apps-games/app-selinux-switch-t3656502/amp/
Just reboot after u change the SELinux status, open mi a1/a2 camera when permissive, portrait mode will work but will lag, change back to enforcing, reboot, now camera works fine
Click to expand...
Click to collapse
Still the camera app is force stopping when I tap on Portrait
Shubham259 said:
Still the camera app is force stopping when I tap on Portrait
Click to expand...
Click to collapse
It won't stop, after changing the SELinux status, just check with the "getenforce" command line in terminal emulator, if it is actually changed.. try again
Shubham259 said:
Still the camera app is force stopping when I tap on Portrait
Click to expand...
Click to collapse
Remove any other camera mods and try again.
Is there any method to fix black and white photos taken with mi a2 camera
The camera just force closes right after i capture a photo in portrait mode

[HOW TO] Enable Camera2API and install GCam

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:
Batpope said:
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
Click to expand...
Click to collapse
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/1w2Qw34Pmy0dLmlXRYRSm8JyKgEb2mZ6u/view
Pie:
https://drive.google.com/file/d/1u7AREkr6_QKKdSZw2s_5itYk0xkKYTm2/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.
Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red
I have downloaded the apk from this link: https://www.celsoazevedo.com/files/android/google-camera/f/changelog380/ and not work.
pls help
hi dear pls help
the front camera doesn't work.
camera2 open
please take a video.how do I do it?
ugurmutlu21 said:
hi dear pls help
the front camera doesn't work.
camera2 open
please take a video.how do I do it?
Click to expand...
Click to collapse
Read this:
https://forum.xda-developers.com/showpost.php?p=79237524&postcount=2
Import config:
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
kennethstarr said:
Read this:
https://forum.xda-developers.com/showpost.php?p=79237524&postcount=2
Import config:
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
Click to expand...
Click to collapse
I've uploaded the files.
he front camera doesn't work.
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!
front camera does not work
no work
ugurmutlu21 said:
no work
Click to expand...
Click to collapse
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
Batpope said:
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
Click to expand...
Click to collapse
yeah, I did, but no, it's not working.
vagoybostero said:
Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red
Click to expand...
Click to collapse
Make sure you have edited the build.prop correctly.
I thought the API would be enable in the latest update to Pie. Or they will enable it in the next miui update?
Thank alot..
It worked for MI8 Lite Havoc-OS-v2.4..:good:
Hoping for getting a official update ?
Hello I have enable camera2api and installed gcam but my front camera doesn't work
my file explorer doesn't let me to paste and replace the fix file into root /vendor/lib i try to do it with other file explorer but i have the same problem.
Replacing the libs broke the instragam front cam.... Any solution?
Sometimes Gcam stops taking photos and i need to reboot the phone. It is normal? Any fix? I use latest Pixel Experience rom.
Do you have the same problem using Gcam in Miui?
GuGor said:
Sometimes Gcam stops taking photos and i need to reboot the phone. It is normal? Any fix? I use latest Pixel Experience rom.
Do you have the same problem using Gcam in Miui?
Click to expand...
Click to collapse
I am on pixel experience too. I have noticed that the camera doesnt take pictures not only on gcam, but on every app that uses the camera. I have tried both caf and aosp versions of PE and i had this issue
How much better is quality of the photos from GCam over stock MIUI camera on this phone? Is it worth doing and loosing front camera in stock app (and have it just as 6 Mpx in other apps) over using just stock camera?
lapist said:
How much better is quality of the photos from GCam over stock MIUI camera on this phone? Is it worth doing and loosing front camera in stock app (and have it just as 6 Mpx in other apps) over using just stock camera?
Click to expand...
Click to collapse
Honestly, I did not see that difference, so, no, definitely not worth it.

Categories

Resources