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. Getting Current Location on my Device works on emulator but not on my device

I am getting the same issue as iDeveloper. I tried playing around with
the listener  (putting 2, 200, or 2000) , but the thing is the map is
not changing at all.

Also, I am not getting the GPS icon on the phone screen.

any luck?


PS: Everything is working perfectly with the emulator


2. open spinner from button

i like to start a spinner after pressing a button.
(a button, not a spinner defined in my layout)

i tried:
(bweeks is the button)

final Spinner spinner = new Spinner(this);
ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(this,
new String[] { "Apple", "Peach", "Banana" });


bweeks.setOnClickListener(new OnClickListener() {
public void onClick(View v) {

i know there is something wrong.. even how would i get back what item
are clicked?
(its easy when i implent a spinner in my layout.. but i like to start
the spinner after
pressing a button? is that possible



3. Get Manifest versionname by Code?

4. java.awt

5. can i reinstall Android on G2

6. how to handle hardware volume controls

7. Get latitude & longitude of center of MapView