FORUMS

[DEPRECATED][CAMERA][SEMI-MANUAL][COS 12.1] Snapdragon Camera Mod

258 posts
Thanks Meter: 534
 
By fgnm, Senior Member on 25th September 2015, 07:38 PM
Thread Closed Email Thread
[CENTER]This app is now deprecated, a new awesome camera for OnePlus One is now available!
Check out Bacon Camera

Mod Edit: link removed


Hello! Today I want to share my very first project here (so do not be too rude with me :P)

First of all this mod is a porting of CAF' Snapdragon Camera, so a very big thanks to @Sultanxda for the base.
In this mod I've tried to add almost all features from OnePlus One CameraNext, with some special others, so thank you @CyanogenMod too.

A very special thanks go to @BOOTMGR for his awesome patched HAL camera driver! (To use this mod you have to flash his CM_HAL_MOD.zip)

Features:

First of all let's explain why "semi-manual": With this mod you can control: Manual Focus, Manual White Balance, Manual Shutter Speed, Manual Exposure Compensation and 3 different RAW capture options (with DNG conversion).
Is still semi because ISO cannot be controlled manually.

All these features are made WITHOUT Camera2 APIs.

---Camera

- Color Effect
- Scene Mode
- HDR (Available in Scene Mode)
- Clear Image
- SuperMacro
- High Resolution (50-32-24MP Interpolation)
- Manual Exposure compensation
- Manual Shutter Speed (you can manually choose speed from 200ms to 64s)
- Manual Focus (With two modes: Scale Mode and Diopter Mode)
- Manual White Balance (CCT and RBGB Gains *)
- Long touch to change exposure point
- Grids (Rule of Thirds - Fourth - Viewfinder - Diagonals)
- GPS Tag
- Countdown Timer
- Zero Shutter Lag
- Focus Mode and Focus duration
- ISO: Auto, HJR, 100, 200, 400, 800, 1600, 3200
- Continuous Shot (Long press shutter button)
- Anti Banding
- Skin Tone Enhancement
- Wavelet denoise mode
- Saturation, Contrast, Sharpness
- Redeye Reduction
- AE-Bracket
- Luma Adaptation (you can control luma via volume buttons)
- Lens Shade
- Histogram
- (Extended) Face Detection
- RAW Picture Format (Important HERE! Raw formats are: BayerQ10RGGB, BayerM10RGGB, BayerIQ10RGGB. These are real .raw files with Qualcomm encoding, if you want a DNG file you have to check "Save DNG" option, this will slow a bit the shot) (raw files are saved in DCIM/Camera/raw)(No jpeg will be generated)
---Video

- 4K DCI, UHD and so on..
- Tap to Focus
- Pause/Resume recording
- Digital Image Stabilization
- Time-lapse
- Audio source selectable
- Video duration up to 24h
- Possibility to choose storage position
- GPS tag
- Color effects
- Video HDR
- White Balance
- Video in High FrameRate (Both HFR and HSR works**)
- Flash
---Panorama

The same you find in CameraNext
---Gallery

- The gallery is the same of CameraNext, BUT I've enabled TinyPlanet for all kind of picture (I don't know if it is useful but I've done some funny effects )
* Experimental features
** HSR Works only with a CAF based ROM

What is missing?
- Timed Shots
- Photosphere
- Grids
- HDR
- Clear Image

How to install
--- Prerequisites
- Root
- Xposed Framework

- Install latest LuckyPatcher
- Open Xposed and active LuckyPatcher module
- Reboot

- Install as normal APK

if you cannot use Xposed you should open LuckyPatcher and apply all possible patches to Android Core (in tools options), then try to install as normal APK

Important Notes:
To install you should have Xposed with LuckyPatcher module activated (Or maybe it works also if you install as a simple system app, try it)
In this mod I have unlocked all possible features. Sometime you can choose an option that is not compatible with another and the camera might crash or freeze or something else. Don't worry, just clear the camera from recent apps (or in extreme cases Clear App Data).
Zero Shutter Lag has always to be ON when you use flash, otherwise you will have splitted image.
Zero Shutter Lag is not compatible with Continuous Auto Focus (CAF) so do not use it with ZSL enabled.
Probably when you will launch this app for the first time shutter button will not work, simply just clear the camera from recent apps and reopen.
If you launch CameraNext first, and then SnapCam Mod, shutter button will not work (I really don't know why), again just clear two cameras from recent apps and all should work fine.


In other words: if something doesn't work clear camera from recent apps

This Mod works only on OnePlus One (AKA Bacon) with patched HAL driver! Maybe on Find7 too, but I don't know.
You can test with others devices but remember that Manual Focus will never work.

Tested only with COS12.1 - I've patched the file media_profiles.xml to have better video quality.. If you want to try just download it from here and replace the original in "/system/etc/" folder, then reboot (do a backup first).

It should works also with CM12.1, let me know.
On CAF based ROMs might have some limitation due to CAF settings.

That's all I think, for the next weeks I will be very busy with work so I've decided to release it also if is not finished yet. Hope you will like!

If you think that I've done a good work, please consider to support me with a small donation
Thank you

Changelogs

--- 0.1

- init release
--- 0.2

- Manual White Balance (CCT)!
- Wavelet denoise mode
- Skintone bar for any scene
- Luma Adaptation (you can control luma via volume buttons)
- Lens Shade
- Rearranged menu with a manual section
- CAF users now should be able to set Shutter Speed only up to 2sec
--- 0.3

- Manual Exposure Compensation
- HDR (Available in Scene Mode)(Works only without ZSL)
- Clear Image (Works only with ZSL)
- SuperZoom (50MP Interpolation)(Works only with ZSL)
---Advanced Features
- Chroma Flash
- Opti-Zoom
- Refocus
- Double tap back button to exit (as @hogze94 requested)
- Fix ZSL and Continuous AutoFocus (now they can be used together)
- Simple OTA checker (server will not receive information of any kind)
- Fix Auto-HDR (now should work)
- HDR Need 1x Frame
- ProgressBar during shooting
--- 0.4

- LuckyPatcher is no longer required ^.^
- Manual White Balance in RGB gains mode (Experimental)
- SeekBar to control Manual White Balance CCT
- Removed HFR 240 (camera HAL/hardware problem(?), no possible workaround)
- Unlocked HFR 90-120 for 1080p (with 120fps quality is very poor, aka horrible)
- Accurate ViewFinder (now the preview respect resolution ratio)
- SuperZoom now become High Resolution (with 50-32-24 megapixel by image interpolation)
- SuperMacro activated by default when you use the zoom
- Fixed some issues with focus manager (not perfect yet)
- Added more Color Effects
- Oppo Electronic Image Stabilization
--- 0.5

- Long touch to change exposure point
- Grids (Rule of Thirds - Fourth - Viewfinder - Diagonals)
- Fixed Skintone seekbar issue
- Fast DNG conversion (prepared for raw + dng + jpg capturing)
- (Extended)Face Detection
- New Histogram
- Added (16:9) 9,7 megapixel resolution
- Tap to Focus in Video Module
- Pause/Resume Video Recording
- Removed h265 encoder (it seems not supported by ROM)
- Various fixes

Tested only with COS12.1
/system/etc/media_profile.xml patch (download it from here, replace and reboot, this require root)
- MPEG4 video encoder for HFR ([email protected] looks better)
- h264 patched for better quality
--- 0.6

Uninstall previous version first!
- Many bug Fixes
- First UI improvement
- Power Shutter
- Download Button in OTA Checker
- Removed "Advanced Features"
- Focus before shot/record
- Audio source selectable
- Anti Banding in Camcorder
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-09-25-19-56-54.jpg
Views:	11804
Size:	193.0 KB
ID:	3486044   Click image for larger version

Name:	Screenshot_2015-09-28-16-09-24.jpg
Views:	10458
Size:	104.4 KB
ID:	3489079   Click image for larger version

Name:	Screenshot_2015-09-28-16-09-35.jpg
Views:	10426
Size:	103.0 KB
ID:	3489080  
Attached Files
File Type: apk SnapCam.apk - [Click for QR Code] (7.56 MB, 4162 views)
File Type: apk SnapCam_0.2.apk - [Click for QR Code] (7.56 MB, 1028 views)
File Type: apk SnapCam_0.3.apk - [Click for QR Code] (7.62 MB, 1486 views)
File Type: apk SnapCam_0.4.apk - [Click for QR Code] (7.63 MB, 2576 views)
File Type: apk SnapCam_0.5.apk - [Click for QR Code] (7.66 MB, 3552 views)
File Type: gz media_profiles.xml.tar.gz - [Click for QR Code] (2.9 KB, 1324 views)
File Type: apk SnapCam_0.6.apk - [Click for QR Code] (7.67 MB, 22922 views)
The Following 39 Users Say Thank You to fgnm For This Useful Post: [ View ] Gift fgnm Ad-Free
25th September 2015, 08:16 PM |#2  
Senior Member
Thanks Meter: 154
 
More
Woah very nice. Will check this out ASAP.
The Following User Says Thank You to runderekrun For This Useful Post: [ View ] Gift runderekrun Ad-Free
25th September 2015, 08:35 PM |#3  
manup85cupra's Avatar
Senior Member
Flag Brno
Thanks Meter: 63
 
More
Hello. For me is not installing. Im getting an error message. Im not a caf user

Inviato dal mio A0001 utilizzando Tapatalk
25th September 2015, 09:02 PM |#4  
Senior Member
Thanks Meter: 62
 
More
Is there anything special that I need to do to install on sultanxdas rom ?
25th September 2015, 09:09 PM |#5  
OP Senior Member
Thanks Meter: 534
 
More
Quote:
Originally Posted by manup85cupra

Hello. For me is not installing. Im getting an error message. Im not a caf user

Inviato dal mio A0001 utilizzando Tapatalk

You just need Cyanogen OS 12.1, caf ROM is not required
I'm so sorry but to make Snapdragon Camera working on non caf ROM I've to access to android hidden API (android.hardware.camera) so to install you should have xposed with LuckyPatcher module actived, or maybe if you have only root try to install as system app
The Following 2 Users Say Thank You to fgnm For This Useful Post: [ View ] Gift fgnm Ad-Free
25th September 2015, 09:32 PM |#6  
manup85cupra's Avatar
Senior Member
Flag Brno
Thanks Meter: 63
 
More
Hello, i cannot use luckypatcher im on exodus. i tried to move the app in system/app rw-r-r but still not working...
25th September 2015, 09:35 PM |#7  
1asbak1's Avatar
Senior Member
Thanks Meter: 96
 
More
Dude. This is simply amazing, exactly what i was hoping for. For. Months now. Will test when the new day breaks! Wow. I am very impressed with the this thread already.

Sent from my Oneplus One using XDA Free mobile app
The Following User Says Thank You to 1asbak1 For This Useful Post: [ View ] Gift 1asbak1 Ad-Free
25th September 2015, 09:44 PM |#8  
OP Senior Member
Thanks Meter: 534
 
More
Quote:
Originally Posted by manup85cupra

Hello, i cannot use luckypatcher im on exodus. i tried to move the app in system/app rw-r-r but still not working...

I'm sorry but LuckyPatcher is the only way that I know to install this kind of apps..
Why you can't use it?
25th September 2015, 10:10 PM |#9  
Setting.Out's Avatar
Inactive Recognized Contributor
Flag Asnieres-Sur-Seine
Thanks Meter: 8,477
 
More
Can't seem to install on AOSParadox...

Sent from my A0001 using XDA Premium 4 mobile app
25th September 2015, 10:11 PM |#10  
phanitej's Avatar
Senior Member
Flag Hyderabad
Thanks Meter: 323
 
More
Quote:
Originally Posted by fgnm

I'm sorry but LuckyPatcher is the only way that I know to install this kind of apps..
Why you can't use it?

I guess that's a restriction included in rom to protect the Hard work of many app developers
Edit : I'm gonna try in on minimal os tomorrow one time permits. Will report back.
Sent from Nowhere
25th September 2015, 10:21 PM |#11  
OP Senior Member
Thanks Meter: 534
 
More
Quote:
Originally Posted by Setting.Out

Can't seem to install on AOSParadox...

Sent from my A0001 using XDA Premium 4 mobile app


Have you installed LuckyPatcher module for Xposed first?
Basically android does not permit to install app with system android package, to communicate with HAL driver I've included in the app mine android.hardware.camera package so you must patch android core with LuckyPatcher in order to install the app

Inviato dal mio A0001 con XDA
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes