Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Explore my Application Data

I'm developing my Android application with Eclipse IDE.
I'd like to view my application's data (saved in internal storage as described here).

"File Explorer" in Eclipse doesn't open the "data" folder

like image 537
Oneiros Avatar asked Dec 03 '22 02:12

Oneiros


1 Answers

An other way of doing is to root your phone, then explore your files using shell.

With a rooted phone :

  1. go to the adb folder in a terminal (on your computer)
  2. adb shell
  3. su
  4. cd /data/data/the.package.name.of.your.app

And there you are! You can look at your files :-)

If you want to have direct access to those files on eclipse, you need to give access to them.

Well, if you are on a dev phone, you can give full access to all the files in /data/data

Of course this is something you should never do under any circumstances on regular basis...

Simply use Busybox to copy the folder you are looking for in your sdcard

  1. Install busybox (most rooting procedures install it automatically)
  2. go to the adb folder in a terminal (on your computer)
  3. adb shell (to enter a shell inside your phone
  4. busybox to check that it is installed correctly
  5. busybox chmod a+rwx /data
  6. busybox chmod -R a+rwx /data/data

Et Voila :-) Now you should be able to access all you files on eclipse directly!

like image 69
Taiko Avatar answered Dec 26 '22 11:12

Taiko