FORUMS
Remove All Ads from XDA

[Kirin] Huawei Camera for Android P

941 posts
Thanks Meter: 6,942
 
By flex1911, Forum Moderator / Recognized Developer on 8th September 2018, 09:22 PM
Post Reply Email Thread
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)
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180908-232358.jpg
Views:	9190
Size:	175.6 KB
ID:	4591599  
The Following 51 Users Say Thank You to flex1911 For This Useful Post: [ View ]
 
 
8th September 2018, 11:23 PM |#2  
dcduartee's Avatar
Senior Member
Thanks Meter: 248
 
More
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)
9th September 2018, 02:13 AM |#3  
ngoralph's Avatar
Senior Member
Thanks Meter: 1,324
 
More
works for oreo?
9th September 2018, 06:04 AM |#4  
Member
Thanks Meter: 10
 
More
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.
9th September 2018, 07:32 AM |#5  
Senior Member
Thanks Meter: 78
 
More
Quote:
Originally Posted by 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.

For me too, I'm on Honor 9.
9th September 2018, 08:07 AM |#6  
flex1911's Avatar
OP Forum Moderator / Recognized Developer
Flag Volgograd
Thanks Meter: 6,942
 
Donate to Me
More
Quote:
Originally Posted by 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.

Can you get me a log, please?
9th September 2018, 10:37 AM |#7  
Senior Member
Thanks Meter: 78
 
More
Quote:
Originally Posted by flex1911

Can you get me a log, please?

For now I'm on @phhusson's v104 and your addon works on it.
9th September 2018, 12:00 PM |#8  
Senior Member
Thanks Meter: 35
 
More
Quote:
Originally Posted by 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)

same issue on p20 lite .
9th September 2018, 04:40 PM |#9  
streetu's Avatar
Senior Member
Flag Głowno
Thanks Meter: 87
 
More
Quote:
Originally Posted by flex1911

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.capab ilities.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
9th September 2018, 09:33 PM |#10  
infernusdark's Avatar
Senior Member
Thanks Meter: 25
 
More
Is it possible to make a Magisk module?
9th September 2018, 10:21 PM |#11  
Senior Member
Flag Kortessem
Thanks Meter: 42
 
More
You are amazing!

Works perfect on P20 on phusson 8.1!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes