change rild privilege

by srinivas » Fri, 06 Mar 2009 19:54:03 GMT

Sponsored Links
In android, Does RILD run with root privileges?
If so, can we change its privileges?
Please let me know how and where we can change these privileges.
Any pointers will be very helpful.


change rild privilege

by Mads Kristiansen » Fri, 06 Mar 2009 20:55:38 GMT

 Looking at init.rc:
service ril-daemon /system/bin/rild
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc

So it seems to be running as root, but it seems to be possible to change it,
so I'd just try it.

/ Mads


Sponsored Links

change rild privilege

by srinivas » Mon, 09 Mar 2009 14:13:01 GMT

 Hi, id did change these options, the code in rild.c under hardware/ril/
rild/ has a fucntion switchuser(). The code in thie switches the uid
of RILD to radio, but if i un comment this, ril is not working, its
not even getting initialized.


On Mar 6, 5:55pm, Mads Kristiansen <>


change rild privilege

by Ajith » Sun, 15 Mar 2009 06:35:55 GMT

 Hi Srinivas:
 Did you get further with this issue? I am also seeing the same
behavior. It seems like commenting out switchuser() is the hack that
works for now. But as far as I know, rild is not to be touched by ril
implementations, so there must be some cleaner way of fixing this.


Other Threads

1. How to install Android on my PDA

Hi Iam looking for resource that will help to install Android on my PDA
(Imate Kjam) ? can somebody give me a pointer for it ? or is it possible at
all !!!


2. Displaying already existing activities

Hello everyone,

I am trying to display activities that were already created but are
currently in the background. The problem is that I use startActivity
or startSubActivity from the current activity to display them, which
will create a new instance of the background activity. When calling
finish on this new instance, I would want all instances of that
activity to be closed, which is not the case. I could use
launchMode="singleInstance" in the manifest file, but I don't like how
the transition is done between different activities (i.e., when
starting a new activity from my single instance one, an empty screen
is displayed, then the single instance activity is displayed again for
a couple of seconds, then the new (map) activity is shown -- this only
happens when displaying a map activity). If I don't use single
instance on my original activity, the transition is done smoothly.

I tried using an approach mentioned in a previous thread, where I
first have to get the task id for the activity and use that when
trying to bring it to the foreground, but I get the same task id for
every activity that I create. Single instance would have solved that
also, but as mentioned above, I dislike the screen transition

It would have been nice to be able to get a list of all existing
(background) activities and close them manually, but I don't think
it's possible.

If I call finish() write after I start a new activity, an intermediate
screen appears before showing the new activity, which I dislike also.
I am implementing the whole onActivityResult concept, but this goes to
waits (at least in my case) when more than one instance of an activity
is running, since I want all instances to be closed when one is.
Hence, exiting the application has become more cumbersome.

How can I solve this problem?

Thank you,

3. Cross-fading?

4. Logcat stopped working

5. Discussion on media-sample-apps

6. Updating View in a SimpleCursorAdapter

7. Notepad exercise1 - error on import line