lglaf icon indicating copy to clipboard operation
lglaf copied to clipboard

Need help and support new devices

Open awed730 opened this issue 7 years ago • 10 comments

I'm using WIN10 32bit And I have LG X Power (Ls755 MTK based Devices with CPU MT6755) when i put the device in download mod and make the command

python lglaf.py --skip-hello --debug

it's show that the device isn't found or need to download LGusb driver. but i was able to flash stock firmware with CM2 dongle and thats means the driver installed correctly

python lglaf.py --skip-hello --debug
LAF Crypto failed to import!
LGLAF.py: DEBUG: Using serial port: None
Traceback (most recent call last):
  File "lglaf.py", line 505, in <module>
    main()
  File "lglaf.py", line 478, in main
    comm = autodetect_device()
  File "lglaf.py", line 404, in autodetect_device
    raise RuntimeError("Device not found, try installing LG drivers")
RuntimeError: Device not found, try installing LG drivers

awed730 avatar Dec 05 '17 08:12 awed730

Hi, is it possible to provide boot Linux, run the command:

lsusb > lsusb.txt
sudo lsusb -v -d 1004: > lsusb2.txt

and attach the two files?

Lekensteyn avatar Dec 06 '17 21:12 Lekensteyn

@awed730 What's a CM2 dongle? Also, judging from your XDA Post - you dont have the necessary crypto library installed -> pip install cryptography.

Then use the --rawshell commandline-switch if you are on recent firmware. Only shell-commands allowed there:

  • dmesg, umount, fota, gota, ls, mkdir, getenforce, ps, grep

tuxuser avatar Dec 07 '17 02:12 tuxuser

CM2 dongle -> flashing software for SIM unlock, partition flashing etc made by infinity box

steadfasterX avatar Dec 07 '17 08:12 steadfasterX

I think the MTK chipset is the issue. Linux is not detecting my X Power either. It does have a LAF partition however... I just bought a Stylo 3, but haven't had a chance to see if this tool works with it or not... The X Power is garbage IMHO anyway.

@Lekensteyn Give me a little while and I'll upload what you're asking for.

lsusb2.txt lsusb.txt

The device ( LG LS755 - X Power ) was in Download Mode when I ran lsusb.

shinobisoft avatar Dec 09 '17 18:12 shinobisoft

It could be wrong but here's my story (for windows): Initially I had the error about missing driver too.. But Device Manager showed a serial and MTP device... LG Mobile support tool detected the device too (and installed drivers on its own).. So I wondered why it didn't work.

Apparently I had to install the full LG Driver pack (a recent version, the one in the README is outdated) and it finally worked.

That still does not explain the Linux situation tho! Did you verify a correct udev rule, so a regular user can access the device?

tuxuser avatar Dec 11 '17 11:12 tuxuser

@shinobisoft the first lsusb output shows the LAF interface at endpoint 3 and 2. Do you have the same problem as OP, not being able to use the tool? Or is it just a problem on Windows? (Aside from this issue, you supplied some files before, I can't remember if you confirmed it working, does the support-ls996 branch work for your LS996 model? If so, should I merge it back to master then?)

@tuxuser if a different LG driver is needed on Windows, feel free to open a PR to mention it. (The current link in the README looks dead to me?) Note the original post is about Windows 10, not Linux.

Lekensteyn avatar Dec 13 '17 01:12 Lekensteyn

@Lekensteyn Yes, the LS996 branch is working just fine. I did confirm that via email. Haven't had a chance to test anything for the LS755 yet.

shinobisoft avatar Dec 13 '17 01:12 shinobisoft

@Lekensteyn After a quick test, lglaf.py DOES in fact communicate with the LS755 X Power under Linux/Ubuntu 16.04. The device is running Marshmallow. Tried a few shell commands like "ls, id, getenforce" and every response was "Hello, I am LAF. Nice to meet you."...

Sending the CTRL command works. Well "CTRL POFF" specifically. I currently don't have a lot of free time but I'll do some more thorough testing as soon as I get a chance.

To answer your question, I believe it's a Window's only communication problem.

shinobisoft avatar Dec 14 '17 23:12 shinobisoft

Everyone here ..Thank you very very much for trying to belp me. Like i said before I'm using windows and i'm not a Linux user If it's not detecting by the lglaf i'll try to install a new LG usb driver .. And everyone if you need in somehow to try something on LS755 i'm ready to let you try what ever you want via team viewer or what you preferred to use it. I have the Device and it's my plasure to let you do your things.. Even the device will going dead LoL. If we excess of making LGLAF work with LS755 it wil be a perfect Achievement and good work not for me but for other who using LG X POWER LS755

awed730 avatar Dec 15 '17 02:12 awed730

@awed730 For exact this reason FWUL exists just give it a try and check if you can communicate with your device by opening the LG folder from the desktop and doubleclick on LGlaf icon there

steadfasterX avatar Dec 15 '17 06:12 steadfasterX