Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not read usb dump on G4 in wireshark #35

Open
steadfasterX opened this issue Dec 11, 2017 · 1 comment
Open

Can not read usb dump on G4 in wireshark #35

steadfasterX opened this issue Dec 11, 2017 · 1 comment

Comments

@steadfasterX
Copy link
Contributor

steadfasterX commented Dec 11, 2017

I have added these new items to the lglaf.lua:

usb_product:add(0x1004633e, lglaf) -- LG G4 (H815 on LP)
usb_product:add(0x1004633a, lglaf) -- LG G4 (H815 on MM)

(yes they are different on between firmwares...)

Here is a dump taken while flashing with LGup:

excerpt: https://www.androidfilehost.com/?fid=889964283620771461
full: https://www.androidfilehost.com/?fid=889964283620771457

for reference here is the lafd from the device: http://www.filedropper.com/lafdg420p

LG LAF lua gets loaded it seems as I can see it in the protocols but it does not translate the dump..

Any help highly appreciated!!

The reason is I need to debug the issues for #7 and #24

@tuxuser
Copy link
Contributor

tuxuser commented Dec 14, 2017

@steadfasterX already knows, but here is the summary for others with the same problem:

https://github.com/Lekensteyn/lglaf/blob/master/lglaf.lua#L104

function lglaf.init()
    local usb_product = DissectorTable.get("usb.product");
    usb_product:add(0x1004633e, lglaf) -- LG G3 (D855) or LG V10 (H962)
    usb_product:add(0x1004627f, lglaf) -- LG G3 (VS985)
    usb_product:add(0x10046298, lglaf) -- LG G4 (VS986)
    --- Add your device id here

https://github.com/Lekensteyn/lglaf/blob/master/lglaf.lua#L44

--- Possibly comment out the following:

if not ((endpoint == 0x85 or endpoint == 3) and transfer_type == 3) then
   return 0
end

UPDATE:
If it still does not work, add the following after usb_product:add

local usb_bulk_dissectors = DissectorTable.get("usb.bulk")
usb_bulk_dissectors:add(0xFF, lglaf)
usb_bulk_dissectors:add(0xFFFF, lglaf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants