Finally...

I hate to keep following up my own posts, but maybe it will save
someone else a bunch of hassle.

For me the secret turns out to be the following (using ADB):

The data files for the app are stored in "/data/data/<app name>/
files".  However, to push new files into there, you must first change
permission (unless already changed).  You can do this by:

> adb -d shell
$ su
# cd /data/data/<app name>
# chmod 777 files
# exit
$ exit
>

Then:

> adb -d push <file name> /data/data/<app name>/files/<file name>
>

A similar reverse piece of information... My application writes a data
file, which sometimes I wish to upload (pull) back to the host.  A
straight pull ran into the same "Permission denied." problem.  So, I
had to go into ADB and specifically set the permission wide open for
that specific file (as opposed to the "files" directory).  Then I
could do an "ADB -d pull" to retrieve the file.

An open question still remains - why could not see the "/data/data/
<app name>/files" directory with file explorer, either under Eclipse
or directly with the DDMS utility?  Would have been a lot simpler than
ADB.  But heck, it works...

                        jmk
===============================================

On May 19, 8:33 am, jknox <[email protected]> wrote:
> Okay, with ADB, I can see the file that my app creates.  If I go into
> super user mode, then it's in:
>
>    /data/data/trisoft.XXX/files
>
> However:
>
>    >ADB push myfile.txt /data/data/trisoft.XXX/files
>
> gives me a "permission denied." error.  I'm REAL close, people...
> just missing some detail. <G>
>
> Anyone got a hint?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to