how to enable api2 and recommend me camera.. wich is better pls... also install instruction
Install TWRP, root, add persist.camera.HAL3.enabled=1 to build prop. Download google camera modified for s820.
Guys i enabled camera 2 api in miui roms but .. after enabled that one i face camera force close and camera stopped problem . is there any way to fix that one pls give solution for that problem. thanks in advance
vinoth0t said:
Guys i enabled camera 2 api in miui roms but .. after enabled that one i face camera force close and camera stopped problem . is there any way to fix that one pls give solution for that problem. thanks in advance
Click to expand...
Click to collapse
Use any modded miui camera. Google it!
Please google it before posting. MIUI stock camera doesn't work with camera2api. Only enable camera2api if you use a custom camera app, like modded miui camera, Gcam mod, or something else.
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
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
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