Fix MT6768 BROM USB handshake and interface selection (0e8d:0003)#264
Open
chinmayabansal wants to merge 2 commits into
Open
Fix MT6768 BROM USB handshake and interface selection (0e8d:0003)#264chinmayabansal wants to merge 2 commits into
chinmayabansal wants to merge 2 commits into
Conversation
- usb_ids: use interface 1 for PID 0x0003 (bulk endpoints on CDC data iface) - Port: accept same-byte handshake echo over USB (MT6768 BROM command mode) - mtk_da_handler: init preloader when USB device already connected in BROM - exploit_handler: surface exception details on payload send failure Tested: Lenovo Tab M9 TB310XU (MT6768, HW 0x707), sudo python3 mtk.py e frp
Keeps the error message string on failure; stack trace only with --debugmode.
Author
|
Re Pushed a follow-up commit — stack trace now goes through Happy to adjust further if you prefer a different logging pattern. |
Owner
|
I don't think I can add this patch, as it would break a lot of other devices. Can you please explain why you did the changes the way you did ? because some of them do not even make sense (connect is happening after connected state is checked - thus will never work) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes BROM communication for MediaTek MT6768 (Helio P65/G85) over USB CDC when the device enumerates as
0e8d:0003.Problems fixed
0x0003used interface-1(auto); auto-select picked CDC comm interface 0 (interrupt only, no bulk). Bulk endpoints are on interface 1.Handshake failed, retrying...).preloader.init()was skipped →Please disconnect, start mtkclient and reconnect.AttributeErrorwhen--serialportwas used).Test device
0x707Setup/Linux/, ModemManager maskedsudo python3 mtk.py e frp0x1508000, device boots to setup wizard without account lockNotes
--serialport(Kamakiri2 requires USBctrl_transfer).Checklist