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. Handler behaving strangely after orientation change

in my app I have a simple clock, the clock is updating every second. I
update the clock using a handler -  to start ticking I call:

handler.postAtTime(clockTask, currentTime + 1000);

So after 1000 milliseconds clockTask is run. In clockTask I update the
clock and call
handler.postAtTime(clockTask, currentTime + 1000);  again.

When my activity is restarted after orientation change and the clock
was ticking, I start the clock in onCreate().
But unfortunately the clock (which is a TextView) doesn't update!
clockTask is run correctly every second, it tries to update the clock
with correct time, but textViewClock.setText(time) doesn't have any
effect. Just before textViewClock.setText(timeString) I print the
timeString variable to logcat, and it is working ok. Now if I change
screen orientation again, the clock still isn't updating but clockTask
seems to be run twice every second (the previous clockTask is still
running). If I now finish the activity the clockTask is still running
twice every second.
What can be behind this problem?

2. Poor Documentation

Is it me or is the Android Developer Reference documentation an
absolute sham?

Take the Sensor page, which lists the public methods:

float   getMaximumRange()
String  getName()
float   getPower()
float   getResolution()
int     getType()
String  getVendor()
int     getVersion()

Not a single comment as to what these do. Readers must be expected to
be mind readers.

Then take SensorListener, which provides a few comments on the
accelermoeter, magnetic and orientation sensors but no mention of the
other sensors.

When I run an application with onSensorChanged  (int sensor, float[]
values) it outputs 6 values and not 3 as the documentation would

Etc, etc,

Developers are expected to fish around and use guess work to try and
figure out what's actually going on.

Working with 4x4 rotation axis matrices is tricky stuff and needs
detailed explanations.

With all of Google's backing you'd think the documentation would be

Consider the alternative system of Qt by Trolltech. The "Assitant"
documentation is excellent and has led to a big take up of Qt. If
Google wants developers to get up to speed fast on Android then they
should phone the Trollech documenting team asap.

I gather from reading previous posts that this documentation issue is
not new and has been around since the start of Android. Clearly then
somebody at Google has a strange idea as to what documenting an API

The Android system is amazing but really let down by its developer

3. Android Market Question

4. How can i bring an activity to foreground from background manually?

5. Have View and ListView Scroll as one

6. UI framework changes in Android 1.6

7. How do I get a view's height to fill the space in between two other views?