yashsingh1/xdaforums huggingface dataset:
[OnePlus X Themes and Apps] oneplusx:
The snapdragon camera app can not click pics why? :(

(I am not rooted so I flashed the zip)

Is there any other camera app which can be used with this mod?

I really wanted to click pics through snapdragon app but I cant :(
[OnePlus X Themes and Apps] eng.stk:
Amazing work mate, thanks!
[OnePlus X Themes and Apps] jejzve:
im getting only 38fps in 1080p instead of 60fps.
[OnePlus X Themes and Apps] Tiongkia:
Works fine with oss 2.21
[OnePlus X Themes and Apps] Sultanxda:
I'm seeing 57 FPS (1080p @ 60) and 117 FPS (720p @ 120) in CM12.1 and CM13. I don't know which ROM you're using, but it's working fine for me.
[OnePlus X Themes and Apps] alansupra94:
What camera are you guys using for CM13.1? I can't seem to find a decent one that works. Snapdragon does not want to start so I gave up on it.
[OnePlus X Themes and Apps] phoberus:
When I want to use this with CM13 and the stock camera, I must flash this mod and the oxygen cam or only this?
[OnePlus X Themes and Apps] Odysseus Rex:
This is a HAL mod, not a camera apk, so you must install the camera by yourself and flash the HAL mod.
[OnePlus X Themes and Apps] oneplusx:
Hello,

I flashed Snapdragon app v2.0 and it takes great vids but as soon as I click a pic it just hangs on the pic and doesn't take the pic.. If you have used the app can you confirm that if I am the only one facing this issue and also tried Google Camera v2.7 it force closes when clicking a pic video is fine but can't record fhd with 60fps on any app other than Snapdragon cam

Would like to know which app runs perfect with this mod for me SD cam doesn't take pics at all.

Am I wrong somewhere?

Thanks!
[OnePlus X Themes and Apps] Odysseus Rex:
Never had any problem with camera or hal (I'm using Snapdragoncam from cm13 tree). I really don't know what your problem could be.

Did you try cleaning the camera cache after flashing the HAL?
[OnePlus X Themes and Apps] oneplusx:
The SD camera app always shows 0 data and 0 cache so option of clearing data and cache is blacked out (on OOS 2.2.1 and flashed the SD app zip)

---------- Post added at 09:16 PM ---------- Previous post was at 09:14 PM ----------

Is the SD cam not compatible with OOS?
[OnePlus X Themes and Apps] johnny.tifosi:
Oxygen OS 2.2.1 with Bluspark kernel r123. [MENTION=7424844]jejzve[/MENTION] reported the same problem in the previous page so maybe he/she could tell us which ROM they're using.
[OnePlus X Themes and Apps] jejzve:
i have Oxygen OS 2.2.1 with bluespark as well.
[OnePlus X Themes and Apps] derhendrik:
Thank you so much Sultan =)

Just installed the hal mod and the blue tint is completely gone!

To add to johnny.tifosi and jejzve: I am using OOS 2.2.1 as well, getting also 38 fps in FHD
[OnePlus X Themes and Apps] oneplusx:
Are you using SD camera?

Cause I am getting 60 fps in fhd using SD cam
[OnePlus X Themes and Apps] jejzve:
im using SD camera. only 720p recordings are at 60fps. 1080p is 38fps and 720p 120fps slowmotion is like 80fps.

what rom do you have?
[OnePlus X Themes and Apps] MarkoPam:
Thank you Sultan for bringing 4K to Oneplus X.

I am on Oxygen 2.2.0, with SD camera i am getting 38 fps /1080p.
[OnePlus X Themes and Apps] feligoni:
From where did you got the app?? I just can't get slow no to work with sd camera :(
[OnePlus X Themes and Apps] jejzve:
well i have the same problem. i have to slow it manually in vlc but its still not 120fps on oxygenos.
[OnePlus X Themes and Apps] Sultanxda:
Nope, it is NOT an issue with the camera HAL. I tested the stock OxygenOS camera HAL and it has the same issue. This is a bug in OxygenOS (it is not recording all of the frames properly).

No, it is not. I originally built it for CM12.1 on my OPO, not for OxygenOS on the OPX.

This is NOT an issue with the camera HAL. This is a bug in OxygenOS (it is not recording all of the frames properly).

This is NOT an issue with the camera HAL. This is a bug in OxygenOS (it is not recording all of the frames properly).

This is NOT an issue with the camera HAL. Install the stock OxygenOS camera HAL and try to record a real 120 FPS video using Snapdragon Camera (hint: you cannot).

Snapdragon Camera was never meant for OxygenOS. This Snapdragon Camera app was actually built by me, for my CM12.1 ROM for the OPO. I programmed it to be compatible with CM12.1 on the OPO, not OxygenOS on the OPX.

This is NOT an issue with the camera HAL. This is a bug in OxygenOS (it is not recording all of the frames properly).
[OnePlus X Themes and Apps] Sultanxda:
Also, since OxygenOS users can only record proper slow-motion/high-framerate videos through the OnePlus Camera app, I will fix slow-motion in the OnePlus Camera app in the next build.
[OnePlus X Themes and Apps] Sultanxda:
New build up with more high-speed/slow-motion fixes.
[OnePlus X Themes and Apps] oneplusx:
So this MOD is completely useless for OOS? I mean it won't have any effect on OOS? If not then which cam should I use if on OOS which will click great pics/vids with this MOD?
[OnePlus X Themes and Apps] Diego98:
To update the MOD it's enough to dirty flash the new build over the old one?

Inviato dal mio ONE E1003 utilizzando Tapatalk
[OnePlus X Themes and Apps] demolatorul:
Dirty flash and wipe the camera data and cache
[OnePlus X Themes and Apps] spitzmk1:
God, I hope manual mode gets fixed as soon as possible! I already flashed this mod and it´s awesome but I need manual mode sometimes, so I got back stock. You are doing a great great work, congrats :)
[OnePlus X Themes and Apps] Loureiro:
You getting it all wrong. This MOD does wonders on OSS too:

-properly recording under low light conditions

-4k recording available.

-anti shake algorithm

-Proper ISO control on every other app. (Manual mode on OSS camera app won't work)

For these, you won't need snapdragon camera. This will work on every camera app
[OnePlus X Themes and Apps] oneplusx:
Ok so which app would you recommend with this mod for OOS?
[OnePlus X Themes and Apps] Loureiro:
Camera FV-5 for photo

Cinema FV-5 for video

Also, give Open Camera a try.
[OnePlus X Themes and Apps] CertifiedBlyndGuy:
[MENTION=4800121]Sultanxda[/MENTION]

So I started using the Color OS camera as it produces better quality than Snap (by the way, have you considered making your version available for the X?) however I realized that 8mp isn't supported by the application.

Being curious I decided to audit the APK to force 8mp to be recognized and to make use of the slightly higher resoloutuin for photos provided by your HAL.

The weird thing here is that there is an entry for 8mp however it is not displayed as an option within the application.

Why would this be?
[OnePlus X Themes and Apps] brand18:
where can i download the latest build for this
[OnePlus X Themes and Apps] Tiongkia:
Download of this thread
[OnePlus X Themes and Apps] brand18:
thanks iv already flashed this cam but long time bk so can i just flash it again so will it overwrite the old one
[OnePlus X Themes and Apps] Tiongkia:
Thats what i always do. Remember to clear cache and dalvik cache
[OnePlus X Themes and Apps] brand18:
sorry im a newbie but by clearing dat wont it wipe my phone out
[OnePlus X Themes and Apps] matwaking:
No it won't
[OnePlus X Themes and Apps] Tiongkia:
Will not. Remember to choose the right one. Cache and dalvik cache.
[OnePlus X Themes and Apps] Kéno40:
Wipe manually data of the camera app. Cache and data. It's more efficient for me.
[OnePlus X Themes and Apps] raulx222:
I've updated to latest version and now Google Camera can't find the camera (I did clean app's data & cache). I'm on RR (6.0) with Google Camera as only camera app.
[OnePlus X Themes and Apps] sniper20:
Tested in purity rom, and works like a charm.
[OnePlus X Themes and Apps] tnttrx:
is this mod compatible with new official CM13 nightly builds ?
[OnePlus X Themes and Apps] 73IGH:
Yep
[OnePlus X Themes and Apps] adi2d2:
I have a weird bug. I'm unable to take pictures using 16:9 resolution mode. The phone refuses to take pictures in this mode. Any ideas?

Update:

Clearing data solves the issue.
[OnePlus X Themes and Apps] Xelfmade:
Is there a chance, that this MOD survives flashes like Open Gapps it does? With the new nightlies every day it's really bad to flash everthing from scratch..
[OnePlus X Themes and Apps] tnttrx:
maybe we should push it into CM nightlies :)
[OnePlus X Themes and Apps] davidullo:
OPX Stock camera? OOS 2.2.1

Help! I installed custom camera HAL but i want to return to stock camera because i love manuale controls on OPX, what I have to do to return on stock camera? Please!
[OnePlus X Themes and Apps] adi2d2:
Only solution is to dirty flash OOS 2.2.1 official firmware. [MENTION=4800121]Sultanxda[/MENTION] has already mentioned this in the thread.

You will lose root and other custom mods like Xposed after dirty flash. However, you can re-flash them.
[OnePlus X Themes and Apps] Kéno40:
You could read some post before posting. Question is asked every 2 pages...

For that, just reflash over your full Rom, wipe cache and Dalvik.

Then after reboot, just erase camera app data.
[OnePlus X Themes and Apps] davidullo:
Thank you very much and sorry!

Edit: just another question: I installed blue spark kernel, so to return on stock camera i have to reflash only OOS 2.2.1 or also blue spark kernel? Sorry for the dumb question but I'm a newbie!

Inviato dal mio ONE E1001 utilizzando Tapatalk
[OnePlus X Themes and Apps] Kir3:
I think you need to flash everything. Stock package have the stock kernel also.
[OnePlus X Themes and Apps] davidullo:
Whhaaat? I don't have the time to do this. Since my interest for the stock camera were the manual controls, could you recommend me a clean (like stock) and good app that support manual controls? So i'll wait for the update of this camera mod, hoping it will receive manual controls.

Edit: it's not possibile to create an apk of the stock OOS 2.2.1 camera so i can install it without reflashing all of the OS and kernel?

Inviato dal mio ONE E1001 utilizzando Tapatalk
[OnePlus X Themes and Apps] Kir3:
Try Play Store, I don't take pictures much and I just want the camera to work. This mod for me is just to brag about my phone can shoot videos in 4K :D
[OnePlus X Themes and Apps] awildsloth:
If you reflash OOS everything will go back to full stock (camera and kernel). If you want manual controls and also want blu_spark just dirty flash the rom and then the kernel and you'll be good to go ?

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] davidullo:
But if I reflash all of these i need to Root again my OPX right? It's not possible to flash stock camera libraries with the recovery, in the same way i flashed the libraries of this thread? I mean, why I need to reflash all of the system when i (teorically) can flash only the files of the camera?
[OnePlus X Themes and Apps] 73IGH:
Do a dirty flash, apps and root will be unaffected.

There is no stock camera hal at the moment.
[OnePlus X Themes and Apps] oneplusx:
Is only Snapdragon Cam capable of recording FHD at 60 FPS?

No other app records FHD at 60 FPS with this mod

(tried cinema fv 5 and open camera)

For me FHD 60 FPS > 4K 30 FPS
[OnePlus X Themes and Apps] awildsloth:
Because no one has ever zipped the stock camera libraries

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] 73IGH:
Correct.

Kinda worded that wrong didn't i
[OnePlus X Themes and Apps] awildsloth:
Not really mate I understood what you meant ;)

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] variananora:
idk man, i ill try it.
[OnePlus X Themes and Apps] etoy:
i extracted the same files that Sultanxda's HAL zip overwrite from OOS 2.2.1 and CM13's latest nightly (0427) and packed up two flashable zips so you can test Sultan's HAL and eventually revert to the previous ones without dirty flashing the whole rom.

hope that helps with your camera testing stuff
[OnePlus X Themes and Apps] awildsloth:
You're tha man! Thumbs up [emoji106]

Enviado do meu ONE E1003 através de Tapatalk

---------- Post added at 12:37 PM ---------- Previous post was at 12:35 PM ----------

You're the man! Thumbs up ?

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] andisetyawan11:
after i flash this mod on oss, why my foto gone , if im not flash this mod my foto still on sd card,this bug or .... ??? i save my foro on sd card,anyone same trouble with me
[OnePlus X Themes and Apps] Kir3:
[MENTION=4800121]Sultanxda[/MENTION] link this to 1st post
[OnePlus X Themes and Apps] OptimusVDarwin:
Why does this camera have so much noise on pictures and videos

Edit: False alarm only in low light conditions camera is very noisy but good light the camera is AWESOME![/IMG]
[OnePlus X Themes and Apps] Sultanxda:
What were you expecting from a cheap sensor with poor lensing and a small aperture (and no OIS) in a $250 smartphone?
[OnePlus X Themes and Apps] :
-------------------------------
[OnePlus X Themes and Apps] stoerebink:
Oh please.... go whine somewhere else.
[OnePlus X Themes and Apps] ashwinpilgaonkar:
But does your Moto G have a Snapdragon 801, 3GB RAM and an AMOLED Screen? :p
[OnePlus X Themes and Apps] Kéno40:
I was about to ask with what app you were taking the pictures because I have noisy results with external app, but with stock camera and this HAL, it's good.
[OnePlus X Themes and Apps] OptimusVDarwin:
I'm on CM 13 nightlies using the camera that comes with it.
[OnePlus X Themes and Apps] Kéno40:
It's the snapdragon camera. It should be OK too !
[OnePlus X Themes and Apps] mundano:
Since it's a pain to flash the Camera Hal after avery CM nightly update, I've made a backup script based on the script that CM uses to backup the host's file. This way it will resist CM updates.

You can download it here (Camera HAL + Backup Script): Sultan-OPX-camera-HAL_2016-04-22_Autobackup.zip

It should work with any CM based ROM that supports backup scripts. If you need to revert back to stock HAL it's necessary to wipe system partition, flashing the ROM again obviously will not be enough.

[MENTION=4800121]Sultanxda[/MENTION], hope it's OK to you to have this here. If not just tell and I will remove.
[OnePlus X Themes and Apps] SpaceAgeHero:
Can't this be merged into CM13?
[OnePlus X Themes and Apps] awildsloth:
Currently I'm using Purity which is an AOSP ROM with some CM13 features like Theme Engine and so on. Do you think it'd work with this ROM?

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] demolatorul:
Works like a charm!
[OnePlus X Themes and Apps] mundano:
Any ROM that preserves OpenGapps after an upgrade should be compatible with this, since it uses the same backup scripts..
[OnePlus X Themes and Apps] awildsloth:
Well it makes sense since I'm using Delta Modular GApps. Thanks a lot for your work mate! ?

Enviado do meu ONE E1003 através de Tapatalk

---------- Post added at 04:01 PM ---------- Previous post was at 04:00 PM ----------

Thanks for the feedback! ;)

Enviado do meu ONE E1003 através de Tapatalk
[OnePlus X Themes and Apps] Nursh:
OMFG WTH Why is this not merged with CM13 already? It's so awesome thanks Sultanxda!!!!
[OnePlus X Themes and Apps] Kéno40:
Hi, just want to share this informations about what's HAL.

https://source.android.com/devices/camera/camera3.html
[OnePlus X Themes and Apps] migueldbr:
[MENTION=4800121]Sultanxda[/MENTION] is there any way to use automatic focus option in snapdragon app when taking pics? Its greyed out, yet it works fine on video and can be selected. Sorry if this is a stupid question, but with this continuous focus mode i feel like if i move the phone even a tiny bit it ruins a bit of the quality of the pic. Using automatic focus wouldn't improve this?
[OnePlus X Themes and Apps] Steccas:
Will this work with CM 13?
[OnePlus X Themes and Apps] Loureiro:
AFAIK, the anti-shake algorithm is what can make pictures less blurry, at cost of higher ISO to compensate the higher shutter speed.

automatic focus mean focus without user interaction while video recording, if i'm not wrong
[OnePlus X Themes and Apps] CertifiedBlyndGuy:
Works on OOS flawlessly however on Cm 13 it bricks the ROM (reason for testing OOS, really need to backup haha)
[OnePlus X Themes and Apps] ashwinpilgaonkar:
Were you recording in 4K, 1080p or 720p?
[OnePlus X Themes and Apps] danbrown162:
This is ruddy good news indeed! Thanks sultan!
[OnePlus X Themes and Apps] andlin97:
Not working on Temasek's CM13, I suspect that flashing another cam "app" like oos 2.1.3 hydrogen cam app wont work as it is a boot loop. Dev please find the solution, i would gladly appreciate it!
[OnePlus X Themes and Apps] sydeu:
oh my god this is awesome, king sultan developing for oneplus x :D
[OnePlus X Themes and Apps] benrees21:
Thanks for this! ?
[OnePlus X Themes and Apps] Zyphur:
This is probably a stupid question but, does this make 1080p video better too, or should I just keep the setting on 4k?

I've always used the google cam as I thought it was best. Do any of the main cameras have actually quality differences?

Anyways, can confirm working perfectly on blu spark.
[OnePlus X Themes and Apps] Sultanxda:
New build uploaded with compatibility for all ROMs. You can flash this on CM13 now.

[MENTION=3993283]Fatsodonkey[/MENTION] viewfinder frame rate going above 30 FPS is normal. It is also normal for the frame rate to temporarily dive below 30 FPS depending on lighting conditions.
[OnePlus X Themes and Apps] jayesh0099:
Any revert zip available ?

Or any other way to revert to default files an cofiguration ?

thanks you.
[OnePlus X Themes and Apps] StraightEdgeKid:
Cheers
[OnePlus X Themes and Apps] a4rocks:
I really do apologise for spamming this in the first instance but [MENTION=4800121]Sultanxda[/MENTION] FOR ONEPLUS X??!!!!! This is just amazing news for you to be here. My OnePlus X seems like the ultimate bargain now. Thanks a lot for your work on this :)
[OnePlus X Themes and Apps] siddharthbball:
Thank god Sultan is here now :D
[OnePlus X Themes and Apps] psychem:
didnt work in h2os :(
[OnePlus X Themes and Apps] mieru:
Now it works also on Temaseks CM13 V4.0. Thank you [MENTION=4800121]Sultanxda[/MENTION]
[OnePlus X Themes and Apps] francescovolpe92:
This custom camera replaces the stock?
[OnePlus X Themes and Apps] andlin97:
Howdy, Camera app that's default in Temasek's CM13 crashes if you have 4k enabled and switching to front camera, you need to start the app and change to photo mode as fast as possible or delete all data from the app, flash zip again and good to go. The app also crashed when i was about to take a normal photo, don't know if that's the rom or this mod. Thank you so much for this, it's 100% awesome (with some fixable might-be-bugs)
[OnePlus X Themes and Apps] advance26:
This mod works fine on CM 12.1 with bluespark kernel V94.

I use the default camera app on CM by MA, it's the snapdragon camera I think !

4K video recording is available

Slowmotion is possible:

- 60 FPS with 1080p

- 90 & 120 FPS with 720p

Great job man, you did really good ;)
[OnePlus X Themes and Apps] Thanasis st:
I was so glad when i saw the 4k option ^_^ THANK YOU!!

https://www.youtube.com/watch?v=esQCdUdj3wk
[OnePlus X Themes and Apps] kbberendsen:
This is probably a stupid question... but can I install this through the stock oneplus recovery or do I have to install a custom one? I would really like to be able to install OTA updates later on.
[OnePlus X Themes and Apps] sarthakspiker:
You will need TWRP.. Use Blu_spark twrp.. And you can flash updates through it.. Read in general section how to update OOS using TWRP.. :)
[OnePlus X Themes and Apps] Kir3:
Search before posting people. SEARCH!

This has been asked on every two pages if you look back.

Yes, it will work.
[OnePlus X Themes and Apps] martinderweisse:
Thanks for this amazing mod! I recently got an OPX ceramic and the camera stuttering in low light conditions was terrifiying! Now that's history thanks to you.

I have two questions: I got that right, that 30 fps 4k vids and image stabilization are for CM roms only? Will these feautures be available for OOS, too?

And my impression of the slomo mode is that the video material is recorded in 480p and then upscaled to 720p or something. Can you confirm? Is there anything you could do about it so that recording is in 720/1080p for real?

Thank you in advance!
[OnePlus X Themes and Apps] Sultanxda:
This has nothing to do with the camera HAL. Snapdragon Camera disables the focus mode option when Zero Shutter Lag is enabled.

There is no upscaling happening anywhere in recorded videos. 720p, even at 120 FPS (slow motion), is true 720p. 4k recording is available on all ROMs. Image stabilization is not supported at all on the OPX.
[OnePlus X Themes and Apps] :
Which camera would you suggest which includes all features?
[OnePlus X Themes and Apps] mafioso16:
https://play.google.com/store/apps/details?id=com.marginz.snap&hl=de

I'm in love with this cam, this one has everything I need and the developer describes it as further development of the Snapdragon Camera.
[OnePlus X Themes and Apps] Nursh:
No updates on making the mod auto flash when CM13.1 got updated? It's really annoying that I have to reflash everytime my phone got updated...
[OnePlus X Themes and Apps] Loureiro:
Come on, you just need to add one more zip at twrp.

If you're flashing directly from ROM, take a look at this: http://t53n.blogspot.pt/2013/01/keep-system-files-when-updating.html
[OnePlus X Themes and Apps] nihilista:
Look one page back and you find a zip member has made which uses the auto backup function of cm.
[OnePlus X Themes and Apps] Kéno40:
Here : http://xdaforums.com/showpost.php?p=66619219&postcount=573
[OnePlus X Themes and Apps] B0unze:
CM 13

I tried it on the official CM13 nightlies and there it also works!

Thnx for the great mod now I can record 4k video.

Both on the google camera and built in CM camera.
[OnePlus X Themes and Apps] celoxocis:
Could the same modifications basically be applied to another phones camera Hal/Blobs which is also using the S5K3M2? I'm working on a device tree and would like to apply your 4K mod to the vanilla blobs and include them in my blob package.
[OnePlus X Themes and Apps] B0unze:
camera crash

after some further testing I found that the camera apps crash a lot more frequent, I hope this can be patched in future versions.
[OnePlus X Themes and Apps] phoberus:
I have two little issues with the mod in combination with Oxygen 3 camera, with other it's working:

HDR needs much more time and it's sometimes extremely oversaturated

can't took a photo for an app like th browser or whatsapp (FC), I need to take the foto and then add it from the storage
[OnePlus X Themes and Apps] Jude Aranha:
[MENTION=4800121]Sultanxda[/MENTION] please update this another time ? Options like 1440p recording by front cam etc are not yet implemented here, humble request :)
[OnePlus X Themes and Apps] B0unze:
since later CM builds this hasn't happened anymore.
[OnePlus X Themes and Apps] Sultanxda:
1440p support has been present in my camera HAL since the very first release. 1440p requires changes to the camera app and ROM, so there's no way for you to use it on a ROM other than my own.
[OnePlus X Themes and Apps] mafioso16:
Thanks for the clarification, I was wondering about the 1440p support in your CM Thread.

I'm glad we have people like you and all the other brilliant developers, but some people show a very special kind of effort, this group clearly includes you :)!
[OnePlus X Themes and Apps] koen12333:
Hello SultanXDA,

The 22 april version of this HAL is very good. I see no blue tint, no frame loss in low light conditions, and in a dozen of test video's only one frame hiccup in one video. However for 1080p60 the viewfinder is a bit struggling (only sometimes, still workable but low frame rate) and auto focus sometimes is slow. I'm using the CM13 nightly of 21-5, built in camera app.
[OnePlus X Themes and Apps] Roykooiman:
This mod doesn't work on h2os :(
[OnePlus X Themes and Apps] :
Did you clear cache & data from the camera app?
[OnePlus X Themes and Apps] variant0:
How can i switch back to stock HAL?
[OnePlus X Themes and Apps] Kéno40:
Reflash your rom.
[OnePlus X Themes and Apps] nasif69:
Flash THIS.