Wow, that makes my life a lot easier.  I thought Dalvik had
permissions set up in some way to prevent apps from accessing what
wasn't explicitly provided by the api.  I've never tried to make an
Android user space app before.

On Apr 5, 2:26 am, Dianne Hackborn <hack...@android.com> wrote:
> Each application runs in its own process, with its own Dalvik VM.  You an
> use the normal Java file APIs to read entries under /proc, and can get the
> pid of your application's process with android.os.Process.myPid().
>
>
>
> On Sat, Apr 4, 2009 at 11:09 PM, kmatzen <kmat...@gmail.com> wrote:
>
> > Right now I'm working on a class project where I am collecting data to
> > profile a user in the kernel.  I've modified drivers/char/keyboard.c
> > to record data and provide a /proc entry to retrieve it.
>
> > I would like to be able to make a front end app that will be used to
> > view this data and tweak settings.  I'm a little uncertain how Dalvik
> > actually functions.  Does each app spawn a Dalvik VM or does the
> > Dalvik VM run all apps inside of it each with its own sandbox?  In
> > either case, does anyone know how I can route data from a proc entry
> > all the way up to the application level?
>
> > I can see in Dalvik/vm a proc entry being accessed and I could hack my
> > way up the chain until I get to the point where the data is consumed,
> > but I'd rather prefer a well thought out roadmap first.
>
> > Or is this question completely dumb?  I doubt that the VM allows the
> > app to open a File object on anything outside of the /sdcard
> > filesystem...or does it?
>
> --
> 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