The system uid can't access the SD card.  You need to run the code doing the
access as a different uid.

I don't know what you mean by "/framework", though.  Do you mean any code at
all under that path?  If so, it isn't really a matter of path.  If you are
putting stuff in the core framework (which is frameworks/base/core and a few
other places), that code *may* run as any uid, including the system uid; it
shouldn't be accessing the sd card unless the app it is running in
explicitly calls it to tell it to do so.  And of course core running as the
system uid (such as in frameworks/base/services/java) wouldn't want to do
that.

On Sun, Jan 16, 2011 at 10:10 AM, Tux <[email protected]> wrote:

> Hi all,
>
> I have an application running in /packages/apps with user id, so it
> can access sdcard and write on it.
>
> I have modified and added some classes in /framework/base/core/java/
> android/app/, to get this information (if existing) and use it for
> research purpose. But after a lot of research I finaly found that
> SDcard can not be read with system permission, which I can get why to
> avoid system failures, but then my question:
>
> How can I read information wrote by the first application, with the
> second app in /framework?
>
> I saw somewhere speaking of a helper? I do not understand how it will
> help. I cannot run external activities from my app2 because I am in a
> lower layer. So I can not call any application with user id.
> So any thoughts? idea of how I can do that?
>
> If you have a better idea than using sdcard just tell me, but internal
> storage would be the same problem: how to access files of app1 from
> app2 in system level?
>
>
> Best 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

Reply via email to