Skip to content

"IndexError: index out of range" for image chunk[5] #53

@JohnVeness

Description

@JohnVeness

Hi, I'm trying to get "run_55b4.py" working on my Lenovo IdeaPad S540-15IWL GTX, in openSUSE Tumbleweed.

I've got this error:

Type 1523 to continue and confirm that you are not a bot: 1523
__init__(21940, <class 'protocol.USBProtocol'>, 5)
Found Goodix device: "Goodix FingerPrint Device" from "Generic" on bus 1 address 6.
Found interface data: 0
Found endpoint in: 0x82
Found endpoint out: 0x1
empty_buffer()
nop()
firmware_version()
Firmware: GF3268_RTSEC_APP_10041
preset_psk_read(3137470471, None, None)
Valid PSK: True
get_iap_version(25)
IAP: MILAN_RTSEC_IAP_10027
reset(True, False, 20)
read_sensor_register(0, 4)
read_otp()
request_tls_connection()
upload_config_mcu(b'`\x11`q$\x95,\xc1\x14\xd5\x10\xe5\x00\xe5\x14\xf9\x03\x04\x02\x00\x00\x08\x00\x11\x11\xba\x00\x01\x80\xca\x00\x07\x00\x84\x00\xc0\xb3\x86\x00\xbb\xc4\x88\x00\xba\xba\x8a\x00\xb2\xb2\x8c\x00\xaa\xaa\x8e\x00\xc1\xc1\x90\x00\xbb\xbb\x92\x00\xb1\xb1\x94\x00\x00\xa8\x96\x00\x00\xb6\x98\x00\x00\xbf\x9a\x00\x00\xbaP\x00\x01\x05\xd0\x00\x00\x00p\x00\x00\x00r\x00xVt\x004\x12&\x00\x00\x12 \x00\x10@\x12\x00\x03\x04*\x01\x02\x00"\x00\x01 $\x002\x00\x80\x00\x01\x00\\\x00\x80\x00V\x00\x08 X\x00\x01\x002\x00,\x02\x82\x00\x80\x0c\xba\x00\x01\x80\xca\x00\x07\x00*\x01\x82\x03 \x00\x10@"\x00\x01 $\x00\x14\x00\x80\x00\x05\x00\\\x00\x00\x01V\x00\x08 X\x00\x03\x00\x82\x00\x80\x14*\x01\x08\x00\\\x00\x80\x00b\x00\t\x03d\x00\x18\x00"\x00\x00 *\x01\x08\x00\\\x00\x00\x01R\x00\x08\x00T\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9ai')
mcu_switch_to_fdt_mode(b'\r\x01\x80\x12\x80\x12\x80\x98\x80\x82\x80\x12\x80\xa0\x80\x99\x80\x7f\x80\x12\x80\x9f\x80\x93\x80~', True)
mcu_get_image()
Traceback (most recent call last):
  File "/home/john/coding/goodix-fp-dump/run_55b4.py", line 3, in <module>
    driver_55x4.main(0x55b4)
    ~~~~~~~~~~~~~~~~^^^^^^^^
  File "/home/john/coding/goodix-fp-dump/driver_55x4.py", line 261, in main
    run_driver(device)
    ~~~~~~~~~~^^^^^^^^
  File "/home/john/coding/goodix-fp-dump/driver_55x4.py", line 158, in run_driver
    tool.decode_image(tls_server.stdout.read(14260)[:-4]),
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/john/coding/goodix-fp-dump/tool.py", line 43, in decode_image
    image.append(((chunk[5] & 0xf) << 8) + chunk[2])
                   ~~~~~^^^
IndexError: index out of range

Any ideas? Many thanks for your work on this :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions