R0rt1z2 / lkpatcher

Streamline tool and module to patch bootloader (LK) images of MTK device(s).
https://lkpatcher.r0rt1z2.com
GNU General Public License v3.0
52 stars 10 forks source link

TCL 5102 #9

Open CE1CECL opened 3 months ago

CE1CECL commented 3 months ago

The TCL A30 doesn't have any options in stock recovery other than to reset the device, and there isn't a fastboot mode I can get out of it. Vol+ + Pwr goes to recovery, Vol- + Pwr, nothing but boot normal. Any help possible?

R0rt1z2 commented 3 months ago

Send me the LK image and I will take a look.

CE1CECL commented 3 months ago

5102L.zip

CE1CECL commented 3 months ago

expdb.txt

R0rt1z2 commented 3 months ago

Assuming you have checked that you can boot unsigned LK images, you can try this one. It also includes an script to force the boot mode. Try using python3 handshake2.py FASTBOOT and connecting the device powered off (the script waits for a device in preloader mode).

CE1CECL commented 3 months ago

Assuming you have checked that you can boot unsigned LK images, you can try this one. It also includes an script to force the boot mode. Try using python3 handshake2.py FASTBOOT and connecting the device powered off (the script waits for a device in preloader mode).

# python3 handshake2.py FASTBOOT
Waiting for preloader...
Found port = /dev/ttyACM0
Traceback (most recent call last):
  File "/root/handshake2.py", line 96, in <module>
    handshake()
  File "/root/handshake2.py", line 57, in handshake
    c = dev.read()
  File "/usr/local/lib/python3.10/dist-packages/serial/serialposix.py", line 595, in read
    raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

and it still boots to recovery

R0rt1z2 commented 3 months ago

Assuming you have checked that you can boot unsigned LK images, you can try this one. It also includes an script to force the boot mode. Try using python3 handshake2.py FASTBOOT and connecting the device powered off (the script waits for a device in preloader mode).

# python3 handshake2.py FASTBOOT
Waiting for preloader...
Found port = /dev/ttyACM0
Traceback (most recent call last):
  File "/root/handshake2.py", line 96, in <module>
    handshake()
  File "/root/handshake2.py", line 57, in handshake
    c = dev.read()
  File "/usr/local/lib/python3.10/dist-packages/serial/serialposix.py", line 595, in read
    raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

and it still boots to recovery

That's really weird, I forced boot mode to be 99 regardless of the key combo. I guess it won't be as easy as that, then. I can try to port my LK payload to your device but that might take a bit of effort and time. I will do it tomorrow. For quicker and more convenient testing, feel free to reach out to me on Telegram at: t.me/R0rt1z2 (if you don't have, then let's just continue here).