FORUMS
Remove All Ads from XDA

[PORT][V.8] OxygenOS Stock Camera and Gallery Port

1,565 posts
Thanks Meter: 7,305
 
By siankatabg, Recognized Developer on 31st August 2016, 02:27 AM
Post Reply Email Thread
Hello guys.

After months of working and learning, finally I have some success of porting the stock OxygenOS camera and something to release.

FOR MARSHMALLOW :

Working list:
aHDR
HDR
HQ
Manual
Video
Slow Motion - work, but not like it should
Time-lapse
Front camera Beauty Mode

Not working list:
RAW/DNG - Don't turn it on. YOU CAN GET DNG SHOOTS WITH 3-RD PARTY APPS
Smile capture - Just doesn't want to take pictures



Changelog:
v.3.0 BETA
- Rebased frameworks - This fix the errors on the latest nightly
- Fixed Front Camera Beauty Mode
- Added more needed libraries
- Fixed Theme error in OPCamera app(we don't use oos themes,right?)
- RR Original support temporary stopped, because I don't have time now to test and port it, sorry
- Added a STABLE build for the latest CM13 Snapshot and BJRR Stable builds
- Support NucleaROM

v.2.0 BETA
- Fully ported OxygenOS 3.5CB camera framework
- Apps updated to those from OOS 3.5CB(they are same version, but they have some changes I think)
- Some libraries updated to OOS 3.5CB
- Some more libraries and binaries traced and added
- Added versions for Ressurection Remix OFFICIAL and BLACKJUBEL - Thx to @ZeNiXxX
- 3-rd party Camera2 app should work now without problems
- All the supported roms are merged in one flashable.zip
- Should fix the CM problem with the hal1 apps
- Maybe more that I will add later...

v.1.0 BETA
- Initial release


Installation:
First and maybe the most important thing is to make a backup of your current rom.
Clean flash of your rom is recommended, because this is a really deep port and you may have problems with some adds and mods.
Flash the BASE zip and right after that flash the FRAMEWORK zip intended for your rom(do not reboot between them)


Download:
BASE ZIP:
OxygenOS_Camera_Port_v3_0 _BASE

FRAMEWORKS:
OxygenOS_Camera_Port_V3_FRAMEWORKS



FOR NOUGAT:

Nougat changelog:
V8 Gallery
- App updated to the one from OB13 with many added features
- Initial test for arm based devices (32bit) - UNTESTED

V8 Camera
- App updated to the one from OB13
- aHDR unblocked
- Initial test for arm based devices (32bit) - UNTESTED


V5.1 Gallery
- Fixed the error "Update, blablabla" that prevented the gallery app to be used on other devices

V5 Camera
- Apps and libraries updated to those from 4.0.3
- Everything else from the previous builds is included

V4.1 Camera (Gallery soon)
- Camera app updated to that from 4.0.2
- Cleaned from unsupported things and errors(again...)
- aHDR mode removed since it's not working
- libraries updated
- As bonus with the new app there is "STILL_DENOICE" mode(filter) on the normal mode(HDR/HQ off)
Maybe I forgot something, but...

V3.1 Camera
- Fixed panorama mode

V3 Camera/Gallery
- Go here

V2 Camera/Gallery
- Fixed video recording

Installation:
Install as normal apps.
Using both apps is recommended, but it's not mandatory.

Download:
OxygenOS_Camera_Port-NOUGAT

ATTENTION:
If there is no HDR/HQ buttons in the app and you don't get "processing" dialog when taking picture, you will need to use the Camera HAL1 Enabler to fix this.
  1. Download the Camera HAL1 Enabler suited for your rom listed below.
  2. Flash it in your recovery.
  3. Reboot in to the system and clear the camera app data.
  4. If you have done everything correctly, you should now have HQ/HDR buttons in the app.
HAL1 Enabler for LOS(and based on it): LineageOS
HAL1 Enabler for omni 7/AOSiP/DU : omni 7 Credits to @ieatyoshis for moding and testing it

If you like my work and you think that I deserve, buy me a beer or just click the Thanks button. I will appreciate it

Please, do not mirror my work and don't use it in your roms for now, I want feedback so I can try to fix everything. If you want to share it, please give a link to this thread.


*
Attached Thumbnails
Click image for larger version

Name:	d1a5c92a9be5d2812d7efc612f4a0882.jpg
Views:	71732
Size:	16.4 KB
ID:	3860050   Click image for larger version

Name:	b3a650f5051fc285caf986cac6c20402.jpg
Views:	69964
Size:	12.8 KB
ID:	3860051   Click image for larger version

Name:	575b1999459c76fe641187fe234ab178.jpg
Views:	69278
Size:	25.8 KB
ID:	3860052   Click image for larger version

Name:	f923f6b0a7284f292d29b4ff7d4c4a99.jpg
Views:	70052
Size:	23.9 KB
ID:	3860053   Click image for larger version

Name:	96a0fbb1bd1015c9f7f097679b059a49.jpg
Views:	67934
Size:	25.9 KB
ID:	3860054  
The Following 523 Users Say Thank You to siankatabg For This Useful Post: [ View ]
 
 
31st August 2016, 02:40 AM |#2  
Junior Member
Thanks Meter: 9
 
More
Quote:
Originally Posted by siankatabg

Hello guys.

After weeks of working and learning, finally I have some success of porting the stock OxygenOS camera and something to release.

For me the cam is working very good for the past 2 days and hope that I didn't miss something while doing the package. I attached some samples(in the other thread) taken with it, so there is not much that I can tell about the quality and you don't want to read my bad English You all will want to try it and see for yourself, so lets do it ^^


For now this port is tested and probably will only work with the official CM13 rom. I will do my best to make it compatible with the other custom roms out there and meanwhile bugfix it. But first let we see how this will work for you


Work / not work list:
Most if not all the things are working good for me. Please give your feedback.
Touch to focus, Flashlight,
Auto HDR, HDR, ClearShot, Manual mode,
Slow motion, Time lapse, Panorama / you will need to use the OPGallery for this


Installation:

First and maybe the most important thing is to make a backup of your current rom.
If you come from other rom and clean flashing CM, just flash the OOS Camera package after everything else.
If you currently use CM rom and if you used any camera mod before this one, please dirty flash the rom, then again flash the OOS Camera package after everything else. If nothing from the above, just flash it.

You can choose to remove or not the CM stock camera and gallery when you flash the package.
To be on the safe side, wipe cache/dalvik cache after flashing it.


Changelog:
v.1.0 BETA
- Initial release


Download:
OxygenOS_Camera_For_CM_V1_0


Please, do not mirror my work and don't use it in your roms for now, I want feedback so I can try to fix everithing.

If you like my work and you thinк I deserve, buy me a beer or just click the Thanks button. I will appreciate it


If I forget something, will add it later, time to sleep now.

Great work! Download and test it Tomorrow! Than feedback!
The Following 6 Users Say Thank You to kimbo_985 For This Useful Post: [ View ] Gift kimbo_985 Ad-Free
31st August 2016, 03:12 AM |#3  
2x4's Avatar
Senior Member
Flag Austin, TX
Thanks Meter: 309
 
More
Just flashed this over sultan's cm - device failed to boot (boot animation keeps going without ever reaching exception pin request screen)

Tried both keeping and removing cm camera / gallery options
31st August 2016, 03:53 AM |#4  
HIshan Pavidu's Avatar
Senior Member
Flag Pannipitiya
Thanks Meter: 206
 
More
I flashed this on bjb RR

Bugs i found

-With flash photo are full white
-when click HDRa camera FC
-Manual focus Camera FC

http://cloud.tapatalk.com/s/57c64d6c...FocusCrash.txt



Sent from my ONEPLUS A3003 using Tapatalk
31st August 2016, 06:29 AM |#5  
AcmE85's Avatar
Senior Member
Thanks Meter: 1,809
 
More
@siankatabg
If I'm not mistaken, the zip does not contain a backup script, so it will be needed to reflash the camera after each nightly update.
Should probably be mentioned in the initial post.

Will test later. Thank you!
The Following User Says Thank You to AcmE85 For This Useful Post: [ View ] Gift AcmE85 Ad-Free
31st August 2016, 06:35 AM |#6  
Senior Member
Thanks Meter: 321
 
More
Quote:
Originally Posted by HIshan Pavidu

I flashed this on bjb RR

Bugs i found

-With flash photo are full white
-when click HDRa camera FC
-Manual focus Camera FC

In the OP it has been stated that the camera port is working ONLY on the original CM13.
So folks, please stop posting things like "woah, doesn't work on ROM XYZ". Thanks.
The Following 8 Users Say Thank You to hasenbein1966 For This Useful Post: [ View ] Gift hasenbein1966 Ad-Free
31st August 2016, 06:46 AM |#7  
ZeNiXxX's Avatar
Senior Member
Thanks Meter: 4,265
 
Donate to Me
More
Will it work on arter cm?
31st August 2016, 06:50 AM |#8  
sanangel's Avatar
Senior Member
Flag Burgos
Thanks Meter: 160
 
More
The downloading zip is without nothing for me... ¿¿¿???
31st August 2016, 06:59 AM |#9  
Schrotty35's Avatar
Senior Member
Flag Vienna
Thanks Meter: 576
 
Donate to Me
More
I have test with latest nightly cm13 and latest opengapps. I have remove also cm cam and cm gallery. On first start the cam make good pictures, but after this i will make a pictures this will not saved. Without touch to focus the picture are very unsharpen.

Edit: HQ is every time working, also HDR but HDR A not working, this modus will not make a picture. Whene i make a picture without hq and hdr (normal modus) i see a very long processing after i have make the picture and i must close the cam.
31st August 2016, 07:05 AM |#10  
badtzo's Avatar
Senior Member
Flag Mexico city
Thanks Meter: 95
 
More
Quote:
Originally Posted by sanangel

The downloading zip is without nothing for me... ¿¿¿???

I got the same problem. try to download it on your PC.


OMG! this camera is fully working!!! *-* you did an amazing job man!!!!

---------- Post added at 01:05 AM ---------- Previous post was at 01:02 AM ----------

Quote:
Originally Posted by Schrotty35

I have test with latest nightly cm13 and latest opengapps. I have remove also cm cam and cm gallery. On first start the cam make good pictures, but after this i will make a pictures this will not saved. I have make 5 pictures but i can not see this in the gallery, its not saved. Its a big bug.

Edit: HQ is every time working, also HDR but HDR A not working, this modus will not make a picture. Whene i make a picture without hq and hdr (normal modus) i see a very long processing after i have make the picture.


Are you using the official CM nightly?

I got some bugs on my PACROM so I just made a clean install of latest CM and is working like a charm.

edit
while I was installing the zip I chose to delete CM camera and Gallery.
The Following 2 Users Say Thank You to badtzo For This Useful Post: [ View ] Gift badtzo Ad-Free
31st August 2016, 07:06 AM |#11  
Senior Member
Thanks Meter: 227
 
More
Quote:
Originally Posted by 2x4

Just flashed this over sultan's cm - device failed to boot (boot animation keeps going without ever reaching exception pin request screen)

Tried both keeping and removing cm camera / gallery options

Well duh sultan's cm completely modifies the camera HAL and all the libs and what not
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