FORUMS
Remove All Ads from XDA

[Huawei] [Kirin 960/970] Stock Camera app for Treble ROMs

2,363 posts
Thanks Meter: 4,491
 
Post Reply Email Thread
Here is the stock camera app for Huawei devices, for Treble ROMs.


DISCLAIMER: Warning. This might brick your device, use with caution.
You must own a Huawei device to have the right to use this application


Build script:
https://github.com/phhusson/huawei_camera_aosp

Versions:
v1 (2018-01-15):
- Based on Mate 9's Oreo
Download

How to install:
You'll need a root file manager.
Install the apk in /system/priv-app/HwCamera2/HwCamera2.apk

Troubleshooting:
- The application crashes on start
> Did you actually install the APK to /system/priv-app/HwCamera2/HwCamera2.apk?
>> If you didn't, well tough luck. you'll need to factory reset.
>> If you did, well give me logs of the crash.
The Following 44 Users Say Thank You to phhusson For This Useful Post: [ View ]
15th January 2018, 12:25 AM |#2  
Araa01's Avatar
Senior Member
Flag Warszawa
Thanks Meter: 446
 
More
Omg! U are god!

Wysłane z mojego G8342 przy użyciu Tapatalka
15th January 2018, 04:15 AM |#3  
Hi @phhusson,

Firstly thanks for your work on treble (running v9 su and gapps on my p10 plus)

Created the folder and placed the apk as advised (folder permissions set to 755, apk to 644) rebooted but can't launch the app.

logcat attached
Attached Files
File Type: txt Log_2018-01-15_03-07-05.txt - [Click for QR Code] (10.9 KB, 276 views)
The Following User Says Thank You to baddesthad For This Useful Post: [ View ] Gift baddesthad Ad-Free
15th January 2018, 05:57 AM |#4  
Senior Member
Thanks Meter: 136
 
More
Quote:
Originally Posted by phhusson

Here is the stock camera app for Huawei devices, for Treble ROMs.


DISCLAIMER: Warning. This might brick your device, use with caution.
You must own a Huawei device to have the right to use this application

Build script:
https://github.com/phhusson/huawei_camera_aosp

Versions:
v1 (2018-01-15):
- Based on Mate 9's Oreo
Download

How to install:
You'll need a root file manager.
Install the apk in /system/priv-app/HwCamera2/HwCamera2.apk

Troubleshooting:
- The application crashes on start
> Did you actually install the APK to /system/priv-app/HwCamera2/HwCamera2.apk?
>> If you didn't, well tough luck. you'll need to factory reset.
>> If you did, well give me logs of the crash.

Mate, tried the app (installed in /system/priv-app/HwCamera) but it crash. So I try to find the problem and i got that libHwPostCamera_jni.so in /vendor/lib64 is missing. So i extracted the missing file in stock emui rom and the camera is working now.

Btw, I used p10 plus. I attached the missing file.
If someone want to try, just copy to /vendor/lib64 and set to 644 permission

Also thank you mate. Your awesome
Attached Files
File Type: zip P10 plus fix.zip - [Click for QR Code] (9.6 KB, 2064 views)
The Following 8 Users Say Thank You to v0ne For This Useful Post: [ View ] Gift v0ne Ad-Free
15th January 2018, 09:01 AM |#5  
Quote:
Originally Posted by v0ne

Mate, tried the app (installed in /system/priv-app/HwCamera) but it crash. So I try to find the problem and i got that libHwPostCamera_jni.so in /vendor/lib64 is missing. So i extracted the missing file in stock emui rom and the camera is working now.

Btw, I used p10 plus. I attached the missing file.
If someone want to try, just copy to /vendor/lib64 and set to 644 permission

Also thank you mate. Your awesome


Works!
The Following User Says Thank You to baddesthad For This Useful Post: [ View ] Gift baddesthad Ad-Free
15th January 2018, 12:28 PM |#6  
IOmega666's Avatar
Senior Member
Thanks Meter: 79
 
More
Quote:
Originally Posted by v0ne

Mate, tried the app (installed in /system/priv-app/HwCamera) but it crash. So I try to find the problem and i got that libHwPostCamera_jni.so in /vendor/lib64 is missing. So i extracted the missing file in stock emui rom and the camera is working now.

Btw, I used p10 plus. I attached the missing file.
If someone want to try, just copy to /vendor/lib64 and set to 644 permission

Also thank you mate. Your awesome

Quote:
Originally Posted by baddesthad

Works!

How did you guys do it? I downloaded a Root Browser, made the folder HwCamera2 in system/priv-app/ but it fails when copying the .apk what root browser did you guys use?
15th January 2018, 12:31 PM |#7  
Quote:
Originally Posted by IOmega666

How did you guys do it? I downloaded a Root Browser, made the folder HwCamera2 in system/priv-app/ but it fails when copying the .apk what root browser did you guys use?

You'll need to free up some space in /system or resize system image
15th January 2018, 05:15 PM |#8  
theandroidguy's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 363
 
More
Those who are facing any problem while using any root browser, the best option will be Mixplorer, which is available in our XDA forum, no need to set permission, just copy the file, permission gets set automatically.
The Following User Says Thank You to theandroidguy For This Useful Post: [ View ] Gift theandroidguy Ad-Free
15th January 2018, 10:45 PM |#9  
Junior Member
Flag Turin
Thanks Meter: 4
 
More
Quote:
Originally Posted by v0ne

Mate, tried the app (installed in /system/priv-app/HwCamera) but it crash. So I try to find the problem and i got that libHwPostCamera_jni.so in /vendor/lib64 is missing. So i extracted the missing file in stock emui rom and the camera is working now.

Btw, I used p10 plus. I attached the missing file.
If someone want to try, just copy to /vendor/lib64 and set to 644 permission

Also thank you mate. Your awesome

Thanks, your fix works on my Honor 9
And also huge thanks to Phh for the port!
16th January 2018, 09:15 AM |#10  
Junior Member
Flag Turin
Thanks Meter: 4
 
More
Quote:
Originally Posted by Rommco05

Which rom u using?

Phhusson thanks for ported stock camera

I'm using the Phh-Treble rom
The Following User Says Thank You to MiKy2o For This Useful Post: [ View ] Gift MiKy2o Ad-Free
16th January 2018, 10:28 AM |#11  
Junior Member
Flag Turin
Thanks Meter: 4
 
More
Quote:
Originally Posted by Rommco05

If u take picture is possible to open it directly from camera app?

No, I get a black screen, I have to open the gallery from the app drawer to see photos
The Following User Says Thank You to MiKy2o For This Useful Post: [ View ] Gift MiKy2o Ad-Free
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