Comments (8)
Hello,
Thank you for your feedback and ioctl log! I have updated the concerned source code in 02c2a54, and recompiled the binary. Can you tell me whether you obtain different results?
Regards,
from qcsuper.
Hi,
Looks like that issue is fixed, but now, when I use adb shell
and run the adb_bridge
as root on the phone. It prints Connection to Diag established
.
But, If I run adb shell su -c /data/local/tmp/adb_bridge
(like the python script does), it doesn't print above message. Since the python script expects this output, python script just get stuck when I run ./qcsuper.py --adb --wireshark-live
I tried commenting out the for loop at https://github.com/P1sec/QCSuper/blob/master/inputs/adb.py#L141, but then I get a crash
Traceback (most recent call last):
File "/Users/madushan/Dev/my/QCSuper/inputs/_base_input.py", line 156, in _read_thread
self.read_loop()
File "/Users/madushan/Dev/my/QCSuper/inputs/adb.py", line 249, in read_loop
socket_read = self.socket.recv(1024 * 1024 * 10)
ConnectionResetError: [Errno 54] Connection reset by peer
from qcsuper.
Just figured out that if I run the adb_bridge as root separately, and then run the script. It works properly, I can see the packets showing up in wireshark.
from qcsuper.
Thank you for your feedback; when you were talking about "running the adb_bridge as root separately", is this about running another command than adb shell su -c /data/local/tmp/adb_bridge
? e.g., using adb root
, spawning an adb shell
then running the su -c
command, using the sudo
command, or another mean?
If no, does it differ from just running adb shell su -c /data/local/tmp/adb_bridge
as mentioned above?
Thank you!
from qcsuper.
Yeah, running adb shell su -c /data/local/tmp/adb_bridge
, and then running ./qcsuper.py --adb --wireshark-live
works. Even though the first command doesn't output anything to stdout.
from qcsuper.
Ok. Here are a few things I would suggest for further troubleshooting:
- May it be confirmed whether replacing
adb shell
withadb exec-out
(i.e, editing theinputs/adb.py
file of the source code and replacing'shell'
with'exec-out'
) outputs something? I have read that this more recent adb command may ensure that buffering is disabled. However it may not work on older devices. - Can you provide the version for your local and remote adb instances, by running:
adb version
andadb shell su -c "adbd --version"
- Can you confirm whether you can run other commands through
adb shell su -c
and obtain output, for example:adb shell sh -c id
- Can you confirm whether you are using a Linux system?
Regards,
from qcsuper.
I'm having the same problem as @madushan1000. Replacing shell
with exec-out
does fix the issue.
Also something to note, if I disconnect the device and reconnect it I get the error ioctl: Invalid argument
. Setting up a signal handler to close diag_fd
probably should fix that.
from qcsuper.
I needed to add sleep 5, cause file not quite there it thinks.
from qcsuper.
Related Issues (20)
- No NAS present in 5G QCDM (Qualcomm Diag) protocol packets HOT 1
- old Motorola worked
- Snapdragon 8 gen 3 PCI Express HOT 1
- Confirmation QCSuper working on Pinephone Pro
- How to make it work on Pixel 4 XL rooted and Diag port enabled?
- Impossible to start 4G LTE usb qualcom modem (huawei)
- Reporting MC7455 is working HOT 1
- ERROR @ adb.py:424
- I am trying to connect this QCSuper tool with ue samsung s22. HOT 4
- Huawei E1552 works with QCSuper
- Nokia6 (TA-1021) working successfully
- Local InfluxDB HOT 2
- Working Device - Quectel EP06-E HOT 1
- Qualcomm X55 modem support? HOT 1
- Wireshark Not Capturing Packets
- Logging only lasts a few seconds with Samsung S21 HOT 1
- Samsung Galaxy S5 working successfully
- No module named 'src.modules' HOT 1
- regarding snapdragon 8 gen 3
- Support alternate file system with Qualcomm modem modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qcsuper.