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
SystemClock.setCurrentTimeMillis.

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.

Thanks.

Cheers,

Richard Schilling
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Moving two views together

Hello,

I currently have one Scrollview which contains a table layout and one
list in my activity. Now my problem is that I wanted to move both of
them(Scrollview and list) together and with proper synchronization...
So if scrollview is being scrolled then listview should also scroll
with the same distance, and vice versa...

Thanks in advance..

Abhishek

-- 

2. Hadits Arbain 10 bahasa RC

Hmm, testing dulu ahh :)

@lutfihidayatr
im not a google defender but i always love google innovation




dear All,
cuma pengen share release candidate salah satu hasil latihan buat aplikasi
yang sempat terbengkalai karena ngerjain yang lain, rencananya mau
diperbaiki dulu sebelum di upload di android market; oleh karena itu minta
masukan dari rekan - rekan semua.

oh iya, sebenarnya sudah ada setidaknya 2 aplikasi sejenis (hadits arbain)
yang juga free; aplikasi ini dibuat meski awalnya hanya untuk belajar :)
tapi memiliki fitur tambahan yang belum ada di aplikasi sejenis yang lain:

1. hadist dalam bahasa Arab + 9 pilihan terjemah, mulai dari bahasa
Indonesia, jepang sampai Rusia
2. stream audio recitation yang sangat Indah (ini beneran, yang baca
hadistnya suaranya memang bagus banget [?])
3. Gratis (yang lainnya juga gratis sih :D )
4. video demo di youtube: http://www.youtube.com/watch?v=rUXOXRUeltQ (simple
banget, gak ada splash screen, cuma ada menu settings + about [?])

*warning:*
data audio di stream, jadi pastikan anda langganan data-plan /koneksi ke
provider, biar pulsa gak habis (meski ukuran masing audio tiap hadist kecil,
tapi data tidak disimpan di sdcard).

mohon email saya, jika menemukan salah terjemah (typo atau salah) maupun
bugs.

semoga bermanfaat bagi semuanya :)


catatan:
hadist arbain adalah kumpulan hadist (42 buah hadits) yang dikumpulkan oleh
Imam Nawawi rahimahullah, seorang ulama yang faqih, zahid dan sangat wira'i.
meskipun ada didalmnya, menurut sebagian ulama, hadits yang dhoif (lemah)
akan tetapi hadits tersebut masih bisa digunakan untuk fadhoilul amal


-- 
Best Regards,
hakim

    

-- 
"Indonesian Android Community [id-android]"

3. ArrayIndexOutOfBoundException while reading the file

4. Responsiveness problem

5. Map app with GPS is not working in Nexus One

6. How to make my libreference-ril.so work in the HTC dream unlock developer phone?

7. SIGSEGV error during playback with externally linked library