Don't do that. Write a content provider or other component that manages access to the data. For example, content provider has an open() call that allows any process with permission to access the provider the ability to open a file descriptor on whatever file the content provider can access.
On Mon, Jan 17, 2011 at 8:18 AM, Tux <[email protected]> wrote: > Hi all, > > so I have some classes (of my own) in /framework/base/core/java/ > android/app/ > so they are running with system id....Problem is that I need to read > files wrote by an application running in normal path /packages/apps/ . > I cannot use external storage because system id cannot access external > storage. I cannot use internal storage because, classes from where I > need to access it are not activities. I was thinking of creating files > direclty in the classes of /framework/base/core/java/android/app/ so > that the application in /packages/apps send data to thoses classes who > are in charge of the writing part.But apparently I cannot write any > file in those classes (fileInputStream are not working, same problem > if I pass context into argument to use openFileInput()). > > So....I want to start a process from my classes there but with user id > so it can access ext. storage. How do I do that? > > > Regards, > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- Dianne Hackborn Android framework engineer [email protected] 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: [email protected] website: http://groups.google.com/group/android-porting
