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

