[WIP][DEV][PORT] LG Framework for LG G2 AOSP/CM/CAF

Search This thread

xxoscarxx28

Senior Member
Mar 29, 2015
305
548
0
This thread is paved with great promises, good ideas and great hopes. But little more.

After ten months, has anything functional been produced here? At least one feature that works which didn't? Maybe I haven't been following it very closely so correct me if I am wrong - but there is nothing. I haven't seen a single post from a user who flashed this and said "yeah, it works!" with regard to at least one feature listed in the OP.

Therefore, I remain hopeless about this project and the likelihood it can produce anything close to what was promised.

Can't argue with most of that but pls do remember this is wip and no one else is helping me with this except the guys that helps me with the tasks I'm giving. I thought that this thread could spur collaboration with the other devs but no, it seems like no one would like to give a hand. I understand it though. This project might seem to be something that will not finish well. I know that fact well, but as long as I could, I will continue this even if I no longer have any android device and no one helps. (I still believe in the community)

This project already gave me lots of information on how LG implement their "customizations" (but there are still holes). I also already have the "VBM" ready in the GDrive which will serve a purpose after getting a proper port. A dev also gave us the 4K mod that works for MM. Progress is still progress.

The framework here is named as Experiment and is obviously not the final product. If you are checking the logs being uploaded, you can see that com.lge.frameworks.jar are now fully ported and working, only the resources are not (which are the ones being tested lately) and things that I don't know hiding in Android framework (two already found: lge-res.apk declaration as another resource library, and a certain class about telephony needed by LG Cam).
 

Guzansky

Member
Jun 29, 2012
40
7
0
Can't argue with most of that but pls do remember this is wip and no one else is helping me with this except the guys that helps me with the tasks I'm giving. I thought that this thread could spur collaboration with the other devs but no, it seems like no one would like to give a hand. I understand it though. This project might seem to be something that will not finish well. I know that fact well, but as long as I could, I will continue this even if I no longer have any android device and no one helps. (I still believe in the community).
I would like to help.
This port made custo MM camera almost equal to Stock Camera.
I'm on AOSP Extended 7.1.1
2017/01/03

I just need to understand the way to make those logs.
 
Last edited:

acrocosm

Senior Member
Sep 27, 2008
202
53
0
This thread is paved with great promises, good ideas and great hopes. But little more.

After ten months, has anything functional been produced here? At least one feature that works which didn't? Maybe I haven't been following it very closely so correct me if I am wrong - but there is nothing. I haven't seen a single post from a user who flashed this and said "yeah, it works!" with regard to at least one feature listed in the OP.

Therefore, I remain hopeless about this project and the likelihood it can produce anything close to what was promised.

Yes it works. I'm using this camera for the last few months on CM13. Is it perfect? No. But I prefer it to any other available option.

Remain all hopeless you like but why don't you download and test for yourself?
No, your device will not explode if that's what you are afraid of. Neither your ass will sag ffs
 
  • Like
Reactions: mariosenta

vagkoun83

Senior Member
Jan 18, 2014
194
60
63
Athens
I want to test with an aosp 6 rom. But I am a bit confused about what to install and what's the profit. I respect this project and people who try but I haven't understand clearly ..it's ok to install framework zip and lg camera? Is the any other profit or differences ?
 

xxoscarxx28

Senior Member
Mar 29, 2015
305
548
0
Resources successfully installed I think??? But we're getting this error.
Code:
E ResourceType: Failed resolving bag parent id 0x020a01c2
and this.
Code:
W WindowManager: android.view.InflateException: Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
W WindowManager: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
Here is the complete stack trace:
Code:
01-27 13:42:01.727   848   899 W WindowManager: android.view.InflateException: Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
01-27 13:42:01.727   848   899 W WindowManager: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
01-27 13:42:01.727   848   899 W WindowManager: 	at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:761)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7035)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7216)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1926)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1824)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1823)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:860)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:1829)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2561)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2634)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2048)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.policy.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:3251)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:8407)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.Handler.dispatchMessage(Handler.java:102)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.Looper.loop(Looper.java:154)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.HandlerThread.run(HandlerThread.java:61)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.ServiceThread.run(ServiceThread.java:46)
It doesn't say that Android can't find the resource required but it now says that Android can't resolve an attribute...
Then that means lge-res.apk has been parsed!!! But daym dis errors.

I followed id 0x020a01c2
Code:
<public type="style" name="Theme.LGE.White" id="0x020a01c2" />
The above resource id is in lge-res.apk. Does the public type "style" not existing on non-LG roms???

Please check by decoding framework-res.apk and search for public type="style". Anyone is allowed to perform this.

Btw, anytime soon I will also post the things we, @Startrek852 were doing so that those who wants to join will be able to contribute and hasten up testing phase.
 
Last edited:

Startrek852

Senior Member
Apr 24, 2015
848
544
123
Albuquerque
Resources successfully installed I think??? But we're getting this error.
Code:
E ResourceType: Failed resolving bag parent id 0x020a01c2
and this.
Code:
W WindowManager: android.view.InflateException: Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
W WindowManager: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
Here is the complete stack trace:
Code:
01-27 13:42:01.727   848   899 W WindowManager: android.view.InflateException: Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
01-27 13:42:01.727   848   899 W WindowManager: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x101005a a=-1}
01-27 13:42:01.727   848   899 W WindowManager: 	at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:761)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7035)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7216)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1926)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1824)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1823)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:860)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:1829)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2561)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2634)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2048)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.policy.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:3251)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:8407)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.Handler.dispatchMessage(Handler.java:102)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.Looper.loop(Looper.java:154)
01-27 13:42:01.727   848   899 W WindowManager: 	at android.os.HandlerThread.run(HandlerThread.java:61)
01-27 13:42:01.727   848   899 W WindowManager: 	at com.android.server.ServiceThread.run(ServiceThread.java:46)
It doesn't say that Android can't find the resource required but it now says that Android can't resolve an attribute...
Then that means lge-res.apk has been parsed!!! But daym dis errors.

I followed id 0x020a01c2
Code:
<public type="style" name="Theme.LGE.White" id="0x020a01c2" />
The above resource id is in lge-res.apk. Does the public type "style" not existing on non-LG roms???

Please check by decoding framework-res.apk and search for public type="style". Anyone is allowed to perform this.

Btw, anytime soon I will also post the things we, @Startrek852 were doing so that those who wants to join will be able to contribute and hasten up testing phase.
Here you go!
 

Attachments

  • style.log
    132.7 KB · Views: 42
  • Like
Reactions: mariosenta

xxoscarxx28

Senior Member
Mar 29, 2015
305
548
0
Searching for that gave me nothing.

I forgot that it is a typed value :/
After a little research, the problem somewhat points to how resource handling is done.
Resources.Theme
This class holds the current attribute values for a particular theme. In other words, a Theme is a set of values for resource attributes; these are used in conjunction with TypedArray to resolve the final value for an attribute.

Then that means we really do need to modify framework-res.apk :/ (xml etc.)
 
Last edited:
  • Like
Reactions: mariosenta

gokhanbilgin

Senior Member
Oct 8, 2012
52
7
38
Samsun
Yes it works. I'm using this camera for the last few months on CM13. Is it perfect? No. But I prefer it to any other available option.

Remain all hopeless you like but why don't you download and test for yourself?
No, your device will not explode if that's what you are afraid of. Neither your ass will sag ffs

Really its not working. I installed cm 13 last day and not working. 1080p 60Fps 4k both not working
İ m not hopping this thread.
 

matteo0026

Senior Member
Jul 1, 2015
1,159
621
143
20
Treviso
Guys if camera framework is closed source, if there will be really interest here (I'm so much interested), dev can do reverse engineering. I know that's not a good thing, but it's the only way to reach the sources.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 50
    [size=+4]LG F[/size][size=+3]RAMEWORK[/size]

    [size=+3]~~ A[/size][size=+2]NNOUNCEMENTS[/size][size=+3] ~~[/size]


    Dec 4 2016
    Deleted github repo (it's not helping)
    Oct 23 2016
    4K + HFR Mod by @defcomg (manual install only, flashable zip later)
    Oct 9 2016
    Project is now online, partially (GitHub) details below
    Sep 10 2016
    Experimental LG Camera port uploaded
    Aug 15 2016
    Opened our GDrive folder to public and overhauled OP



    [size=+3]~~ A[/size][size=+2]BOUT THE PROJECT[/size][size=+3] ~~[/size]

    LG Framework is the backbone of every bloat feature LG added and this project aims to re-inject those important things to be able to run again OEM-implemented features like QuickCover, QuickMemo, QuickSlide Apps, etc. (LG Camera included in the list)
    AOSP delivers the performance that we sought, but with those improvements come sacrifices. Other features shipped by LG aren't included in those lovely projects. So here we are, the X7 Team, and our kind and brave testers, to bring forth LG's bloat work to the world of Open-Source Softwares (not to open-source or reverse engineer it)


    [size=+3]~~ M[/size][size=+2]ISCELLANEOUS[/size][size=+3] ~~[/size]

    | LG Framework and Related Works |
    G2 Camera Chromatix Mod (second page)
    | G2 Camera by @B!GBOY |
    27
    Initial VBM testing is a success giving us more flexibility to what we can do to our device :) (actually any android armhf device)

    We can now do:
    • Offline framework recompilation
    • LG Software injection to Android resources
    • Advanced automatic rollback system in case of failures
    • Polymorph ROMs [size=-3]theoretical*[/size]

    [size=-3]By polymorph I mean adapt the ROM so that a device-specific ROM can work to another (like porting D802 roms to F320x)[/size]
    22
    Any news?

    Currently filtering out the framework to what we only need and I'm also trying to track down what caused the slowdowns and the low storage false alarm. I am also injecting a new component to the installer, OpenJDK itself (it is now running but extremely slow as it uses Zero VM)
    22
    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
    21
    [size=+1]What's Happening?[/size]
    • Currently testing the framework resource which is injected manually
    • The code part of LG Framework is now working to CM-based ROMs
    • (Low Priority) Bypass signature checks using selective exclusion to avoid security holes
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone