Encryption on Android uses the dm-crypt layer in the Linux kernel. Read the detailed description of how it is tied into the Android system and what must be done on a new device to get this feature working.