-
Notifications
You must be signed in to change notification settings - Fork 976
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
Finding the Serial Device on HTC One #195
Comments
So here's the current answer that I have to your questions:
NOTE: I was not able to do any of this sucessfully until I acquired S-OFF today. @SecUpwN I will keep you updated as I test more. |
I don't think the radiooptions code is not going to get you anything, unless you know how to talk OEM_HOOK_RAW and IPC messages with /dev/socket/rild-debug. You can look at the debugCallback() in ril.cpp. (Note: This is not the same file as rild.c.) Now, I don't know how to use this, but the "old" special version of radiooptions is adding something there, so you need to look at the source code for that... |
First of all, thank you for your enthusiasm to contribute, @teknogeek! @E3V3A, also thanks to you for chiming in even after I cross-posted in a different Issue. Here is my idea, tell me if it is possible:
|
I'm about to head home but I've been scraping through the android source code for the location of the serial device or a hint towards how to find it. Gonna leave these here to know where to find again ;) http://tjworld.net/wiki/Android/HTC/Vision/RadioAnalysis#TalkingtotheRadio |
@teknogeek Unfortunately those pages are very outdated, both regarding the AOS and the baseband processor (BP) that device used. @SecUpwN Sure you can, but who want to spend the time to write and debug that? I briefly tried that and found that if you try to connect to certain serial driven devices and it's not strictly using a serial protocol, have other weird settings or used by other important processes, you will lock-up the scanner process or messing up the system, while you're at it. So such a scanner would have to be more intelligent and using knowledge of the specific hardware. Finally, if we get QMI/IPC or RIL access or ServiceMode scraping, we don't need it. |
Thanks for clarifying that an automated crawler would not be a solution to this Issue. So are you saying that we should focus on #145 to enable protection measures for HTC One devices? I am just very concerned if we will ever get there for Custom ROMs like my beloved AOKP. If searching for QMI/IPC or RIL access or ServiceMode, which of these would every ROM have? I am just trying to evaluate what makes most sense putting time and effort into, I want Custom ROMs to be able to use our App as best as possible - just like all the stock ROMs out there. So please tell me the truth on this question here. |
@SecUpwN An automated device enumerator would be great, but is not worth the effort IMO. There are too many unknown variables to test for, while risking locking up your device at every step, requiring a reboot. (Things like, baudrate, echo, "tty properties" etc etc.) Learning to use /dev/sockets/rild + rild-debug and understanding IPC's is a much more productive and general way to accomplish what we need. (QMI is using IPC.) Once we use lower level interfaces like QMI, we become HW and ROM dependent again. |
In which open Issue are we investigating this, @E3V3A? Is there anything @teknogeek and I can investigate on our phones to drive towards success? Feel free to link to specific instructions and tell us where to post our findings here on GitHub. I will close this Issue right after you've done so. Thank you! |
@SecUpwN I am already looking into how to communicate with rild and rild-debug :D |
Great! But do we have an open Issue for this here on GitHub for everyone to follow and contribute to, @E3V3A? If not, shall I open one and link it to this Issue so that anyone reading this can jump over? I will close this Issue after E:V:A replied. Thanks for your post containing a smiley, doesn't happen every day. |
All the info about how to use RIL related devices are scattered all over the place (and internet), so there is no particular issue here. The closest is the "OEM_HOOK_RAW" titled issue, but that thread is already getting very long and not very on topic. So I suggest we open a small issue here, and direct everyone to do the discussions/testings in the XDA thread, instead. Then lock the GH issue. Once we've reached enlightenment, we can post the conclusion here and close the issue. I'll open one now. |
Is it # 199 which you mean, @E3V3A? I just want this to be clear before closing this Issue. |
No #200. |
Good evening, everyone! Since it seems that the HTC One M7 lacks
/dev/radio/
(at least on my personal device), we need to find the correct Serial Device to enable scraping important values used for IMSI-Catcher and Silent SMS detection on our HTC One devices. This Issue shall be for discussing possible solutions to this - and especially for hunting down the correct Serial Device. For a great graphical explanation on how the whole Serial Device thingy works, see this post on XDA.Since the HTC One has a Qualcomm based modem, we must have a Serial Device. Hunt it down!
Important Note: Finding the Serial Device is device specific. While our project really wants to support as many devices as possible, it depends on you finding the serial device (unless someone contributes a pull request with some sort of "Serial Device Crawler" which finds all Serial Devices automatically). This Issue is meant for finding the Serial Device on the HTC One device series, please let us know if the place of your Serial Device is the same when you are on another phone. This helps us improving our ATCoP.
Questions I'd like to see answered (@teknogeek, you are invited to respond here):
/dev/radio/
or rather all or specific HTC One devices?radiooptions
under/system/bin/
while on Stock?radiooptions
under/system/bin/
while on Custom ROM?radiooptions 13 AT
on root shell?radiooptions
with this (backup first)?Here is what I got for my own device running AOKP, which is a Custom ROM:
To find the correct ATCoP enabled shell serial device, please follow this post and post your findings here!
The text was updated successfully, but these errors were encountered: