Comments (4)
Hello,
Thank you for your feedback. Yes, through writing some dedicated C code, it would be possible to write the DLF frames to the flash memory of your handled device by running a standalone daemon on the Android system.
In QCSuper, the ioctl call to the /dev/diag
device is performed from this file: https://github.com/P1sec/QCSuper/blob/master/inputs/adb_bridge/adb_bridge.c this code purports to forward the raw Diag frames obtained from the character device to a TCP socket.
The following modifications should be done to achieve what you are trying to do:
- Replace the code writing to a server TCP socket by code handling the Diag framing further:
- Parse the basic Diag framing (https://github.com/P1sec/QCSuper/blob/master/docs/The%20Diag%20protocol.md#the-diag-protocol-over-usb)
- Filter in only DIAG_LOG_F packets
- Remove the first header of DIAG_LOG_F packets, in order to retain only their inner part that is contained in DLF files, as done here: https://github.com/P1sec/QCSuper/blob/master/inputs/_base_input.py#L325
- Write the obtained contents on the SD card or flash drive folder of the device
The concerned program should be cross-compiled, then launched through the background from ADB (e.g adb shell sh -c "cd /your_transfer_location; ./your_program &"
as root)
Regards,
from qcsuper.
Hey!
Thank you for that extremely cool answer. It is super detailed. Thank your for taking that time.
Hope we can try it soon.
from qcsuper.
hey, it's a pretty long time to post, I tried with Galaxy 4 GT-I9505, but it said "Could not find /dev/diag, does your phone have a Qualcomm chip", Yes there is no /dev/diag directory on it.
how did you solve this issue, you seemed to address this issue.
Thanks.
from qcsuper.
@SebastienChevalley please specify what firmware and version is flashed on your Samsung Galaxy S4 GT-I9505.
Can you please write detailed instruction how you managed to get all working?
Thank you!
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
- Does it work on linux on android?
- Not working on Oneplus Nord (avicii) PixeExperience 13+
- Update for Android 13 & 14 HOT 3
- Qcuper dose not work on G620s rooted phone
- 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.