MTK-bypass / bypass_utility

MIT License
460 stars 114 forks source link

Cannot use this tool #48

Closed kayshinonome closed 2 years ago

kayshinonome commented 2 years ago
root@latitude-e6430 /home/kayshinonome/Code/bypass_utility # python3 ./main.py
[2021-08-19 11:15:10.093980] Waiting for device
[2021-08-19 11:15:10.094984] Found device = 0e8d:201c
Traceback (most recent call last):
  File "/home/kayshinonome/Code/bypass_utility/./main.py", line 237, in <module>
    main()
  File "/home/kayshinonome/Code/bypass_utility/./main.py", line 40, in main
    device = Device().find()
  File "/home/kayshinonome/Code/bypass_utility/src/device.py", line 109, in find
    self.ep_in = usb.util.find_descriptor(cdc_if, custom_match=lambda x: usb.util.endpoint_direction(x.bEndpointAddress) == usb.util.ENDPOINT_IN)
  File "/root/.local/lib/python3.9/site-packages/usb/util.py", line 192, in find_descriptor
    return _interop._next(desc_iter(**args))
  File "/root/.local/lib/python3.9/site-packages/usb/_interop.py", line 68, in _next
    return next(iter)
  File "/root/.local/lib/python3.9/site-packages/usb/util.py", line 183, in desc_iter
    for d in desc:
TypeError: 'NoneType' object is not iterable
kayshinonome commented 2 years ago

The pre cc0c8b8d80986918616f9c544a7437784e8a4cce versions simply do nothing, and the ones after that give this error

kayshinonome commented 2 years ago

Nvm, rebooted as I ran the tool and it was fixed

mpotane commented 2 years ago

same problem rebooting pc doesn't fix

kayshinonome commented 2 years ago

No, reboot the phone

kayshinonome commented 2 years ago

It's a preboot exploit

mpotane commented 2 years ago

as i connect my powered off phone + volume while running the tool. Keeps getting error

kayshinonome commented 2 years ago

Is the tool waiting while the phone is boot? For my phone i just ran the program, and while it was plugged in, rebooted it

mpotane commented 2 years ago

When you reboot the tool won't be able to detect the device