[APP] [MOD] [v3.2] Camera X - Burst, 240FPS Slow-Motion, EIS & More

Are you rooted?


  • Total voters
    529

ViRb3

Senior Member
Aug 25, 2014
388
809
0
I came across a thread that claimed it's possible to enable EIS (Electronic Image Stabilization) on Nexus 5X through a build.prop line. I was skeptical at first, but when I tried it for myself, it really worked! I immediately thought about the other features our device was mysteriously missing, but are available on the Nexus 6P, which has the same camera. The same day I opened up 5 desktops on my Windows laptop, launched my magic tools and denied sleep for a few days.

Today, I am proud to present Camera X!

Features:
  1. This is a Google Camera mod
  2. Burst mode
    To enable, simply disable 'Smart Burst' from the camera app settings.
  3. Smart Burst mode
  4. 240fps slow-motion*
  5. Video EIS**

How to enable EIS? **
EIS (electronic image stabilization) is triggered in the camera driver library and is impossible to alter without root access (source code of EIS check, found in 'camera.msm8992.so').

If you are a root user, you can:
  • Edit your 'build.prop' file (using root file manager or Build Prop Editor app from PlayStore) and add these two lines:
    Code:
    persist.camera.eis.enable=1
    persist.camera.is_mode=4
  • Use the following flashable ZIP. Thank you synesthete for your work!
You will see 'Camera Settings > Resolution & Quality > Enable video stabilization' after a phone reboot.

NOTE: EIS does not work with 4K video due to hardware limitations!

NOTE: persist lines will have an effect even if you remove them, so set them back to '0' if you want to disable them!

What's IS mode?
Code:
       //IS type will be 0 unless EIS is supported. If EIS is supported
        //it could either be 1 or 4 depending on the stream and video size
        if (setEis) {
            if (!m_bEisSupportedSize) {
                is_type = IS_TYPE_DIS;
            } else {
                is_type = IS_TYPE_EIS_2_0;
            }
            mStreamConfigInfo.is_type = is_type;
        } else {
            mStreamConfigInfo.is_type = IS_TYPE_NONE;
        }

Story behind Camera X:
I have a Nexus 5X. I began by modding Google Camera to think that it's running on a Nexus 6P. Surprisingly, this enabled Burst Mode!
I started digging in. After 2-3 days of sleepless analysis I found where all features reside and how to enable them. I am constantly trying new tweaks and updating my mod accordingly if something is useful.

Why didn't Google enable these features by default? *
While 240fps works, you will notice that the quality is very low compared to the Nexus 6P, especially in low light. This is due to the processing limitations our device has. The bit rate cannot be increased any more than this (at least software-wise).

Download:
Click me (Google Drive)

Note: In order to avoid having to remove the original camera app, my mod has the package name com.google.android.GoogleCameraX and app name Camera X.
 
Last edited:

ViRb3

Senior Member
Aug 25, 2014
388
809
0
Changelog:

30 Apr 2016 -1
  • Fixed HDR+ not working
30 Apr 2016
  • Updated mod to Google Camera v3.2.042:
    Android N support, UI improvements, faster camera, experimental RAW support, ZSL support
  • Re-implemented mod with new, more stable methods
  • CameraX version system now matches official Google Camera versions
27 Dec 2015 - Renamed app name and package name to avoid having to uninstall the original app (no root required anymore)
27 Dec 2015 - Initial release
 
Last edited:

ViRb3

Senior Member
Aug 25, 2014
388
809
0
Tunables:

Device-specific Native Memory Override in MB

Nexus 5 - 525
Nexus 6 - 580
Nexus 6P - 420
Nexus 5X - 370

Blacklisted Preview Resolutions - Back Camera

Nexus 5X - "1440x1080,1920x1080"

Blacklisted Preview Resolutions - Front Camera

Nexus 5X - "1440x1080,1920x1080"

Max. Allowed Image Reader Count

Default - 15
Samsung Galaxy S6 - 9
Nexus 6 - 9
Nexus 6P - 9
Nexus 5X - 3

//result + 6

Max. HDR+ Burst Frame Count

Default - 8
Nexus 5X - 5
Nexus 6P - 7

Re-processing Image Reader/Writer Count

Default - 1
Nexus 6X - 1
Nexus 6P - 3

Low Resolution Crop Rectangle

//custom calculation for Nexus 6P
 
Last edited:

peikojose

Senior Member
May 13, 2012
1,033
176
83
Wow, it works and it works fine.. I recorded some 240fps videos, no problem! No crashes or FC!

Maybe, we can enable a way (using custom kernels) to make all the cores work at full speed when Camera app is running!

Thanks!!!

BTW can you somehow change the name of the app? Maybe "Camera 6P", that way people wouldn't need to uninstall Camera app (which requires root I think...)
 

dLeTe

Senior Member
Jun 5, 2010
105
15
38
Is there a way to add 4 burst shot without a modded apk?
I was hoping for a simple solution like how adding eis was just a build.prop addition.
 

ViRb3

Senior Member
Aug 25, 2014
388
809
0
Pardon me for asking, but you say no root required and yet your instructions require uninstalling a system app? :confused:
I just realized this as I was going to bed yesterday. I use a custom ROM here and Google Camera is not a system app. I can easily change the package name (and icon), but I am not exactly sure how happy Google would be with that. Any law-knowledgeable person can enlighten me, please?

Maybe, we can enable a way (using custom kernels) to make all the cores work at full speed when Camera app is running
I believe that the interactive governor already does that. One thing we can absolutely do, however, is overclock the CPU for the camera. I will investigate on that, thanks for the suggestion.

Is there a way to add 4 burst shot without a modded apk?
I was hoping for a simple solution like how adding eis was just a build.prop addition.
It *might* be just possible. As far as I could see the build.prop line for EIS is not checked from within Google Camera, therefore there should be another package responsible for that. The existence of a line for burst mode could be very possible. I will look around for that soon.
 
Last edited:
  • Like
Reactions: Jagoflax

darkfangex5

Senior Member
Aug 29, 2010
215
43
0
Glad to report back that I haven't found any issues so far. I turned off smart burst and tried it out, and I could only store maybe 19 shots with the shutter held down, doesn't bother me much as I don't know what the actual limit of non hdr photos are for burst. I was wondering if there was any way of increasing 240fps bit rate. The fact that 240fps works is already a miracle.
 

X7-Ghost

Member
Sep 21, 2015
5
2
0
I did some research about this before hand and the snapdragon 808 and 810 share the same throughput so the only thing stopping the 5x from having the same 19Mbps bitrate is probably the CPU and maybe the lack of additional ram might have something to do with it. In either case the best option in my opinion would be a custom kernel working in conjunction with the camera app.:cowboy:

---------- Post added at 09:45 PM ---------- Previous post was at 09:41 PM ----------

You could also message Gandalf on how he implemented EIS into omnirom. Not sure if he implemented it the same way you did.:confused:
 

0.0

Senior Member
Jan 12, 2010
6,829
3,275
0
In terms of legality, I see users who post modded versions of other apps from companies that will install separately from the original app, e.g., Moto Cam, by changing the package name. I don't see why you couldn't since it isn't a paid app

It would be cool if you did upload one that doesn't require uninstalling the system app for those who do not have and do not want to root
 
Last edited:
  • Like
Reactions: ViRb3

furbyx92

Senior Member
Jan 12, 2012
381
123
73
how did you guys uninstall the stock camera to install the modded one? I'm having trouble figuring out how to do it
You have to be rooted and with a root explorer delete /system/app/Camera folder. You can do it with an app but I don't know which one uninstall system apps.

Sent from my Nexus 5X using Tapatalk
 
  • Like
Reactions: thatgreekgod

thatgreekgod

Member
Dec 15, 2015
17
2
0
31
Lexington
gotcha thanks

Titanium Backup will uninstall system apps.


---------- Post added at 01:42 AM ---------- Previous post was at 01:40 AM ----------

awesome thanks! that worked. I used an app called System app remover (ROOT)
You have to be rooted and with a root explorer delete /system/app/Camera folder. You can do it with an app but I don't know which one uninstall system apps.

Sent from my Nexus 5X using Tapatalk
 

ViRb3

Senior Member
Aug 25, 2014
388
809
0
Would it be possible to add native "smooth motion"
or basically 1080p 60fps into your camera app?
I believe it's totally possible, but it would require a lot of work. I might take a look at that later if I find time, thanks for the suggestion!

Thank you for allowing the mod to be installed without root! :victory:
You're very welcome! :)