yashsingh1/xdaforums huggingface dataset:
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
If I ain't updating the OP's progress tracker then that means I'm still doing the same thing posted in "Current Progress"

It's taking long because "just merging" two things means there will be a mess, and LG's framework is made for API 21 (L) while the target has API 23 (M) *there's no reason to use older versions if we're talking about porting an OEM framework

For simplification, it's like translating an extremely good manga but in the process of translating, you must "redraw" some parts so that the translated version will look just like it is originally published in that language.. Without redrawing, it will look a real mess... In software, there might be calls to the API that isn't compatible to the underlying framework changes... And incidences like this takes priority as for the functionality (anti-placebo effect)

So the alpha that I released is pretty sure a mess as I haven't even cleaned it... Please wait a little longer ^_^
[G2 Developer Discussion [Developers Only]] m.ali hasan:
Please do this good thing so that i can go to cm
[G2 Developer Discussion [Developers Only]] zizuka:
Honestly, not to demotivate but even if this happens, it wil take a loooong time to complete.

There are some good devs but damn the bugs that have to be crushed to do this will be a headache just to count. Let alone fix them.

Rather try to make a fully G3 stock 6.0 ROM boot on G2. As soon as PC detects phone you can get logcats and then things will get interested. And easier than all this you are doing!
[G2 Developer Discussion [Developers Only]] m.ali hasan:
Ur right..... There are just toooo many bugs.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
1.) Porting G3 Marshmallow is totally impossible without G2 being officially updated to M.

And 2.) Porting the framework only needs slight refactoring and adopting some libraries (specifically lib_imx, which is relatively easy with hex factory), which is significantly more possible than LG releasing Stock M to G2
[G2 Developer Discussion [Developers Only]] denissxrus:
I don't think that port of G3 MM rom is totally impossible without G2 stock MM. For example, Optimus G has port of G Pro firmware, but wi-fi, bluetooth, camera, resolution (it was fixed with "wm resolution 1920x1080" and "wm density 480", but it is not a solution) and some misc things won't work and nobody wants to fix it (phone calls, 2G-3G, front camera, sound, buttons, touchscreen, even SD slot on E970 worked perfectly). Thread - http://xdaforums.com/optimus-g-intl/development/geehrc-how-to-port-g-pro-lollipop-t3127327

Отправлено с моего LG-F320L через Tapatalk
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
That project is already stoned. Nobody wants a crazy unstable phone with frequent freezing. Might be possible, but do you really want to have a useless phone? Nah
[G2 Developer Discussion [Developers Only]] denissxrus:
I know that those project is dead))) My previous phone was AT&T Optimus G, and i can't remember freezes or lags in UI or wherever else. Also, i was used most of LG G3s system apps, so there was no need to resize every app (framework and some apps i had to resize, but them was about 5-10, not 100-120). For G2 we can use, for example, apps from G4s or LG X screen. Problem in OG port was to make working Wi-Fi, Bluetooth, NFC, Camera and so (probably project became dead because no one of rom and kernel developers was not interested in porting and it stuck at start point[emoji29] [emoji29] [emoji29] ). In G2 most of hardware like wifi/bt chip, baseband, camera except laser AF, NFC chip and so are same. Also, there may be some problems with bootloader.

Отправлено с моего LG-F320L через Tapatalk
[G2 Developer Discussion [Developers Only]] zizuka:
Sorry to inform you but that is complete and utter bullsh*t.

Do you know what happened when Samsung said no kitkat for Galaxy S3? This port appeared with now no bugs happened: http://xdaforums.com/galaxy-s3/development/rom-archiport-temporary-experimental-t2748579

It is possible. Even a stable port can be done.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
G2 is not S3

G2 is not Optimus G

Don't talk about other devices here and if you want a stock MM port for your G2 then ask others, not here or do it yourselves ^_^

This thread is for porting lg framework, not ROMs

PS. Please no swearing :)
[G2 Developer Discussion [Developers Only]] j1505243:
"Incomplete Camera2 Implementation"... Can you "complete" it? :D Do you know that G Flex 2 has exactly the same IMX Sony camera sensor and full Camera2 API?

Also, is there a chance that one day we will be able to use LG UX4 stock browser app, or at least UX3 browser?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Ummmm... I don't know if it is possible... For now, my focus is to port the framework from CloudyG2 Rom and make its advanced drivers work. Browser from CloudyG2 is UX3? Idk ahahaha but maybe it is possible, its implementations are on the framework
[G2 Developer Discussion [Developers Only]] Startrek852:
CloudyG2 Browser is UX 4.0.
[G2 Developer Discussion [Developers Only]] j1505243:
As far as I remember, LG Browser in CloudyG2 is just themed to UX4, version number is the same as from UX3.

LG Browser is the fastest browser I know :D (Best Sunspider result, Chrome isn't even close)
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
UX4 Browser is probably not possible since it is optimized for AArch64. (just an intelligent guess)

But hey CAF Chromium can score almost like that! Mine scores 675-760 ms ;)
[G2 Developer Discussion [Developers Only]] j1505243:
I use SWE Browser currently on CM13 (I like the old style of tabs)

LG G3 has UX4 now, so UX4 LG Browser too :)
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Whut? Ahahahaha ok then I'll take a look at it
[G2 Developer Discussion [Developers Only]] raptorddd:
i think framework is more important to discuss theres tons of browser and no framework for aosp or cm..

:good:
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
But as I said earlier UX Browsers also depends on the framework :D
[G2 Developer Discussion [Developers Only]] raptorddd:
camera is important, thats what keeps most of stock user from going to aosp or cm roms... i have heard it cant be done or almost impossible..i have faith in you.. :fingers-crossed::fingers-crossed:
[G2 Developer Discussion [Developers Only]] edi194:
Camera with stocklike quality is possible to do, but to have good photo quality we need ported framework (like this) and for videos (60FPS, 120FPS, 4K) we need modified kernel with custom camera HAL (it's possible, OPO have something like this)
[G2 Developer Discussion [Developers Only]] raptorddd:
really.? i was told that it cant be done.... well all we had to is wait. :good:
[G2 Developer Discussion [Developers Only]] Eminemiero:
Maybe this can help you with the Camera HAL: http://xdaforums.com/lg-g3/devs-only/camera-hal-caf-t2981136
[G2 Developer Discussion [Developers Only]] Nightshadow931:
I doubt that, that project failed because of the lack of LG's source codes.
[G2 Developer Discussion [Developers Only]] Startrek852:
​

Why do you say we need a modified kernel for video? XCam's camera binaries do that without a modified kernel.
[G2 Developer Discussion [Developers Only]] zizuka:
Kitkat with stock kernel :)

End of off topic.
[G2 Developer Discussion [Developers Only]] edi194:
On CM13 or any other AOSP rom?

Wysłane z mojego LG-D802 przy użyciu Tapatalka
[G2 Developer Discussion [Developers Only]] Startrek852:
Why are you asking me? I don't know.
[G2 Developer Discussion [Developers Only]] raptorddd:
[MENTION=6545782]xxoscarxx28[/MENTION] can you post a picture of a pic without mod and with mode.. please... :D
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Wait until it turns dark here :D GMT 8

There's nothing to see with normal-light pics (except prominent higher noise frequency)
[G2 Developer Discussion [Developers Only]] edi194:
Becouse you're talking that's working on everything, that's why i'm asking you.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Edit: Damn filenames xD

The one with no noise is with the mod, and the other is without
[G2 Developer Discussion [Developers Only]] diogo.sena:
thats your port already? good work!
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
It isn't the port of the framework yet ;)

It is just a temporary modification to allow G2's ISP to perform post-processing and simulate stock-like quality or if algorithm parameters are optimized, we can even surpass it... But with the expense of not having 60fps and the likes (those capabilities are reported by lg framework)

And yeah, I'll say it again, normal-light photography is screwed up and I don't know why yet... I'll fix it with the next release so that guys and gals here can wait for the proper port ;) :)
[G2 Developer Discussion [Developers Only]] diogo.sena:
hope this can be done for the g3 aosp too, (i don't have a g2)
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Idk ahahaha but it might be posible. Since they are just the same sensor
[G2 Developer Discussion [Developers Only]] metteduch:
This point of this port is to improve AOSP/CM ROMs? You must really hate LG stock ROMs since you wanna go through this mess hehe. But it is interesting to follow I am keeping an eye on this thread too :)
[G2 Developer Discussion [Developers Only]] Startrek852:
No, the binaries are stock only, but what I was saying is that these binaries work without a modified kernel so why would we need a modified kernel when the binaries have nothing to do with the kernel?
[G2 Developer Discussion [Developers Only]] edi194:
Becouse on Marshmallow we have new camera hal. Although stock binaries won't work with custom roms.. So, for working 60fps, 120fps and 4k we need modified system and kernel with modified camera hal.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Temporarily, I am only using what's left on G2 to pull off this mod. In other words, this mod works without any need for modified HAL and kernel. And once I finished porting the framework (I am currently cleaning mismerges) the real fun starts here ;)

From there on, we will know if modified HAL is still needed through logs
[G2 Developer Discussion [Developers Only]] Killua96:
[MENTION=6545782]xxoscarxx28[/MENTION] Just a question, can i post your work on an Italian Android Forum (TuttoAndroid) where i'm moderator in LG Section? Obviously with all credits and a link to this thread.

Thanks in advance =)
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
With proper credits.... Yes :)
[G2 Developer Discussion [Developers Only]] shaneel1491:
You say the Camera Libs are messed up?

Check this out:

http://xdaforums.com/lg-g2/general/mod-camera-libs-5-0-1-t3220239

If you check in 1st or 2nd post we can edit the libs and probably fix the exposure problems during the day
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Well, you know... Exposure is not our problem... And they are the ones that helped me mod the libs ;)

Maybe "I screwed up" or "bad luck" is more plausible to describe what happened. And it happened because it seems like the libs from stock roms doesn't include any kind of noise reduction or any color corrections and pass the data to LG's algorithm so LG can do those itself. (AOSP has some sort of filter not active in stock libs)

As you can see, I'm trying to simulate stock quality... And I almost had it :) but some of the algorithms are not working in normal-light conditions somehow. And that is what I'm trying to fix, not exposure tables :D
[G2 Developer Discussion [Developers Only]] shaneel1491:
Do you only have this problem in only the Ported MM LG camera or all apps?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
It is all about the camera, and the problem is not on the app but on the libs I modified from Cloudy. The first mod posted doesn't have LG's framework. And once I port it, all of this problems will be solved but I want to play more with Qualcomm's algorithms since it is flexible :P
[G2 Developer Discussion [Developers Only]] shaneel1491:
I'm just asking cause I remember reading that the stock camera app used different libs to snapdragon camera or any generic non-lg camera app.

Cause if that's the case then we can narrow down the problem to whichever libs are being used..

How did you edit the files by the way?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
I am using the libs that came from CloudyG2 L, hence the libs came from stock rom, and I'm also using hsl structure file from troopi to edit it. To other libs, I am using IDA pro and objdump.
[G2 Developer Discussion [Developers Only]] shaneel1491:
I think on the modded libs thread someone said that the LG camera uses zsl, and that's why when I tried modding snapshot and preview, I only noticed changes in snapdragon camera and cyanogen mod.

I'll copy the files over to my device to try and see if I can help though
[G2 Developer Discussion [Developers Only]] Glpcha:
Sorry to barge in like this, but what happened to xdabbeb and his camera mod for aosp? He said that he had almost finished a version supporting lgg2 but he didn't want to release it before he made the same thing for lgg3. Maybe you could ask him for help.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Currently... I'm trying the framework port... And I'm waiting for the optimizations to complete :P

Fortunately, there are no bootloops as of now hahahaha

Edit: Welp... I'm stuck at boot.
[G2 Developer Discussion [Developers Only]] shaneel1491:
There's an app called liveboot, or something like that, then you can see where it got stuck.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Those that are willing to help push forth our progression, please don't hesitate to message me or quote this. But please check if you passed the -

Requirements:

You can pull and filter logcats/dmesg

You can recover from bootstucks/loops

You always have free time

Thanks in advance :)
[G2 Developer Discussion [Developers Only]] XSSENGER:
I WANT HELP!!!.....

No hablo ingles... pero me interesa ayudar.. que debo hacer?
[G2 Developer Discussion [Developers Only]] Startrek852:
[MENTION=6545782]xxoscarxx28[/MENTION] What Google Translate says [MENTION=2888724]XSSENGER[/MENTION] said is: I do not speak English ... but I want help .. what should I do ?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Communication will be hard. XDA has rules that says "English only". Sorry. But If you really want to help, please wait for public beta releases and I will hear your feedback :)

Usa el traductor de Google
[G2 Developer Discussion [Developers Only]] 4everAnoob:
Why not port directly from xdabbeb advanced driver, since cloudy used this as "source".

Or doesn't it matter
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
That is what we are already using but is still facing other sorts of problems. And FYI those drivers are closed source and is distributed only as binaries. There is no "source" to use or compile from.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Sorry for not updating the thread recently... But here is the good news :)

The development of LG Framework Installer is now finished and ready to be released anytime from now on. Any of this will not be possible without the help of the testers that tried their best to provide feedbacks, and they not only tested things, they also suggested possible fixes, workarounds and other things. They are [MENTION=3893393]shaneel1491[/MENTION], and [MENTION=5825602]sys01[/MENTION]. The only thing that stops us from releasing is the secure boot error even after bumping the kernel using CBump... And the search for other ways to bump kernel is currently on ;)
[G2 Developer Discussion [Developers Only]] Nightshadow931:
Wait, so you did it?

Camera quality on AOSP is the same as on stock?
[G2 Developer Discussion [Developers Only]] Pacer_456:
I can help you if you wish, I have unbricked my d800 from a near hard brick state involving short circuiting pins on cpu and flashing boot partitions, etc.

Not a coder, but I am just so exited at this new development!!! :p
[G2 Developer Discussion [Developers Only]] johnny_cage:
please can you show me the source? thx
[G2 Developer Discussion [Developers Only]] raphaelnariga:
Wow, that's good news!!! So do we can use this mod in any AOSP? Android L, M or N?

If you could master the mod, please post pictures making the comparison, looking forward for this work done mate.
[G2 Developer Discussion [Developers Only]] rdNNNN:
[MENTION=4695492]johnny_cage[/MENTION] xda bbeb said it itself in xcam beta G+ group. It's somewhere buried in the comments section. He said it has G2 port done but would not release until he had finished the g3 one.
[G2 Developer Discussion [Developers Only]] shaneel1491:
Unzip the mod.. Plus LG's source is closed so it won't be much use.
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
LG Framework is now working properly.

To those that wants to have an early look.... Here it is

LG Framework

This includes the LG Framework itself, LG Camera (G2 version) and related libs... Other LG APIs embedded within Android's builtin methods are to be merged on next release (so there's nothing much to see), hopefully, including a Full-Mode Camera HAL (support for high speed capture, 120fps, 4k and burst shot)

XCam support is also planned, and patcher to incompatible must-be-compatible LG Apps (only if OpenJDK worked on our internal experiments)

And btw, LG Camera has it's own post-processor that triggers in certain lighting conditions, and produces a photo of lesser noise.

Cheers everyone!

Edit: Download link taken down due to severe bug
[G2 Developer Discussion [Developers Only]] George Jetson:
Can we port lg fm radio app to aosp roms with this framework? Or this work is totally different?
[G2 Developer Discussion [Developers Only]] AlexVipXDA:
How its work? Can we use xposed too?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
There's nothing wrong with trying. But I think you'll need to use a kernel module for that which is not present on CM13/MM

Edit: This framework might not work with other devices if that's what you mean "porting" to other roms. Theoretically, this is for LG G2 (and up) only.

Xposed will work with this.
[G2 Developer Discussion [Developers Only]] shaneel1491:
[MENTION=6545782]xxoscarxx28[/MENTION] Doing excellent work!! :)
[G2 Developer Discussion [Developers Only]] Pacer_456:
So can we just flash in recovery on any cm/aosp mm rom for the g2?
[G2 Developer Discussion [Developers Only]] Liukidar:
Some information

So we only have to flash, for example, CM13 and then this (now I am on Google Edition, great rom)? Is it compatible with every nightly (and is it likely or not that it will become incompatible or cause some problems)?

This afternoon I'll try it and post some screenshots and impressions.

Btw, great job!!

---------- Post added at 12:22 PM ---------- Previous post was at 12:21 PM ----------

Ops, same question
[G2 Developer Discussion [Developers Only]] Pacer_456:
You know what I'll find out, I will make a backup and flash this thing... And then report back.

Currently on RR Rom 5.6.9 with Lambda Domino kernel.
[G2 Developer Discussion [Developers Only]] KyPbP:
D803. CM13 Nightly 1 May,OpenGapps Pico,Xposed 84

There is no place in the System section and the phone is running slowly
[G2 Developer Discussion [Developers Only]] Liukidar:
And LG features?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
It will theoretically work with LP and MM... Flash after the Rom and Kernel... And if you are using Lambda Kernel there is no need to reflash
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Whut??? Please send a logcat, dmesg, and the /sdcard/lg_framework_installer.log
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Additional LG features will come after the next release... This includes only the framework (where Android gets its builtin methods/functions/classes)
[G2 Developer Discussion [Developers Only]] Pacer_456:
I have gotten that as well.

Also what do you mean I don't need to refashioned on lambda kernel?

I will try a fresh install of the rom and see if the issue is still there,

The LG camera is on board and working from what I can tell.

Video and camera works, but some video effects result in a force close.

Again, I will do a clean flash before I give a logcat or something.
[G2 Developer Discussion [Developers Only]] KyPbP:
here is
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
About the LG Camera, some features will not work because we have an incompatible version of the LG Framework. We have a G3 framework, while the LG Camera uses G2 framework... So they are incompatible... If things go smoothly we will adapt a G3-based camera, like X Cam :P
[G2 Developer Discussion [Developers Only]] Pacer_456:
L

Okay, kinda puzzled why it's using the g3 framework but I will install the xcam for the g3 to see if it works anyway, no harm trying...
[G2 Developer Discussion [Developers Only]] Killua96:
Just flashed on a D802 with last RR, no problems.
[G2 Developer Discussion [Developers Only]] Pacer_456:
Doesn't work..
[G2 Developer Discussion [Developers Only]] Glpcha:
I am on the latest exodus 6.0.1 rom on d802 and the camera works. Looking forward to new features. Keep up the good work!
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
It will not because LP apps will not work to MM XD

It is because of different permission handling.
[G2 Developer Discussion [Developers Only]] Pacer_456:
?

I used the xcam marshmallow version for the g3...
[G2 Developer Discussion [Developers Only]] Nightshadow931:
Amazing.

Will wait for the next release, and when you port XCam to AOSP, I'll never look back at stock ROMs. :)
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Oh... I'll try investigating that... And lemme clarify something... I said it is G3 framework because it came from CloudyG2 3.3 and it doesn't mean that XCam for G3 MM will work. G2 XCam will! But not now. It's hard to explain XD

We still need to implement those LG APIs which is embedded inside framework.jar, direct modification of it will only cause further incompatibilities. Please wait a little more until next breakthrough :)
[G2 Developer Discussion [Developers Only]] Pacer_456:
Ooh I though it was from cloudyg3 or something, makes sense now

After clean flash I am still getting not enough storage space in system...

Flashed RR ROM, full open gapps, viper4android and xposed with the lg framework zip.

What can I do to help?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
One of my testers got that too... We're currently investigating the case... And please check if system_server is burning the cpu
[G2 Developer Discussion [Developers Only]] Pacer_456:
How can I check that?
[G2 Developer Discussion [Developers Only]] xxoscarxx28:
Settings -> Developer Options -> Show CPU usage
[G2 Developer Discussion [Developers Only]] Pacer_456:
Done that and yep it is.
[G2 Developer Discussion [Developers Only]] raptorddd:
for those of you that got it working please upload some pictures taken with camera..:good:
[G2 Developer Discussion [Developers Only]] Liukidar:
Got same problem here (low system storage). RR no kernel(I ll try lambda later) and no xposed (try later). No system_server process is running though.

---------- Post added at 04:20 PM ---------- Previous post was at 04:18 PM ----------

Wait some seconds and I'll do