Hi all,
I'm using Paul's great Gr1 (GB 2.3.4) from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
So, I was longing for a respective camera mod - similar to somemadcaaant's mod but for GB/ Gr1. As no mod for Gr1 surfaced until now, I decided to rip apart the app by myself.
After some googling and a time intensive code analysis, I figured out how to accomplish what I was looking for (no shutter sounds, quality improvements).
I finally decided to share my mod with the community.
You can flash it with the update zip in CWM or just copy the apk to \system\app using a root file explorer.
NB: Unfortunately I was not able to make most of the Full-HD video mods work. After some testing I came to the conclusion, it must be some kernel bug because there are no hints in the logcat, that something is going wrong. And even the stock app behaves in the same way!
Maybe it's just happening to me, so provide some feedback/ hints here please!
I'm sharing it anyway, because maybe somebody finds it useful like it is.
Please find the resulting apk (plus update script) attached to this post. Enjoy!
Installation:
Flash the attached zip with CWM ("install zip from sd-card") or copy the apk to your \system\app folder manually.
I modded the following (please note the current restrictions!):
Disabled shutter & AF sounds (still & video) - timer sounds are still enabled (on purpose --> no change!)
Increased preview fps to 40 (--> reduced page tearing)
Changed default to show video after capture to false
Picture quality:
Set normal picture quality to 80
Set fine picture quality to 95
Set superfine picture quality to 100
1080p:
*Set FPS to 30
*Set normal video quality to 7Mbs (=fine in LG app)
*Set fine video quality to 12Mbs
*Set superfine video quality to 17Mbs
Set audio bitrate to 128Kbs
*not working due to buggy kernel (Gr1)? --> reverts to default 15fps & 9Mbs
720p:
Set normal video quality to 4Mbs (=superfine in LG app)
Set fine video quality to 9Mbs
Set superfine video quality to 14Mbs
Set audio bitrate to 128Kbs
PS:
1. Zoom is working now (no crash on Paul's Gr1) !!
2. If you have a darker icon for your camera app, then update script worked like it should!
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!
This mod is valid for stock roms?
Enviado desde mi LG-P990 usando Tapatalk
@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo
AndiCP said:
Hi all,
I'm using Paul's great Gr1 from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
....
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!
Click to expand...
Click to collapse
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.
how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?
Good work
i have a gr2 i will test your camera mod
thanks
Thanks for your posts guys!
el_liberator said:
@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo
Click to expand...
Click to collapse
yup
ksekhar said:
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.
Click to expand...
Click to collapse
You're welcome!
I don't like 4:3 too. Let's see what I can do.
pastime1971 said:
how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?
Click to expand...
Click to collapse
It's sort of a hack. I disabled it by removing the middle layer.
To make it short: The app actually plays the sound, but the sounds won't be loaded in the first place There isn't even an error message in log cat about that though!
If you just remove the actual playing part, it simply plays the default sound instead (like you mentioned).
About pic quality...didn't notice that so far, will test it.
vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
Thanks! I'm eager to hear your feedback for the Gr2 (esp. if it also reverts the Full-HD settings)!
Looking forward to more feedback!
vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
I'm going to test it too today.
Update: can you post the zip file, because I can't overwrite the camera apk ...
Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc
Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Sent from my Optimus 2X using XDA App
somemadcaaant said:
Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc
Click to expand...
Click to collapse
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
action294 said:
Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Click to expand...
Click to collapse
Nope. Plain modded LG GB cam app.
AndiCP said:
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
Nope. Plain modded LG GB cam app.
Click to expand...
Click to collapse
Dude this is great that your working on this for GB for the O2X. I have a thread in the G2X forums working on the same thing. Question how did you fix the zoom crash, I also use apktool , so let me know thanks.
Is this working for CM7 or people having some problems ?
sahilkhurana said:
Is this working for CM7 or people having some problems ?
Click to expand...
Click to collapse
+1 here, would it work with CM7?
Does it actually removes the "mist" effect from the camera when taking pictures? stock v10d removes(without any fix), tho in CM7 it's still there.
Any chance of updating this work with the camera module from the latest leaked V20c ROM (eg. Flair GB) or V20f (Korean??)?
LG have fixed the video zoom problem and upped the frame rate for 1080p to 24fps in V20c.
But I am still really disappointed with LG's lack of progress with the still photo quality. The white haze problem is not so noticeable (color saturation still no where as good as the Nokia cameras) but the image is still very grainy and I suspect that is all we are going to get Could do with your tweaking magic
greetings, I wonder if you think some mod make the camera view has achieved stability with ginger roms version based on 20c?, a greeting
Modded V20e stock camera
Hi all,
I went on and successfully modded the stock camera app of V20e.
In contrast to Gr1, everything I modded is working well in V20e now.
Please go ahead and dl my latest mod here.
Enjoy!
AndiCP
Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App
mach2005 said:
Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
You said that before on the corresponding thread.
Read my answer there.
does it work on latest v20l? can you see if with this new update, you can enhance 1080p again? you wrote it couldn't be enhanced due to kernel problems... probably with the final one, have been resolved?
thanks
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
I have managed to put the default camera.apk and media_profiles.xml from CM7.1.0
to my mobile. I noticed small difference a bit better i think lik 12fps...
I have to mention that the light in the room was average.. when I had more light the frames gone up to like 25-26 fps... (i did monitored it with fraps) i have to try to daylight now...
Btw is that a general issue for all in dark video takes or its something wrong with my phone and/or software?
Any suggestions?
I am quite sure it has something to do with cm7 camera app. Alot of people do complaint about the quality of cm7's camera app comparing to the stock LG camera app on stock roms.
It's not a fault of CM team, the camera library is closed source, so it is hard to understand how O2X camera works.
Since I use the camcorder, I had to leave CM7 waiting for a fix
sodade21 said:
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
Click to expand...
Click to collapse
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
ktxed said:
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
Click to expand...
Click to collapse
oh i see.. I'll try that thank you!
hmm this is interesting.. i too am not so happy with the camera on CM7.2 temasek
there's no way to install the stock camera apk on CM roms?
what i dearly miss from that camera is the ability for faster timer shots (2s).. the fastest timer is 10s for CM7 =\
Hi!
I have one question.
I tested CyanogenMOD 9 RC1 by maclaw ROM, but the camera app still not totally works.
I tried with others camera apps and this apps gave crash error.
Exist another way to can to use the camera with more functions??
I guess the RC version is a near final version is a release candidate, so I think that the camera should work a little better, or otherwise should still be in Beta.
Exist another way to use a camera with apps like instagram, hdr camera etc??
Sorry for my english.
Greetings
Well..
The camera works only for taking pictures.
Without them open max drivers, we can't get video recording.
I was browsing the forums. and there are a number of ics roms for other devices.
They don't have video camera but they are RC.
Try any fingersoft camera app, i've heard they work.
same here. camera not work at all i try install other camera apps, still not work
Can anyone suggest a good featured camera application that attributes the potential for turbos camera?
This one is pretty good. Just remember to reboot after installation and to set video on 1080p 30fps.
https://forum.xda-developers.com/droid-turbo/themes-apps/moto-g5-camera-quark-t3575149
antariksh said:
Latest V6.0.62.1 is working perfectly with all the features on Official Stock 7.0
Even disabled the Original Camera app and Double Twist opens the modded camera automatically.
Click to expand...
Click to collapse
I've tried a whole bunch of camera apps and so far the stock app is the only one that seems to be able to access 60fps recording. Every camera2 probe app I've tried reports 30fps as the max reported speed the device can use which makes me think Oppo have locked out any other apps from accessing it.
Another possibility I'm wondering is if it's not actually true 60fps at all - and it's actually using frame interpolation at 30fps to create the 60fps - although it does seem more natural playing back the recordings and doesn't seem to have the slightly "unreal" look that interpolation usually gives.
There also seems to be no way to select any other camera besides one of the main cameras on the back and the selfie camera on the front when using 3rd party apps.
It just seems a bit of a f-you to have them tout the camera setup as a main selling point of the device while at the same time locking out other apps from using basic recording features like 60fps and making no mention of it. 3rd party apps also exist to provide additional tweaks and features that the stock one lacks and I was disappointed to find Filmic Pro and Open Camera can't access 60fps and has trouble with the shutter speed to stop the zebra stripes/banding in some lighting scenarios.
Have you tried porting Google camera? I just downloaded a modded port and can record at 4k 60fps. Looks Pretty good also.
Wootts1 said:
Have you tried porting Google camera? I just downloaded a modded port and can record at 4k 60fps. Looks Pretty good also.
Click to expand...
Click to collapse
Hey any chance of a link to the one you are using?
I have tried a few different apks and the only one that would actually install (or open) is the Camera PX v.8.1.008.341125824.
It suffers from zebra striping indoors and outdoors, pressing on "slo-mo" force closes the app, captures of both pics and video are fairly noisy or grainy, 4k mode force closes as soon as I switch the option and it doesn't have an option I can see to choose framerate.
Definitely would like to try a fully working one.
https://www.cyanogenmods.org/google-camera-oppo-find-x3-pro-gcam/.
I used this one, although a bit of searching around and I found a couple of others I will try as well.
Greatness GCam APKs - Google Camera Port
Modified Google Camera app By Greatness.
www.celsoazevedo.com
Here you can enable bottons for the different lenses. Be aware to use the alternative fix as the app crashes otherwise.
I didn't figure out how to use the stream configs though
Jorgo-Bo said:
Greatness GCam APKs - Google Camera Port
Modified Google Camera app By Greatness.
www.celsoazevedo.com
Here you can enable bottons for the different lenses. Be aware to use the alternative fix as the app crashes otherwise.
I didn't figure out how to use the stream configs though
Click to expand...
Click to collapse
i tried the greatness apk, but none of "aux camera buttons" changed the focal length to uww. which version do you use?
Juan_Largearm said:
Hey any chance of a link to the one you are using?
I have tried a few different apks and the only one that would actually install (or open) is the Camera PX v.8.1.008.341125824.
It suffers from zebra striping indoors and outdoors, pressing on "slo-mo" force closes the app, captures of both pics and video are fairly noisy or grainy, 4k mode force closes as soon as I switch the option and it doesn't have an option I can see to choose framerate.
Definitely would like to try a fully working one.
Click to expand...
Click to collapse
Hey, I'm using this version. But i don't remember where I downloaded it from.
Ganluma said:
Hey, I'm using this version. But i don't remember where I downloaded it from.
Click to expand...
Click to collapse
Can you use the UWW lens?
sbeee said:
Can you use the UWW lens?
Click to expand...
Click to collapse
No, unfortunately not. Only 1x and 2x. But the rest works normal.