yashsingh1/xdaforums huggingface dataset:
[G4 Themes and Apps] gregor.eesmaa:
There appears to be no such file in system.img. I'll try to redownload system.img to see whether anything was corrupted. Perhaps they could be stored some other way?
[G4 Themes and Apps] gregor.eesmaa:
I did find this post on G3 forums: http://xdaforums.com/lg-g3/themes-apps/lg-g4-apps-t3102687

It refers to a Mega folder with deodexed V10 files, where the com.lge.frameworks.jar is accessible: https://mega.nz/#F!bpQGBbLQ!Q3eTeYxe5fIBLegkQjiI6A!DoAyzZBZ
[G4 Themes and Apps] peshellas:
LG V10 files

Here is a rar with frameworks.jar and more apk and libs from v10(all deodexed i think)

https://mega.nz/#!i1cWBBIQ
[G4 Themes and Apps] defcomg:
got it but that method invokes some native lib which returns required string but i think i've figured out its format

[MENTION=7073064]gregor.eesmaa[/MENTION]

it basically requests supported res by filtering them by aspect ratio i will try to manually create the string see if it works

edit redirect getManualVideoSupportedListStr to readlist method i think it was causing array error in makeFrameRatePreference which needed getManualVideoSupportedListStr
[G4 Themes and Apps] gregor.eesmaa:
getVolumeList "native method" seems to be missing, also ArrayIndexOutOfBounds exception is still there. Earlier on there is a "Config parsing error" as well.

Log: http://pastebin.com/nKKmXP2z
[G4 Themes and Apps] defcomg:
this kills it

11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at java.util.ArrayList.get(ArrayList.java:310)
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at com.lge.camera.settings.SettingIntegrationManual.makeFrameRatePreference(SettingIntegrationManual.java:559)
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at com.lge.camera.settings.SettingIntegrationManual.addSetting(SettingIntegrationManual.java:486)
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at com.lge.camera.settings.SettingManager.createSetting(SettingManager.java:64)
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at com.lge.camera.app.ExpandActivity.createSettingManagers(ExpandActivity.java:85)
11-15 00:36:07.003 11637-11637/? E/AndroidRuntime: at com.lge.camera.app.CameraActivity.createSettingManagers(CameraActivity.java:302)

the storegevolume is fine
[G4 Themes and Apps] gregor.eesmaa:
Could be a conflict between v10-st camera_config.xml and g4-s media_profiles.xml where it tries to find a non-existent framerate or media profile.
[G4 Themes and Apps] defcomg:
don't think so but try this apk i have removed the array code and manually added fps list
[G4 Themes and Apps] gregor.eesmaa:
Same error still...
[G4 Themes and Apps] defcomg:
Exact same? But u deleted the code that uses the array or is it out of bounds for another method[emoji26]
[G4 Themes and Apps] gregor.eesmaa:
ArrayIndexOutOfBoundsException: length=12; index=-1 @ com.lge.camera.settings.SettingIntegrationManual.makeFrameRatePreference(SettingIntegrationManual.java:559)

even if modified camera_config to turn every feature supportedness from "true" to "false" or from a number to "0"

Perhaps you could change the ArrayList's get method to return null instead of throwing an exception in such cases (with some log row). This would make something else crash, perhaps indicating to the cause of the issue.
[G4 Themes and Apps] defcomg:
These error are camera app errors the manaul video parameters are the same ones used in picture mode so its not about g4 being able to do it it not sure why the error still occurs as I wiped out most of the smali code
[G4 Themes and Apps] gregor.eesmaa:
1. How much of these parameters could come from media_profiles.xml, as I didn't risk replacing it yet, only the camera_profiles?

2. Perhaps you should compare the analog method for G4's and V10's cameras to see where the problem might be.

3. Perhaps the FPS it's trying to look for isn't on the list you replaced. Can you make it log what it's looking for in the list?
[G4 Themes and Apps] defcomg:
Nothing is coming from media profiles remember that noclassfound error it fetches a string with video parameters kinda like with media profiles the string looks like this 1920x1080:2560x1440:1,2,24,30,60:50000000,40000000,2000000

So of string is videoSize[emoji14]reviewsize:supportedFps:supportedRate

In the method that's craching app it splits string into string array using the .split method with "," as the delimiter so it would add 1 then 2 then 24 etc

What I did last was manually write the supported fps list in order to avoid accessing the array list which contained all that stuff but clearly it was not that there's a couple of string arrays below will give those a go.

It would be interesting to see if this apk actually started up on a v10 perhaps something went wrong when I converted oat to dex

---------- Post added at 09:28 AM ---------- Previous post was at 09:26 AM ----------

On another probably unrelated note the fps coming from string has a min value of 2 while the video res in libmmcamera_imx234.so from g4 min fps is 2
[G4 Themes and Apps] BySezerSimsek:
I think not ported LG V10 camera. because second screen is connected.
[G4 Themes and Apps] defcomg:
That may later come but the current error is an array error to do with fps list perhaps once error fixed the next error would be related to second screen
[G4 Themes and Apps] Paolo83:
In g4 with cm? Impossibile?
[G4 Themes and Apps] davebugyi:
It is not even ported to the official firmware...

And CM does not have the LGs camera drivers, so no, will not happen in the near (/far) future.
[G4 Themes and Apps] pepo930:
I'll be following this thread since I'm very interested in the project.

Whoever manages to port the V10 camera to the G4 will be my favourite dev.
[G4 Themes and Apps] gedas5:
Cinema 4k ISO and shutter speed controls with 2.0 release

@ defcomg

Would you happen to know if camera2 API is fully implemented in LG G4?

Cinema 4k just released an update with manual ISO and shutter speed controls. However, any selected values get defaulted to ISO 50 and shutter 1/30 after few seconds of selecting any other values. According to app devs this might be related to camera2 API implementation by LG. I have a feeling that this wouldn't be the case and the problem would be with the code in app.

Also I guess you didn't manage to get anywhere with trying to port LG V10 camera but thanks a lot at least for trying!

@ anyone using Cinema 4k

Would you try manual ISO and shutter speed controls and see if you get the same results? I'm on Marshmallow since yesterday so I thought that this might be the issue so if anyone on Lollipop or any other ROM could try that would be great.
[G4 Themes and Apps] defcomg:
G4 is a full camera2 device as for settings reseting [MENTION=5128617]troopii[/MENTION] would better explain as he has a g4 and has tested camera 2 video recording in freedcam with manual controls .

Test the apk below it can do manual control in camera1 mode like the v10 stock app or in camera 2 mode.

i haven't had a chance to play with v10 camera app code
[G4 Themes and Apps] Paolo83:
Sorry, for you is very hard/impossible to port lg drive into cm13 to have lg camera in cm? The photos takes in cm are bad compared to stock
[G4 Themes and Apps] davebugyi:
It's not just the drivers need to be implemented, also the framework the camera needs + the app itself. It is not impossible, but very time consuming and IMO CM13 needs to mature a little before anybody starts working on a port.
[G4 Themes and Apps] Devhux:
Probably not going to happen. Considering the camera drivers are probably not open-sourced, it's pretty much a no-go.
[G4 Themes and Apps] Pfeffernuss:
Won't happen, ever.
[G4 Themes and Apps] davebugyi:
They said the same thing about Sony's Xperia camera and apps. Yet it is now available.

The driver part is true tough.
[G4 Themes and Apps] Pfeffernuss:
Still, certain it won't happen. Samsung and LG are pretty cautious about their camera shizzle. Zero support for custom (aosp/cm) rom makers.
[G4 Themes and Apps] troopii:
the problem is caused by setting exposuretime > 5sec. the hal has a timeoutlimit after that the cam throws a timeout error.

when that happens the camera is no more reachable and must killed.

think thats the part where the settings gets set back to default like iso50 shutter 1/30. the restart is so fast that you dont recognize it.

but g4 has full camera2 support

and camera2 should work on cm based roms too. there is no driver workaround like lg did for camera1.
[G4 Themes and Apps] gedas5:
@ troopii

Thanks for looking into Cinema 4k. Strangely developer stated that this must be LG G4 issue but having the right camera2 API implementation buy I guess it's the bug in the app. Maybe you have logcat that I could send to them?

Of course ideally LG should have updated the camera app on LG G4 to provide manual video controls but that probably is never going to happen as they have to differentiate the devices in order to have sales.
[G4 Themes and Apps] Ximo F. Verde:
I just sent an email to the developer mentioning this issue on Camera 4k (before I actually got to read this thread). I just bought an G4 on friday and I'm still looking into its features. Basically bought it because of the camera (silly fast lens f/1.8, relatively big sensor, OIS etc). Though the camera is definitely a big step up from my previous phone (iP5c), I am just now getting familiar with the typical LG feature-crippling touches on this specific model. LG is excellent in doing that as we all know... There are many reason why we need full manual controls in video recording, but I'm personally interested in manual shutter speed/ISO combined with variable fps. Since im looking into recording 25fps material, shutter speed should be set at 1/50th in order to maintain fluid motion (or 1/100th for more stop-motion like shots with less motion blur, Saving Private Ryan opening scene style http://cinemashock.org/2012/07/30/45-degree-shutter-in-saving-private-ryan/). In any way, its best to keep the shutter speed as an 'inverted multiply' of the fps in order to avoid weird frame skipping effects (at least to my experience). Indeed, Camera 4k seems to be suffering from the aforementioned issue, but as far as I've been able to test it, ProShot manual ISO/Shutter speed controls (together w/ fps selection) appear to function properly. I'm struggling to not buy the full version (even though I'll probably end up doing it).

Another reason why I'm interested in full manual mode is that the G4's auto mode video, just like the photo cam, seems to overexpose in many cases. At daytime shots this can result in clipped highlights. At night, the G4 also overexposes, probably by a combination of higher ISO but also lower shutter speeds that may result in (unwanted) motion blur. In this video the G4 is compared to the V10. The author dials the exposure compensation at -1 at a night shot that appears to lower the noise and also the motion blur, which would probably mean a slight drop in ISO (and maybe higher shutter speed). Since I'm new to video recording in such detail, it's all kinda trial and error, but I can definitely see the advantages of full manual controls. Let's hope some good dev will manage to fully port them, since LG will most likely not. Btw, does anybody know whats the UHD video max bitrate in ProShot full version?
[G4 Themes and Apps] gedas5:
@ Ximo

Indeed LG G4 camera in video mode is notorious for overexposing hence if you want to have vidoes looking the way you want having manual ISO and shutter speed controls is essential. ProShot UHD is ~70 Mb/ss. It does the job but it is buggy (might be Marshmallow related) and way less user friendly and intuitive than Cinema 4k and of course far from LG V10 manual controls implementation.
[G4 Themes and Apps] Ximo F. Verde:
Downloaded ProShot paid version and went for a refund 5min later.. It is very buggy indeed. I kinda figured out how to make manual ISO/shutter speed work, but I couldn't live with the fact that the video preview (right before hitting record) had nothing to do with the reality. It was actually overexposed and choppy and upon hitting record it instantly darkened and fps went back to normal. Once recording, I had to mess with the ISO first in order to get the shutter speed working and even then I'm not so sure if what I was dialing in was actually what it was recording. I also need to mention that I'm on stock LP, so it's not only MM related. Cinema 4k allows for exposure compensation, but it only seems to lower the ISO maintaing shutter speed at 1/30th at all times (one should be able to set it at 1/60th when recording 30fps). At full manual mode, no matter what you dial in, it falls back to ISO 50 and 1/30th shutter speed as you mentioned. Hopefully the apps' devs manage to sort it out or somebody over here ports the V10 camera successfully, I seriously doubt that LG is bringing manual controls to the G4.
[G4 Themes and Apps] gedas5:
Indeed ProShot seems to be buggy in manual video mode.

Regarding the Cinema 4k app I wouldn't put lots of hopes that it will get fixed as well since the developer doesn't have LG G4 to test and according to him it works on Samsung Galaxy S6. Though what he said there was the same issue with Samsung previously that it would revert back to default values in video but after Samsung's software update he said it got fixed so he believes that this is OS related which I don't think it is since you are on Lollipop and I'm on Marshmallow and we both have the same issue.
[G4 Themes and Apps] DrakenFX:
any word on porting V10 camera App to G4????
[G4 Themes and Apps] WTF?:
CM has been buggy since its earliest days, and it's been an ongoing problem, my friends keep trying each successive version and it's the same old story.

I learned my lesson years ago.
[G4 Themes and Apps] Kemby13:
Too bad that this thread became "old news"... I was looking forward so much to experience the V10 camera app. And i believe i'm not the only one. We need a kind soul with extra time on his/hers hands and some expert knowledge.
[G4 Themes and Apps] gedas5:
It is indeed a shame that all the attempts to revive this thread didn't lead anywhere. Having manual video controls just like in LG V10 would have been really nice.

After spending money on

ProShot

,

Cinema 4k

I am just losing hope that anything even similar to what people on LG V10 have got will be created. I guess the last attempt might be purchasing

Filmic Pro

that was finally released on Android a week ago and that is after more than 2 years of waiting when they first announced KickStarter around September of 2013 whilst IOS users were enjoying it a year or so before.

If

Filmic Pro

turns out not buggy and pretty much useless just like ProShot and Cinema 4k after recent update) then I guess the only hope is that LG G5 will be a good device and will give us those options...
[G4 Themes and Apps] ahaj4s:
is it working
[G4 Themes and Apps] defcomg:
Freedcam also has Full Manual Control Video

Manual Shutter

Manual Focus

Manual Whitebalance

Manual ISO

Manual Contrast

Manual Sharpness

Manual Saturation

Manual Brightness

and HDR Video

I think the Wind Noise Filter and Directional Audio are the only + on V10 Cam
[G4 Themes and Apps] Ximo F. Verde:
I completely agree. I have been coming back to this thread every couple of days since i got my G4 with the hope that someone would manage to get manual controls working. What really frustrates me is the fact that the hardware is more than capable (see V10) but as always LG spoiled all the fun. I understand that they want to market the V10 as a video making device, but that doesn't justify crippling the G4 performance with 3rd party apps by messing with the camera2 API somehow. As a matter of fact, this is the only thing I miss from my iPhone; as far as its camera and ISP is concerned, developers have access to most of it and are therefore capable of pulling lots of tricks, even with dated hardware. Even on a iP5c (an iPhone 5 basically) manual shutter speed/ISO/framerate is possible. I might be sending an email to Cinegenix (Filmic Pro) to ask wether the app works properly on the G4 b4 paying those 11 euros. Will also be checking on Freedcam (thanx [MENTION=377973]defcomg[/MENTION])
[G4 Themes and Apps] gedas5:
Totally agree with you and share exactly the same feelings as probably most of us that visit this thread from time to time with a hope that something positive will come up and somehow we'll have proper manual video controls either with thirds party app or someone managing to port LG V10 camera app.

I have a feeling that Filmic Pro might be our best bet for now though I'm curious as well how well it works on LG G4. Currently from the comments it seems that only support for MircoSD is not implemented correctly but the team is working on the update but there may also be other things that don't work. [MENTION=1343917]ximo[/MENTION], if you do hear back from them let us know.

@ defcomg

Freedcam might not be supporting Marshmallow yet as every time I install it it forces close if I try to take a picture or record a video (changing camera2 API to camera1 API does not resolve the problem). Anyway, thank you for your time and effort for at least giving a go at looking at LG V10 camera app.
[G4 Themes and Apps] defcomg:
That's very strange as [MENTION=5128617]troopii[/MENTION] owns a g4 and he's tested everything and with g4 the only reason to switch to camera 2 is for extra long shutter and more burst images every other manual feature works in camera 1
[G4 Themes and Apps] troopii:
i did not yet update it to M. On M check if permissions are set on your phone in settings/appsettings. if they are all turned off freedcam can only crash

Updated g4 to m. Lg reduced max expo time to 45sec on camera2. But everything works in freedcam.
[G4 Themes and Apps] Ximo F. Verde:
Just a quick update on Filmic Pro: I have installed and started using the app. The first impressions are pretty good. Control over ISO, shutter speed and framerate

seems to be

without bugs. I still have some issues with touch to focus though. It seems that I have to lock/unlock/lock focus to actually get it to focus to the point I want it to. Manual focus as well as 2 focus points selection lock works flawlessly. Only tested it on 1080p for the moment. I have sent an email to the company that makes it regarding known bugs and this is their reply:

'Thanks for writing in and we're so excited to be on the Android platform for the first time. We have exciting plans for expanding support for more devices, and also building out additional features in lock-step with the iOS side.

You were asking specifically about the LG G4. We do not have one in our lab, so we have to go based on our beta testers and our users reports. (With the number of devices on Android it's hard for most developers to have physical devices in house for all the big vendors) We have received device info back from several customers for the G4 that state the following:

-Supported hardware level:

full.

-Native supported resolutions:

[1024x768, 1280x720, 1280x768, 1280x960, 1536x864, 1600x1200, 1920x1080, 2048x1536, 2688x1512, 2592x1944, 2560x1920, 3200x2400, 3264x1836, 3264x2448, 3840x2160, 3984x2988, 5312x2988]

-Available guaranteed FPS:

[[15, 15], [2, 24], [24, 24], [2, 30], [30, 30]].

-Exposure areas supported:

true

-Manual exposure time supported:

true

-Manual ISO supported:

true

-Manual shutter speed supported:

true

-Focus areas supported:

true

-Manual focus supported:

true

-Lens calibration:

calibrated.

-Video stabilization supported:

true

From what we know and can tell from that info it sounds like the G4 is able to support all of our features. :)

The only issue we have seen on the G4 side is that LG has customized their mounting of the SD card slot as compared to standard Android and as a result our ability to call the SD slot for saving directly from the app does not work. We are going to have an update to address this as quickly as possible.

Thanks for the question and let us know if you have any others.'

Will continue to test it and eventually mail them about the touch-to-focus issue (it might be something i'm doing wrong). Will post an update on this soon.
[G4 Themes and Apps] gedas5:
@ Ximo

Great! Thanks for the update on Filmic Pro. So it does look like this is the only stable solution for manual video controls that we can get on LG G4. I guess I'll be giving it a go as well :)

@ troopii

Unfortunately Freedcam does not seem to be working properly on Marshmallow. Lots of crashes and force closures and it doesn't allow neither to take pictures nor to take videos.
[G4 Themes and Apps] Ximo F. Verde:
Camera 4k just posted an update for the G4! Only tested it briefly but it appears that manual ISO/shutter time works better than before. I seem to get some strange 'flash frames' on the test video that i did but overall there seems to be some improvement. This starts to look promising..
[G4 Themes and Apps] xach24:
As I had mentioned when I bought the G4, I would work on porting the v10 camera for the G4. Well, my G4 arrived a week ago. I unlocked the bootloader on the first day to start working on it, and here is the first result. We did it for the G2 and now we also did it for the G4. :D:D:D:D:D:D

Screenshots V10 camera in G4:
[G4 Themes and Apps] ChrisBustamante:
How?
[G4 Themes and Apps] absolut20:
Awesome.. Does it fix the image stabilization issues when recording video on the g4? The Jello effect is terrible.
[G4 Themes and Apps] patalao:
Waiting for it.

Manual mod on video will be a good addition.
[G4 Themes and Apps] pepo930:
-delete-
[G4 Themes and Apps] defcomg:
You can't record 4096 x2160 DCI video in camera 1 on G4 because they capped the resoultion to 3890 don't remeber exact number but it was under 4096. FilmicPro uses Camera 2 api which uses Res[0] capture res which is set to 5312 x 2988 @ 30fps so when you recording DCI 4K G4 is actually recording at 5312 x 2988. But if the Lg is like most qcom devices changing video res Width in lib to 4096 DCI should be auto added to supported video sizes
[G4 Themes and Apps] Freelancerx:
Ive been trying out filmic pro but using the app makes my phone get incredibly hot. Hot enough for it to auto shut down. Anyone else with filmic having this issue?
[G4 Themes and Apps] cesedy:
I realy don`t understand. This topic is about porting V10 camera, but you are talking about other softwares.
[G4 Themes and Apps] gedas5:
@ xach24

If you do manage to port it and it will be fully functional I am pretty sure that you will make not hundreds but probably thousands of LG G4 owners very happy and I'm sure that the ones who really appreciate time and effort spent on this will make at least a few donations.

@ Freelancerx

Filmic Pro does make LG G4 warm up quite a lot (just like CInema 4k, Pro Shot, etc.) due to the processing power required but it never got that hot for me that the phone would turn itself off. My feeling was that it makes phone less warm than stock camera but warmer than Cinema 4k.