O'Reilly logo

Learning Android by Marko Gargenta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Filesystem Explained

So, where does the device store these preferences? How secure is my username and password? To answer that, we need to look at how the Android filesystem is organized.

Exploring the Filesystem

There are two ways for you to access the filesystem on an Android device: via Eclipse or the command line.

In Eclipse, we use the File Explorer view to access the filesystem. To open up the File Explorer view, go to WindowShow ViewOther…AndroidFile Explorer. You can also access the File Explorer view via the DDMS perspective. Select the DDMS perspective icon in the top-right corner of Eclipse:

image with no caption

or go to WindowOpen PerspectiveOther…DDMS. If you have multiple devices connected to your workstation, make sure you select which one you are working with in the Devices view. You should now be able to navigate through the device’s filesystem.

If you prefer the command line, you can always use adb shell to get to the shell of the device. From there you can explore the filesystem like you would on any other Unix platform.

Filesystem Partitions

There are three main parts of the filesystem on every Android device. As shown in Figure 7-5, they are:

  • The system partition (/system/)

  • The SDCard partition (/sdcard/)

  • The user data partition at (/data/)

The filesystem as seen via File Explorer in Eclipse

Figure 7-5. The filesystem as seen via File ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required