lglaf icon indicating copy to clipboard operation
lglaf copied to clipboard

Can not read usb dump on G4 in wireshark

Open steadfasterX opened this issue 8 years ago • 1 comments

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

steadfasterX avatar Dec 11 '17 18:12 steadfasterX

@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)

tuxuser avatar Dec 14 '17 22:12 tuxuser