> For the complete documentation index, see [llms.txt](https://wiki.switchroot.org/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.switchroot.org/wiki/android/android-10/10-partition-docs.md).

# 10 Partition Docs

Android 10 utilizes a legacy, or [System-as-Root partition](https://source.android.com/docs/core/architecture/partitions/system-as-root#about-system-as-root) scheme enabling easy system partition loading from initramfs. This was the default from \~Android 9-11.

Required partitions and sizes (order should not matter but it is best to keep in order for semantics, and the GPT table must come after the MBR table):

<table><thead><tr><th width="233">Partition</th><th>Name</th><th>Size</th></tr></thead><tbody><tr><td>Vendor</td><td>vendor</td><td>1GiB</td></tr><tr><td>System</td><td>APP</td><td>2GiB*</td></tr><tr><td>Linux Kernel</td><td>LNX</td><td>32MiB</td></tr><tr><td>Recovery (TWRP)</td><td>SOS</td><td>64MiB</td></tr><tr><td>Device Tree Reference</td><td>DTB</td><td>1MiB</td></tr><tr><td>Metadata**</td><td>MDA</td><td>16MiB</td></tr><tr><td>Cache</td><td>CAC</td><td>700 MiB</td></tr><tr><td>Miscellaneous</td><td>MSC</td><td>3MiB</td></tr><tr><td>Userdata</td><td>UDA</td><td>Custom***</td></tr></tbody></table>

( 1 GiB = 1024 MiB )

\* `hekate` now creates 3 GiB, but public images only support 2 GiB systemimage--compile 10 or 11 manually to support&#x20;

\*\* You may encounter errors in Android if your encryption (MDA) partition is not properly zeroed before use. Be sure to zero it when altering the partition. Encryption is not recommended and may not function properly.

\*\*\* If making Android partitions by hand, take into account that if you have no emuMMC partition (which would go after the Android userdata partition) you should reserve 1MB of unallocated space at the end of the partition table.

Data is based off [`hekate`'s partitioner source code](https://github.com/CTCaer/hekate/blob/master/nyx/nyx_gui/frontend/gui_tools_partition_manager.c).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.switchroot.org/wiki/android/android-10/10-partition-docs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
