This document introduces the sensor system architecture in Android, focusing on the G-sensor system. It describes the major components from the Java application layer down to the hardware, including the Java framework layer, JNI, HAL, Linux kernel, and driver setup. The general flow is that the Java application gets sensor data through the framework layer and JNI, which delegates to the HAL and kernel driver to read data from the actual sensor hardware.