Android 4.0.3 Emulator File Systems

This section describes file systems used by the Android 4.0.3 emulator system. 8 file systems are supported in the Android emulator: /dev, /mnt/asec, /mnt/obb, /system, /data, /cache, /mnt/sdcard, and /mnt/secure/asec.

Like any Unix systems, storage devices are organized as file systems. On the my Android 4.0.3 emulator, I can see the following file systems using the "df" shell command:

C:\local\android-sdk-windows\platform-tools>adb shell
# df
df
Filesystem             Size   Used   Free   Blksize
/dev                   252M    32K   252M   4096
/mnt/asec              252M     0K   252M   4096
/mnt/obb               252M     0K   252M   4096
/system                161M   161M     0K   4096
/data                  124M    13M   110M   4096
/cache                  64M     1M    62M   4096
/mnt/sdcard            126M  1016K   125M   512
/mnt/secure/asec       126M  1016K   125M   512

The "mount" shell command tells me how file systems are mounted from storage devices:

C:\local\android-sdk-windows\platform-tools>adb shell
# mount
mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,nosuid,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 ro 0 0
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/vold/179:0 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noe...
/dev/block/vold/179:0 /mnt/secure/asec vfat rw,dirsync,nosuid,node...
tmpfs /mnt/sdcard/.android_secure tmpfs ro,size=0k,mode=000 0 0

Table of Contents

 About This Book

 Installing JDK 1.8 on Windows System

 Installation of Android SDK R24 and Emulator

 Installing Apache Ant 1.9 on Windows System

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

 Android Debug Bridge (adb) Tool

 Android File Systems

Android 4.0.3 File Systems

Android 4.0.3 Emulator File Systems

 Android 4.0.3 Emulator File System Hierarchy

 AboutAndroid - Application to Retrieve System Information

 android.app.Activity Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Archived Tutorials

 References

 Full Version in PDF/EPUB