Hi Gavin

Well "tibigiurgiu" is right if you just have to remove the db just
uninstall the application. But if you want to copy the files from
phone to pc den you need to chmod n all. Well the shell provided
through adb has a very limited set commands and the commands are also
not fully supported. So wat u have to do is to individually change
mode of each directory and file. Change the mode and then move to that
dir and change the mode for next dir and so on.

Regards

On Apr 9, 3:39 pm, "[email protected]" <[email protected]>
wrote:
> Hi Gavin,
> Giving full rights to everything in /data is not a very good idea. I
> don't think chmod supports -R on android so it might not be possible
> at all.
> The easiest way to remove everything related to your application would
> be to uninstall it from "manage applications". Then when you'll run it
> from eclipse it would be just as a fresh install.
> Another solution is to connect your phone with USB to your desktop
> (there is a driver for windows, on Linux it should work by default),
> run adb shell, su to become root and rm /data/data/<your.package.name>/
> databases/<your.db> to delete the db. You could also use sqlite3 to
> only drop tables and not delete the entire db.
>
> Regards
>
> On Apr 9, 6:30 pm, Gavin Aiken <[email protected]> wrote:
>
> > Hi Guys,
>
> > I'm having the same issue. I just go a dev phone and i'm used to wiping the
> > database of my ap by removing it using eclipse from the
> > /data/data/<my-ap's-namespace>/databse.db location.
>
> > Now i'm developing on a dev phone I don;t have access to /data/.
>
> > I've installed terminal emulator but I need to know what command to use as a
> > recursive chmod on data returns the error message 'bad mode'.
>
> > # chmod 777 -R /data/
>
> > Any help greatly appreciated! I'm trying different database setups, the sql
> > is bundled with the apk, the database remains upon reinstallation of the app
> > via eclipse and hence I need to remove it manually (A better approach would
> > also be a welcome suggestion).
>
> > Cheers,
>
> > Gav
>
> > On Sun, Apr 5, 2009 at 4:26 AM, havexz <[email protected]> wrote:
>
> > > Well i finally get the solution......u have to use the "su" command to
> > > login as root and then have to change the permissions for the folder
> > > (in my case its data). Once done that then you can easily move files
> > > using the eclipse DDMS from the Android Dev Phone 1. But remember you
> > > also need to change the permissions for the file that you want to copy
> > > from the device....And the "pull" and "push" commands only work
> > > outside "su" so you have to change permissions using "su" and den try
> > > "pull" or "push".
>
> > > Thanks a lot to Jean-Baptiste Queru who helped me with su.
>
> > > On Mar 25, 4:30 am, David Turner <[email protected]> wrote:
> > > > "pull" is an adb command, you need to run it on the host (there is no
> > > easy
> > > > way to send a file to your host from the system). E.g.
>
> > > > adb pull <device-path> <host-path>
>
> > > > On Wed, Mar 25, 2009 at 4:34 AM, havexz <[email protected]> wrote:
>
> > > > > well i am able to access the folder but still unable to get the files
> > > > > out to local system ......
> > > > > the following is the snap shot. Here i had run the "su" command and
> > > > > the prompt changes from $ to #
>
> > > > > # pull
> > > > > pull
> > > > > pull: not found
> > > > > # help
> > > > > help
> > > > > help: not found
> > > > > #
>
> > > > > On Mar 24, 1:28 am, havexz <[email protected]> wrote:
> > > > > > THANKS ITS WOKRING......:)
>
> > > > > > BTW is there a way i can access using the UI DDMS which comes with
> > > > > > eclipse IDE.?
>
> > > > > > On Mar 23, 10:40 pm, Jean-Baptiste Queru <[email protected]> wrote:
>
> > > > > > > Run "su" in your shell, and you'll be running arootshell.
>
> > > > > > > JBQ
>
> > > > > > > On Mon, Mar 23, 2009 at 7:45 PM, havexz <[email protected]>
> > > > > wrote:
>
> > > > > > > > Also tried login to shell using adb but i am unable to browse to
> > > that
> > > > > > > > directory...... the error is given below:
> > > > > > > > $ ls
> > > > > > > > ls
> > > > > > > > sqlite_stmt_journals
> > > > > > > > cache
> > > > > > > > sdcard
> > > > > > > > etc
> > > > > > > > init
> > > > > > > > default.prop
> > > > > > > > logo.rle
> > > > > > > > init.trout.rc
> > > > > > > > data
> > > > > > > > system
> > > > > > > > init.goldfish.rc
> > > > > > > > sys
> > > > > > > > proc
> > > > > > > > init.rc
> > > > > > > > sbin
> > > > > > > >root
> > > > > > > > dev
> > > > > > > > $ ls data
> > > > > > > > ls data
> > > > > > > > opendir failed, Permission denied
> > > > > > > > $
>
> > > > > > > > On Mar 23, 9:43 pm, havexz <[email protected]> wrote:
> > > > > > > >> I am unable to copy the files from the data folder of the
> > > Android
> > > > > Dev
> > > > > > > >> Phone 1. I used to do that on the Emulator. I need to back up
> > > the
> > > > > > > >> application data so that I can restore it.
>
> > > > > > > --
> > > > > > > Jean-Baptiste M. "JBQ" Queru
> > > > > > > Android Engineer, Google.
>
> > > > > > > Questions sent directly to me that have no reason for being 
> > > > > > > private
> > > > > > > will likely get ignored or forwarded to a public forum with no
> > > further
> > > > > > > warning.
>
>
--~--~---------~--~----~------------~-------~--~----~
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