permissions related to /dev/alarm and setting the system

by Richard Schilling » Sat, 11 Apr 2009 03:53:51 GMT

Sponsored Links
 I understand that userland apps on android cannot set the system
clock.  Wanting to know more about how the security mechanism is set
up for the system I did some digging around in the source code.

/dev/alarm is opened R/W to set the system clock using

Can someone explain how the permissions work to determine whether or
not an application has permission to set the clock.

I assume it's just a user level permission, and the write bit for /dev/
alarm is only enabled for the "system user" and not the "userland
user" applications run under.

But, if someone can set me straight or confirm that what I'm thinking
is true that would be great.



Richard Schilling

Other Threads

1. AutoCompleteTextView for contacts

How can I have a AutoCompleteTextView which autocompletes from the
Contacts, the way the Messaging app does?

It's possible to read the contacts from the Contacts provider, and use
this for the AutoCompleteTextView's adapter. But, how does the
Messaging app show two lines with the contact name and the type of
information (home, mobile, other) in gray?


2. Tmobile Android touch screen not working after 2 minutes broswing.

If by "hard reset" you mean "factory reset", rest assured you won't
have to SIM-unlock your phone again.
You *will* have to link to your Google account but that's another thing.



3. error in creating object of FileTransferManager manager

4. How to Add Hardware Support to Android?

5. Highlight an Item In listactivity

6. project is not running on sdk

7. Is it safe to Install HTC/Dream/G1 builds created from git repo?