yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] xdabbeb:
[IMG="XCam LG"]https://lh3.googleusercontent.com/-ZA8uYaC0mZ0/VOtskek8MiI/AAAAAAAAAPc/4qwIoET0y0E/w850-h415-no/xcam_banner.png[/IMG]

!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!

My goal for this application was to create a more flexible camera solution for LG phones. The camera hardware itself is very capable, but LG didn't necessarily take full advantage of it with their software. This app extends the capabilities of the camera and offers increased control/quality.

This is ONLY for stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.

If you are looking for instructions on using the XCam LG Settings donation app, see the 2nd post.

If you are a developer or have a rooted device and are interested in the advanced camera driver/binaries I have created, see the 3rd post.

This is for Android 4.4.x and higher. If you are looking for older 4.2.x versions of my camera mod see the 4th post.

Installation:

FAQ:

Problems/bugs/errors:

Changelog:

Special Thanks To:

Brut.all & iBotPeaches - apktool

JesusFreke - smali/baksmali

60nine - for the excellent icons and banner

troopii - for the color matrices and commiseration

Please provide any feedback pertaining to bugs or feature requests as I'll be actively working on this project.

Devs: Due to the fact that this mod is available as a normal apk install, there is no need for and I do not authorize it to be included in ANY roms/firmware. It creates confusion for people installing it and fragments any reporting of problems. You can direct them to this thread to install the latest version. Please feel free to use the binaries/driver packages I have created, however. If you do so, you must put a credit in your OP. Though it should go without saying, I do not approve of any use/copying of the code/methods contained herein for your own app/mod.

XDA:DevDB Information

XCam LG, App for the LG G2

Contributors

xdabbeb

Version Information

Status: Stable

Current Stable Version: 6.2.4

Stable Release Date: 2013-11-29

Created 2014-06-20

Last Updated 2016-02-13
[G2 Android Development] xdabbeb:
XCam LG Settings Donation App

!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!

The XCam LG Settings app provides something extra for those who choose to donate and support development. It allows on-the-fly configuration for many aspects of the camera that were previously unavailable.

This is ONLY for stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.

Installation:

Usage:

Problems:

Changelog:
[G2 Android Development] xdabbeb:
LG G2 Advanced Camera Driver/Binary Package

!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!

!!! I AM NOT RESPONSIBLE FOR ANY PROBLEMS THAT OCCUR WHILE INSTALLING/USING THESE DRIVER/BINARY PACKAGES!!!

These are modified driver/binary packages for the LG G2. They provide performance and quality improvements as well as support for additional shot modes/features that were originally found in the LG G Pro 2.

This is ONLY for LG's stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.

Installation:

Problems:

Downloads:

Changelog:

Please provide any feedback pertaining to bugs or feature requests as I'll be actively working on this project.

Devs: Feel free to use the driver/binary packages I have created. You do not need to ask for permission, but if you use them, you must put a credit in your OP. Though it should go without saying, I do not approve of any use/copying of the code/methods contained herein for your own app/mod.
[G2 Android Development] xdabbeb:
Previous Versions

PREVIOUS VERSIONS

Changelog:

Downloads:

Here's a sample of a few 120fps videos shot with this mod

*courtesy of [MENTION=4981174]HenrikSwe[/MENTION]

Thanks to the following people for their generosity:
[G2 Android Development] jayochs:
awesome man, giving a shot now.

---------- Post added at 10:15 PM ---------- Previous post was at 10:09 PM ----------

question.. can you put the regional check back? I assume that's what makes the app look like each versions different one.. for example, I absolutely hate this ui compared to the Verizon ui. it's the reason I never used jishnus new experimental apk because the Black ui version blows. lol

---------- Post added at 10:22 PM ---------- Previous post was at 10:15 PM ----------

WOW dude your intelligent auto is amazing. holy hell. it focuses SO FAST! howcome the regular mode doesn't, because of the higher iso? my god. it focuses so fast in low light, then when the flash comes in its super fast, and it takes pictures so much quicker. IA mode rocks now. wow.
[G2 Android Development] xdabbeb:
I should be able to do that, but I think most people preferred the new UI, so I'll just do a one-off for you. I'll send you a pm when I have it ready.
[G2 Android Development] jayochs:
THAT VIEWFINDER. in IA, there's no lag. it's amazing. is there a way you can do that with normal mode?

---------- Post added at 10:25 PM ---------- Previous post was at 10:24 PM ----------

thanks! hey I'll get used to it though dude, it's ok. I just liked how the white version had customizable side buttons but I'll always be using ia mode on this now.. damn.
[G2 Android Development] xdabbeb:
I could, but then you'd have slightly darker photos in normal mode. I tried to space things out so people had variety, but if you want that for your version let me know. If it turns out everyone prefers that I can make it the norm
[G2 Android Development] jayochs:
all I've gotta say is you're kickin ass so far here lol. I love ia mode because of that super super fast zoom. good thinking on having that variety.

when it comes to suggestion, I think you're rocking the camera portion. I did have one, but then I forgot what it was. oops lol.

for the video camera, the only suggestions are what I'm sure you're already looking at... the crappy auto focus issue and perhaps creating a "set focus" method so we can tap to focus on a spot and it holds that focus area and doesn't continually auto focus.

the other for video is the audio from recording.. as I'm sure you're aware, the g2 suffers from the fate the old htc rezound did, in that the audio has that horrible underwater sound to it. the s3 and s4 and even dna overcame these crappy audio issues, but the g2 is still pretty bad.

---------- Post added at 10:40 PM ---------- Previous post was at 10:35 PM ----------

here's one.. is there a way to default it to starting in IA mode? it always goes back to normal.
[G2 Android Development] emprize:
can this default the IA mode?
[G2 Android Development] xdabbeb:
Thanks for the feedback! I am working on the focus (breathing) issue for the video. My first task is to make it less sensitive to changes, then I'll see about enabling an auto focus lock. It should be possible. The camera api allows for it, at least.

I'll take a look at the audio as well. My guess is an overactive noise reduction.
[G2 Android Development] xdabbeb:
It can be done. I may enable saving of many settings after exiting the app besides size if enough people are interested.
[G2 Android Development] funnyboy027:
How can I set the IA mode is the default when starting Camera app?
[G2 Android Development] jayochs:
Yes please! most of us are liking your IA changes here! haha.

I noticed the framerate of the IA mode changes... sometimes in the dark it's really fast, but in good lighting is slower. kinda odd lol.

and yeah I agree about the overactive noise reduction for the crappy audio. and awesome to hear you're working on the video focus!!
[G2 Android Development] emprize:
and please add the filename structure, not just increment number for filename, can you make the file name create by the date and time?
[G2 Android Development] robfactory:
Sprint Version

Awesome work!

I'm enjoying your tweak of the camera.

Just a few minor things I noticed while using it on the Sprint variant.

1. The capture option using the volume down is broken.

One has to select the zoom out - / zoom in + on the volume.

I like using the volume down as a the shutter key.

Also, like someone else requested. Is there a way to automatically have IA be the default mode.

The same as editing out the video RECORDING Mode

Long Video / MMS video.

I think most of us who use the video feature will be to use the full frame capabilities.
[G2 Android Development] jayochs:
so xdabbeb, I presume you set a super long exposure for low light on ia mode right? noticed the shutter stays open for a really long time with the flash on in ia. not a problem really, but ya just have to stand still in lower light and hope your subjects do too.
[G2 Android Development] xdabbeb:
I guess that depends on your definition of long. It's actually a faster shutter speed than stock. I set IA mode so that it couldn't go any slower than 1/15. If you take a photo with flash, it should lower the iso, but it won't go any slower with the shutter. Check the exif details on the image and you'll see what I mean. I can always make it even faster if that's what people want, but the images will be darker.
[G2 Android Development] xdabbeb:
[MENTION=2687250]robfactory[/MENTION] can you tell me what model and Rom you're using. The volume button works as a shutter for mine, but there may be a problem on other variants.

[MENTION=400353]emprize[/MENTION] I thought it always used the date. Mine are, at least. What are your file names?
[G2 Android Development] flickyamom:
It would be nice if you could work with Jishnu and make a mod that combines both the benefit. Then the G2's camera will really be kick-ass. :D Good job by the way!;)
[G2 Android Development] mannequin:
really great improvement on compression/denoise artifacts! :good:
[G2 Android Development] garywojdan81:
Just flashed 1.1.2. Wow, dude! I can't believe how fast & clear it's become.
[G2 Android Development] jayochs:
tested the video..it's still pretty "meh."

although we talked about this yesterday, it'll probably take some time to completely include the features that we were looking at (tap to focus, which will hold that focus, rather than a CAF)

although it seems that the auto focus is a bit less focusy (if that makes sense) and doesn't seem to "breathe" and "pulse" as hard, it still does it, and it still goes out of focus often, and then you have to kind of move it/jar it to get it to focus on what you want.

progress, though!
[G2 Android Development] xdabbeb:
No bother at all. I understand. CAF breathing was mostly improved via updated binaries. I've also been looking at other vendor's implementations of similar S600-800/IMX135 (Note 3, GS4, Xperia, etc).

Beer sounds great! I think I'll have one.
[G2 Android Development] Steamer86:
I've been having red redddddd wine. Did you simply decrease jpeg compression for quality?
[G2 Android Development] xdabbeb:
I think tap to AF-Lock will be a bit more than I'm willing to undertake at this time (this is just for fun, after all), but who knows...I may get the bug to try it out. My main lack of motivation is that I don't really do much with videos. I mostly take photos.
[G2 Android Development] robfactory:
Thank you

Thanks for all the hard work and updates.

As a mobile photographer, I appreciate it.
[G2 Android Development] xdabbeb:
Just pulling the apk won't work. The support files are needed as well. Backup up and Flashing via recovery is recommended.

You can do them in succession...no need to reboot between. If you want an obvious indicator that it's installed you can look for one of the features I've added that weren't there before...HDR Video, 1600 ISO, etc
[G2 Android Development] jayochs:
ah yeah, i hear ya. eh whatever then, it's fine for what it is. i'll probably be getting a new phone within like 4-6 months anyway :p haha..the new HTC phone is something i'm looking forward to :cool:
[G2 Android Development] xdabbeb:
:) You do seem to have a whole lot of phones!
[G2 Android Development] cristy7610:
Thank you!! I will flash the version 1.2.0 now and I want to know if I have to make the same steps with backup files and after that to flash the new mod?
[G2 Android Development] dajmanjt:
Hey I forgot to ask this earlier. If I had already flashed the mod AND the camera from the other camera mod thread did I need to reset to stock before installing yours? I'm just wondering about the modified lib files and such. Thanks!
[G2 Android Development] robfactory:
At what framerate is the HDR video?

Also, is there a way to eliminate the Long Video / MMS Video pop up?

AS far as the HTC Video quality.

Not only is the auto focus on that phone really good, but the 3rd mic in from of the phone helped a lot with noise reduction.

Some versions of the G2 have the 3rd mic. I think AT&T does.

It would have been nice to see it on the Sprint version.
[G2 Android Development] RegMaster:
Something is wrong with 1.2.0, after flash, camera app crash, with black screen + FC... imposible fix it, try reinstall old versions, stock 4.3.1, wipe, etc... but the camera don't works

More cases on:

http://www.htcmania.com/showthread.php?t=732588&page=3

D802 international.
[G2 Android Development] xdabbeb:
No, I've left that at 97 as increasing it didn't net any gains. I have bypassed extra processing that LG performed, however. For example, in low-light scenarios in Normal mode they were actually processing the file as if it was in night mode. The problem with this is that their night mode is actually taking 5 frames and processing it in much the same way as they do with HDR! Weird, right? This is also why exif info was missing in this low-light/Normal scenario...as when they process it, it obviously gets discarded because they are taking multiple frames. I was relieved when I found that, as it had been bugging me for a while.

[MENTION=2770600]jayochs[/MENTION] Your comment made me realize I should clarify the CAF pumping improvement. Due to the fact that the LG video recorder only has CAF, you will always see the focus adjustment when it happens. What has changed is that it won't be as sensitive to micro-movements which had been causing the focus to constantly adjust even while the phone and the objects in frame were relatively still. In essence, it has made it less hyper-sensitive, which I (and others including yourself) had always found very annoying.
[G2 Android Development] xdabbeb:
Thanks for reporting this. My Spanish isn't what it once was, however :) I understand most of it, but if you can provide logcats of the crash it would be appreciated. Apparently some of the new binaries aren't compatible with all variants (which is always a risk). If they created a backup as stated in OP they can just restore and they will be reverted.
[G2 Android Development] marshygeek:
Which among the versions in OP is the most stable?
[G2 Android Development] victorevo:
v1.2 Error!

Same here!

After flashing v1.2 camera app just start in black, then crash, I din´t make a backup =(

Do I have to reflash the hole ROM??
[G2 Android Development] RegMaster:
http://www.datafilehost.com/d/43484159
[G2 Android Development] lemach:
Xdabbeb, i have edited your flashable zip with mod v1.2.0 deleting the vendor folder and now the camera works perfect. Some lib of these folder are not working with the Spain's G2...G2 D802.
[G2 Android Development] tbis:
the 120 fps slowmo on the iPhone doesn't need that much light. I compared the two the quality looks better on the g2 with a significant amount of light but with average light this is almost unusable.
[G2 Android Development] woof123:
I remember note 2 slow motion back then.How did sammy manage to do it....It wasnt dark at all.It was playing at slow motion from the phone itself,and if i remember right even from pc,but with no sound.
[G2 Android Development] wifiuk:
why doesnt LG just include this in the stock rom ?
[G2 Android Development] shriom_manerker:
marketing strategy ! if the g2 has it, whats the big deal in the gpro2 ? thats the harsh reality my friend, if you want something bad, chances are, youd have to just buy it ! :(
[G2 Android Development] dondavis007:
Quick question. Does any one has a comparison between this cam and stock? I don't remember how stock look like, but those pictures don't 'pop' somehow comparing to my iPhone or Z1c. Is it by default or is it just the way LG camera behave, stock or not?

Thanks

Sent from a mobile Gadget...
[G2 Android Development] krispy1:
Does this need root? stock d803 kitkat.
[G2 Android Development] dondavis007:
Yes

Sent from a mobile Gadget...
[G2 Android Development] stetre76:
I am thinking about installing the Mod on my (stock) rooted D802 (with the apk installer)

I have a nandroid backup and I've also backed-up the Stock Camera app (not sure if this is any use though...).

In case I don't like the mod, is there an easy to get rid of the mod angain? I guess simply deinstalling the mod wouldn't do the trik, right?
[G2 Android Development] bender_007:
The apk installer forces you to do a backup. If you don't like it you can click on "restore" later. Reboot after installation.
[G2 Android Development] Sergykm:
Hello, [MENTION=2941286]xdabbeb[/MENTION] ! Great work! As you know in 4.4 in slow motion video is very dark and need much more light. Will you try fix it? Will we have Magic Focus on stock KK? And one more question in your mod working IOS+ stabilization? Thank you for your hard work.
[G2 Android Development] jassu:
Is it Possible to install this over the Jishnu Camera Mod ?
[G2 Android Development] bender_007:
Yap
[G2 Android Development] ziociccio:
yes :good:
[G2 Android Development] jassu:
And when someone has Jishnu,can he install over XDABBEB ? I Ask because when i want to install jishnu i dont have camera apk,just the other files.
[G2 Android Development] ziociccio:
yes!

notify that backup files,before installing the mod...are system files that you have now in system folder.

Then,if you have one of this mod intalled,you must copy backuped original stock files in other folder where do you like,than install the other one mode.
[G2 Android Development] jassu:
What happen when didnt do the Backup before just install the mod ? Is there a chance to get it like stock ?
[G2 Android Development] bender_007:
Which is your stock rom?

p.s. look the first page -under downloads you've got restore files.
[G2 Android Development] jassu:
I have JB 4.2.2 with Root and TWRP Recovery
[G2 Android Development] markus4000:
First of all big thanks to all modifications done to date :good:

Without smart people like you our beloved G2 would be only half as good :highfive:

I was very impressed when I tried the panorama mode the first time. The stitching quality is so damn good!

The only problem I have with it is focus (yes it's AF again xD). Sometimes when you move your phone too fast while taking picture after picture (in panorama mode) the phone already takes a picture while the focus wasn't ready yet (or it was just completely wrong). This can be seen pretty good in 360 Panoramas, in landscape panoramas it's not that bad.

Example pictures:

Landscape Panorama (slight blur in the middle of the left half)

360 VR Panorama (lots of very blurry spots all over the place)

So my question is: Is it possible to force a far focus or give us manual focus control in both panorama modes as well like in normal mode? I mean who takes panoramas with makro focus or indoors? :cyclops:

Or is there another way to prevent such blurry spots in VR Panoramas?

EDIT: Also the image quality in 360 panoramas is worse than landscape panoramas (I guess because of reduced resolution). Is there a way this can be changed like you did for landscape panoramas?
[G2 Android Development] DjTony90:
can we have 4K video in 4.2.2 Jelly Bean ?
[G2 Android Development] screenager:
[MENTION=2941286]xdabbeb[/MENTION] : I would be grateful to see 2.2.1 quiet :)
[G2 Android Development] jeyd02:
Hey xda. Is it possible to get a 380 dpi version because I'm using art and I can't use xposed.
[G2 Android Development] ryandubbz:
Can having xposed framework and or g2 tweakbox cause battery drain?
[G2 Android Development] SPBoss:
I have seen no difference in battery drain. Its mainly modifying files and not running services
[G2 Android Development] Palingenesis:
Awesome mod. How do I play the video back in slow motion? I recorded a video in the slow motion setting in the camera app. But how do I slow it down? Which app do I use to do it? Thanks. Sorry if this has been explained before.
[G2 Android Development] cristy7610:
I downloaded the apk file lg gpro2 and I can't install.it has only 21,5 kb ...
[G2 Android Development] penser:
The file may be corrupted. The file is corrupted. Download it again.

If you're on stock, download this one.
[G2 Android Development] cyan pac:
can someone upload their gallery that works i acendentialy delete the app
[G2 Android Development] Mennooo:
http://speedy.sh/K6MxW/LGGallery.apk

Skickat från min LG-D802 via Tapatalk
[G2 Android Development] xTremePower:
Hello all

I used this mod on the pardus test 4.4.2, recorded fantastic slow motion videos, and watched them

Now I flashed pardus v5 .

I installed xdabbed, I can record slow motions.... but impossible to watch them in slow...

The movie APP is not the same then before... and don't have the slowmo button....

I tried xdabbed, junshu...tried install with apk... tried to flashed them...

The camera app always work, but play at slow motion never....

Somebody have an idea please ?
[G2 Android Development] Subtleone:
I have not tried, but an idea is to install BS Player Free, a video player that plays every format imaginable and allows easy control of the speed of playback (10%-100%). In playback just swipe up or down on the left side of the screen.
[G2 Android Development] xTremePower:
thanks,

But I already tryed all movie player, and slo motion player ...

but no one adapted well like the stock from this mod ...

I not realy want to passe through the problem, I want to solve them :)

---------- Post added at 07:18 PM ---------- Previous post was at 06:39 PM ----------

I make a test just now :

I replaced the LGVideos.apk and LGCameraApp.apk in priv-app manually

after reboot, nothing changed, i can't read in slow motion like before
[G2 Android Development] Subtleone:
Ok, I tested and see what you mean. The only player that properly plays slow motion on my phone is the stock video player in the G Pro 2 ROM I am using (the one in my sig).
[G2 Android Development] xTremePower:
Can I ask you to extract the apk from your system folder on your phone ? To try to run them on pardus please ?
[G2 Android Development] Subtleone:
PM sent
[G2 Android Development] reas0n:
[MENTION=2941286]xdabbeb[/MENTION] Hello, any of the LG Camera mods doesn't support AOSP roms with ART, maybe You could be able to do it? I'd written in the [MENTION=4972367]Jishnu Sur™[/MENTION] mod thread but didn't get an answer.
[G2 Android Development] mmm286:
Hi. I've installed in kk but I can't see magic focus.... why?

Thanks and sorry for my English

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] VividTheMan:
wich mode

When using this for recording, wich record size are best? UHD , FHD 60fps , FHD 30fps?

Mostly for sunny situation or for indoor with pretty good light
[G2 Android Development] saarxee:
Add support for AOSP roms please!
[G2 Android Development] subhani:
+1

Would love this on my MahdiROM
[G2 Android Development] Boobook:
[MENTION=2941286]xdabbeb[/MENTION] sometimes shooting in HDR mode, camera freezing and not responding after shoot, and I need use Task Manager to cancel camera task.

Can you help about this?
[G2 Android Development] PsychoKilla666:
Has anyone gotten this to work on dr87's stock debloated for T-mo? I get

set_perm: some changes failed

E: error executing updater binary in zip

error flashing zip
[G2 Android Development] skr_xd:
D802 32gb version. Kk b version.

Installed mod 2.2.1 version. Everything works except HD120fps video. Both preview and recording are almost pitch black.

Is this known issue?