tags:

views:

5877

answers:

3

I connected to my live device using the adb and the following commands:

C:>adb -s HT829GZ52000 shell $ ls ls sqlite_stmt_journals cache sdcard etc system sys sbin proc logo.rle init.trout.rc init.rc init.goldfish.rc init default.prop data root dev $ cd data cd data $ ls ls opendir failed, Permission denied $

I was surprised to see that I have access denied. How come I can't browse around the directories using the commandline like this?

How do I get root access on my phone?

+1  A: 

There are two things to remember if you want to browse everything on your device.

  1. You need to have a phone with root access in order to browse the data folder on an Android phone. That means either you have a developer device (ADP1 or an ION from Google I/O) or you've found a way to 'root' your phone some other way.
  2. You need to be running ADB in root mode, do this by executing: adb root
Reto Meier
+1  A: 

if you know the application package you can cd directly to that folder..

eg cd data/data/com.yourapp

this will drop you into a directory that is read/writable so you can change files as needed. Since the folder is the same on the emulator, you can use that to get the folder path.

Mark
A: 

Simple... make sure your phone screen is on. Click "Allow" when it asks if you want Unknown to have access to root. Done.

BriMan