permissions related to /dev/alarm and setting the system

by Dianne Hackborn » Sat, 11 Apr 2009 05:05:56 GMT


Sponsored Links
 Please read the documentation in the SDK on the security model.

You can look at the alarm device to see its permissions:

$ adb shell ls -l /dev/alarm
crw-rw-r-- system   radio     10,  45 2009-04-10 09:03 alarm

So anyone can read it, and only the system uid can write it.

On Fri, Apr 10, 2009 at 12:53 PM, Richard Schilling <





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. start Activity without Manifest

Hi!
I create my Network provider and I want to start Activity from it.
Is it necessary to create separate Activity with Manifest and then
launch it using startActivity?
Can I launch unregistered Activity directly from my provider?

--~--~---------~--~----~------------~-------~--~----~

2. Multiple ProximityAlert problem

Hi,
   After a long fight I was able to create a PendingIntent and add it to the
LocationManager.ProximityAlert() and get called when an GPS location is
received. However, I need to have multiple locations set. I called
addProximityAlert() many times (changing the RequestCode as suggested in
other e-mail thread) and creating new instances of MyBroadcastReceiver
class, but the result is always the same: all receivers are called. No
matter where I am, all added receivers get called (i.e. when I get in the
radius of a given location, that location and all others that I added will
receive the event).

   Is there any way that I can add multiple locations to be alerted? How can
I do that? I noticed that addProximityAlert() has some issues (as detailed
in http://code.google.com/p/android/issues/detail?id=107). Is the behavior
I'm seeing an issue too?

Thanks,

--~--~---------~--~----~------------~-------~--~----~

3. Get the time we pressed a button

4. Porting HTC Viva or Dual?

5. sending image with URL attached to end of image

6. I want to decode image bitmap retrieved from Picture application

7. How do I get the View dimension after the View has been laid out?