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



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


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

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


 THANKS ITS WOKRING......:)

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
pull: not found
# help
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 <di...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



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

by tibigiur...@gmail.com » 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/<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:30pm, Gavin Aiken <gavin.ai...@imperial.ac.uk> 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.

Regards

On Apr 9, 3:39pm, "tibigiur...@gmail.com" <tibigiur...@gmail.com>
wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Developer Phone... Upgrade?

I purchased my phone for full price just prior to the developer phone
announcement, and I was very disappointed on missing out on that.  I
am wondering if it will be possible to upgrade through Google.  I
understand the liability with TMobile, but I would be willing to sign
a developer agreement voiding their warranty service, As I did when I
was a developer for Danger.  Thank you.

--~--~---------~--~----~------------~-------~--~----~

2. Develop android on openSolaris

Hi...Today I see that exist a netbeans plugin for develop android so I
try to write a very difficult application "HELLO WORLD" but when I try
to compile it this is the result:

Created dir: /export/home/prez/NetBeansProjects/AndroidApplication2/
build/classes
Compiling 1 source file to /export/home/prez/NetBeansProjects/
AndroidApplication2/build/classes
compile:
Created dir: /export/home/prez/NetBeansProjects/AndroidApplication2/
dist
/export/home/prez/NetBeansProjects/AndroidApplication2/nbproject/build-
impl.xml:403: exec returned: 9
BUILD FAILED (total time: 1 second)

Someone can help me??
Is possible to use the netbeans plugin under openSolaris???

Thank you!! CIAO CIAO

--~--~---------~--~----~------------~-------~--~----~

3. Marketplace --Demo vs Full Version--

4. Execute in Place (XIP) on Android?

5. How to: Disable Menu Items at runtime

6. binder.c compilation error

7. How to track the selected item in spinner control