[Kirin] Huawei Camera for Android P

Search This thread

flex1911

Recognized Developer / Retired Forum Moderator
Feb 12, 2013
999
7,534
19
Volgograd
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)
 

Attachments

  • Screenshot_20180908-232358.jpg
    Screenshot_20180908-232358.jpg
    175.6 KB · Views: 13,041
Last edited:

dcduartee

Senior Member
Aug 23, 2015
782
270
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)
 

ingcarranza88

Senior Member
Nov 28, 2015
88
11
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.
 

AJ

Senior Member
Aug 8, 2012
331
67
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)

same issue on p20 lite .
 

streetu

Senior Member
Jul 25, 2012
168
85
Głowno
Can you get me a log, please?

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:
 
Last edited:

curtricias

Senior Member
Oct 9, 2012
213
41
Kortessem
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?

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.
 
  • Like
Reactions: ROO3VER

Androlark

Member
Mar 20, 2016
39
40
Paris
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.

1536708323-photo-2018-09-12-01-16-31.jpg
 

Top Liked Posts