yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] 60nine:
before you do anything described below:

1. backup your rom

2. use computer for editing xml

3. i'm not responsible if you do something wrong to your phone (it works for me on bruce's stock kk v20f rooted with xdabbeb 3.2 mod)

procedure (which works for me):

1. download preferred xdabbeb mod zip file for your rom (i assume 4.x is for g3 rom)

2. extract it somewhere

3. find "media_profiles.xml" in "system/etc" folder

4. open xml and find 120p fps setting

<EncoderProfile quality="hfr720p" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="12000000"

width="1280"

height="720"

frameRate="120" />

<Audio codec="aac"

bitRate="156000"

sampleRate="48000"

channels="2" />

</EncoderProfile>

5. change 12000000 to double (24000000) or even 30000000, not more

6. save xml

7. zip the whole package again

8. flash it in recovery

9. wipe cache&dalvik (may not be needed but i always do it)

enjoy
[G2 Android Development] unseen1:
hey my lg g2 went crazy after flashing v. 4.0.0 over the Lam Hoang G3 rom.

isnt it supported yet?
[G2 Android Development] sarvam:
I purchased back lens cover comes with buttons, its easy to change, once you open the back cover carefully, you will find some screws to open lens and button tray.
[G2 Android Development] ALIEN-3-:
Ok , thank you , I see on eBay that is a cheap part , I will buy .
[G2 Android Development] xdabbeb:
Update on the "OK Google" everywhere conflict:

I spent some time today looking into it, and found that there are actually other LG devices that are experiencing this conflict as well (GFlex, L70, and I assume others). It has nothing to do with the apk, but rather the support binaries. The fact that it works for some when running 100% stock G2 fw seems to be more chance than anything purposeful on LG or Google's part. The Google camera ignores the recording status key, so that's why it (along with other 3rd party apps, I would assume) doesn't give an error. I was able to bypass this check, and have the LG Camera record video, but I noticed that it stutters when OK Google listening everywhere is active. As such, I don't consider that a good workaround. For what it's worth, the Google camera did the same thing. If someone running the G Pro 2 ported rom wants to try it out and report their results, it might provide some insight, but I already attempted to bring in more of the GPro2 support binaries/drivers, etc and it made no difference. The LG Voice recording app displays the same behavior. At this time, I don't see a clean resolution for the conflict.

EDIT: Another option is to use a tasker profile as outlined by [MENTION=4940938]johker216[/MENTION] here:

http://xdaforums.com/showthread.php?t=2826501

I think I actually had that in the OP at one point (when the Q&A was there), and it was still ignored along with everything else. Might want to ask [MENTION=5364308]XxZombiePikachu[/MENTION] to add this to the official Q&A thread though.

Another possibility is that people are referring to the more washed-out images in low light situations which is a result of the automatic night mode that kicks in. I had this disabled/bypassed in the JB version of this mod, but then people complained about the noise in the images...though they could've always just manually selected night mode :) I may put it back the old way for the next version as that's actually how've I've personally been running it all along. I always preferred to have the option/flexibility.
[G2 Android Development] njstein:
[MENTION=2941286]xdabbeb[/MENTION], thanks for looking into the issue and trying to fix it. But to be honest, f*#k Ok Google everywhere, I'd rather have an amazing camera. If you find a way, great! If not, no biggie...

Keep up the great work!
[G2 Android Development] z3nith66:
Smartphone cameras are still weak in low lights so I usually take two pictures to have what to chose from, one normal and one with night mode. I would also prefer it this way.
[G2 Android Development] XxZombiePikachu:
just to point out it has been in the most common questions section of the q&a since the thread was opened
[G2 Android Development] sarvam:
i consider noise is way too much better than automatic night mode, most of best camera devices like iphone's and galaxy's have the noise at night camera,

By the Way thanks for adding it back for next version...
[G2 Android Development] ShahinTehShiz:
No idea what I'm doing wrong here guys, and after looking through the FAQs, I couldn't find a solid answer either.

I'm on stock rooted + stock recovery. I downloaded and installed the apk file (version 3.2.0), and clicked backup.

After this was done, I clicked install. It took a while, then my phone restarted. There's no extra camera app or anything, and my stock camera is still the same, so I have no idea what I'm looking for?

After doing this aswell, my phone now says "com.android.gapps has stopped working" everytime I boot up.

Any ideas?

Thanks in advance!
[G2 Android Development] 60nine:
there isn't any "extra camera app" because this replaces the stock camera app with the modded one...

did you even tried to open camera and see if you have uhd resolution or 120 fps mode when you enter the video mode settings?
[G2 Android Development] ShahinTehShiz:
Welp, you were right. Silly of me to not check the video settings!
[G2 Android Development] bigtroger:
Hello. I hawe Lg G2 80220d whit TWRP recocovery. Which package i need to flash? Thx 4 help.
[G2 Android Development] kryogenik:
+1 for this if possible.
[G2 Android Development] ipsmaxes:
so hi.. heh

I installed this camera mod and it was working just fine, but I noticed that it was way too hot, and my battery life seemed to drain alot faster

even with the camera not open in the background.

now as I had rooted my phone on the same day my first thought was that that was the reason for these things..

so in a stupid impuls I reset my device, deleting my backup of the stock camera..

now yes you can go and hate on me because I also didn't make a nandroid backup :/

but please can anyone help me, if anyone still has a backup of their stock camera

could they be so kind to upload their backup of the app, as well as give me some instructions on where to put the files?

because right now I'm pretty confused what is the backup folder etc..

I'm on an lg d802

thanks in advance :(
[G2 Android Development] 60nine:
[MENTION=5819542]ipsmaxes[/MENTION]

here is the list of all stock apps for download (JB / Kitkat)

http://xdaforums.com/showthread.php?t=2670972

didn't try the links, but i hope they work...

i think you have to put those two files in system/apps folder (deleting the existing ones prior to that), and then set the permissions to rwrr (644) for the new files...

restart the phone and make sure you also clear data/cache for camera app... i hope it helps
[G2 Android Development] ipsmaxes:
they work but I get errors when I try to extract the files..

also I don't have a custom recovery so will this work without them?

and could anyone else try extracting those zips and then maybe uploading the files here?

+ how to install em :/

sorry I'm a bit of a noob
[G2 Android Development] 60nine:
i just downloaded zip file from mega (google drive mirror also works)... extracted witout a problem (on my pc) - maybe you didn't download the files 100%...

you don't need to have custom recovery, just root and a file manager which supports root to be able to copy those two files in the system folder (like ES explorer or Root Explorer)
[G2 Android Development] ipsmaxes:
can you please upload the files not in a zip here then? I keep getting this error

http://gyazo.com/c5e42248b23676b6fa2b4acc5e14f9fa

if I use root browser where would I have to put these files exactly?
[G2 Android Development] 60nine:
you clearly have a broken download... try to download again...

download size of the zip file should be 25.340.759 bytes (24.1 mb)

i've explained where and how to put those two files in my first reply (i edited it before you replied to it - take a look)

btw i can't upload them here because the size exceeds the xda limit for uploading

ok... just had the same error when extracting with winrar... don't use winrar... i extracted the files without a problem in total commander...
[G2 Android Development] ipsmaxes:
thank you it worked now.

when I put the files in system/app it didn't replace anything though

and I don't know how to set the permissions :/

I have found a folder in system called priv-app that does contain a lg camera app already! do I put both files there then?

it doesn't containt .odex file though
[G2 Android Development] 60nine:
ok, i also don't have odex file in priv-app folder... but that's because i use modded app i assume...

yes, put both files there and change permissions

note for the future:

why don't you try something for yourself instead of askind 100000 questions? it's not like you're messing around with the important system data to brake something down...

and i'm sure this has already been asked so search can help too ;)
[G2 Android Development] ipsmaxes:
sorry I'm always very scared to do stuff like this

let alone experiment haha :o

you were a great help though! thanks alot

I'll edit this post if it worked properly
[G2 Android Development] 60nine:
everyone is scared to mess with their phones - we have all been there in one point...

btw it's always recommended to have a custom recovery so you can backup your rom&files prior messing with the phone... i learned this the hard way on this device, my luck this was on the 2nd day i had the device so i didn't have any important files on the device...

cheers
[G2 Android Development] DoctorB0NG:
Is anyone having issues with pictures that are taken in portrait mode? Pictures taken in portrait appear fine in the gallery however, they are rotated 90 degrees when sent over MMS. In addition, checking the details under gallery shows that the picture is oriented 90 degrees.
[G2 Android Development] 60nine:
yes, it has been mentioned already, no fix so far
[G2 Android Development] xdabbeb:
Quick question: Does anyone actually use the Shot & Clear mode on the camera at all? I've been thinking about getting rid of it for the sole reason that I prefer not having the scrollbar on the shot mode dialog...which means getting rid of one item.
[G2 Android Development] MrDarkKV:
Yeah, it seems very gimmicky... Doubt anyone actually uses it..
[G2 Android Development] jlk_250:
I have played with it to see what it does. In short,I would much rather get rid of the scrollbar and have it go away than to keep it.
[G2 Android Development] Ramsey:
I like Shot & Clear.

If you do get rid of it, can you make a version with it for those who do want that feature?
[G2 Android Development] kryogenik:
It could go for me. Gimmicky and never used.
[G2 Android Development] 0355:
I like shot & clear too... Please make two versions, one w/ and one w/o

Sent from my LG-D802 with Tapatalk 4
[G2 Android Development] subhani:
Me too. Timed shot not so much though.
[G2 Android Development] d_Schizzo:
I like shot & clear too. If you ask me you can remove dual camera.
[G2 Android Development] CROrION:
There was some talk on removing hdr fc on 4.0, but stil nothing?
[G2 Android Development] Pyloge:
Yeah, i don't know are there any people really use this. It looks so stupid when you on the front side.
[G2 Android Development] SPBoss:
Good suggestion, dual camera is hardly used by anyone, shot and clear is more useful I'm sure
[G2 Android Development] MikeJennni:
I've never used dual camera or shoot and clear. I think it looks fancy to have the option though....
[G2 Android Development] xdabbeb:
Well, I guess I shouldn't be surprised that there's no consensus :)

...And, no, I won't be making two or more versions for each release, so if there's no overwhelming vote for one then I guess I'll just leave them all in. The reason I'm asking now is that I'm preparing a fairly big release that will also be able to be used on the g3 ports. After messing with the g3 app itself I've decided to stop working on it...It really is just form over function and I don't see the point.
[G2 Android Development] username4this:
Quick question:

Does this replace the stock camera with a new one or does it just patch the current camera app?
[G2 Android Development] SPBoss:
It patches the camera app, check under camera video settings after flashing to confirm it worked. You will see UHD and slow motion options, camera picture quality is also so much better than stock
[G2 Android Development] harkis123:
Hey xdabbeb , thanks for you work , been using this mod since first days of my G2 phone. I just want to ask you , will you push the update in second week? I am going to vacation , so the camera on my phone will be important , I just want to know , if it will be possible to get new version soon :)

Regards .
[G2 Android Development] AuzanAgnar:
Can I have the apk? I'm using aosp roms
[G2 Android Development] 60nine:
how about reading the OP 5 more times?
[G2 Android Development] Nigglenuts:
Are your AOSP ROMs Stock? Or Stock Based? Lol
[G2 Android Development] kimitza:
Installing this mod on pardus 7.5 classic gives a bootloop. So avoid.
[G2 Android Development] iall5tar:
Which version did you installed?

Let me guess... 4.0.0?
[G2 Android Development] kimitza:
Nope. I know 4.0 is for g3 ports. Even more,4.0 will give fc on cg3 1.2,because it has a newer version. I installed 3.2 on pardus 7.5 classic.
[G2 Android Development] iall5tar:
Btw...Pardus 7.5 has already this mod...

and CloudyG2 1.2 has already a own versión 4.1.0...
[G2 Android Development] erto90:
Yeah but 4.1 is nothing special vs 4.0 as I saw..

Hope the new release will rocks!
[G2 Android Development] kimitza:
I didn't had 4k recording or slo mo on pardus 7.5. I didn't installed anything else and i got the boobloop with the mod. That's why i reported here.
[G2 Android Development] xdabbeb:
I just made a pretty big breakthrough on the camera. I had mentioned in the past that I had found a fix for the random HDR crash and in addition had made a number of improvements to photo quality across the board, but that there were complications that resulted from these changes (namely an inverted preview/image). Well, today I resolved that issue so I can move forward with a new release.

In addition, I've rebuilt the apk from the ground up, taking bits from previous versions as well as adding quite a bit of my own code. This new apk will be able to be installed as a regular app (doesn't need to be in system) and will be able to run alongside the stock camera app (or the previous version of this mod). It has a number of new features as well. I'm going to be separating the installation of the system binaries/driver from the apk itself going forward. Expect a release in the next day or two. Big thanks to [MENTION=711482]beaups[/MENTION] for listening to my disassembly ranting.
[G2 Android Development] pendroz:
Already embedded Xdabbeb's Cam Pardus 7 series

No need to re-flash mod ;)
[G2 Android Development] bender_007:
Hey, congrats m8 :)
[G2 Android Development] kryogenik:
AmazIng. Well done, looking forward to road testing it.
[G2 Android Development] abdel12345:
Awesome. Is it possible that it'll work on aosp Roms?
[G2 Android Development] ffejy462:
I think we all saw that one coming! Sorry for giving you a hard time, I think that's been asked a couple times, but you never know...
[G2 Android Development] abdel12345:
I've been using this for a while and followed the thread and I know it has been only for stock like lg Roms but I thought maybe there's a chance on aosp considering it' now will install as an app. It can't hurt to ask:p
[G2 Android Development] username4this:
I flashed this (Cloudy G3 ROM) and I'm still not sure it's working.

How do I know the mod flashed correctly and it's active?

What am I suppose to see?
[G2 Android Development] ryan4130:
You could have read a little but, open camera in settings there Will be iso up to 1600 in video there will uhd 4k recording 120 slo mo and magic focus or something like that
[G2 Android Development] erto90:
I really hope that new version will bring us the more frames on low light like Jishnu camera for g3 does!( I remember was working great also on our g2 but the developing has stopped :( )
[G2 Android Development] xdabbeb:
Increasing the minimum frame rate for photo modes has been a part of this mod since the beginning (that's where it came from). I don't agree with blindly increasing them across the board, however, as there are other side-effects that need to be taken into account (ISO/Luminance tables get wonky, etc). Properly tuning a camera and driver takes more than just increasing text/integer values.

Also, I'm going to give you the benefit of the doubt here and assume you aren't just trolling to get everything started up again, but please use some common sense when posting things like you just did. You've been on this thread long enough that you should know what I'm referring to, and the moderators will not tolerate it.
[G2 Android Development] erto90:
Yes ok maybe I write it in a bad way..

But tried that camera mod and frame was higher without side-effects that I saw..but I'm no expert on this thing and I totally trust you !
[G2 Android Development] edwrech:
D802 cloudy g3,4.0.0

Hdr not working

http://pastebin.com/Rha2bv0f
[G2 Android Development] masteryx:
Though not a big deal, I'm unable to obtain higher quality 720p @ 120fps video by simply increasing the bitrate in media_profiles.xml. By "higher quality" I mean less pixelated frames - the default ones look just like a 360p zoomed at 2x. So my question is for those who managed to improve the quality "pixel-density-wise", if those claims are true: how did you do it?

Honestly, I'm not expecting miracles. If xdabbeb set the bitrate at 12000000, I suppose he knew best what the upper limit is. I went as high as 36000000, set the correct permissions, wiped dalvik-cache etc. but no improvement.
[G2 Android Development] nic85:
works on G3 D855 stock v10g ROM?
[G2 Android Development] lurtis:
I'm SuperG2 preview and after flashing I get this when trying to take video.... Tried version 3.2 and 3.1 same thing. Any ideas? Also... Cannot record video at all it just doesn't record.
[G2 Android Development] alessa:
I use the rom g3 cloudy and I flash the camera CG3 GPro2 Camera. I think you need to flash mod too? and the build prop, what are the best values ​​to be added? thank you.
[G2 Android Development] subhani:
If this can get fixed, it would probably be the biggest improvement to this mod yet. I would be delighted to see that. I'm not sure if the G2 is physically capable though.
[G2 Android Development] IOmega666:
Is anybody using custom dpi? I'm in 380 and i can't make camera to be 480 with App Settings since i've installed xdabbeb's camera, it's the camera or maybe App Settings isn't working anymore?
[G2 Android Development] mood_coolman:
Can i use this mod for my g2 d802 rom cloudy G3 1.2?
[G2 Android Development] kognos:
I have cloudypro II 2.2 that comes with version 3.1 of this mod, but I want to install version 2.2.

Which steps do I have to do?

I know there is a new video player and new library set on version 3.1. So I guess maybe is not as easy as just install 2.2 over current one.

That's why I want to be sure before proceed.

Also, let me know if I can use the apk install or in this case is imperative to install zip using recovery.

Thanks
[G2 Android Development] xdabbeb:
OP updated with the completely revamped mod. I wasn't able to get everything I wanted into this version due to time constraints on my end, but the framework is there for me to add it all in the coming weeks. Please let me know if you run into any issues (but only if you can provide a log!). Enjoy!

EDIT: This mod can now be installed as a regular app and can run alongside the stock camera app. Devs, please read the note at the bottom of the OP. Due to the changes there is no need for and I do not authorize this to be included in any roms going forward. It makes it confusing for the user and fragments any error reporting, etc.

EDIT2: Yes, you will still need a custom recovery to intall the binary/driver package which is necessary to get all of the improvements/fixes.

I noticed a VERY minimal improvement in doubling the rate from 12 to 24, and since people seem to be obsessed with these numbers I increased them in the mod. Personally, I leave it at 12 on my device. The extra space taken isn't worth it imo.

It isn't going to be possible, but even if it were, it wouldn't crack the top 10 :)

Yep, it still works for me (on old version and new one). Perhaps clearing the data on App Settings?
[G2 Android Development] ganggreen30:
So... Your saying it's an app now? And to just download and install? No custom recovery needed? What about our old camera... It's just gonna sit there unused!
[G2 Android Development] demoncamber:
So far so good! Did a quick video, took some pix, works so far.

Sent from my LG-D801
[G2 Android Development] mannequin:
yes, a bit confusing what to do with the old mod and stock camera. uninstall the old mod first, install the new .apk and leave the stock camera alone from that point on?
[G2 Android Development] g.paganini:
I'm not quite sure how to install this one. I'm on Cloudystock 2.4 latest, and I don't have any idea if and what binaries are installed. So in case there are not installed, what should I install first? App or binaries /drivers?
[G2 Android Development] lemach:
Thank you so much for this renew mod!

I am very glad with the virtual flash for front cam, but in low light ambient if automatic brightness is selected the virtual flash have no enought intensity...could you add max brightness in app?

Amazing work!
[G2 Android Development] drmspidi:
Im getting a problem here.

https://www.dropbox.com/s/b2thlim5ob55p6n/Screenshot_2014-08-01-17-11-53.png

G3 1.2

D805
[G2 Android Development] 60nine:
removed old camera via titanium

installed 5.0 version

flashed new binaries (just in case)

everything ok

just wondering if that blurry/paint effect in the pictures can be avoided somehow (sharpness equals zero, like it doesn't exist)
[G2 Android Development] xdabbeb:
Not sure how it's confusing. If you don't want to use the stock camera (or old mod that's in system), then don't? Having multiple camera apps installed isn't going to cause any problems.

The install steps are in the OP. I doubt any rom would have the driver built in yet since I just posted them.

It might be possible, though I would guess it would require another system permission. You can try installing this as a system app to see if it already has that ability.

Are you running a custom dpi or resolution? It looks like the layout is getting confused. If you are, try using XPosed module AppSettings to force this app to 480

I've reduced it significantly from stock (and previous versions), but it's going to be there to some degree due to the nature of how LG implemented the camera. If you shoot in Normal mode I've bypassed the automatic switch to night mode which further smoothes everything...which reminds me that I forgot to put that in the changelog.
[G2 Android Development] drmspidi:
No, nothing
[G2 Android Development] xdabbeb:
Actually, after looking at your screenshot again it seems like this may be due to a slight hw difference. I may be able to make a version that works for you, but it won't be for at least a week or two. I'll need to get more information from you first, however. Check in with me after next week via PM or on irc.
[G2 Android Development] drmspidi:
Sure thing.

Anything I can help
[G2 Android Development] Dustin7892:
It seems to be dramatically more fuzzy in lower room lighting. Haven't taken it outside yet. Will try that on the way to the gym and report back in a bit.
[G2 Android Development] bender_007:
Again, thank you for your work :)
[G2 Android Development] alessa:
hello I flash rom binaries for g3 (g3 cloudy) and I install the 5.0 apk, but I have the impression that the top of the smartphone heats up when I take a photo ... I am is only in case?