[T-Mobile LG G6 Guides, News, & Discussion] laofan:
I am sorry for below long text. I tried to past it in a file but I am not used to linux. Could anyone direct me on how to get to the part 2? My phone is on 11h. I tried several times but it kept failed. Thanks.

update: I tried another usb cable on another port. and finally get pass step 2. For those who may be looking at this, just try another usb cable or another port first. I took me a couple hours trying everything out

You can re-run this script as many times as you want, however,

if you are not getting a hash match, you should try a different PC,

or a different cable, or a different USB port.

Press SPACE to continue... Flashing... this will take a while.

Size of TWRP: 28467200

Count for the dd trim: 27800

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 1 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 2 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 3 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 4 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 5 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 472, in <module>

main()

File "./partitions.py", line 419, in main

comm = lglaf.autodetect_device()

File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/programs/lglafsploit/lglaf.py", line 312, in __init__

current_cfg = self.usbdev.get_active_configuration()

File "/usr/lib/python3.6/site-packages/usb/core.py", line 875, in get_active_configuration

return self._ctx.get_active_configuration(self)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 102, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 242, in get_active_configuration

raise USBError('Configuration not set')

usb.core.USBError: [Errno None] Configuration not set

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Hash check failed after 5 attempts - exiting