[Kirin] Huawei Camera for Android P - Treble-Enabled Device Development A/AB ROMS

Originally I made this as an addon to my Pie builds for View 10, but since it works for other devices as well and I want to separate it from my development thread, I decided to post it here.
This is a HwCamera2 app ported from BKL-L04 stock 8.1 with the following additional fixes:
Fixed mode switching crash on P
Resolved gallery-related issues
Fixed saving photos in portrait mode
Everything works here including portrait, AI scene detection, dual camera.
Compatibility:
O vendor version confirmed to be working on 970, 960, 659.
The full and proper functionality can be guaranteed only for 970, but it should work just fine on everything else.
P vendor version is only tested on 970.
Installation:
It's a flashable ZIP, so you just need to flash it via custom recovery.
Download:
HwCamera2 for devices with O vendor (link is always up-to-date with the latest version)
HwCamera2 for devices with P vendor (link is always up-to-date with the latest version)

Tested on the P20 lite Photo mode works fine but the aperture mode don't work. Also sometimes when changing camera modes there is a slight delay and is makes the app shut down. Othere than that works fine and still better than the app that comes installed with the Pie roms. (Kirin 659)

works for oreo?

I tried the camera on my P9 Lite, on BenzoRom, the original camera didnt work, and with this, it opens, i see the camera working for 3 seconds and the it Force Close.

ingcarranza88 said:
I tried the camera on my P9 Lite, on BenzoRom, the original camera didnt work, and with this, it opens, i see the camera working for 3 seconds and the it Force Close.
Click to expand...
Click to collapse
For me too, I'm on Honor 9.

ingcarranza88 said:
I tried the camera on my P9 Lite, on BenzoRom, the original camera didnt work, and with this, it opens, i see the camera working for 3 seconds and the it Force Close.
Click to expand...
Click to collapse
Can you get me a log, please?

flex1911 said:
Can you get me a log, please?
Click to expand...
Click to collapse
For now I'm on @phhusson's v104 and your addon works on it.

dcduartee said:
Tested on the P20 lite Photo mode works fine but the aperture mode don't work. Also sometimes when changing camera modes there is a slight delay and is makes the app shut down. Othere than that works fine and still better than the app that comes installed with the Pie roms. (Kirin 659)
Click to expand...
Click to collapse
same issue on p20 lite .

flex1911 said:
Can you get me a log, please?
Click to expand...
Click to collapse
09-09 17:34:19.761 E/SilentCameraCharacteristics(7609): can not get key <CameraCharacteristics.Key(com.huawei.device.capabilities.hwHisiliconPlatform)>
This error cause restart of app when changing modes i guess. I don't see any other one.
But for me on phh v103 and Honor 9 everything works great. Shooting at 20mpx (so it can use both cams), recording at 4K, aperture mode, panorama etc.
Great work mate :highfive:

Is it possible to make a Magisk module?

You are amazing!
Works perfect on P20 on phusson 8.1!

Hi @flex1911 try on Mate 10 but don't work on Pie Rom, attached Logs thanks

So far is working good on the Mate SE (BND-34).

What improvement would I have to use this camera in my p20?
---------- Post added at 03:11 PM ---------- Previous post was at 03:04 PM ----------
IonDEfeso said:
So far is working good on the Mate SE (BND-34).
Click to expand...
Click to collapse
curtricias said:
You are amazing!
Works perfect on P20 on phusson 8.1!
Click to expand...
Click to collapse
What improvement would I have to use this camera in my p20?

Drekko said:
What improvement would I have to use this camera in my p20?
---------- Post added at 03:11 PM ---------- Previous post was at 03:04 PM ----------
What improvement would I have to use this camera in my p20?
Click to expand...
Click to collapse
When you are on a rom that's not stock emui , you don't have the great software and functionality of the camera. With this port you can have the same software and functionality from stock emui on any rom. Many people keep with stock emui for this reason. We have a great camera on our device. But you can't use it at it's full power on other roms. And that is a bit of a shame.

@flex1911 tried it on Benzo gsi not working

Working like a charm on P20 (EML-L29) with phhtreble 8.1
Thought there is an issue with the screen ratio. The black square with mode selection shouldn't be that big.

infernusdark said:
Is it possible to make a Magisk module?
Click to expand...
Click to collapse
I updated mine with the new APK along with libs, it's on the repo

Codebucket said:
I updated mine with the new APK along with libs, it's on the repo
Click to expand...
Click to collapse
Thanks, but did you post an older version or missed a lib? I'm having the same issue as this post here: https://forum.xda-developers.com/honor-view-10/development/rom-aosp-pie-t3829466/post77559778

Can anyone with a p20 pro confirm raw works in pro mode?

Related

Sultanxda's camera app flashable zip (request)

sultanxda's cm13 for the oneplus x packs several features including his camera app with several manual controls like shutter speed etc..
so how do I get the camera app in other roms .... (generally flashable zips, ports etc)
note: I already tried slutan's camera hal but no results(manual controls)
please suggest some ways to use it in other roms.
thanks in advance!
A lot of his work in his ROM is his own personal touch. I believe it's just the snap dragon camera with his Hal. You can search here and find the flashable zip or apk.
Install Snapdragon Camera. There's a flashable ZIP somewhere on this forum. You won't get some of the features though (like 1440p front cam video recording) as these features are ROM dependent.
ashwinpilgaonkar said:
Install Snapdragon Camera. There's a flashable ZIP somewhere on this forum. You won't get some of the features though (like 1440p front cam video recording) as these features are ROM dependent.
Click to expand...
Click to collapse
but on flashing it force closes every time I open it
what to do?
Spiralworld_611 said:
but on flashing it force closes every time I open it
what to do?
Click to expand...
Click to collapse
Which ROM are you using? It comes built in with all CM based ROMs.
OS 3 camera is way better.
Exodusche said:
OS 3 camera is way better.
Click to expand...
Click to collapse
but manual shutter speed breaks in all flashable versions
Snap Camera HDR works with HAL perfectly and even has working manual focus, so I fully recommend that.
Tanner1294 said:
Snap Camera HDR works with HAL perfectly and even has working manual focus, so I fully recommend that.
Click to expand...
Click to collapse
Is this working in latest OOS3.1.4 of op X.
Yaswanth35 said:
Is this working in latest OOS3.1.4 of op X.
Click to expand...
Click to collapse
It was the last time I tried OOS 3 which was 3.1.2 I believe.
Spiralworld_611 said:
but on flashing it force closes every time I open it
what to do?
Click to expand...
Click to collapse
To me too I am using stock rooted OOS 3.1.4 with boeffla kernel
---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------
QUOTE=Spiralworld_611;69172618]but on flashing it force closes every time I open it
what to do?[/QUOTE]
To me too I am using stock rooted OOS 3.1.4 with boeffla kernel.

[Flashable ZIP] Oneplus 5 camera app

I create a zip flasheable with the camera application of the new oneplus 5 and I share it with you
Portrait mode doesnt work for obvious reasons
Do a full backup just in case
Downloads
https://mega.nz/#!dIFgHQSA!Bj66l6xryEZQ88GxCUCqxdDgV_tlMdMaOKtsXImJSHw
Tested on LineageOS 14.1
Is it working on stock OOS?
redsmith said:
Is it working on stock OOS?
Click to expand...
Click to collapse
idk, But if it doesnt work sure that flashing the hal3 enabler it will work
https://forum.xda-developers.com/devdb/project/?id=19756#downloads
Not working on oos beta 9 op3t
Sadly, it doesn't work on Oxygen OS, not even after flashing Hal3 enabler. Is there any difference between flashing this and installing the apk from apkmirror?
Can anyone provide libopbaselib.so from system/lib thanks
Is the camera quality noticably better? Also it doesn't work on 4.1.6, I got camera error each time I launched the app.
fioravanti.luka said:
Can anyone provide libopbaselib.so from system/lib thanks
Click to expand...
Click to collapse
There you go.
https://www.dropbox.com/s/mnc0sz7ktquuq1m/libopbaselib.so?dl=0
I've extracted it from the TWRP System image someone posted on XDA.
Can't find it right now, but will edit this post if I do.
Feel free to PM me if you need more files.
edit: OP5 OOS 4.5.1 full system backup
You can extract the system files and open them with WinRar.
https://forum.xda-developers.com/showpost.php?p=72781732&postcount=9
https://forum.xda-developers.com/showpost.php?p=72789837&postcount=33
Oneplus 5 camera isn't meant to work on the OnePlus 3T, it's hardcoded to support dual camera!
I installed the apk before I found this thread so I didn't flash this actually, but Oneplus 5's camera works for me. (3T and nexus 6).
Almost all functions work except pro mode (manual).
If there is any hints to make pro mode works, I would be very appreciated. Thanks.
As regards photo quality, I think PA's cam is better but I like Oneplus's interface more.
Works great for me except pro mode crashes app when selected, any fixes for this at all?
Works on op2?
ryanfraser38 said:
Works great for me except pro mode crashes app when selected, any fixes for this at all?
Click to expand...
Click to collapse
Pro mode is working for me. All controls work fine except ISO mode: it only works in automatic mode.
delacuestajs said:
Pro mode is working for me. All controls work fine except ISO mode: it only works in automatic mode.
Click to expand...
Click to collapse
Screenshot
delacuestajs said:
Screenshot
Click to expand...
Click to collapse
What ROM is that? Is Raw working?
redsmith said:
What ROM is that? Is Raw working?
Click to expand...
Click to collapse
Raw not working...
[26.06.17]-[7.1.2]-ZeNiTy-RR-Evolution-[EAS-VOX]-[Sultan-Cam]-[Magisk]-[MicroG]
[KERNEL] [blu_spark r151 unified OP3/3T] [OOS 4.1.* / custom ROMs]
[AKT] Advanced Kernel Tweaks v1.4 BETA
To the ones using - Is it making any difference over OP3T camera on out device ?
---------- Post added at 02:02 AM ---------- Previous post was at 02:00 AM ----------
delacuestajs said:
Raw not working...
[26.06.17]-[7.1.2]-ZeNiTy-RR-Evolution-[EAS-VOX]-[Sultan-Cam]-[Magisk]-[MicroG]
[KERNEL] [blu_spark r151 unified OP3/3T] [OOS 4.1.* / custom ROMs]
[AKT] Advanced Kernel Tweaks v1.4 BETA
Click to expand...
Click to collapse
I have almost same setup, except for kernel. I am on EX Kernel. Does Blu_spark allow you to disable touch boost that needs to be present for AKT kernel tweak to be fully functional ?
ProudRed said:
To the ones using - Is it making any difference over OP3T camera on out device ?
Not exactly... I like the manual adjustments
---------- Post added at 02:02 AM ---------- Previous post was at 02:00 AM ----------
I have almost same setup, except for kernel. I am on EX Kernel. Does Blu_spark allow you to disable touch boost that needs to be present for AKT kernel tweak to be fully functional ?
Click to expand...
Click to collapse
Just ask here:
https://forum.xda-developers.com/oneplus-3/oneplus-3--3t-cross-device-development/kernel-t3404970
Sent from my OnePlus3T using XDA Labs
ProudRed said:
To the ones using - Is it making any difference over OP3T camera on out device ?
---------- Post added at 02:02 AM ---------- Previous post was at 02:00 AM ----------
I have almost same setup, except for kernel. I am on EX Kernel. Does Blu_spark allow you to disable touch boost that needs to be present for AKT kernel tweak to be fully functional ?
Click to expand...
Click to collapse
Yes it does
vampire36 said:
Yes it does
Click to expand...
Click to collapse
If thats the case I will surely take a backup and flash this.

Google Cam Mod (HDR+)

hello to everyone, somebody has managed to install Google Cam Mod (HDR+) on XIAOMI.EU (MIUI9) ?
Thanks
I think it only works on LOS or RR , not on miui...
I didn't got it to work on miui.
I have tried also with LOS, RR XENONHD with the same result: APP crash.
enable camera2api?
blacklixt22 said:
enable camera2api?
Click to expand...
Click to collapse
How do you do that?
I tried Miui stable, miui dev, miui 9, android 6-7-7.1.2, RR roms, different cam versions, api2 and dont work app crash every time.
mendocino_610 said:
I tried Miui stable, miui dev, miui 9, android 6-7-7.1.2, RR roms, different cam versions, api2 and dont work app crash every time.
Click to expand...
Click to collapse
Same here, doesn't work for me!
news about this??? none can contact the development to ask why dont start on mi not 2?
I've installed the api2 from Magisk and google cam from this thread https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177
malco said:
I've installed the api2 from Magisk and google cam from this thread https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177
Click to expand...
Click to collapse
And it works for you?? Which rom are you using?
ggcam not work this phone at all.
alexmanu1 said:
And it works for you?? Which rom are you using?
Click to expand...
Click to collapse
Yes works, and i'm using the latest global beta with twrp recovery and magisk for root and module, but don't download the latest version of gcamera, try the 4.x
malco said:
Yes works, and i'm using the latest global beta with twrp recovery and magisk for root and module, but don't download the latest version of gcamera, try the 4.x
Click to expand...
Click to collapse
Wow, thanks for giving us a hint.. I will definitely try it when my Note 2 arrives..
Google Camera can make miracles as I researched..
malco said:
Yes works, and i'm using the latest global beta with twrp recovery and magisk for root and module, but don't download the latest version of gcamera, try the 4.x
Click to expand...
Click to collapse
can u explain step to step what u do for to have gcam working??? i try all but cam dont start
thanks for help
frezeen said:
can u explain step to step what u do for to have gcam working??? i try all but cam dont start
thanks for help
Click to expand...
Click to collapse
Now i've uninstalled the API2 module because the front camera was upside down.....
But i've installed the magisk API2 Module, reboot the phone, then downloaded some gcamera version from the thread posted before. One of those worked good, but don't expect miracle.
malco said:
Now i've uninstalled the API2 module because the front camera was upside down.....
But i've installed the magisk API2 Module, reboot the phone, then downloaded some gcamera version from the thread posted before. One of those worked good, but don't expect miracle.
Click to expand...
Click to collapse
Can you tell me which specific version did you download?
That background lens blur effect does work well? and HDR mode works aswell? Panoramic mode?
Luckzzz said:
Can you tell me which specific version did you download?
That background lens blur effect does work well? and HDR mode works aswell? Panoramic mode?
Click to expand...
Click to collapse
Not used panoramic or hdr. The version i guess is this one GCam_4.4.012.156195200_MI5S_MIUI_Android_7.0_PIXEL_II_XL_v.1.1.apk
malco said:
Not used panoramic or hdr. The version i guess is this one GCam_4.4.012.156195200_MI5S_MIUI_Android_7.0_PIXEL_II_XL_v.1.1.apk
Click to expand...
Click to collapse
Thanks!
For anyone trying to download, here it is:
https://www.xda-developers.com/google-camera-hdr-ported/
And you MUST have Camera2 API enabled.. To do it:
Edit build.prop, create the string:
persist.camera.HAL3.enabled=1
save and reboot.
If the string doesn't exist, add it.
---------- Post added at 09:21 PM ---------- Previous post was at 08:52 PM ----------
malco said:
Not used panoramic or hdr. The version i guess is this one GCam_4.4.012.156195200_MI5S_MIUI_Android_7.0_PIXEL_II_XL_v.1.1.apk
Click to expand...
Click to collapse
I mean, this version works well all the camera functions ?
Luckzzz said:
Thanks!
For anyone trying to download, here it is:
https://www.xda-developers.com/google-camera-hdr-ported/
And you MUST have Camera2 API enabled.. To do it:
Edit build.prop, create the string:
persist.camera.HAL3.enabled=1
save and reboot.
If the string doesn't exist, add it.
---------- Post added at 09:21 PM ---------- Previous post was at 08:52 PM ----------
I mean, this version works well all the camera functions ?
Click to expand...
Click to collapse
that version dont work on xiaomi.eu latest dev, app crash on open. camera api2 enabled
@malco just curious to know what the version that work
frezeen said:
that version dont work on xiaomi.eu latest dev, app crash on open. camera api2 enabled
@malco just curious to know what the version that work
Click to expand...
Click to collapse
I'm sorry, but can't make it works again, probably just luck with firmware/mode version/ api2 module. Actually with rhe latest global beta no luck

4K 30FPS EIS Working!

As we all know stock camera is great working as is, but video was lacking stabilization especially for 4K 30fps! For a premium flagship device, Xiaomi did not even bother implementing this. But worry no more, after concurring with AEonAX and his extreme generosity, EIS is working now for 4K 30fps on stock MIUI 10 rom.
This was tested fully by me, using Xiaomi EU rom 9.1.24 on a Chinese Mix 3 device. It does requires root, so this may not work for Global Mix 3 shipped since there are no working root as current that does not break stock camera functionality.
https://github.com/XEonAX/ANXCamera...NXMiuiCameraMagisk_18.RobustDenseThrasher.zip
Instruction:
1. Make sure your device is rooted, and installed Magisk 17.3
2. Download module and activate using Magisk.
3. Reboot and clear data/cache, and allow permissions.
Use as you would normally, and 4K 30fps will now have EIS!
Thank you for the Post, Its great seeing my work here.
Original Forum here https://forum.xda-developers.com/poco-f1/themes/port-t3879357
Since I have bought the global version, and still waiting for the unlock, I will try it with the xiaomi.eu version :good:
pittrich67 said:
Since I have bought the global version, and still waiting for the unlock, I will try it with the xiaomi.eu version :good:
Click to expand...
Click to collapse
I have a Global version with xiaomi.eu but it did not work for me. Error message says can't connect to the camera
Try this one:
https://github.com/XEonAX/ANXCamera10/releases/tag/13.perseus
i get the "can't connect to camera" error as well on the Pixel Dust GSI
I also can't get it to run on Pixel Experience. The other version without stabilization does work.
Schumi_wk said:
Try this one:
https://github.com/XEonAX/ANXCamera10/releases/tag/13.perseus
Click to expand...
Click to collapse
This one worked for me. Global version running Arrow OS. Dont forget to set all permissions on Camera app after reboot.
knives of ice said:
i get the "can't connect to camera" error as well on the Pixel Dust GSI
Click to expand...
Click to collapse
invisiblewave said:
I also can't get it to run on Pixel Experience. The other version without stabilization does work.
Click to expand...
Click to collapse
OP has linked to Miui Stock replacement version. It is only for MIUI-Based Perseus ROMS. You can try ANXCameraMagisk_13.BitterGrotesqueWalkingstick.zip from https://github.com/XEonAX/ANXCamera10/releases .
Ensure that ROM identifies your device as perseus. P3R doesn't
Please read before you post guys! I specfically mention this is for stock miui only! I also mentioned it might not work for global....
AEonAX said:
OP has linked to Miui Stock replacement version. It is only for MIUI-Based Perseus ROMS. You can try ANXCameraMagisk_13.BitterGrotesqueWalkingstick.zip from https://github.com/XEonAX/ANXCamera10/releases .
Ensure that ROM identifies your device as perseus. P3R doesn't
Click to expand...
Click to collapse
Yes, I'm running that one, it's great. Thanks! The camera app was the only thing from MIUI that I was missing.
---------- Post added at 10:55 AM ---------- Previous post was at 10:53 AM ----------
xterminater07 said:
Please read before you post guys! I specfically mention this is for stock miui only! I also mentioned it might not work for global....
Click to expand...
Click to collapse
Well, to be honest, the comment wasn't that specific since it didn't say the app wouldn't run on other roms. I tested, it didn't work, so I posted to save other people the trouble.
discomega said:
This one worked for me. Global version running Arrow OS. Dont forget to set all permissions on Camera app after reboot.
Click to expand...
Click to collapse
can you me how you got it working ? im getting cant connect to camera
Go here Join «ANXMiuiApps» on Telegram: https://t.me/ANXMiuiAppsChat
They have newer versions that might work for you
Sent from my Mi MIX 3 using Tapatalk

GCAM 7.* Better optimization. XML config.

For those who are looking for a good GCAM. I created a .XML and ill share the apk...
https://drive.google.com/folderview?id=1-1UQy6XnDrlHQWcqG0pfBuD1_4kmkG96
Download both files, install the apk, copy the XML to configs folder ir the GCam, if that folder doesnt show up in file explorer, then open GCam go to settings and look for advanced settings, look for save xml (sth like that) create a XML with a random name and now look for Google Camera Folder on internal storage , go to configs and paste the XML i shared, then open the GCam and double touch in black space and Select the XML file and your GCam will be ready and setted up.
yeah. work perfectly on pe+ rom
Does this need root? Thanks
Kéno40 said:
Does this need root? Thanks
Click to expand...
Click to collapse
If u havent enabled CAMERA2API u need to enable It. Soo u Will need to root your device
Sent from my MI 8 Lite using XDA Labs
Will it work in havoc os 10 ...?
shawon 56 said:
Will it work in havoc os 10 ...?
Click to expand...
Click to collapse
Yes... U can use It in any Rom... Once u have camera2qpi enabled
Sent from my MI 8 Lite using XDA Labs
Can you send us the newest stable version of gcam for mi 8 lite when it's available? I've tried several 7.3 and most of it went stuck at HDR+ processing.
zafit15 said:
Can you send us the newest stable version of gcam for mi 8 lite when it's available? I've tried several 7.3 and most of it went stuck at HDR+ processing.
Click to expand...
Click to collapse
Yeah. As soon as I find a good 7.3 version Ill upload it here.
VendettaMx said:
Yeah. As soon as I find a good 7.3 version Ill upload it here.
Click to expand...
Click to collapse
I have the same problem with HDR processing and GCam 7.3v.
Idk why but it's crashing when i try to record video
TheNazarok said:
Idk why but it's crashing when i try to record video
Click to expand...
Click to collapse
Which ROM are u using?
Green screen in slow motion
I have problem in slow motion , always have green screen , any have solution?
I used costum rom EvolutionX_4.1.69_platina-10.0-20200328-1611-OFFICIAL.zip with kernel Acrux r1-ten global
Hey Vendetta! Would love to see new update, currently I'm using bliss rom which is wonderful. Could you tell me which one is the best GCam with the best config?
mobile.legand.acx said:
I have problem in slow motion , always have green screen , any have solution?
I used costum rom EvolutionX_4.1.69_platina-10.0-20200328-1611-OFFICIAL.zip with kernel Acrux r1-ten global
Click to expand...
Click to collapse
I had the same problem
The solution is to load the xml file
VendettaMx said:
Which ROM are u using?
Click to expand...
Click to collapse
pixel experience
Latest 7.4 V3 from.Parrot043 is working perfectly for me on Havoc 10.
https://www.celsoazevedo.com/files/android/google-camera/dev-parrot043/
---------- Post added at 04:46 PM ---------- Previous post was at 04:43 PM ----------
mobile.legand.acx said:
I have problem in slow motion , always have green screen , any have solution?
I used costum rom EvolutionX_4.1.69_platina-10.0-20200328-1611-OFFICIAL.zip with kernel Acrux r1-ten global
Click to expand...
Click to collapse
Try disabling stabilization.
Thanks for the gcam and xml. Tried allsorts and now i can finally use video!
I'm using this at moment and works great. Selfie video used to crash with default camera.

Categories

Resources