yashsingh1/xdaforums huggingface dataset:
[Touch Cruise ROM Development] qinyugang:
I got the same problem in the past when use the factory radio.
[Touch Cruise ROM Development] Henry_Lee:
Dont read posts of Jibreil, he is crazy. :)

I tried all posible Radio ROM, incuded oficial from HTC. Nothing....

I want to try other BT headset, but now cant it.
[Treble-Enabled Device Development A/AB ROMS] flex1911:
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)
[Treble-Enabled Device Development A/AB ROMS] dcduartee:
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)
[Treble-Enabled Device Development A/AB ROMS] ngoralph:
works for oreo?
[Treble-Enabled Device Development A/AB ROMS] ingcarranza88:
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.
[Treble-Enabled Device Development A/AB ROMS] modest.young:
For me too, I'm on Honor 9.
[Treble-Enabled Device Development A/AB ROMS] flex1911:
Can you get me a log, please?
[Treble-Enabled Device Development A/AB ROMS] modest.young:
For now I'm on [MENTION=1915408]phhusson[/MENTION]'s v104 and your addon works on it.
[Treble-Enabled Device Development A/AB ROMS] AJ:
same issue on p20 lite .
[Treble-Enabled Device Development A/AB ROMS] streetu:
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:
[Treble-Enabled Device Development A/AB ROMS] infernusdark:
Is it possible to make a Magisk module?
[Treble-Enabled Device Development A/AB ROMS] curtricias:
You are amazing!

Works perfect on P20 on phusson 8.1!
[Treble-Enabled Device Development A/AB ROMS] megapinky:
Hi [MENTION=5120185]flex1911[/MENTION] try on Mate 10 but don't work on Pie Rom, attached Logs thanks
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
So far is working good on the Mate SE (BND-34).
[Treble-Enabled Device Development A/AB ROMS] Drekko:
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?
[Treble-Enabled Device Development A/AB ROMS] curtricias:
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.
[Treble-Enabled Device Development A/AB ROMS] lollyjay:
[MENTION=5120185]flex1911[/MENTION] tried it on Benzo gsi not working
[Treble-Enabled Device Development A/AB ROMS] Androlark:
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.
[Treble-Enabled Device Development A/AB ROMS] Codebucket:
I updated mine with the new APK along with libs, it's on the repo :)
[Treble-Enabled Device Development A/AB ROMS] aouerfelli:
Thanks, but did you post an older version or missed a lib? I'm having the same issue as this post here: https://xdaforums.com/honor-view-10/development/rom-aosp-pie-t3829466/post77559778
[Treble-Enabled Device Development A/AB ROMS] foremi:
Can anyone with a p20 pro confirm raw works in pro mode?
[Treble-Enabled Device Development A/AB ROMS] mehmeterden:
Portrait and aperture mod not works on mate 10 lite Kirin 659, pixel experience p v104
[Treble-Enabled Device Development A/AB ROMS] curtricias:
Ok . Not a P20 pro but a P20 . But if it works at mine I'm quite sure it will work on the pro to ?. See pic.
[Treble-Enabled Device Development A/AB ROMS] shameemindia:
Hi.. may I know the firmware version of the camera? Is this camera from latest version?
[Treble-Enabled Device Development A/AB ROMS] shameemindia:
Slow motion and AR stuff available in this camera?
[Treble-Enabled Device Development A/AB ROMS] ThePS4Gamer:
Link to your repo?
[Treble-Enabled Device Development A/AB ROMS] DaarkZek:
What ROM are you using? It's not working for me using the resurrection remix 8.1 rom
[Treble-Enabled Device Development A/AB ROMS] foremi:
Raw mode does not work on my P20 Pro on a fresh install of Luk's lineage rom. Here's a link to my log. Anyone got ideas?

https://drive.google.com/open?id=1L4nH-1gOQ0PgR3x7ZeRVGPHh_2G9c_I3
[Treble-Enabled Device Development A/AB ROMS] AlexWhite:
Doesn't work wide aperture, video works after restart, other bugs. Log attached. Openkirin OmniROM b2 by the way
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
Im using the Android P + Pixel Features. Remember it is a Pie build so perhaps compatibility isnt granted to earlier android versions.
[Treble-Enabled Device Development A/AB ROMS] tw1st3d83:
It works just fine for me with OpenKirin RR rom on my P10.
[Treble-Enabled Device Development A/AB ROMS] infernusdark:
Does not work on Huawei P Smart with Benzo (Android 9)
[Treble-Enabled Device Development A/AB ROMS] amirrouhandeh:
I'm running PixelExperience Pie (9) on my P10 Plus , camera works but still have mode switching crash , slowmotion not working , ..
[Treble-Enabled Device Development A/AB ROMS] gingin88:
It works very well with my mate9.(Camera, video)

The ROM I use is[9.0][GSI] PixelExperienc.

Thank you very much.
[Treble-Enabled Device Development A/AB ROMS] josdehaes:
Any chance of a 8.1 version? None of the pie treble ROMs work on the p20 Pro... Treble works as I'm running pixel experience 8.1 now. Also tried with the beta emui 9 firmware installed. Still no ROMs boot
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
Hi [MENTION=5120185]flex1911[/MENTION]

The camera works great on Phh's pie :D thank you so much for your work!

One question, could be possible a port of the Huawei P20 Pro, I can download the full firmware and send you the necessary files.

The difference between the cameras is that pro mode can be use with monochrome sensor and it has leica films too.

Thanks in advanced :laugh:
[Treble-Enabled Device Development A/AB ROMS] Kakshi Naresh:
Back camera potrait not working:(
[Treble-Enabled Device Development A/AB ROMS] foremi:
https://xdaforums.com/huawei-p20/themes/port-huawei-p20-camera-emui-8-1-t3841675

Only issues with this one on lineage is that RAW does not work on the p20 pro, it crashes the camera and the gallery thumbnail is back to not working. Other than that its the same camera app that is stock on the p20 pro with monochrome pro mode and the color options in photo+video modes.
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
Thank you so much bro.! :laugh:

It worked, and as you said, Raw it's not working but is not a problem.

UPDATE! I used raw and I worked :) the photo was saved and I can see it on the gallery, size is almost 23mb and extension .dng. Btw I'm using DotOs (I have a P10) from PRA forum, so that could be the reason :)

Thanks again :)
[Treble-Enabled Device Development A/AB ROMS] 9bestenbier:
Thanks so much for this! It works perfectly so far on my P8 Lite(2017) on OpenKirin RR
[Treble-Enabled Device Development A/AB ROMS] Heinzx3:
is the Raw function active ?
[Treble-Enabled Device Development A/AB ROMS] flex1911:
Works fine for me on View 10
[Treble-Enabled Device Development A/AB ROMS] JBolho:
Installed on Honor 9 running PHH AOSP 9.0 v105.

Photo modes work, including Pro, although app likes to close and re-open by itself when changing modes. Video shooting doesn't work, app freezes, closes and re-opens.
[Treble-Enabled Device Development A/AB ROMS] dlads:
https://xdaforums.com/huawei-p20-pro/development/huawei-p20-pro-camera-app-treble-roms-t3798767

This is for the p20 Pro from the p20 Pro section.

Does yours have added functionality over that version?

The gallery application certainly never worked for anyone without EMUI.

Any bugs within this variant?

Cheers
[Treble-Enabled Device Development A/AB ROMS] srgrusso:
[MENTION=5120185]flex1911[/MENTION] I was wanting to port the 950 camera app. Can you offer any tips or suggestions on how to do it. I'm running PixelExperiance 9 on my honor 8. I copied over the same files and directories that are in your port from my stock Oreo rom to my device but the camera app doesn't show up.

Thanks
[Treble-Enabled Device Development A/AB ROMS] flex1911:
Resign it with AOSP keys.
[Treble-Enabled Device Development A/AB ROMS] Chisetdel31260:
Hello. thank you

* installed on the matte 10 lite with rom Phh Pv106, perfect.

except opening and portrait, it causes a bug, closing.

sorry, how do I make a log?
[Treble-Enabled Device Development A/AB ROMS] lofik:
Can you build the same thing for Honor 8, please? It's just keep closing and any camera just not working
[Treble-Enabled Device Development A/AB ROMS] srgrusso:
I'm trying to port HwCamera2 to the honor 8. I started A new thread because I don't think it would be far to discuss it here.

https://xdaforums.com/honor-8/help/help-porting-hwcamera2-pie-treble-roms-t3850541
[Treble-Enabled Device Development A/AB ROMS] krule031:
Hey.

Thanks for the app, worked good on Descendant Pie, Huawei P10 Lite.

Only thing I hated about it is that navbar overlapped the camera ui, like this.

Is that a rom problem or? :fingers-crossed:
[Treble-Enabled Device Development A/AB ROMS] Heinzx3:
tested on p20 pro is working the raw function is not function
[Treble-Enabled Device Development A/AB ROMS] curtricias:
Strange.... im back on phussons 8.1 aosp. (EML-L29). And they last time used this camera it worked perfect. But now the camera crashes when open.... Ik copied all the files in the system folder.
[Treble-Enabled Device Development A/AB ROMS] IOmega666:
I'm on Phh-Pie and switching between photo and video crashes the camera and also photos can't be saved to SD, it says that the SDCard is full and it's not. Is there any other port working just fine?
[Treble-Enabled Device Development A/AB ROMS] noahhhh:
thx a lot，it work well on mate 9:good:
[Treble-Enabled Device Development A/AB ROMS] beejkitsune:
Hi both! Tried getting it to work on my Mate 9, flashed via TWRP, reboot, nothing. No app shows up, doesn't seem to have taken any affect.

Tried manually adding the HwCamera2.apk to /system/priv-apps/HwCamera2/ and that doesn't seem to work; the app installs but FC immediately.

Am I missing something? Running Phh GSI 9/Pie v105.

TIA!
[Treble-Enabled Device Development A/AB ROMS] Luqjensen:
FC on switching to video on P10 (base C432B371) phhusson PIE v106
[Treble-Enabled Device Development A/AB ROMS] michael_hamada:
Yep +1(Phhusson AOSP 9, Mate9).

But not only switching to Video...it will happen randomly when I switch to other mode.

It freezes a moment and close, but automatically open again in the mode selected. So it is not a critical issue for me.
[Treble-Enabled Device Development A/AB ROMS] Luqjensen:
Mine doesnt open again, so i cannot choose video at all
[Treble-Enabled Device Development A/AB ROMS] MiniatureTheGod:
Magisk module?
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
why everybody ask for a "magisk version"?

It can be flashed using twrp or paste the files inside /system and reboot.
[Treble-Enabled Device Development A/AB ROMS] MiniatureTheGod:
Easily reversable. Don't want my system to be more unstable than it already is haha
[Treble-Enabled Device Development A/AB ROMS] beejkitsune:
I can't even get it it open at all after flashing on mine, same set up.

Any advice how you got that far?
[Treble-Enabled Device Development A/AB ROMS] DieBill:
Any future support for Kirin 655(Huawei P8 Lite 2017)?
[Treble-Enabled Device Development A/AB ROMS] michael_hamada:
Oh, really? Am I a celebrated geek or somewhat?;)

Don't get me wrong, but I just flashed it with TWRP and rebooted...that's all.

Well, I think these won't be any help, but..;

-I had struggled with HUAWEI camera when I switched stock EMUI to Oreo GSI. And followed some procedures found in Treble and HUAWEI related forum.

(But since I flahed Phhusson's PIE AOSP ROM, I never did these procedures again.)

-I had decrypted internal storage.

-I had uninstalled other camera apps before flashing this.

Well, so sorry, but it seems that I can't help you at all...:(
[Treble-Enabled Device Development A/AB ROMS] KripXP:
Seems to work fine on Descendant (Pie) ver. OneDotThree by [MENTION=9034316]Dil3mm4[/MENTION] in my P8 Lite 2017.

Regards.
[Treble-Enabled Device Development A/AB ROMS] Morello12:
The same thing happens on RROS =(

any chance to solve it?
[Treble-Enabled Device Development A/AB ROMS] JBolho:
It's just the way it works... For shooting video I use the Asus ROG camera port and it works really well.
[Treble-Enabled Device Development A/AB ROMS] Luqjensen:
It appears that it gets more stable after several tries. Now i can switch back and forth between video and photo and shoot video too without FC. Not sure how though
[Treble-Enabled Device Development A/AB ROMS] ponces:
Here it is - https://drive.google.com/open?id=1IF9dsKkvmNYhBCwLCA557CrEgE8Or4Yv

All credits go to [MENTION=5120185]flex1911[/MENTION] :)
[Treble-Enabled Device Development A/AB ROMS] beejkitsune:
Thanks for trying [MENTION=4134040]michael_hamada[/MENTION]; maybe it's because I don't have my internal storage decrypted.

I've managed to get it working today with the magisk module kindly provided by [MENTION=4128598]ponces[/MENTION]!
[Treble-Enabled Device Development A/AB ROMS] RAR1991:
I'm using a PRA-LA1 with kiri 655 all is working except for video mode the app is crashing when I try to switch
[Treble-Enabled Device Development A/AB ROMS] MiniatureTheGod:
Thanks to Flex for making this module!

I got it working on my Huawei P Smart running Phh AOSP 9.

It takes way to long to change through the different modes though and there are occasional crashes. RAW mode doesn't seem to work either for me - tried to take a picture with the mode on and it made a 3mb file.

Because of these flaws I've decided to stay with Open Camera :P
[Treble-Enabled Device Development A/AB ROMS] jifaaa:
Working perfectly on my Mate 9 MHA-AL00 lineageOS16.0.

Thanks :good:
[Treble-Enabled Device Development A/AB ROMS] curtricias:
With mixplorer merged the system files. When after reboot i open the app , it is forced closed. And it's strange because a few months ago i was also on phh 8.1 aosp and the it worked perfect ?
[Treble-Enabled Device Development A/AB ROMS] curtricias:
Problem solved .

libHwPostCamera_jni.so was missing in vendor/lib64
[Treble-Enabled Device Development A/AB ROMS] TheLoneWolf16:
Huawei Nova 2i

So far works perfectly on my phone! In changing modes, it force closes but opens immediately then it starts working again. :D Missed using a huawei stock camera.

By the way, I am on PixyOS Pie Rom.
[Treble-Enabled Device Development A/AB ROMS] Nick80835:
I don't want to seem rude or mean but this thread seems out of place in the A/AB ROM section, however there's no Treble apps and/or mods section which is a real shame. :(
[Treble-Enabled Device Development A/AB ROMS] genstef:
HUAWEI P8 Lite 2017 (PRA-LX1) PixysOS PHH Treble PIE

Works well for taking pictures.

Videos in the camera app do not work, freeze when trying to record.

But on whatsapp recording works well!
[Treble-Enabled Device Development A/AB ROMS] whitekidney:
Hey flex1911 - may I ask how you fixed "Fixed saving photos in portrait mode" ?

Thanks.
[Treble-Enabled Device Development A/AB ROMS] dlads:
[MENTION=5120185]flex1911[/MENTION]

Brilliant work on this mate, it's spot on, portrait etc all good.

One thing though?

Wheres the settings key? There's a banner at the top saying camera but no button lol, so can't change to 60 FPS etc?

Not the end of the world but thought I'd ask.

Thanks

P20 Pro
[Treble-Enabled Device Development A/AB ROMS] dlads:
I have this problem, a big Camera sign at the top of the app when it's open??

P20 pro running AOSIP from Berkeley.

It covers the settings button. Kind of kills it for me.
[Treble-Enabled Device Development A/AB ROMS] whitekidney:
Hi [MENTION=5120185]flex1911[/MENTION] - this doesn't work on P20 pro using latest LOS 16 from LuK.

Here's the logcat https://hastebin.com/luxegoyutu.sql

Everything appears to work, but the app doesn't save any images. (Nothing happens when I press the shutter button) - saving videos work just fine.

This is the logcat line from when I click on the button:

CameraBusinessMonitor: ClassNotFoundException startMonitor java.lang.ClassNotFoundException: android.util.IMonitor
[Treble-Enabled Device Development A/AB ROMS] fatjoez:
is the emui 9 camera apk available yet? can someone upload all files needed? want to use on huawei p10
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
Uninstall it and reboot, reboot again, install again the zip and reboot.

Problem Solved :)
[Treble-Enabled Device Development A/AB ROMS] dlads:
Did you have that problem too?? I'll try now

Update: to sorted, nice one mate.
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
It happened me a lot of times, You need to uninstall the apk first to avoid that annoying bug xD

High five!
[Treble-Enabled Device Development A/AB ROMS] dlads:
Cheers mate, it's all good now, portrait working, gallery.

Brilliant.

I'm running AOSIP with it so it's almost perfect now.

NFC

Stereo speakers.
[Treble-Enabled Device Development A/AB ROMS] flex1911:
New build is available for devices with P vendor.

Based on BKL-L09 9.0.0.159.

Requires ROM-side changes for sepolicy, hence only confirmed working on [MENTION=5075128]LuK1337[/MENTION] LineageOS 16.0 builds.

Download:

https://drive.google.com/open?id=1nyvPBNy7UC-rFaKn3aktSHBy_PC-9AXK
[Treble-Enabled Device Development A/AB ROMS] KevMetal:
just a question ..your camera is great but on the p smart it has a few errors ...would i be able to make it work if i just went ahead and copied all the files uou used from my p smart stock rom & made a device specific ( kirin659) huawei p smart stock camera and hopefully solve the one or two crashes or other problems ? obviously i don't want to kang your work and all credit will go to you and you cold post the result here ...just asking ..cos i don't wanna waste my time if there is virtually 0 difference and therefor waste of time to try

TY in advance:good:
[Treble-Enabled Device Development A/AB ROMS] sfoot13:
Working on Omni Pie (OpenKirin rom), Huawei P10, Oreo vendor :)

Thank you so much :)

UPDATE: My bad, the photos are not saved, sorry for the wrong info :p

That's why it is only for Pie vendor.
[Treble-Enabled Device Development A/AB ROMS] whitekidney:
Thanks a lot, works fine on LuK's LOS16 on P20 pro.
[Treble-Enabled Device Development A/AB ROMS] Chris M.:
does the camera save the RAW photos? it's one of those things that really matters to me.
[Treble-Enabled Device Development A/AB ROMS] Licaon_Kter:
OmniROM from Openkirin already has a good camera (not perfect but way better on my Mate 9 anyway), that doesn't work for you?
[Treble-Enabled Device Development A/AB ROMS] KevMetal:
nope on p smart the camera has too many bugs and missing features
[Treble-Enabled Device Development A/AB ROMS] kristiansja:
anyone tried this with kirin 955
[Treble-Enabled Device Development A/AB ROMS] rush9935:
Yes Not working?
[Treble-Enabled Device Development A/AB ROMS] :
Working on Kirin 655 so I assume it'll work. Sometimes you have to flash the Module Twice in TWRP to work
[Treble-Enabled Device Development A/AB ROMS] valeriogerva:
Hello I have an honor 7x, Kirin 659, the camera opens all the functions but does not make the photos or the videos, I give the shoot button and nothing

Enviado desde mi BND-TL10 mediante Tapatalk
[Treble-Enabled Device Development A/AB ROMS] TASON42:
OP, Have you ever tried to port EMUI 9 camera? i just changed your P vendor addon with EMUI camera apk and didnt worked.
[Treble-Enabled Device Development A/AB ROMS] flamedrops:
wont work on mate 10 lite.
[Treble-Enabled Device Development A/AB ROMS] ChangeToTower:
Great work, thanks!

Does the Oreo version (EMUI 8.1 camera I assume) also work on a Pie based ROM (LOS16)? I ask because I definitely prefer the old sharpening effect of the camera app..
[Treble-Enabled Device Development A/AB ROMS] flex1911:
Eh, I'm not really sure. It may work, but not guaranteed to work perfectly.
[Treble-Enabled Device Development A/AB ROMS] KevMetal:
Working like a charm on Openkirin Omnirom beta 3 , Oreo using O version of course ...just missing the AR function that my kids love ....
[Treble-Enabled Device Development A/AB ROMS] rush9935:
HwCamera2 for devices with O vendor ..

Everything is working just the video u have to touch for recording and nothing is happening..force close and it reboot again in the Camera recording and after is working ????? have you got fix :confused::confused::confused:

the video for recording it"s freeze ???

Please can you fix the lag in video and recording ????
[Treble-Enabled Device Development A/AB ROMS] Notorius bunty:
Wht is this app from installed magisc module for hw2camera nd not worked for me also tried to install it through twrp bt not worked honor 6x aosp extended 9 pie where this app is coming from
[Treble-Enabled Device Development A/AB ROMS] Notorius bunty:
After installing through magisc module its showing update in module menu
[Treble-Enabled Device Development A/AB ROMS] Notorius bunty:
Nothing is working honor 6x aosp extended pie 9 rom tried both o vendor nd p vendor through twrp nd also magisc module bt nothing worked cant clik single pic completely unusable dont know why
[Treble-Enabled Device Development A/AB ROMS] DombroPL:
both versions doesnt work on mate 10 lite pixyos, p version doesnt take photos, o version doesnt launch
[Treble-Enabled Device Development A/AB ROMS] Notorius bunty:
On which fon?are u using module or twrp i m having honor 6x aosp extended6.1 nd nothing is working not even cliking pics
[Treble-Enabled Device Development A/AB ROMS] optionalmgrr.la:
want to know too...
[Treble-Enabled Device Development A/AB ROMS] dragonik81:
Hi, is there option to convert on magisk module?
[Treble-Enabled Device Development A/AB ROMS] The Harmony Weaver:
Tested on huawei mate 10 lite vendor O it works like charm, thanks
[Treble-Enabled Device Development A/AB ROMS] DaarkZek:
The Android 9 version is working almost perfectly for me
[Treble-Enabled Device Development A/AB ROMS] Botandroid:
This Huawei Camera is only for Huawei devices or is for anyone?
[Treble-Enabled Device Development A/AB ROMS] tw1st3d83:
Only for huawei.
[Treble-Enabled Device Development A/AB ROMS] Notorius bunty:
Need help plz anyone know how to remove this module i hv installed this through twrp nd now its failed to work nd also stopped my all camera working plz help any fix open camera google cam all fail to open honor 6x android pie rom descedent