On Wed, Apr 14, 2010 at 3:46 PM, Deva R <r.deva...@gmail.com> wrote:

> Note that in android (for that matter, universally in java) java
> applications cant access system resources (sys/power/state file in this
> case) directly, as they have to bypass VM (dalvik in android).
>

Sorry, that isn't true.  If the process running the VM has permission to
access the file, then the Java code can access it.  Android doesn't use the
VM to enforce this (or most) kinds of security.

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

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to