camera2api with stock app alongside gcam - Xiaomi Mi A2 / 6X Questions & Answers

There is any downside in doing that? Can I supply che missing feature of gcam with the stock camera app?
I had enable the camera2api with magisk not all function of gcam work as always but seems I can use the stock app just fine so:
What's the trouble about using gcam at all I I can use also the stock app?
How I can remove the camera2 API?(I think unistall the magisk module is sufficient to return to stock right?)

blazessdd said:
There is any downside in doing that? Can I supply che missing feature of gcam with the stock camera app?
I had enable the camera2api with magisk not all function of gcam work as always but seems I can use the stock app just fine so:
What's the trouble about using gcam at all I I can use also the stock app?
How I can remove the camera2 API?(I think unistall the magisk module is sufficient to return to stock right?)
Click to expand...
Click to collapse
Considering it as Just some advanced settings here and there.
Just remove the module and you are good
Sent from my Mi A2 using Tapatalk

Related

[Module] Camera2API enabler

Since Google Camera with HDR+ was ported already, it requires that camera2api to be enabled.
This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1".
Note:
This mod only adds camera2api support in the build.prop systemlessly. This does not guarantee modded google camera hdr+ will work on your device.
Axon 7 Users:
Here's a working GCAM that works on my device. However, I don't see any difference with my stock cam hdr. I just use this for slowmo, panorama, photosphere and lens blur effects.
MGCB_7.0H_C2API_Mid_v.3.6_AllinOne_Full_Manual.apk
Requirements:
Android 5.0 & up
Magisk v15
~2014+ Snapdragon SoCs
Instruction:
Add the zip in Magisk Manager -> Modules and reboot.
Or you could also flash it in your custom recovery, TWRP etc.
How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".
If it's running, you should be able to find a line "persist.camera.HAL3.enabled=1". Check attached screenshot for example.
Or
2. Install Camera2 Probe from playstore to check your device's camera capabilities.
UPDATES:
9-15-17:
-added v1400 template
-added camera2api with slowmo fix for Axon 7 users. (I can't guarantee slowmo on other models will work since I used my device's media_profiles.xml file.)
01-25-18
-updated to v1500 template for C2API - Download this file if you only want the HAL3 enabled.
-updated to v1500 template for C2API+slowmo+ (credits to @j1505243)
Credits:
- BSG (4pda)
- @j1505243
Noob question: how do I check in terminal if it's already enabled because in rom included?
vergilbt said:
Noob question: how do I check in terminal if it's already enabled because in rom included?
Click to expand...
Click to collapse
How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".
If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"
Like this?
vergilbt said:
Like this?
Click to expand...
Click to collapse
Yes.
Unfortunately it did not activate manuals comtrole on my p8lite with Los 13
youwi said:
Unfortunately it did not activate manuals comtrole on my p8lite with Los 13
Click to expand...
Click to collapse
I think this is for snapdragon devices only.
otaconremo said:
I think this is for snapdragon devices only.
Click to expand...
Click to collapse
Yes, and from SD 820+ right?
otaconremo said:
How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".
If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"
Click to expand...
Click to collapse
I have a G5 which supports it and if I try the command above it does not show the "persist.camera.HAL3.enabled" property. So can we assume that property is specifically to indicate the magisk module is working?
I used this app to check if it was supported already Camea 2 Probe on the play store.
ok how to disable this and revert back to stock ?
causing problem ...
Sent from my ONEPLUS A3003 using XDA Labs
Not working on lenovo zuk z2..... Snapdragon 820
I think the OP should mention that this module is for SD820+ .
Thanks for the effort but still nothing for XZ
josephnero said:
Thanks for the effort but still nothing for XZ
Click to expand...
Click to collapse
Works on my XZ
What is the benefit of getting this mod?
otaconremo said:
Since Google Camera with HDR+ was ported already, it requires that camera2api to be enabled.
This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1".
Requirements:
Magisk v13
Instruction:
Add the zip in Magisk Manager -> Modules and reboot.
Or you could also flash it in your custom recovery, TWRP etc.
How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".
If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"
Click to expand...
Click to collapse
Flashed it on my Lenovo Zuk Z2
Snapdragon 820.
Unfortunately didn't work.
Got really excited for it.
Am i missing anything?
Very noob question is this work on mtk devices
sifatrhmn said:
ok how to disable this and revert back to stock ?
causing problem ...
Sent from my ONEPLUS A3003 using XDA Labs
Click to expand...
Click to collapse
Remove the module in the Magisk Manager app and reboot.
Ariac Konrel said:
Remove the module in the Magisk Manager app and reboot.
Click to expand...
Click to collapse
it doesn't work with my rom like that..
i have to dirty flash the rom again to solve it ..
Sent from my ONEPLUS A3003 using XDA Labs
CStadler said:
What is the benefit of getting this mod?
Click to expand...
Click to collapse
same question, I see no difference on photos.

[MODULE] Huawei P20 Camera for Kirin(659)-Devices

There won't be a new Version for Oreo with vendor files because of change to pie... A new Module for pie is in Progress...!
What is it?
It's a port of the Huawei P20 pro Camera, which should work on all Kirin-Devices.
With Magisk these arrives systemless.
It's tested on Honor 9 lite (Kirin659)
Why do i need that?
Because the Quality is much better than the Stock Camera. Test it yourself.
Whats Working
- Aperture
- Portrait
- Photo
- Video
- Pro Mode
- Night Shot
- Light Painting
- HDR
- Panorama
- Time-lapse
- Good food
- Document scan
- Filter
- Watermark
- QR-Code-Scanner (v1.3+; Photomode the Button in the upper left corner)
What's not working... (tell me if you find more)
- Slow-Mo (needs stock gallery; only works on stock rom)
- Switching from Camera to Video Mode the Camera closes about a second and reopen at once.
- Devices running <Oreo, cameraserver crashes.
What should i know... Changelog...
v.1.6. (21.07.2018)
- some stabelize improvments
v.1.5. (13.07.2018)
-some changes to reduce bootloops on some devices
v.1.4. (06.07.2018)
-added some permissons to reduce crashing without gallery and changed manifest in apk for same reason.
v.1.3. (18.06.2018)
-new Camera Version from P20 Rom with minor changes in ui and new QR-Code-Scanner (see above)
- ready for use with AI-Mode (minor lifesinghs on lld-l31 with pre-ported TestAI, cause no (software) AI implemented in Rom)
v.1.2. (06.06.2018)
-added some libs, so that the camera works on gsi roms too.
v.1.1. (01.06.2018)
- added the Camera itself to the Module (one Module and debugging easier)
- added Panorama-Mode
- added Modifications to Props for Quality Improvements
v.1.0
- initial release with only libraries
Download
You can download the Module here.
For devices where is an seperate apk in product partition... (Ended with v.1.4) take this one.
Thx to...
topjohnwu for Magisk
VigneshS007 for Testing and Support
All who helped to improve it
and everybody i forgot (sry!)

			
				
thanks, picture and video work fine, honor v9 flash it on pixel experience.
Sent from my Honor V9 using XDA Labs
lmentor said:
thanks, picture and video work fine, honor v9 flash it on pixel experience.
Click to expand...
Click to collapse
but the problem is Fingerprint gesture broken.
Sent from my Honor V9 using XDA Labs
lmentor said:
but the problem is Fingerprint gesture broken.
Sent from my Honor V9 using XDA Labs
Click to expand...
Click to collapse
I don't use it, so can you provide logcat?
If for some reason I have to unistall the module and/or Magisk will I have back the stock camera or I should reflash the ROM?
Thanks
Harlock1978 said:
If for some reason I have to unistall the module and/or Magisk will I have back the stock camera or I should reflash the ROM?
Thanks
Click to expand...
Click to collapse
Magisk override the stock camera.
It install some libs too, if the user isn't on stock rom.
The easiest way back would be a dirty flash.
When I open Magisk manager and I click on + under the Module menu and I choose your module it open the zip instead of installing it.
Should I install it through recovery?
Harlock1978 said:
When I open Magisk manager and I click on + under the Module menu and I choose your module it open the zip instead of installing it.
Should I install it through recovery?
Click to expand...
Click to collapse
Sounds like the stock browser behaviour. Long-press the zip and select "Open".
Long-press the zip and select "Open".
Click to expand...
Click to collapse
It works, thanks
Just tried this on my Honor 8 and it caused systemUI to not load on a restart. Had to force a reboot and uninstall the module to get back navigation buttons.
linkazoid said:
Just tried this on my Honor 8 and it caused systemUI to not load on a restart. Had to force a reboot and uninstall the module to get back navigation buttons.
Click to expand...
Click to collapse
The libs are for Oreo...
You could try to add the HwCamera2 folder alone to /system/priv-app/ without module and see.
That should work. Maybe the app didn't start, but you can see missing dependies in logcat.
i'd like to see logcat too, may i can improve something for other kirin devices.
This Module works only if you have Oreo as ROM?
Harlock1978 said:
This Module works only if you have Oreo as ROM?
Click to expand...
Click to collapse
The libs for Porting a from Oreo (P20pro as source) .
It should work on other Versions too, but because the "newer libs" a debuging is needed for compatibility.
The only way is that someone test and provide a logcat.
Darkest-Dark said:
The libs for Porting a from Oreo (P20pro as source) .
It should work on other Versions too, but because the "newer libs" a debuging is needed for compatibility.
The only way is that someone test and provide a logcat.
Click to expand...
Click to collapse
I try to install it on P10lite with Nougat, now I have no camera und also the command to go back or home.
It doesn't show also the connection to the net, but I'm able to do a phonecall, but now I'm stuck on the phone menu.
I try to produce a logcat with these command:
adb logcat -v long > p20camera.txt
I attach it
What should I reflash to restore my P10lite, System or Boot image?
Doing a reflash through Hisuite, will lock my bootloader again.
After many reboot Magisk manager was not crashing after opening and I could uninstall the module.
Now the phone is working again and the camera is again working on the phone.
Harlock1978 said:
What should I reflash to restore my P10lite, System or Boot image?
Doing a reflash through Hisuite, will lock my bootloader again.
After many reboot Magisk manager was not crashing after opening and I could uninstall the module.
Now the phone is working again and the camera is again working on the phone.
Click to expand...
Click to collapse
thats an magisk error. simple clear repo cache...
so far as i have seen in the log the problem are missing arguments in cameraserver/the lib of it.
i will think about adding the server with libs to the modul too.
btw the slowmo don't works because it has dependies with stock gallery... so far...
thx for logcat, that helps much.
Hi, does 3d portrait lighting works?
yasitoo said:
Hi, does 3d portrait lighting works?
Click to expand...
Click to collapse
when your device has all hardware dependies, it should. it is original camera from p20. nobody tested till now, cause missing hardware. libs are not included and had to be in your system.
The camera automatic shows the mods which could work.
Darkest-Dark said:
I don't use it, so can you provide logcat?
Click to expand...
Click to collapse
logcat is here.
Sent from my Honor V9 using XDA Labs

Google cam is worse than stock cam on latest update!

In my opinion, the google cam is not so good compared to the stock cam. Today i just successfully install gcam using the fastboot command non-root method, i did expect a lot that gcam could significantly improve the overall quality. But tbh, it fails, even on the hdr test, the stock cam app beats it absolutely. Anyone got the same results? Share with me your thought
Sorry for bad English!
Ok you may have managed installing gcam without root but w/o root you surely never can enable cam2api.
And i doubt w/o cam2api gcam can perform well.
nadeem_naddy said:
Ok you may have managed installing gcam without root but w/o root you surely never can enable cam2api.
And i doubt w/o cam2api gcam can perform well.
Click to expand...
Click to collapse
what u mean? how about this tutorial?
https://forum.xda-developers.com/as...ow-to/guide-enable-camera-api-2-root-t3823498

Camera magisk module?

I am on LineageOS 17.1 right now.
However LOS17.1 does not take pictures at full resolution.
However I've heard I can flash some Magisk modules to get a better cam with 48MP resolution.
Can someone link me the correct modules to flash so I have a better camera experience?
KuroRyu said:
I am on LineageOS 17.1 right now.
However LOS17.1 does not take pictures at full resolution.
However I've heard I can flash some Magisk modules to get a better cam with 48MP resolution.
Can someone link me the correct modules to flash so I have a better camera experience?
Click to expand...
Click to collapse
https://camera.aeonax.com/
As I mentioned in your other post, you want v158 and the 48MP fix for Q
The files are flashed in Magisk.
If you have an ad blocker you will need to temporarily disable it to view and download the files. The site checks for ad blockers and hides the download section if one is active.

Is it possible to run google camera without google framework?

I am on a custom rom without gapp, but google camera can not be open. Is there any way to run it without google framework?
Maybe a stupid question: have you enabled Camera2 API?
MentalBreach said:
Maybe a stupid question: have you enabled Camera2 API?
Click to expand...
Click to collapse
yes, of course, it supports Level_3 camera2 api
imshere said:
I am on a custom rom without gapp, but google camera can not be open. Is there any way to run it without google framework?
Click to expand...
Click to collapse
i have used gcam without gapps but to be safe there are options like " fake store" to spoof Playstore and framework to applications
not all gcam mods work on all devices ...so try different ones .. furthermore on mi x6 there are old , new and MIUI camera libs ..some work for some while others work for others ..so try the different libs

Categories

Resources