Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make it work on Pixel 4 XL rooted and Diag port enabled? #105

Open
daniyals48 opened this issue May 7, 2024 · 0 comments
Open

How to make it work on Pixel 4 XL rooted and Diag port enabled? #105

daniyals48 opened this issue May 7, 2024 · 0 comments

Comments

@daniyals48
Copy link

daniyals48 commented May 7, 2024

You connect your phone in No data transfer mode.
Enter these commands:
adb shell
su
resetprop ro.bootmode usbradio
resetprop ro.build.type userdebug
setprop sys.usb.config diag,diag_mdm,adb
diag_mdlog
Once you see long list of logs select data transfer from USB connection and you will have diag port enabled.
However, I see the following errors:
****[20:25:27 | ERROR @ usb_modem_pyusb.py:57 ] [!] Can't write to the USB device. Maybe that you need root/administrator privileges, or that the device was unplugged? Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/qcsuper/inputs/usb_modem_pyusb.py", line 55, in send_request
self.dev_intf.write_endpoint.write(raw_payload)
File "/usr/local/lib/python3.11/dist-packages/pyusb-1.2.1-py3.11.egg/usb/core.py", line 408, in write
return self.device.write(self, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyusb-1.2.1-py3.11.egg/usb/core.py", line 989, in write
return fn(
^^^
File "/usr/local/lib/python3.11/dist-packages/pyusb-1.2.1-py3.11.egg/usb/backend/libusb1.py", line 837, in bulk_write
return self.__write(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyusb-1.2.1-py3.11.egg/usb/backend/libusb1.py", line 938, in __write
_check(retval)
File "/usr/local/lib/python3.11/dist-packages/pyusb-1.2.1-py3.11.egg/usb/backend/libusb1.py", line 602, in _check
raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

[20:25:32 | ERROR @ _base_input.py:281 ] Error: Diag request DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x00\x00\x00\x00' timed out
[20:25:32 | INFO @ usb_modem_pyusb.py:76 ] Connection from the USB link closed****

and in the wireshark I see this:
Could not create profiles directory
"/root/.config/wireshark": Permission denied.
You don't have permission to read the file "hosts".

and some other file permission erorrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant