[android-kernel] Re: Best way to get data from /proc to Dalvik app

2009-04-05 Thread kmatzen
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 wrote: > Each application runs in i

[android-kernel] Re: Best way to get data from /proc to Dalvik app

2009-04-05 Thread Jean-Baptiste Queru
Have you actually tried opening a file outside of /sdcard? It just works (and, uh, that's how applications can access their data as stored in /data). (Android relies on linux processes, not on the VM, to enforce security. If the process is allowed to do it, there's no security reason why an app r

[android-kernel] Re: Best way to get data from /proc to Dalvik app

2009-04-04 Thread Dianne Hackborn
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 wrote: > > Right now I'm working on a c