Unfortunately you can only do this if running as root or the uid of the app
that owns the data.  On a production G1 you can not do this from adb.

On Fri, Apr 17, 2009 at 10:18 AM, brian.schimmel <
[email protected]> wrote:

>
> I have to make some additions to what I said before:
>
> 1. There are some typos in the folder names in my post. They are only
> in that post and are definitely not the cause of my problems.
>
> 2. Though there is a small chance that my folder /data/data/package/
> app_mycustomname/mysubdirectory was indeed empty, but I cannot look
> into any of the application folders. I think this is a permission
> related problem, but I thought the usage of MODE_WORLD_WRITEABLE would
> solve this. I have no good understanding of what linux permissions
> mean, but drwxrwxrwx seems to me as if every user has every possible
> permission on that dir. Because I cannot see the files and
> subdirectories there in, I cannot tell if they are present and if they
> have the right permissions.
>
> If there is really a permission problem, I think I could get arround
> it if I rooted my phone. Do you think this would help? All the how-
> to's that I found so far were written for consumer devices, do they
> work an a ADP1 too?
>
> On Apr 17, 3:33 pm, "[email protected]"
> <[email protected]> wrote:
> > Hi,
> >
> > my app is creating a directory by using
> >
> > File thisDir = getDir("mycustomname", Context.MODE_WORLD_WRITEABLE);
> >
> > It is stored at
> > /data/data/package/app_mycustomname/
> >
> > I can browse that directory with DDMS or with 'adb shell', of course,
> > it is empty. My App then creates some subdirectories there, and those
> > have subdirectories too, and so on, and creates files in several of
> > those. My app can read all those dirs and files, too.
> >
> > Sometimes I have to take a look at this directory tree, but I cannot
> > browse deep into that tree, neither using DDMS (both inside Eclipse
> > and standalone) nor using the shell. I can see that there is a
> > directory called /data/data/package/app_mycustomname/mysubdirectory
> > and I can even 'cd' into this directory. But when I do a 'ls' there,
> > the directory is reported to be empty, though I'm sure there must be
> > something inside.
> >
> > app_mycoustomname has the permissions drwxrwx-wx
> > app_mycoustomname/mysubdirectory has the permissions drwxrwxrwx
> >
> > I have the same issue on the emulator and on the ADP1, both running a
> > 1.1 firmware.
> >
>


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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to