How to login to the root of Android Dev Phone 1?

by havexz » Tue, 24 Mar 2009 10:43:28 GMT

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

How to login to the root of Android Dev Phone 1?

by havexz » Tue, 24 Mar 2009 10:45:57 GMT

 Also tried login to shell using adb but i am unable to browse to that
directory...... the error is given below:
$ ls
$ ls data
ls data
opendir failed, Permission denied


Sponsored Links

How to login to the root of Android Dev Phone 1?

by havexz » Tue, 24 Mar 2009 14:28:54 GMT


BTW is there a way i can access using the UI DDMS which comes with
eclipse IDE.?


How to login to the root of Android Dev Phone 1?

by havexz » Wed, 25 Mar 2009 11:34:31 GMT

 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: not found
# help
help: not found


How to login to the root of Android Dev Phone 1?

by havexz » Sun, 05 Apr 2009 11:26:59 GMT

 ell 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:30am, David Turner <> wrote:

How to login to the root of Android Dev Phone 1?

by » Fri, 10 Apr 2009 04:39:44 GMT

 i 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/<>/
databases/<your.db> to delete the db. You could also use sqlite3 to
only drop tables and not delete the entire db.


On Apr 9, 6:30pm, Gavin Aiken <> wrote:

How to login to the root of Android Dev Phone 1?

by havexz » Sat, 11 Apr 2009 22:24:55 GMT

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


On Apr 9, 3:39pm, "" <>

Other Threads

1. touch screen calibration?

How does Android process the "touch event" from the linux kernel /dev/
input/eventX ?
Does it use the tslib like Qtopia?
There are some "touch" related info in "MotionEvent" in the
Well, I don't know how it get the "raw" touch data, or how it perform
the calibration to the touch device..
Ant hint for that?


2. G1 likes & dislikes

OK, It's been over three months now since many of us have had our hands 
on a working implementation of Android, so the honeymoon period is over 
and it's probably time to do a check-in on what people like and dislike 
about the *retail* G1 (i.e. not using custom firmware) which could help 
handset manufacturers and T-Mobile improve their future devices, I'd 
suggest we stick to a short background so we know where everyone is 
coming from and three plus points and three minus points to keep things 
brief. Here's mine;


I have a Sony Ericsson c702, Nokia N81, and a G1. Currently I use the 
c702 daily, the N81 is my old phone that I keep as a spare in case the 
c702 breaks, and the G1 which I use for development work or showing 
people what it's like. At the moment I far prefer my c702 for daily use 
over my G1.

G1 likes:

- Touchscreen; It does make life easier than fiddling with the c702 or 
N81 hard keys.
- Apps; The c702 & N81 app installation process is painful and the 
selection is limited.
- Virtual Desktop; Having 3 "desktops" makes life easier.

G1 dislikes:

- Lack of tethering; I have a GPS unit which relies on a tethered phone 
for traffic information, so I can't use the G1 with it.
- Size; it's just too thick and long to fit in my pocket easily.
- Keyboard; I have a white G1 and the writing on the keys is unreadable 
in certain light conditions.

Who's next?


Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 


3. How to add shortcut in home screen by modifying config file ?

4. Any one know why "Timeout executing service: ServiceRecord" happen?

5. Use of 3D Hardware Accelerator

6. Unit testing context.sendBoardcast function

7. Android TabActivity customization