Why can't the "data" folder appear the same as in the DDMS file explorer?

I list the files in '/':

File directory = new File("/");
fill_listview(directory.listFiles());

And I get a list:

sqlite_stmt_journals
config
cache
sdcard
d
etc
system
sys
sbin
proc
init.rc
init.goldfish.rc
init
default.prop
data
root
dev

I have two questions:

1. Why can't I access the "/ data" folder as an Eclipse DDMS file explorer?

2. Why is it different from DDMS, which is displayed only:

data
sdcard
system

Thank!

+5
source share
3 answers

In the root device, you can do this to access the / data folder:

  • Open cmd
  • Enter ' adb shell'
  • su
  • Click "Allow" on device
  • chmod 777 /data /data/data /data/data/com.application.pacakage
  • Go to DDMS view in Eclipse

After that, you can view the files on the device.

+12

. / , - // , , - , / .. , ( ddms).
- , , . , / .

+7

   run-as com.your.package ls -l /data/data/com.your.package
   run-as com.your.package rm /data/data/com.your.package/databases/mydatabase.db

: http://denniskubes.com/2012/09/25/read-android-data-folder-without-rooting/

0
source

All Articles