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

siankatabg

Recognized Developer
Sep 9, 2012
1,614
7,659
153
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.


*
 

Attachments

Last edited:

kimbo_985

Member
Mar 23, 2014
27
9
0
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 :D 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!
 

2x4

Senior Member
Oct 20, 2012
1,438
332
83
Austin, TX
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
 
Last edited:

AcmE85

Senior Member
Jan 19, 2012
2,929
3,691
203
@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!
 
  • Like
Reactions: alan_cns

Schrotty35

Senior Member
Oct 30, 2010
4,407
616
0
Vienna
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.
 
Last edited:

badtzo

Senior Member
Dec 8, 2010
403
96
58
Mexico city
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!!!!:D

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

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

crzykiller

Senior Member
Sep 20, 2012
632
251
0
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
 

Schrotty35

Senior Member
Oct 30, 2010
4,407
616
0
Vienna
I got the same problem. try to download it on your PC. :)


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

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




Are you using the official CM nightly?

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

Schrotty35

Senior Member
Oct 30, 2010
4,407
616
0
Vienna
Well, it's fully working for me without any bug. I tried every single mode and all of them are saving files. If you can't see them with your gallery maybe you need to reboot your device or try to do a clean install of CM.
I have make a clean install. Make a picture with HDR A and you will see the the cam make not a picture.
 

badtzo

Senior Member
Dec 8, 2010
403
96
58
Mexico city
OK, I found 2 bugs:

- If you take a picture and you move your hand before it process the capture, it will not save the file sometimes.
- Raw files are not saving.

RAW == Saving ?
with AutoHDR = No
without HDR = No
without HDR/ HQ = No
with HDR = Yes
with HQ = Yes
with flash = Yes
with Manual = No
 
Last edited:
  • Like
Reactions: AcmE85

EnormoDerClown

Senior Member
Jan 18, 2011
386
84
0
So this mod won't work for sultan and arter?

C'mon really? The thread has 2 pages, it was already discussed and is written (and marked) in the OP. "For now this port is tested and probably will only work with the official CM13 rom" His work is based on Cm13, the official version. Every rom which is doing things differently is likely not working.