Android radiooptions binary

Android radiooptions binary

Author: 1234DOC Date: 24.06.2017

I'm trying to write an app to talk to the rild. And Yes, I know this is not politically correct, but it's an embedded industrial telemetry app so I'm not concerned about user experience, portability and all that stuff.

The problem is that when I try to connect, I get a java. Can anybody help me? The phone Nexus One is rooted with Cyanogenmod 7 and the app is running as superuser using the "SuperUser" app from Market. BTW I initially tried to use the frameworks but got a humongus boatload of errors mostly about java and and third party classes unknown, so I gave up after days of hair-pulling.

I've also STFW and this site - lot's of dancing around the issue but no concrete advice.

BLARE

On the java end of the rild socket is an instance of com. PhoneApp is a persistent app which, not surprisingly, provides the phone functionality. Disabling PhoneApp should kill any java-side use of the rild socket. You also might want to try connecting to "rild-debug", which is unused but may be ignored by the ril-daemon. In recent versions of Android and, likely, in the earlier versions , rild-debug is not meant to accept a full range of commands; only predefined commands are accepted.

By posting your answer, you agree to the privacy policy and terms of service.

By subscribing, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

Compile binary or cell radio on | Sony Xperia Z2

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: How to Connect to rild Socket Ask Question. Any help greatly appreciated.

android radiooptions binary

DontPanic 3 BTW - You can see the comms between the RIL layers by doing logcat -b radio. Please post back if you come up with a workaround. Cesar Maiorino 3 Thanks, I'll try that. I can get no exception on connect but get no response when I send a command.

I'm not sure I'm sending a valid command having reverse engineered it. I'll report back on progress so as to be helpfult to others. Your best bet is looking at the source for RIL. Yeah, I tried that but it proved just too difficult because it was so layered and abstracted. But I found the real solution: I found I can connect to the "rild-debug" socket just fine, and do what I need. I am doing more or less the same thing as u asked originally, as i tried to connect to ril-debug socket and after some workaround i was able to do that: All my code is in c language.

I somehow vaguely know that IPC binder class in android exchanges parcels of data across the socket of rild but it happens in java and i want to be in c language.

Can you please tell me how am i gonna achieve that? I can share detail information if you are willing to help. Here's how I did it: The commands are binary-encoded.

MT65x2_kernel_lk/sotoyege.web.fc2.com at master · ariafan/MT65x2_kernel_lk · GitHub

You may also have to change the permissions on the socket to be world-writable using Runtime. I'd publish the source code but it was part of a customer project. BTW - AFIK you can only write, not read. LOGI "Connection on debug port: On my project, I just hacked across init scripts, hex-edited socket name in librilmtk. Can you please post an example about how to send USSD request via rild, having root access?

RankoR I can't show that source right now, and 'root access' by itself actually is not mandatory - my end application can run as ordinary user. Your best hope to complete this quickly - is to target all AOSP 1-sim phones with custom libril. RankoR some kind of modified libril. RankoR also, USSD requests are solicited, meaning a that rild will alert phone about USSD reply b I warned in my answer that RIL requests are incrementally numbered, so you'll have to go writing proxies and filtering all ril requests anyway..

Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers.

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

Rating 4,9 stars - 892 reviews
inserted by FC2 system