[MODULE] Huawei P20 Camera for Kirin(659)-Devices

Search This thread

Darkest-Dark

Senior Member
Mar 26, 2018
62
52
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!)
 
Last edited:

Harlock1978

Senior Member
Jun 8, 2013
123
19
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
 
Last edited:

Harlock1978

Senior Member
Jun 8, 2013
123
19
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?
 

linkazoid

Senior Member
Jul 7, 2007
284
88
London
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.
 

Darkest-Dark

Senior Member
Mar 26, 2018
62
52
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.

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.
 

Harlock1978

Senior Member
Jun 8, 2013
123
19
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.

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
 

Attachments

  • p20camera.zip
    280.3 KB · Views: 142
Last edited:
  • Like
Reactions: Darkest-Dark

Harlock1978

Senior Member
Jun 8, 2013
123
19
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.
 
Last edited:

Darkest-Dark

Senior Member
Mar 26, 2018
62
52
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.

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.
 

Darkest-Dark

Senior Member
Mar 26, 2018
62
52
Hi, does 3d portrait lighting works?

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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    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!)
    2
    My problem is pretty specific, so didn't know how I would go about searching for it, but thanks for your useless answer, have a nice day.

    His answer was far from useless, but pretty spot on. You likely have to reinstall Magisk.

    I'm going to guess that you took offence to his signature that is not directed at you personally...
    2
    Working on honor 6x.
    (Kirim 655)
    Cosmic Os
    1
    I've noticed that after flashing this module, i start to get "invalid response" in magisk.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone