1. Download our Official Android App: Forums for Android!

Apps socket & rild issue

Discussion in 'Android Development' started by birdflyhigh, Jul 28, 2010.

  1. birdflyhigh

    birdflyhigh Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jul 28, 2010

    Jul 28, 2010
    1
    0
    5
    Hi, all,
    I added a new Javascript object, whose souce code is located in external/webkit/JavescriptCore/runtime/
    and in this object, I wanna get information like neighbouring cell id, so I need to send a RIL_REQUEST_GET_NEIGHBORING_CELL_IDS request. that is pretty much what I wanna achieve.
    so I tried to access the rild by socket:
    socket_local_client(SOCKET_NAME_RIL, ANDROID_SOCKET_NAMESPACE_RESERVED, SOCK_STREAM)
    and it failed. then I execute command: adb shell chmod 777 /dev/socket/rild, and then I succeed to open the socket. now I try to send the request to rild, and in the client side, the send operation is successful (since the return value of send seems right), but I trace into the /hardware/ril/libril/rild_event.cpp, I found out rild didn't receive my request! (I print a log after "select" of function ril_event_loop(), and it indicated rild didn't receive my request), also I execute "adb shell logcat -b radio", which also shows the sign that my request hasn't been received by rild.
    could anyone shed some light on this? or does anyone have better method to communicate with rild and get the information i want?
     

    Advertisement

Share This Page

Loading...