自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
系統屬性
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
有多個系統屬性可用來指出 Android 系統的各種狀態,這些狀態與系統支援的頁面大小有關。如果您想瞭解特定裝置的設定方式,這些選項可讓您大致瞭解如何在 Android 中設定及使用網頁大小。
ro.boot.hardware.cpu.pagesize
是 OEM 專屬值,表示正在執行的頁面大小。在 Android 16 中,如果未從系統啟動載入程式傳遞,則預設會由 init 根據 CPU 頁面大小設定。
ro.product.cpu.pagesize.max
是 PRODUCT_MAX_PAGE_SIZE_SUPPORTED
的值,也就是裝置上二進位檔的預期對齊方式。
ro.product.page_size
(在 Android 16 中推出) 是產品定義的頁面大小 (以 TARGET_BOOTS_16K
為依據)。此屬性會定義頁面大小,並在 Vts16KPageSizeTest
中驗證。如果使用錯誤的核心,這個屬性會顯示不相符的訊息。
ro.product.build.16k_page.enabled
會指出裝置是否支援開發人員選項,可在 4 KB 和 16 KB 模式之間切換。進一步瞭解如何啟用及使用這個選項。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# System properties\n\nThere are many different system properties that indicate various states of\nan Android system related to its page size support. If you're trying to\nunderstand how a specific device is configured, these options provide an\noverview of how page size is configured and used in Android.\n\n- `ro.boot.hardware.cpu.pagesize` is an OEM-specific value, indicating the page size that is running. In Android 16, this is set by init by default based on the CPU page size if it isn't passed from the bootloader.\n- `ro.product.cpu.pagesize.max` is the value of `PRODUCT_MAX_PAGE_SIZE_SUPPORTED` or in other words, the expected alignment of binaries on device.\n- `ro.product.page_size` (introduced in Android 16) is the product-defined page size (based on `TARGET_BOOTS_16K`). This defines what the page size should be and is verfied in `Vts16KPageSizeTest`. If the wrong kernel is used, the mismatch with this property tells you.\n- `ro.product.build.16k_page.enabled` indicates whether the device supports a developer option to switch between 4 KB and 16 KB mode. Read more how to [enable and use this option](/docs/core/architecture/16kb-page-size/16kb-developer-option)."]]